SAP Function Modules

BBP_SC_MAP_PD_TO_REQ SAP Function module







BBP_SC_MAP_PD_TO_REQ is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BBP_SC_MAP_PD_TO_REQ into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: BBP_PDMAP
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BBP_SC_MAP_PD_TO_REQ - BBP SC MAP PD TO REQ





CALL FUNCTION 'BBP_SC_MAP_PD_TO_REQ' "
  EXPORTING
    is_new_header =             " bbp_pds_sc_header_d
*   it_attach =                 " bbpt_pds_att_t
  IMPORTING
    es_reqhead =                " reqhead
    es_req_heads =              " reqheads
    es_cuf_header =             " bbps_cuf_header
* TABLES
*   et_req_reference =          " reqref
*   et_req_line =               " reqline
*   et_req_line_mat =           " reqlinema_eci
*   et_req_line_srv =           " bbps_reqlinesr_eci
*   et_req_text =               " reqtext
*   et_req_acct =               " reqacct_470
*   et_req_att =                " reqatt
*   et_req_address =            " reqaddress
*   et_req_conlimit =           " reqheads
*   it_new_items =              " bbp_pds_sc_item_d
*   it_account =                " bbp_pds_acc
*   it_partner =                " bbp_pds_partner
*   it_longtext =               " bbp_pds_longtext
*   it_limit =                  " bbp_pds_limit
*   it_orgdata =                " bbp_pds_org
*   it_tax =                    " bbp_pds_tax
*   it_actval =                 " bbp_pds_actval
*   it_itmlim_rel =             " bbp_pds_ilrel
*   it_status =                 " bbp_pds_status
*   et_messages =               " bbp_pds_messages
*   et_cuf_item =               " bbps_cuf_item
*   et_cuf_acc =                " bbps_cuf_acc
*   et_req_heads =              " reqheads
    .  "  BBP_SC_MAP_PD_TO_REQ

ABAP code example for Function Module BBP_SC_MAP_PD_TO_REQ





The ABAP code below is a full code listing to execute function module BBP_SC_MAP_PD_TO_REQ including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_es_reqhead  TYPE REQHEAD ,
ld_es_req_heads  TYPE REQHEADS ,
ld_es_cuf_header  TYPE BBPS_CUF_HEADER ,
it_et_req_reference  TYPE STANDARD TABLE OF REQREF,"TABLES PARAM
wa_et_req_reference  LIKE LINE OF it_et_req_reference ,
it_et_req_line  TYPE STANDARD TABLE OF REQLINE,"TABLES PARAM
wa_et_req_line  LIKE LINE OF it_et_req_line ,
it_et_req_line_mat  TYPE STANDARD TABLE OF REQLINEMA_ECI,"TABLES PARAM
wa_et_req_line_mat  LIKE LINE OF it_et_req_line_mat ,
it_et_req_line_srv  TYPE STANDARD TABLE OF BBPS_REQLINESR_ECI,"TABLES PARAM
wa_et_req_line_srv  LIKE LINE OF it_et_req_line_srv ,
it_et_req_text  TYPE STANDARD TABLE OF REQTEXT,"TABLES PARAM
wa_et_req_text  LIKE LINE OF it_et_req_text ,
it_et_req_acct  TYPE STANDARD TABLE OF REQACCT_470,"TABLES PARAM
wa_et_req_acct  LIKE LINE OF it_et_req_acct ,
it_et_req_att  TYPE STANDARD TABLE OF REQATT,"TABLES PARAM
wa_et_req_att  LIKE LINE OF it_et_req_att ,
it_et_req_address  TYPE STANDARD TABLE OF REQADDRESS,"TABLES PARAM
wa_et_req_address  LIKE LINE OF it_et_req_address ,
it_et_req_conlimit  TYPE STANDARD TABLE OF REQHEADS,"TABLES PARAM
wa_et_req_conlimit  LIKE LINE OF it_et_req_conlimit ,
it_it_new_items  TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D,"TABLES PARAM
wa_it_new_items  LIKE LINE OF it_it_new_items ,
it_it_account  TYPE STANDARD TABLE OF BBP_PDS_ACC,"TABLES PARAM
wa_it_account  LIKE LINE OF it_it_account ,
it_it_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_it_partner  LIKE LINE OF it_it_partner ,
it_it_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT,"TABLES PARAM
wa_it_longtext  LIKE LINE OF it_it_longtext ,
it_it_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT,"TABLES PARAM
wa_it_limit  LIKE LINE OF it_it_limit ,
it_it_orgdata  TYPE STANDARD TABLE OF BBP_PDS_ORG,"TABLES PARAM
wa_it_orgdata  LIKE LINE OF it_it_orgdata ,
it_it_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX,"TABLES PARAM
wa_it_tax  LIKE LINE OF it_it_tax ,
it_it_actval  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL,"TABLES PARAM
wa_it_actval  LIKE LINE OF it_it_actval ,
it_it_itmlim_rel  TYPE STANDARD TABLE OF BBP_PDS_ILREL,"TABLES PARAM
wa_it_itmlim_rel  LIKE LINE OF it_it_itmlim_rel ,
it_it_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS,"TABLES PARAM
wa_it_status  LIKE LINE OF it_it_status ,
it_et_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_et_messages  LIKE LINE OF it_et_messages ,
it_et_cuf_item  TYPE STANDARD TABLE OF BBPS_CUF_ITEM,"TABLES PARAM
wa_et_cuf_item  LIKE LINE OF it_et_cuf_item ,
it_et_cuf_acc  TYPE STANDARD TABLE OF BBPS_CUF_ACC,"TABLES PARAM
wa_et_cuf_acc  LIKE LINE OF it_et_cuf_acc ,
it_et_req_heads  TYPE STANDARD TABLE OF REQHEADS,"TABLES PARAM
wa_et_req_heads  LIKE LINE OF it_et_req_heads .

