SAP Function Modules

BBP_SC_LIST_MAP_TO_REQ SAP Function module







BBP_SC_LIST_MAP_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_LIST_MAP_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_LIST_MAP_TO_REQ - BBP SC LIST MAP TO REQ





CALL FUNCTION 'BBP_SC_LIST_MAP_TO_REQ' "
  EXPORTING
    bbp_pds_pdlist_guid =       " bbp_guid
    bbp_pds_pdlist_object_id =   " crmt_object_id_db
*   i_description =             " crmd_orderadm_h-description
*   i_created_by =              " crmd_orderadm_h-created_by
  TABLES
*   i_stat =                    " bbp_pds_status
*   i_partners =                " bbp_pds_partner_get
    i_pdlist =                  " bbp_pds_pdlist
*   i_status =                  " bbp_pds_status_get
*   i_messages =                " bbp_pds_messages
*   e_req_header =              " reqhead
*   e_req_header_srv =          " reqheads
*   e_req_line =                " reqline
*   e_req_line_mat =            " reqlinema
*   e_req_line_srv =            " reqlinesr
*   e_req_reference =           " reqref
*   e_req_text =                " reqtext
*   e_req_acct =                " reqacct
*   e_req_address =             " reqaddress
    .  "  BBP_SC_LIST_MAP_TO_REQ

ABAP code example for Function Module BBP_SC_LIST_MAP_TO_REQ





The ABAP code below is a full code listing to execute function module BBP_SC_LIST_MAP_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:
it_i_stat  TYPE STANDARD TABLE OF BBP_PDS_STATUS,"TABLES PARAM
wa_i_stat  LIKE LINE OF it_i_stat ,
it_i_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET,"TABLES PARAM
wa_i_partners  LIKE LINE OF it_i_partners ,
it_i_pdlist  TYPE STANDARD TABLE OF BBP_PDS_PDLIST,"TABLES PARAM
wa_i_pdlist  LIKE LINE OF it_i_pdlist ,
it_i_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS_GET,"TABLES PARAM
wa_i_status  LIKE LINE OF it_i_status ,
it_i_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_i_messages  LIKE LINE OF it_i_messages ,
it_e_req_header  TYPE STANDARD TABLE OF REQHEAD,"TABLES PARAM
wa_e_req_header  LIKE LINE OF it_e_req_header ,
it_e_req_header_srv  TYPE STANDARD TABLE OF REQHEADS,"TABLES PARAM
wa_e_req_header_srv  LIKE LINE OF it_e_req_header_srv ,
it_e_req_line  TYPE STANDARD TABLE OF REQLINE,"TABLES PARAM
wa_e_req_line  LIKE LINE OF it_e_req_line ,
it_e_req_line_mat  TYPE STANDARD TABLE OF REQLINEMA,"TABLES PARAM
wa_e_req_line_mat  LIKE LINE OF it_e_req_line_mat ,
it_e_req_line_srv  TYPE STANDARD TABLE OF REQLINESR,"TABLES PARAM
wa_e_req_line_srv  LIKE LINE OF it_e_req_line_srv ,
it_e_req_reference  TYPE STANDARD TABLE OF REQREF,"TABLES PARAM
wa_e_req_reference  LIKE LINE OF it_e_req_reference ,
it_e_req_text  TYPE STANDARD TABLE OF REQTEXT,"TABLES PARAM
wa_e_req_text  LIKE LINE OF it_e_req_text ,
it_e_req_acct  TYPE STANDARD TABLE OF REQACCT,"TABLES PARAM
wa_e_req_acct  LIKE LINE OF it_e_req_acct ,
it_e_req_address  TYPE STANDARD TABLE OF REQADDRESS,"TABLES PARAM
wa_e_req_address  LIKE LINE OF it_e_req_address .

DATA(ld_bbp_pds_pdlist_guid) = 'Check type of data required'.
DATA(ld_bbp_pds_pdlist_object_id) = 'Check type of data required'.

SELECT single DESCRIPTION
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_description).


SELECT single CREATED_BY
FROM CRMD_ORDERADM_H
INTO @DATA(ld_i_created_by).


"populate fields of struture and append to itab
append wa_i_stat to it_i_stat.

"populate fields of struture and append to itab
append wa_i_partners to it_i_partners.

"populate fields of struture and append to itab
append wa_i_pdlist to it_i_pdlist.

"populate fields of struture and append to itab
append wa_i_status to it_i_status.

"populate fields of struture and append to itab
append wa_i_messages to it_i_messages.

"populate fields of struture and append to itab
append wa_e_req_header to it_e_req_header.

"populate fields of struture and append to itab
append wa_e_req_header_srv to it_e_req_header_srv.

"populate fields of struture and append to itab
append wa_e_req_line to it_e_req_line.

"populate fields of struture and append to itab
append wa_e_req_line_mat to it_e_req_line_mat.

"populate fields of struture and append to itab
append wa_e_req_line_srv to it_e_req_line_srv.

"populate fields of struture and append to itab
append wa_e_req_reference to it_e_req_reference.

