Custom DS

Previous  Top  Next

Like Custom DS for fields we have Custom DS for screens too.

Refer the transaction screen below. Business requirement is that If user adds/deletes any column then this transaction should not run. See how we can implement this using Custom Dynamic Skip.

custom-dsSCRb1

 

To achieve this, we will add a custom dynamic skip in the first screen.

custom-dsSCRb2

Have a look at the DS criteria. It will check if value is not equal to “ABCD” in cell 2 of column P in current sheet, then it will Return 4 which is for stopping current SAP execution.

Thus, if any column is added or deleted then it will Return 4 & stop the transaction.

custom-dsSCRb3

 

Let us insert 2 blank columns as shown below.

custom-dsSCRb4

 

Click on Run button.

It will show the relevant message that “Call to SAP stopped due to Custom DS”

custom-dsSCRb5

 

This is just a simplified example to clear the concept. In real implementation, we would have a hidden cell somewhere that we will be checking. Of course, Custom DS concept can be extended to many other scenario.

Hopefully this documentation provided basic information so you can implement your own business rules using powerful Dynamic Skip.