DATA(ld_is_new_header) = 'Check type of data required'.
DATA(ld_it_attach) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_req_reference to it_et_req_reference.

"populate fields of struture and append to itab
append wa_et_req_line to it_et_req_line.

"populate fields of struture and append to itab
append wa_et_req_line_mat to it_et_req_line_mat.

"populate fields of struture and append to itab
append wa_et_req_line_srv to it_et_req_line_srv.

"populate fields of struture and append to itab
append wa_et_req_text to it_et_req_text.

"populate fields of struture and append to itab
append wa_et_req_acct to it_et_req_acct.

"populate fields of struture and append to itab
append wa_et_req_att to it_et_req_att.

"populate fields of struture and append to itab
append wa_et_req_address to it_et_req_address.

"populate fields of struture and append to itab
append wa_et_req_conlimit to it_et_req_conlimit.

"populate fields of struture and append to itab
append wa_it_new_items to it_it_new_items.

"populate fields of struture and append to itab
append wa_it_account to it_it_account.

"populate fields of struture and append to itab
append wa_it_partner to it_it_partner.

"populate fields of struture and append to itab
append wa_it_longtext to it_it_longtext.

"populate fields of struture and append to itab
append wa_it_limit to it_it_limit.

"populate fields of struture and append to itab
append wa_it_orgdata to it_it_orgdata.

"populate fields of struture and append to itab
append wa_it_tax to it_it_tax.

"populate fields of struture and append to itab
append wa_it_actval to it_it_actval.

"populate fields of struture and append to itab
append wa_it_itmlim_rel to it_it_itmlim_rel.

"populate fields of struture and append to itab
append wa_it_status to it_it_status.

"populate fields of struture and append to itab
append wa_et_messages to it_et_messages.

"populate fields of struture and append to itab
append wa_et_cuf_item to it_et_cuf_item.

"populate fields of struture and append to itab
append wa_et_cuf_acc to it_et_cuf_acc.

