M3_H5_CreditStop
Use this script to disable the customer order (CO) stop drop-down on 'Customer Order. Stop' (OIS120/E) for any logged in user. The CO stop drop-down is enabled by default but the script and the defined argument may disable its options.
APIs used in this script
This table shows the API and the transaction that are required to make the script work:
Program | Transaction |
---|---|
MNS150MI | GetUserData |
Script argument
This argument can only be used on 'Customer Order. Stop' (OIS120/E).WKDIF1, 100
Argument | Example | Optional | Descriptions |
---|---|---|---|
Field name | WKDIF1 | No | The field name of the credit difference. If there are multiple credit differences, you can use only one credit difference and declare its field name in the argument. |
Tolerance | 100 | No | The tolerance limit value that is compared to the credit
difference. If the tolerance value is greater than or equal to the credit difference, the CO stop drop down is enabled. However, if the tolerance value is less than the credit difference, the CO stop drop down is disabled. |
- Example 1:
User-defined field 3 in 'User. Open' (MNS150) = $3900
Difference' field for credit limit 3 in 'Customer Order. Stop' (OIS120) = $5000
Tolerance limit defined in the argument = 4000
CO stop drop down is enabled and can be modified by user.
- Example 2
User-defined field 3 in (MNS150) = $4800
Difference' field for credit limit 3 in (OIS120) = $5000
Tolerance limit defined in the argument = 200
CO stop drop down is enabled and can be modified by user.
- Example 3
User-defined field 3 in (MNS150) = $5000
Difference' field for credit limit 3 in (OIS120) = $8500
Tolerance limit defined in the argument = 2000
CO stop drop down is disabled and cannot be modified by the user.
- Example 4
User-defined field 3 in (MNS150) = $4500
Difference' field for credit limit 3 in (OIS120) = $5000
Tolerance limit defined in the argument = 400
CO stop drop down is disabled and cannot be modified by the user.