How to restrict process file to be executed in a particular SAP system |
![]() ![]() ![]() |
Sometimes you want to prevent user from accidentally running script in production (or any other) environment because you have yet not fully released/tested this script. You can achieve this centrally using Innowera Control Panel. Or if you do not have Innowera Control Panel, you can do this using Dynamic Skip functionality in mapper.
Design using Custom Dynamic Skip: 1)Open process file and clone a field to create dummy field.
2)Rename the clone field and map the field to capture SAP system ID.
3)This SAP system ID will now be used in Custom Dynamic Skip.
4)Enter the following code in custom dynamic skip to prevent particular system from being used: Here’s text of the code (for cut/paste) If iValue = "CEP" then iReturnID = "E:00-999" iReturnMessage = "This process file is not yet released for CEP system." Return 4 'Stop current call else Return 1 'Allow user to continue end if
Run Time Behavior: If user tries to run this file, and if user logs into CEP system, this is what will be displayed and processing will stop. If you have more than one record, it will stop on first record itself and will not execute any other records.
If user logs in to any other system, it will run normally.
How to disable this check: Once you are ready to release this process file, simply go to mapper and disable this field.
Cloud reference file:
Please check Innowera cloud sample file <Cloud ID: 2294> for example of this concept. Click here on how to use Innowera cloud sample file.
Next: How to correctly record BOM item changes in CS02 transaction |