SAP BBP_SC_MAP_PD_TO_REQ Function Module for
BBP_SC_MAP_PD_TO_REQ is a standard bbp sc map pd to req 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 sc map pd to req FM, simply by entering the name BBP_SC_MAP_PD_TO_REQ into the relevant SAP transaction such as SE37 or SE38.
Function Group: BBP_PDMAP
Program Name: SAPLBBP_PDMAP
Main Program: SAPLBBP_PDMAP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function BBP_SC_MAP_PD_TO_REQ 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_SC_MAP_PD_TO_REQ'".
EXPORTING
IS_NEW_HEADER = "
* IT_ATTACH = "
IMPORTING
ES_REQHEAD = "
ES_REQ_HEADS = "
ES_CUF_HEADER = "
TABLES
* ET_REQ_REFERENCE = "
* IT_NEW_ITEMS = "
* IT_ACCOUNT = "
* IT_PARTNER = "
* IT_LONGTEXT = "
* IT_LIMIT = "
* IT_ORGDATA = "
* IT_TAX = "
* IT_ACTVAL = "
* IT_ITMLIM_REL = "
* IT_STATUS = "
* ET_REQ_LINE = "
* ET_MESSAGES = "
* ET_CUF_ITEM = "
* ET_CUF_ACC = "
* ET_REQ_HEADS = "
* ET_REQ_LINE_MAT = "
* ET_REQ_LINE_SRV = "
* ET_REQ_TEXT = "
* ET_REQ_ACCT = "
* ET_REQ_ATT = "
* ET_REQ_ADDRESS = "
* ET_REQ_CONLIMIT = "
IMPORTING Parameters details for BBP_SC_MAP_PD_TO_REQ
IS_NEW_HEADER -
Data type: BBP_PDS_SC_HEADER_DOptional: No
Call by Reference: No ( called with pass by value option)
IT_ATTACH -
Data type: BBPT_PDS_ATT_TOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BBP_SC_MAP_PD_TO_REQ
ES_REQHEAD -
Data type: REQHEADOptional: No
Call by Reference: Yes
ES_REQ_HEADS -
Data type: REQHEADSOptional: No
Call by Reference: Yes
ES_CUF_HEADER -
Data type: BBPS_CUF_HEADEROptional: No
Call by Reference: Yes
TABLES Parameters details for BBP_SC_MAP_PD_TO_REQ
ET_REQ_REFERENCE -
Data type: REQREFOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_NEW_ITEMS -
Data type: BBP_PDS_SC_ITEM_DOptional: Yes
Call by Reference: Yes
IT_ACCOUNT -
Data type: BBP_PDS_ACCOptional: Yes
Call by Reference: Yes
IT_PARTNER -
Data type: BBP_PDS_PARTNEROptional: Yes
Call by Reference: Yes
IT_LONGTEXT -
Data type: BBP_PDS_LONGTEXTOptional: Yes
Call by Reference: Yes
IT_LIMIT -
Data type: BBP_PDS_LIMITOptional: Yes
Call by Reference: Yes
IT_ORGDATA -
Data type: BBP_PDS_ORGOptional: Yes
Call by Reference: Yes
IT_TAX -
Data type: BBP_PDS_TAXOptional: Yes
Call by Reference: Yes
IT_ACTVAL -
Data type: BBP_PDS_ACTVALOptional: Yes
Call by Reference: Yes
IT_ITMLIM_REL -
Data type: BBP_PDS_ILRELOptional: Yes
Call by Reference: Yes
IT_STATUS -
Data type: BBP_PDS_STATUSOptional: Yes
Call by Reference: Yes
ET_REQ_LINE -
Data type: REQLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_MESSAGES -
Data type: BBP_PDS_MESSAGESOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_CUF_ITEM -
Data type: BBPS_CUF_ITEMOptional: Yes
Call by Reference: Yes
ET_CUF_ACC -
Data type: BBPS_CUF_ACCOptional: Yes
Call by Reference: Yes
ET_REQ_HEADS -
Data type: REQHEADSOptional: Yes
Call by Reference: Yes
ET_REQ_LINE_MAT -
Data type: REQLINEMA_ECIOptional: Yes
Call by Reference: Yes
ET_REQ_LINE_SRV -
Data type: BBPS_REQLINESR_ECIOptional: Yes
Call by Reference: Yes
ET_REQ_TEXT -
Data type: REQTEXTOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_REQ_ACCT -
Data type: REQACCT_470Optional: Yes
Call by Reference: Yes
ET_REQ_ATT -
Data type: REQATTOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_REQ_ADDRESS -
Data type: REQADDRESSOptional: Yes
Call by Reference: No ( called with pass by value option)
ET_REQ_CONLIMIT -
Data type: REQHEADSOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for BBP_SC_MAP_PD_TO_REQ 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_es_reqhead | TYPE REQHEAD, " | |||
| lv_is_new_header | TYPE BBP_PDS_SC_HEADER_D, " | |||
| lt_et_req_reference | TYPE STANDARD TABLE OF REQREF, " | |||
| lt_it_new_items | TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D, " | |||
| lt_it_account | TYPE STANDARD TABLE OF BBP_PDS_ACC, " | |||
| lt_it_partner | TYPE STANDARD TABLE OF BBP_PDS_PARTNER, " | |||
| lt_it_longtext | TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT, " | |||
| lt_it_limit | TYPE STANDARD TABLE OF BBP_PDS_LIMIT, " | |||
| lt_it_orgdata | TYPE STANDARD TABLE OF BBP_PDS_ORG, " | |||
| lt_it_tax | TYPE STANDARD TABLE OF BBP_PDS_TAX, " | |||
| lt_it_actval | TYPE STANDARD TABLE OF BBP_PDS_ACTVAL, " | |||
| lt_it_itmlim_rel | TYPE STANDARD TABLE OF BBP_PDS_ILREL, " | |||
| lt_it_status | TYPE STANDARD TABLE OF BBP_PDS_STATUS, " | |||
| lv_it_attach | TYPE BBPT_PDS_ATT_T, " | |||
| lt_et_req_line | TYPE STANDARD TABLE OF REQLINE, " | |||
| lv_es_req_heads | TYPE REQHEADS, " | |||
| lt_et_messages | TYPE STANDARD TABLE OF BBP_PDS_MESSAGES, " | |||
| lt_et_cuf_item | TYPE STANDARD TABLE OF BBPS_CUF_ITEM, " | |||
| lt_et_cuf_acc | TYPE STANDARD TABLE OF BBPS_CUF_ACC, " | |||
| lt_et_req_heads | TYPE STANDARD TABLE OF REQHEADS, " | |||
| lv_es_cuf_header | TYPE BBPS_CUF_HEADER, " | |||
| lt_et_req_line_mat | TYPE STANDARD TABLE OF REQLINEMA_ECI, " | |||
| lt_et_req_line_srv | TYPE STANDARD TABLE OF BBPS_REQLINESR_ECI, " | |||
| lt_et_req_text | TYPE STANDARD TABLE OF REQTEXT, " | |||
| lt_et_req_acct | TYPE STANDARD TABLE OF REQACCT_470, " | |||
| lt_et_req_att | TYPE STANDARD TABLE OF REQATT, " | |||
| lt_et_req_address | TYPE STANDARD TABLE OF REQADDRESS, " | |||
| lt_et_req_conlimit | TYPE STANDARD TABLE OF REQHEADS. " |
|   CALL FUNCTION 'BBP_SC_MAP_PD_TO_REQ' " |
| EXPORTING | ||
| IS_NEW_HEADER | = lv_is_new_header | |
| IT_ATTACH | = lv_it_attach | |
| IMPORTING | ||
| ES_REQHEAD | = lv_es_reqhead | |
| ES_REQ_HEADS | = lv_es_req_heads | |
| ES_CUF_HEADER | = lv_es_cuf_header | |
| TABLES | ||
| ET_REQ_REFERENCE | = lt_et_req_reference | |
| IT_NEW_ITEMS | = lt_it_new_items | |
| IT_ACCOUNT | = lt_it_account | |
| IT_PARTNER | = lt_it_partner | |
| IT_LONGTEXT | = lt_it_longtext | |
| IT_LIMIT | = lt_it_limit | |
| IT_ORGDATA | = lt_it_orgdata | |
| IT_TAX | = lt_it_tax | |
| IT_ACTVAL | = lt_it_actval | |
| IT_ITMLIM_REL | = lt_it_itmlim_rel | |
| IT_STATUS | = lt_it_status | |
| ET_REQ_LINE | = lt_et_req_line | |
| ET_MESSAGES | = lt_et_messages | |
| ET_CUF_ITEM | = lt_et_cuf_item | |
| ET_CUF_ACC | = lt_et_cuf_acc | |
| ET_REQ_HEADS | = lt_et_req_heads | |
| ET_REQ_LINE_MAT | = lt_et_req_line_mat | |
| ET_REQ_LINE_SRV | = lt_et_req_line_srv | |
| ET_REQ_TEXT | = lt_et_req_text | |
| ET_REQ_ACCT | = lt_et_req_acct | |
| ET_REQ_ATT | = lt_et_req_att | |
| ET_REQ_ADDRESS | = lt_et_req_address | |
| ET_REQ_CONLIMIT | = lt_et_req_conlimit | |
| . " BBP_SC_MAP_PD_TO_REQ | ||
ABAP code using 7.40 inline data declarations to call FM BBP_SC_MAP_PD_TO_REQ
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.Search for further information about these or an SAP related objects