"populate fields of struture and append to itab
append wa_et_req_heads to it_et_req_heads. . CALL FUNCTION 'BBP_SC_MAP_PD_TO_REQ' EXPORTING is_new_header = ld_is_new_header * it_attach = ld_it_attach IMPORTING es_reqhead = ld_es_reqhead es_req_heads = ld_es_req_heads es_cuf_header = ld_es_cuf_header * TABLES * et_req_reference = it_et_req_reference * et_req_line = it_et_req_line * et_req_line_mat = it_et_req_line_mat * et_req_line_srv = it_et_req_line_srv * et_req_text = it_et_req_text * et_req_acct = it_et_req_acct * et_req_att = it_et_req_att * et_req_address = it_et_req_address * et_req_conlimit = it_et_req_conlimit * it_new_items = it_it_new_items * it_account = it_it_account * it_partner = it_it_partner * it_longtext = it_it_longtext * it_limit = it_it_limit * it_orgdata = it_it_orgdata * it_tax = it_it_tax * it_actval = it_it_actval * it_itmlim_rel = it_it_itmlim_rel * it_status = it_it_status * et_messages = it_et_messages * et_cuf_item = it_et_cuf_item * et_cuf_acc = it_et_cuf_acc * et_req_heads = it_et_req_heads . " BBP_SC_MAP_PD_TO_REQ
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_es_reqhead  TYPE REQHEAD ,
ld_is_new_header  TYPE BBP_PDS_SC_HEADER_D ,
it_et_req_reference  TYPE STANDARD TABLE OF REQREF ,
wa_et_req_reference  LIKE LINE OF it_et_req_reference,
ld_es_req_heads  TYPE REQHEADS ,
ld_it_attach  TYPE BBPT_PDS_ATT_T ,
it_et_req_line  TYPE STANDARD TABLE OF REQLINE ,
wa_et_req_line  LIKE LINE OF it_et_req_line,
ld_es_cuf_header  TYPE BBPS_CUF_HEADER ,
it_et_req_line_mat  TYPE STANDARD TABLE OF REQLINEMA_ECI ,
wa_et_req_line_mat  LIKE LINE OF it_et_req_line_mat,
it_et_req_line_srv  TYPE STANDARD TABLE OF BBPS_REQLINESR_ECI ,
wa_et_req_line_srv  LIKE LINE OF it_et_req_line_srv,
it_et_req_text  TYPE STANDARD TABLE OF REQTEXT ,
wa_et_req_text  LIKE LINE OF it_et_req_text,
it_et_req_acct  TYPE STANDARD TABLE OF REQACCT_470 ,
wa_et_req_acct  LIKE LINE OF it_et_req_acct,
it_et_req_att  TYPE STANDARD TABLE OF REQATT ,
wa_et_req_att  LIKE LINE OF it_et_req_att,
it_et_req_address  TYPE STANDARD TABLE OF REQADDRESS ,
wa_et_req_address  LIKE LINE OF it_et_req_address,
it_et_req_conlimit  TYPE STANDARD TABLE OF REQHEADS ,
wa_et_req_conlimit  LIKE LINE OF it_et_req_conlimit,
it_it_new_items  TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D ,
wa_it_new_items  LIKE LINE OF it_it_new_items,
it_it_account  TYPE STANDARD TABLE OF BBP_PDS_ACC ,
wa_it_account  LIKE LINE OF it_it_account,
it_it_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_it_partner  LIKE LINE OF it_it_partner,
it_it_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT ,
wa_it_longtext  LIKE LINE OF it_it_longtext,
it_it_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT ,
wa_it_limit  LIKE LINE OF it_it_limit,
it_it_orgdata  TYPE STANDARD TABLE OF BBP_PDS_ORG ,
wa_it_orgdata  LIKE LINE OF it_it_orgdata,
it_it_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX ,
wa_it_tax  LIKE LINE OF it_it_tax,
it_it_actval  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL ,
wa_it_actval  LIKE LINE OF it_it_actval,
it_it_itmlim_rel  TYPE STANDARD TABLE OF BBP_PDS_ILREL ,
wa_it_itmlim_rel  LIKE LINE OF it_it_itmlim_rel,
it_it_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS ,
wa_it_status  LIKE LINE OF it_it_status,
it_et_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_et_messages  LIKE LINE OF it_et_messages,
it_et_cuf_item  TYPE STANDARD TABLE OF BBPS_CUF_ITEM ,
wa_et_cuf_item  LIKE LINE OF it_et_cuf_item,
it_et_cuf_acc  TYPE STANDARD TABLE OF BBPS_CUF_ACC ,
wa_et_cuf_acc  LIKE LINE OF it_et_cuf_acc,
it_et_req_heads  TYPE STANDARD TABLE OF REQHEADS ,
wa_et_req_heads  LIKE LINE OF it_et_req_heads.

ld_is_new_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_req_reference to it_et_req_reference.
ld_it_attach = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_req_line to it_et_req_line.

"populate fields of struture and append to itab
append wa_et_req_line_mat to it_et_req_line_mat.

"populate fields of struture and append to itab
append wa_et_req_line_srv to it_et_req_line_srv.

"populate fields of struture and append to itab
append wa_et_req_text to it_et_req_text.

"populate fields of struture and append to itab
append wa_et_req_acct to it_et_req_acct.

"populate fields of struture and append to itab
append wa_et_req_att to it_et_req_att.

"populate fields of struture and append to itab
append wa_et_req_address to it_et_req_address.

"populate fields of struture and append to itab
append wa_et_req_conlimit to it_et_req_conlimit.

"populate fields of struture and append to itab
append wa_it_new_items to it_it_new_items.

"populate fields of struture and append to itab
append wa_it_account to it_it_account.

"populate fields of struture and append to itab
append wa_it_partner to it_it_partner.

"populate fields of struture and append to itab
append wa_it_longtext to it_it_longtext.

"populate fields of struture and append to itab
append wa_it_limit to it_it_limit.

"populate fields of struture and append to itab
append wa_it_orgdata to it_it_orgdata.

"populate fields of struture and append to itab
append wa_it_tax to it_it_tax.

"populate fields of struture and append to itab
append wa_it_actval to it_it_actval.

"populate fields of struture and append to itab
append wa_it_itmlim_rel to it_it_itmlim_rel.

"populate fields of struture and append to itab
append wa_it_status to it_it_status.

"populate fields of struture and append to itab
append wa_et_messages to it_et_messages.

"populate fields of struture and append to itab
append wa_et_cuf_item to it_et_cuf_item.

"populate fields of struture and append to itab
append wa_et_cuf_acc to it_et_cuf_acc.

"populate fields of struture and append to itab
append wa_et_req_heads to it_et_req_heads.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BBP_SC_MAP_PD_TO_REQ or its description.