SAP Function Modules

BBP_PD_SC_TRANSFER_MULTI_PO SAP Function module







BBP_PD_SC_TRANSFER_MULTI_PO 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_PD_SC_TRANSFER_MULTI_PO into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM BBP_PD_SC_TRANSFER_MULTI_PO - BBP PD SC TRANSFER MULTI PO





CALL FUNCTION 'BBP_PD_SC_TRANSFER_MULTI_PO' "
  EXPORTING
    it_attach =                 " bbpt_pds_att_t
    is_transfer_action =        " bbp_pds_transfer_action
*   iv_new_sourcing =           " abap_bool
  TABLES
    it_header =                 " bbp_pds_transfer_header
    it_item =                   " bbp_pds_transfer_item
    it_account =                " bbp_pds_acc
    it_partner =                " bbp_pds_partner
    it_longtext =               " bbp_pds_longtext
    it_status =                 " bbp_pds_status
    it_limit =                  " bbp_pds_limit
    it_org =                    " bbp_pds_org
    it_tax =                    " bbp_pds_tax
*   it_pridoc =                 " bbp_pds_prc
*   it_doc_descr =              " bbp_pds_obj_decription
*   it_header_ext =             " bbpt_pd_transfer_header_ext
*   it_item_ext =               " bbpt_pd_transfer_item_ext
*   it_hcf =                    " bbp_pds_hcf_sc
*   it_icf =                    " bbp_pds_icf_sc
*   it_sdln =                   " bbp_pds_sdln
*   et_local_ref =              " bbp_pds_reflist
    et_messages =               " bbp_pds_messages
*   et_header =                 " bbp_pds_header
*   et_item =                   " bbp_pds_item
    .  "  BBP_PD_SC_TRANSFER_MULTI_PO

ABAP code example for Function Module BBP_PD_SC_TRANSFER_MULTI_PO





The ABAP code below is a full code listing to execute function module BBP_PD_SC_TRANSFER_MULTI_PO 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_it_header  TYPE STANDARD TABLE OF BBP_PDS_TRANSFER_HEADER,"TABLES PARAM
wa_it_header  LIKE LINE OF it_it_header ,
it_it_item  TYPE STANDARD TABLE OF BBP_PDS_TRANSFER_ITEM,"TABLES PARAM
wa_it_item  LIKE LINE OF it_it_item ,
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_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS,"TABLES PARAM
wa_it_status  LIKE LINE OF it_it_status ,
it_it_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT,"TABLES PARAM
wa_it_limit  LIKE LINE OF it_it_limit ,
it_it_org  TYPE STANDARD TABLE OF BBP_PDS_ORG,"TABLES PARAM
wa_it_org  LIKE LINE OF it_it_org ,
it_it_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX,"TABLES PARAM
wa_it_tax  LIKE LINE OF it_it_tax ,
it_it_pridoc  TYPE STANDARD TABLE OF BBP_PDS_PRC,"TABLES PARAM
wa_it_pridoc  LIKE LINE OF it_it_pridoc ,
it_it_doc_descr  TYPE STANDARD TABLE OF BBP_PDS_OBJ_DECRIPTION,"TABLES PARAM
wa_it_doc_descr  LIKE LINE OF it_it_doc_descr ,
it_it_header_ext  TYPE STANDARD TABLE OF BBPT_PD_TRANSFER_HEADER_EXT,"TABLES PARAM
wa_it_header_ext  LIKE LINE OF it_it_header_ext ,
it_it_item_ext  TYPE STANDARD TABLE OF BBPT_PD_TRANSFER_ITEM_EXT,"TABLES PARAM
wa_it_item_ext  LIKE LINE OF it_it_item_ext ,
it_it_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_SC,"TABLES PARAM
wa_it_hcf  LIKE LINE OF it_it_hcf ,
it_it_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_SC,"TABLES PARAM
wa_it_icf  LIKE LINE OF it_it_icf ,
it_it_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN,"TABLES PARAM
wa_it_sdln  LIKE LINE OF it_it_sdln ,
it_et_local_ref  TYPE STANDARD TABLE OF BBP_PDS_REFLIST,"TABLES PARAM
wa_et_local_ref  LIKE LINE OF it_et_local_ref ,
it_et_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_et_messages  LIKE LINE OF it_et_messages ,
it_et_header  TYPE STANDARD TABLE OF BBP_PDS_HEADER,"TABLES PARAM
wa_et_header  LIKE LINE OF it_et_header ,
it_et_item  TYPE STANDARD TABLE OF BBP_PDS_ITEM,"TABLES PARAM
wa_et_item  LIKE LINE OF it_et_item .

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

"populate fields of struture and append to itab
append wa_it_header to it_it_header.

"populate fields of struture and append to itab
append wa_it_item to it_it_item.

"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_status to it_it_status.

"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_org to it_it_org.

"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_pridoc to it_it_pridoc.

"populate fields of struture and append to itab
append wa_it_doc_descr to it_it_doc_descr.

