SAP Function Modules

BBP_PD_SC_UPDATE_INTO_PO_LOC SAP Function module







BBP_PD_SC_UPDATE_INTO_PO_LOC 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_UPDATE_INTO_PO_LOC 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_UPDATE_INTO_PO_LOC - BBP PD SC UPDATE INTO PO LOC





CALL FUNCTION 'BBP_PD_SC_UPDATE_INTO_PO_LOC' "
  EXPORTING
    is_po_header =              " bbp_pds_po_header_d
  IMPORTING
    et_po_att =                 " bbpt_pds_att_t
    et_po_icf =                 " bbpt_pds_icf_po
  TABLES
*   it_sc_header =              " bbp_pds_sc_header_d
*   it_sc_item =                " bbp_pds_sc_item_d
    it_po_item =                " bbp_pds_po_item_d
    it_po_partner =             " bbp_pds_partner
    it_po_org =                 " bbp_pds_org
    et_po_item =                " bbp_pds_po_item_icu
    et_po_acct =                " bbp_pds_acc
    et_po_partner =             " bbp_pds_partner
    et_po_text =                " bbp_pds_longtext
    et_po_tax =                 " bbp_pds_tax
    et_po_pridoc =              " bbp_pds_prc
    et_po_limit =               " bbp_pds_limit
*   et_po_sdln =                " bbp_pds_sdln
    et_messages =               " bbp_pds_messages
    .  "  BBP_PD_SC_UPDATE_INTO_PO_LOC

ABAP code example for Function Module BBP_PD_SC_UPDATE_INTO_PO_LOC





The ABAP code below is a full code listing to execute function module BBP_PD_SC_UPDATE_INTO_PO_LOC 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_et_po_att  TYPE BBPT_PDS_ATT_T ,
ld_et_po_icf  TYPE BBPT_PDS_ICF_PO ,
it_it_sc_header  TYPE STANDARD TABLE OF BBP_PDS_SC_HEADER_D,"TABLES PARAM
wa_it_sc_header  LIKE LINE OF it_it_sc_header ,
it_it_sc_item  TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D,"TABLES PARAM
wa_it_sc_item  LIKE LINE OF it_it_sc_item ,
it_it_po_item  TYPE STANDARD TABLE OF BBP_PDS_PO_ITEM_D,"TABLES PARAM
wa_it_po_item  LIKE LINE OF it_it_po_item ,
it_it_po_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_it_po_partner  LIKE LINE OF it_it_po_partner ,
it_it_po_org  TYPE STANDARD TABLE OF BBP_PDS_ORG,"TABLES PARAM
wa_it_po_org  LIKE LINE OF it_it_po_org ,
it_et_po_item  TYPE STANDARD TABLE OF BBP_PDS_PO_ITEM_ICU,"TABLES PARAM
wa_et_po_item  LIKE LINE OF it_et_po_item ,
it_et_po_acct  TYPE STANDARD TABLE OF BBP_PDS_ACC,"TABLES PARAM
wa_et_po_acct  LIKE LINE OF it_et_po_acct ,
it_et_po_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_et_po_partner  LIKE LINE OF it_et_po_partner ,
it_et_po_text  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT,"TABLES PARAM
wa_et_po_text  LIKE LINE OF it_et_po_text ,
it_et_po_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX,"TABLES PARAM
wa_et_po_tax  LIKE LINE OF it_et_po_tax ,
it_et_po_pridoc  TYPE STANDARD TABLE OF BBP_PDS_PRC,"TABLES PARAM
wa_et_po_pridoc  LIKE LINE OF it_et_po_pridoc ,
it_et_po_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT,"TABLES PARAM
wa_et_po_limit  LIKE LINE OF it_et_po_limit ,
it_et_po_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN,"TABLES PARAM
wa_et_po_sdln  LIKE LINE OF it_et_po_sdln ,
it_et_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES,"TABLES PARAM
wa_et_messages  LIKE LINE OF it_et_messages .

DATA(ld_is_po_header) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_sc_header to it_it_sc_header.

"populate fields of struture and append to itab
append wa_it_sc_item to it_it_sc_item.

"populate fields of struture and append to itab
append wa_it_po_item to it_it_po_item.

"populate fields of struture and append to itab
append wa_it_po_partner to it_it_po_partner.

"populate fields of struture and append to itab
append wa_it_po_org to it_it_po_org.

"populate fields of struture and append to itab
append wa_et_po_item to it_et_po_item.

"populate fields of struture and append to itab
append wa_et_po_acct to it_et_po_acct.

"populate fields of struture and append to itab
append wa_et_po_partner to it_et_po_partner.

