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.
Script arguments are not required. The CO stop still gets enabled or disabled based on the credit limit 3 difference if you do not provide any argument.
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 | Yes | The field name of the credit difference. For multiple credit differences, you can use only one credit difference and declare its field name in the argument. |
Tolerance percentage | 10 | Yes |
The tolerance percentage is calculated to the defined value in the U-def field 3 in 'User. Open' (MNS150) for the logged-in user. 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.
Note: You can add a maximum tolerance percentage of 20 and
accept only up to 5 decimals, for example, 17.89753.
|
- Example 1:
User-defined field 3 in (MNS150): $1540
Difference field for credit limit 3 in 'Customer Order. Stop' (OIS120): $1600
Tolerance limit in percentage as defined in the argument: 10
As a result, the CO stop drop down is enabled and can be modified by the user.
- Example 2
User-defined field 3 in (MNS150): $500
Difference field for credit limit 3 in (OIS120): $550
Tolerance limit in percentage as defined in the argument: 10
As a result, the CO stop drop down is enabled and can be modified by the user.
- Example 3
User-defined field 3 in (MNS150): $355
Difference field for credit limit 3 in (OIS120): $200
Tolerance limit in percentage as defined in the argument: 10
As a result, the CO stop drop down is disabled and cannot be modified by the user.
- Example 4
User-defined field 3 in (MNS150): $1700
Difference field for credit limit 3 in (OIS120): $1890
Tolerance limit in percentage as defined in the argument: 10
As a result, the CO stop drop down is disabled and cannot be modified by the user.