"populate fields of struture and append to itab
append wa_it_header_ext to it_it_header_ext.

"populate fields of struture and append to itab
append wa_it_item_ext to it_it_item_ext.

"populate fields of struture and append to itab
append wa_it_hcf to it_it_hcf.

"populate fields of struture and append to itab
append wa_it_icf to it_it_icf.

"populate fields of struture and append to itab
append wa_it_sdln to it_it_sdln.

"populate fields of struture and append to itab
append wa_et_local_ref to it_et_local_ref.

"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_header to it_et_header.

"populate fields of struture and append to itab
append wa_et_item to it_et_item. . CALL FUNCTION 'BBP_PD_SC_TRANSFER_MULTI_PO' EXPORTING it_attach = ld_it_attach is_transfer_action = ld_is_transfer_action * iv_new_sourcing = ld_iv_new_sourcing TABLES it_header = it_it_header it_item = it_it_item it_account = it_it_account it_partner = it_it_partner it_longtext = it_it_longtext it_status = it_it_status it_limit = it_it_limit it_org = it_it_org it_tax = it_it_tax * it_pridoc = it_it_pridoc * it_doc_descr = it_it_doc_descr * it_header_ext = it_it_header_ext * it_item_ext = it_it_item_ext * it_hcf = it_it_hcf * it_icf = it_it_icf * it_sdln = it_it_sdln * et_local_ref = it_et_local_ref et_messages = it_et_messages * et_header = it_et_header * et_item = it_et_item . " BBP_PD_SC_TRANSFER_MULTI_PO
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_it_attach  TYPE BBPT_PDS_ATT_T ,
it_it_header  TYPE STANDARD TABLE OF BBP_PDS_TRANSFER_HEADER ,
wa_it_header  LIKE LINE OF it_it_header,
ld_is_transfer_action  TYPE BBP_PDS_TRANSFER_ACTION ,
it_it_item  TYPE STANDARD TABLE OF BBP_PDS_TRANSFER_ITEM ,
wa_it_item  LIKE LINE OF it_it_item,
ld_iv_new_sourcing  TYPE ABAP_BOOL ,
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_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS ,
wa_it_status  LIKE LINE OF it_it_status,
it_it_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT ,
wa_it_limit  LIKE LINE OF it_it_limit,
it_it_org  TYPE STANDARD TABLE OF BBP_PDS_ORG ,
wa_it_org  LIKE LINE OF it_it_org,
it_it_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX ,
wa_it_tax  LIKE LINE OF it_it_tax,
it_it_pridoc  TYPE STANDARD TABLE OF BBP_PDS_PRC ,
wa_it_pridoc  LIKE LINE OF it_it_pridoc,
it_it_doc_descr  TYPE STANDARD TABLE OF BBP_PDS_OBJ_DECRIPTION ,
wa_it_doc_descr  LIKE LINE OF it_it_doc_descr,
it_it_header_ext  TYPE STANDARD TABLE OF BBPT_PD_TRANSFER_HEADER_EXT ,
wa_it_header_ext  LIKE LINE OF it_it_header_ext,
it_it_item_ext  TYPE STANDARD TABLE OF BBPT_PD_TRANSFER_ITEM_EXT ,
wa_it_item_ext  LIKE LINE OF it_it_item_ext,
it_it_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_SC ,
wa_it_hcf  LIKE LINE OF it_it_hcf,
it_it_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_SC ,
wa_it_icf  LIKE LINE OF it_it_icf,
it_it_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN ,
wa_it_sdln  LIKE LINE OF it_it_sdln,
it_et_local_ref  TYPE STANDARD TABLE OF BBP_PDS_REFLIST ,
wa_et_local_ref  LIKE LINE OF it_et_local_ref,
it_et_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_et_messages  LIKE LINE OF it_et_messages,
it_et_header  TYPE STANDARD TABLE OF BBP_PDS_HEADER ,
wa_et_header  LIKE LINE OF it_et_header,
it_et_item  TYPE STANDARD TABLE OF BBP_PDS_ITEM ,
wa_et_item  LIKE LINE OF it_et_item.

ld_it_attach = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_header to it_it_header.
ld_is_transfer_action = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_item to it_it_item.
ld_iv_new_sourcing = 'Check type of data required'.

"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_status to it_it_status.

"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_org to it_it_org.

"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_pridoc to it_it_pridoc.

"populate fields of struture and append to itab
append wa_it_doc_descr to it_it_doc_descr.

"populate fields of struture and append to itab
append wa_it_header_ext to it_it_header_ext.

"populate fields of struture and append to itab
append wa_it_item_ext to it_it_item_ext.

"populate fields of struture and append to itab
append wa_it_hcf to it_it_hcf.

"populate fields of struture and append to itab
append wa_it_icf to it_it_icf.

"populate fields of struture and append to itab
append wa_it_sdln to it_it_sdln.

"populate fields of struture and append to itab
append wa_et_local_ref to it_et_local_ref.

"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_header to it_et_header.

"populate fields of struture and append to itab
append wa_et_item to it_et_item.

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