SAP BBP_PAYTERMS_OUT_MAPC Function Module for
BBP_PAYTERMS_OUT_MAPC is a standard bbp payterms out mapc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for bbp payterms out mapc FM, simply by entering the name BBP_PAYTERMS_OUT_MAPC into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_AI_OUT_MAPC
Program Name: SAPLBBP_AI_OUT_MAPC
Main Program: SAPLBBP_AI_OUT_MAPC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BBP_PAYTERMS_OUT_MAPC pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'BBP_PAYTERMS_OUT_MAPC'".
EXPORTING
IS_STRUCT = "
* IV_DAYS_NORMAL_FIELDNAME = 'DSCNT1_TO' "
* IV_PERCENTAGE_NORMAL_FIELDNAME = 'CASH_DISC1' "
* IV_DAYS_MAX_FIELDNAME = 'DSCNT2_TO' "
* IV_PERCENTAGE_MAX_FIELDNAME = 'CASH_DISC2' "
* IV_DAYS_FIELDNAME = 'DSCNT3_TO' "
* IV_RAISE_ERROR = 'X' "
IMPORTING
ES_PROXY_TERMS_OF_PAYMENT = "
IMPORTING Parameters details for BBP_PAYTERMS_OUT_MAPC
IS_STRUCT -
Data type: ANYOptional: No
Call by Reference: Yes
IV_DAYS_NORMAL_FIELDNAME -
Data type: STRINGDefault: 'DSCNT1_TO'
Optional: Yes
Call by Reference: Yes
IV_PERCENTAGE_NORMAL_FIELDNAME -
Data type: STRINGDefault: 'CASH_DISC1'
Optional: Yes
Call by Reference: Yes
IV_DAYS_MAX_FIELDNAME -
Data type: STRINGDefault: 'DSCNT2_TO'
Optional: Yes
Call by Reference: Yes
IV_PERCENTAGE_MAX_FIELDNAME -
Data type: STRINGDefault: 'CASH_DISC2'
Optional: Yes
Call by Reference: Yes
IV_DAYS_FIELDNAME -
Data type: STRINGDefault: 'DSCNT3_TO'
Optional: Yes
Call by Reference: Yes
IV_RAISE_ERROR -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BBP_PAYTERMS_OUT_MAPC
ES_PROXY_TERMS_OF_PAYMENT -
Data type: BBPX_TERMS_OF_PAYMENTOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for BBP_PAYTERMS_OUT_MAPC Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_is_struct | TYPE ANY, " | |||
| lv_es_proxy_terms_of_payment | TYPE BBPX_TERMS_OF_PAYMENT, " | |||
| lv_iv_days_normal_fieldname | TYPE STRING, " 'DSCNT1_TO' | |||
| lv_iv_percentage_normal_fieldname | TYPE STRING, " 'CASH_DISC1' | |||
| lv_iv_days_max_fieldname | TYPE STRING, " 'DSCNT2_TO' | |||
| lv_iv_percentage_max_fieldname | TYPE STRING, " 'CASH_DISC2' | |||
| lv_iv_days_fieldname | TYPE STRING, " 'DSCNT3_TO' | |||
| lv_iv_raise_error | TYPE XFELD. " 'X' |
|   CALL FUNCTION 'BBP_PAYTERMS_OUT_MAPC' " |
| EXPORTING | ||
| IS_STRUCT | = lv_is_struct | |
| IV_DAYS_NORMAL_FIELDNAME | = lv_iv_days_normal_fieldname | |
| IV_PERCENTAGE_NORMAL_FIELDNAME | = lv_iv_percentage_normal_fieldname | |
| IV_DAYS_MAX_FIELDNAME | = lv_iv_days_max_fieldname | |
| IV_PERCENTAGE_MAX_FIELDNAME | = lv_iv_percentage_max_fieldname | |
| IV_DAYS_FIELDNAME | = lv_iv_days_fieldname | |
| IV_RAISE_ERROR | = lv_iv_raise_error | |
| IMPORTING | ||
| ES_PROXY_TERMS_OF_PAYMENT | = lv_es_proxy_terms_of_payment | |
| . " BBP_PAYTERMS_OUT_MAPC | ||
ABAP code using 7.40 inline data declarations to call FM BBP_PAYTERMS_OUT_MAPC
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_iv_days_normal_fieldname) | = 'DSCNT1_TO'. | |||
| DATA(ld_iv_percentage_normal_fieldname) | = 'CASH_DISC1'. | |||
| DATA(ld_iv_days_max_fieldname) | = 'DSCNT2_TO'. | |||
| DATA(ld_iv_percentage_max_fieldname) | = 'CASH_DISC2'. | |||
| DATA(ld_iv_days_fieldname) | = 'DSCNT3_TO'. | |||
| DATA(ld_iv_raise_error) | = 'X'. | |||
Search for further information about these or an SAP related objects