There may be cases where changes in SAP screens or SAP behaviour between the first record and other records, may require that the each record be ran as a first transaction. To do this, the connection to SAP will need to be restored between each record. This method is suggested for instances where an If First Transaction or an If NOT First Transaction condition is not able to resolve the issue.
This feature can also be used to improve performance when processing large amounts of SAP data.
Winshuttle 10.x versions and Winshuttle Studio
Go to the Expert tab of the Mapping section, then click on Edit - Script Editor.
Once inside the editor, scroll all the way down to the end of the text, press Enter to add a new line.
On the new line add the following text &EndSession:x where x is the number of records that the script will process before refreshing the SAP Connection. Generally this is set to 1.
It is not recommended to change anything inside the editor as it can cause problems to the script. Please do not make any other changes inside the editor with out consulting Winshuttle Support first.