This Extension Point allows a script implementation to be executed when the Credit Check is performed for a Quote. Generally, this should make a call to the ERP system or any other external system where this information is available.
Upload the script file to the Groovy Script with the name “Check Credit Limit”. Please refer to Groovy Service Introduction - Uploading a New Groovy Script for more details of how to do this.
Additional Binding Variables
The following binding variable(s) are made available for this extension point, in addition to the common binding variables listed in Section 2.5.1 Common Binding Variables.
Represents the Quote, it contains the functions that can be used to query the quote and its line items data as well as to modify them.
The script is expected to retrieve the values of “Credit Limit”, “Credit Exposure”, and/or “Credit Exceeded Amount” fields. These values can be retrieved from ERP or any other external system. The script should then package the values as a GroovyTable variable and return it. Additional data points may be returned together with these values and will be displayed; however, they will not be processed. Please refer to the Javadoc and the example script at 6.2 Check Credit Limit by Calling ERP BAPI.
The script that has been uploaded for this extension point will be executed automatically when the user clicked on the “Credit Check” button in a Quote.
Based on the returned GroovyTable variable, the “Credit Limit”, “Credit Exposure”, and/or “Credit Exceeded Amount” fields will be updated accordingly. Any additional data in the GroovyTable variable will be displayed in the pop-up.