"populate fields of struture and append to itab
append wa_et_po_text to it_et_po_text.

"populate fields of struture and append to itab
append wa_et_po_tax to it_et_po_tax.

"populate fields of struture and append to itab
append wa_et_po_pridoc to it_et_po_pridoc.

"populate fields of struture and append to itab
append wa_et_po_limit to it_et_po_limit.

"populate fields of struture and append to itab
append wa_et_po_sdln to it_et_po_sdln.

"populate fields of struture and append to itab
append wa_et_messages to it_et_messages. . CALL FUNCTION 'BBP_PD_SC_UPDATE_INTO_PO_LOC' EXPORTING is_po_header = ld_is_po_header IMPORTING et_po_att = ld_et_po_att et_po_icf = ld_et_po_icf TABLES * it_sc_header = it_it_sc_header * it_sc_item = it_it_sc_item it_po_item = it_it_po_item it_po_partner = it_it_po_partner it_po_org = it_it_po_org et_po_item = it_et_po_item et_po_acct = it_et_po_acct et_po_partner = it_et_po_partner et_po_text = it_et_po_text et_po_tax = it_et_po_tax et_po_pridoc = it_et_po_pridoc et_po_limit = it_et_po_limit * et_po_sdln = it_et_po_sdln et_messages = it_et_messages . " BBP_PD_SC_UPDATE_INTO_PO_LOC
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_et_po_att  TYPE BBPT_PDS_ATT_T ,
ld_is_po_header  TYPE BBP_PDS_PO_HEADER_D ,
it_it_sc_header  TYPE STANDARD TABLE OF BBP_PDS_SC_HEADER_D ,
wa_it_sc_header  LIKE LINE OF it_it_sc_header,
ld_et_po_icf  TYPE BBPT_PDS_ICF_PO ,
it_it_sc_item  TYPE STANDARD TABLE OF BBP_PDS_SC_ITEM_D ,
wa_it_sc_item  LIKE LINE OF it_it_sc_item,
it_it_po_item  TYPE STANDARD TABLE OF BBP_PDS_PO_ITEM_D ,
wa_it_po_item  LIKE LINE OF it_it_po_item,
it_it_po_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_it_po_partner  LIKE LINE OF it_it_po_partner,
it_it_po_org  TYPE STANDARD TABLE OF BBP_PDS_ORG ,
wa_it_po_org  LIKE LINE OF it_it_po_org,
it_et_po_item  TYPE STANDARD TABLE OF BBP_PDS_PO_ITEM_ICU ,
wa_et_po_item  LIKE LINE OF it_et_po_item,
it_et_po_acct  TYPE STANDARD TABLE OF BBP_PDS_ACC ,
wa_et_po_acct  LIKE LINE OF it_et_po_acct,
it_et_po_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_et_po_partner  LIKE LINE OF it_et_po_partner,
it_et_po_text  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT ,
wa_et_po_text  LIKE LINE OF it_et_po_text,
it_et_po_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX ,
wa_et_po_tax  LIKE LINE OF it_et_po_tax,
it_et_po_pridoc  TYPE STANDARD TABLE OF BBP_PDS_PRC ,
wa_et_po_pridoc  LIKE LINE OF it_et_po_pridoc,
it_et_po_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT ,
wa_et_po_limit  LIKE LINE OF it_et_po_limit,
it_et_po_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN ,
wa_et_po_sdln  LIKE LINE OF it_et_po_sdln,
it_et_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES ,
wa_et_messages  LIKE LINE OF it_et_messages.

ld_is_po_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_sc_header to it_it_sc_header.

"populate fields of struture and append to itab
append wa_it_sc_item to it_it_sc_item.

"populate fields of struture and append to itab
append wa_it_po_item to it_it_po_item.

"populate fields of struture and append to itab
append wa_it_po_partner to it_it_po_partner.

"populate fields of struture and append to itab
append wa_it_po_org to it_it_po_org.

"populate fields of struture and append to itab
append wa_et_po_item to it_et_po_item.

"populate fields of struture and append to itab
append wa_et_po_acct to it_et_po_acct.

"populate fields of struture and append to itab
append wa_et_po_partner to it_et_po_partner.

"populate fields of struture and append to itab
append wa_et_po_text to it_et_po_text.

"populate fields of struture and append to itab
append wa_et_po_tax to it_et_po_tax.

"populate fields of struture and append to itab
append wa_et_po_pridoc to it_et_po_pridoc.

"populate fields of struture and append to itab
append wa_et_po_limit to it_et_po_limit.

"populate fields of struture and append to itab
append wa_et_po_sdln to it_et_po_sdln.

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

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