"populate fields of struture and append to itab
append wa_e_req_text to it_e_req_text.

"populate fields of struture and append to itab
append wa_e_req_acct to it_e_req_acct.

"populate fields of struture and append to itab
append wa_e_req_address to it_e_req_address. . CALL FUNCTION 'BBP_SC_LIST_MAP_TO_REQ' EXPORTING bbp_pds_pdlist_guid = ld_bbp_pds_pdlist_guid bbp_pds_pdlist_object_id = ld_bbp_pds_pdlist_object_id * i_description = ld_i_description * i_created_by = ld_i_created_by TABLES * i_stat = it_i_stat * i_partners = it_i_partners i_pdlist = it_i_pdlist * i_status = it_i_status * i_messages = it_i_messages * e_req_header = it_e_req_header * e_req_header_srv = it_e_req_header_srv * e_req_line = it_e_req_line * e_req_line_mat = it_e_req_line_mat * e_req_line_srv = it_e_req_line_srv * e_req_reference = it_e_req_reference * e_req_text = it_e_req_text * e_req_acct = it_e_req_acct * e_req_address = it_e_req_address . " BBP_SC_LIST_MAP_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_bbp_pds_pdlist_guid  TYPE BBP_GUID ,
it_i_stat  TYPE STANDARD TABLE OF BBP_PDS_STATUS ,
wa_i_stat  LIKE LINE OF it_i_stat,
ld_bbp_pds_pdlist_object_id  TYPE CRMT_OBJECT_ID_DB ,
it_i_partners  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_GET ,
wa_i_partners  LIKE LINE OF it_i_partners,
ld_i_description  TYPE CRMD_ORDERADM_H-DESCRIPTION ,
it_i_pdlist  TYPE STANDARD TABLE OF BBP_PDS_PDLIST ,
wa_i_pdlist  LIKE LINE OF it_i_pdlist,
ld_i_created_by  TYPE CRMD_ORDERADM_H-CREATED_BY ,
it_i_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS_GET ,
wa_i_status  LIKE LINE OF it_i_status,
it_i_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_i_messages  LIKE LINE OF it_i_messages,
it_e_req_header  TYPE STANDARD TABLE OF REQHEAD ,
wa_e_req_header  LIKE LINE OF it_e_req_header,
it_e_req_header_srv  TYPE STANDARD TABLE OF REQHEADS ,
wa_e_req_header_srv  LIKE LINE OF it_e_req_header_srv,
it_e_req_line  TYPE STANDARD TABLE OF REQLINE ,
wa_e_req_line  LIKE LINE OF it_e_req_line,
it_e_req_line_mat  TYPE STANDARD TABLE OF REQLINEMA ,
wa_e_req_line_mat  LIKE LINE OF it_e_req_line_mat,
it_e_req_line_srv  TYPE STANDARD TABLE OF REQLINESR ,
wa_e_req_line_srv  LIKE LINE OF it_e_req_line_srv,
it_e_req_reference  TYPE STANDARD TABLE OF REQREF ,
wa_e_req_reference  LIKE LINE OF it_e_req_reference,
it_e_req_text  TYPE STANDARD TABLE OF REQTEXT ,
wa_e_req_text  LIKE LINE OF it_e_req_text,
it_e_req_acct  TYPE STANDARD TABLE OF REQACCT ,
wa_e_req_acct  LIKE LINE OF it_e_req_acct,
it_e_req_address  TYPE STANDARD TABLE OF REQADDRESS ,
wa_e_req_address  LIKE LINE OF it_e_req_address.

ld_bbp_pds_pdlist_guid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_stat to it_i_stat.
ld_bbp_pds_pdlist_object_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_partners to it_i_partners.

SELECT single DESCRIPTION
FROM CRMD_ORDERADM_H
INTO ld_i_description.


"populate fields of struture and append to itab
append wa_i_pdlist to it_i_pdlist.

SELECT single CREATED_BY
FROM CRMD_ORDERADM_H
INTO ld_i_created_by.


"populate fields of struture and append to itab
append wa_i_status to it_i_status.

"populate fields of struture and append to itab
append wa_i_messages to it_i_messages.

"populate fields of struture and append to itab
append wa_e_req_header to it_e_req_header.

"populate fields of struture and append to itab
append wa_e_req_header_srv to it_e_req_header_srv.

"populate fields of struture and append to itab
append wa_e_req_line to it_e_req_line.

"populate fields of struture and append to itab
append wa_e_req_line_mat to it_e_req_line_mat.

"populate fields of struture and append to itab
append wa_e_req_line_srv to it_e_req_line_srv.

"populate fields of struture and append to itab
append wa_e_req_reference to it_e_req_reference.

"populate fields of struture and append to itab
append wa_e_req_text to it_e_req_text.

"populate fields of struture and append to itab
append wa_e_req_acct to it_e_req_acct.

"populate fields of struture and append to itab
append wa_e_req_address to it_e_req_address.

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_LIST_MAP_TO_REQ or its description.