How to restrict process file to be executed in a particular SAP system

Previous  Home  Next

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.

DS_SAP

 

2)Rename the clone field and map the field to capture SAP system ID.

 

DS_SAP!1

3)This SAP system ID will now be used in Custom Dynamic Skip.

 

DS_SAP6

 

 

4)Enter the following code in custom dynamic skip to prevent particular system from being used:

DS_SAP3

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

 

Note: The SAP system(s) that you want to block, Return message ID and Return message can be customized as per requirement. We suggest to put E: in Return Message so it will be color coded in red in Excel.

 

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.

 

DS_SAP5

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.

DS_SAP7

 

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