SAP Function Modules

BBP_PD_COMMITMENT_FILL_BAPI SAP Function module







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

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


Pattern for FM BBP_PD_COMMITMENT_FILL_BAPI - BBP PD COMMITMENT FILL BAPI





CALL FUNCTION 'BBP_PD_COMMITMENT_FILL_BAPI' "
  EXPORTING
    i_eci_target_sys =          " bbp_logsys
  TABLES
    i_po_header =               " bbp_pds_header_cmmt
    i_po_item =                 " bbp_pds_item_cmmt
    i_po_account =              " bbp_pds_acc
    i_po_acc_actval =           " bbp_pds_actval
    i_po_partner =              " bbp_pds_partner
    i_po_limit =                " bbp_pds_limit
*   i_po_sdln =                 " bbp_pds_sdln
*   i_po_actval_sdln =          " bbp_pds_actval
    e_commitment =              " bapi_cmmt_d
    .  "  BBP_PD_COMMITMENT_FILL_BAPI

ABAP code example for Function Module BBP_PD_COMMITMENT_FILL_BAPI





The ABAP code below is a full code listing to execute function module BBP_PD_COMMITMENT_FILL_BAPI 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_po_header  TYPE STANDARD TABLE OF BBP_PDS_HEADER_CMMT,"TABLES PARAM
wa_i_po_header  LIKE LINE OF it_i_po_header ,
it_i_po_item  TYPE STANDARD TABLE OF BBP_PDS_ITEM_CMMT,"TABLES PARAM
wa_i_po_item  LIKE LINE OF it_i_po_item ,
it_i_po_account  TYPE STANDARD TABLE OF BBP_PDS_ACC,"TABLES PARAM
wa_i_po_account  LIKE LINE OF it_i_po_account ,
it_i_po_acc_actval  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL,"TABLES PARAM
wa_i_po_acc_actval  LIKE LINE OF it_i_po_acc_actval ,
it_i_po_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER,"TABLES PARAM
wa_i_po_partner  LIKE LINE OF it_i_po_partner ,
it_i_po_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT,"TABLES PARAM
wa_i_po_limit  LIKE LINE OF it_i_po_limit ,
it_i_po_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN,"TABLES PARAM
wa_i_po_sdln  LIKE LINE OF it_i_po_sdln ,
it_i_po_actval_sdln  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL,"TABLES PARAM
wa_i_po_actval_sdln  LIKE LINE OF it_i_po_actval_sdln ,
it_e_commitment  TYPE STANDARD TABLE OF BAPI_CMMT_D,"TABLES PARAM
wa_e_commitment  LIKE LINE OF it_e_commitment .

DATA(ld_i_eci_target_sys) = 'some text here'.

"populate fields of struture and append to itab
append wa_i_po_header to it_i_po_header.

"populate fields of struture and append to itab
append wa_i_po_item to it_i_po_item.

"populate fields of struture and append to itab
append wa_i_po_account to it_i_po_account.

"populate fields of struture and append to itab
append wa_i_po_acc_actval to it_i_po_acc_actval.

"populate fields of struture and append to itab
append wa_i_po_partner to it_i_po_partner.

"populate fields of struture and append to itab
append wa_i_po_limit to it_i_po_limit.

"populate fields of struture and append to itab
append wa_i_po_sdln to it_i_po_sdln.

"populate fields of struture and append to itab
append wa_i_po_actval_sdln to it_i_po_actval_sdln.

"populate fields of struture and append to itab
append wa_e_commitment to it_e_commitment. . CALL FUNCTION 'BBP_PD_COMMITMENT_FILL_BAPI' EXPORTING i_eci_target_sys = ld_i_eci_target_sys TABLES i_po_header = it_i_po_header i_po_item = it_i_po_item i_po_account = it_i_po_account i_po_acc_actval = it_i_po_acc_actval i_po_partner = it_i_po_partner i_po_limit = it_i_po_limit * i_po_sdln = it_i_po_sdln * i_po_actval_sdln = it_i_po_actval_sdln e_commitment = it_e_commitment . " BBP_PD_COMMITMENT_FILL_BAPI
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_i_eci_target_sys  TYPE BBP_LOGSYS ,
it_i_po_header  TYPE STANDARD TABLE OF BBP_PDS_HEADER_CMMT ,
wa_i_po_header  LIKE LINE OF it_i_po_header,
it_i_po_item  TYPE STANDARD TABLE OF BBP_PDS_ITEM_CMMT ,
wa_i_po_item  LIKE LINE OF it_i_po_item,
it_i_po_account  TYPE STANDARD TABLE OF BBP_PDS_ACC ,
wa_i_po_account  LIKE LINE OF it_i_po_account,
it_i_po_acc_actval  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL ,
wa_i_po_acc_actval  LIKE LINE OF it_i_po_acc_actval,
it_i_po_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER ,
wa_i_po_partner  LIKE LINE OF it_i_po_partner,
it_i_po_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT ,
wa_i_po_limit  LIKE LINE OF it_i_po_limit,
it_i_po_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN ,
wa_i_po_sdln  LIKE LINE OF it_i_po_sdln,
it_i_po_actval_sdln  TYPE STANDARD TABLE OF BBP_PDS_ACTVAL ,
wa_i_po_actval_sdln  LIKE LINE OF it_i_po_actval_sdln,
it_e_commitment  TYPE STANDARD TABLE OF BAPI_CMMT_D ,
wa_e_commitment  LIKE LINE OF it_e_commitment.

ld_i_eci_target_sys = 'some text here'.

"populate fields of struture and append to itab
append wa_i_po_header to it_i_po_header.

"populate fields of struture and append to itab
append wa_i_po_item to it_i_po_item.

"populate fields of struture and append to itab
append wa_i_po_account to it_i_po_account.

"populate fields of struture and append to itab
append wa_i_po_acc_actval to it_i_po_acc_actval.

"populate fields of struture and append to itab
append wa_i_po_partner to it_i_po_partner.

"populate fields of struture and append to itab
append wa_i_po_limit to it_i_po_limit.

"populate fields of struture and append to itab
append wa_i_po_sdln to it_i_po_sdln.

"populate fields of struture and append to itab
append wa_i_po_actval_sdln to it_i_po_actval_sdln.

"populate fields of struture and append to itab
append wa_e_commitment to it_e_commitment.

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