SAP Function Modules

BBP_INVOICE_CREATE_3X SAP Function module - BBP Create PO Invoice, Release < 4.0







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

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


Pattern for FM BBP_INVOICE_CREATE_3X - BBP INVOICE CREATE 3X





CALL FUNCTION 'BBP_INVOICE_CREATE_3X' "BBP Create PO Invoice, Release < 4.0
  EXPORTING
    i_hd =                      " bbp_iv_hd
    be_data =                   " bbp_iv_be
  IMPORTING
    e_belnr =                   " bkpf-belnr
    e_gjahr =                   " bkpf-gjahr
  TABLES
    ti_it =                     " bbp_iv_it
*   ti_tax =                    " bbp_iv_tax
*   ti_shp =                    " bbp_iv_shp
*   ti_add =                    " bbp_iv_add
*   ti_cmt =                    " bbpacpo01
    .  "  BBP_INVOICE_CREATE_3X

ABAP code example for Function Module BBP_INVOICE_CREATE_3X





The ABAP code below is a full code listing to execute function module BBP_INVOICE_CREATE_3X 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_e_belnr  TYPE BKPF-BELNR ,
ld_e_gjahr  TYPE BKPF-GJAHR ,
it_ti_it  TYPE STANDARD TABLE OF BBP_IV_IT,"TABLES PARAM
wa_ti_it  LIKE LINE OF it_ti_it ,
it_ti_tax  TYPE STANDARD TABLE OF BBP_IV_TAX,"TABLES PARAM
wa_ti_tax  LIKE LINE OF it_ti_tax ,
it_ti_shp  TYPE STANDARD TABLE OF BBP_IV_SHP,"TABLES PARAM
wa_ti_shp  LIKE LINE OF it_ti_shp ,
it_ti_add  TYPE STANDARD TABLE OF BBP_IV_ADD,"TABLES PARAM
wa_ti_add  LIKE LINE OF it_ti_add ,
it_ti_cmt  TYPE STANDARD TABLE OF BBPACPO01,"TABLES PARAM
wa_ti_cmt  LIKE LINE OF it_ti_cmt .

DATA(ld_i_hd) = 'Check type of data required'.
DATA(ld_be_data) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ti_it to it_ti_it.

"populate fields of struture and append to itab
append wa_ti_tax to it_ti_tax.

"populate fields of struture and append to itab
append wa_ti_shp to it_ti_shp.

"populate fields of struture and append to itab
append wa_ti_add to it_ti_add.

"populate fields of struture and append to itab
append wa_ti_cmt to it_ti_cmt. . CALL FUNCTION 'BBP_INVOICE_CREATE_3X' EXPORTING i_hd = ld_i_hd be_data = ld_be_data IMPORTING e_belnr = ld_e_belnr e_gjahr = ld_e_gjahr TABLES ti_it = it_ti_it * ti_tax = it_ti_tax * ti_shp = it_ti_shp * ti_add = it_ti_add * ti_cmt = it_ti_cmt . " BBP_INVOICE_CREATE_3X
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_e_belnr  TYPE BKPF-BELNR ,
ld_i_hd  TYPE BBP_IV_HD ,
it_ti_it  TYPE STANDARD TABLE OF BBP_IV_IT ,
wa_ti_it  LIKE LINE OF it_ti_it,
ld_e_gjahr  TYPE BKPF-GJAHR ,
ld_be_data  TYPE BBP_IV_BE ,
it_ti_tax  TYPE STANDARD TABLE OF BBP_IV_TAX ,
wa_ti_tax  LIKE LINE OF it_ti_tax,
it_ti_shp  TYPE STANDARD TABLE OF BBP_IV_SHP ,
wa_ti_shp  LIKE LINE OF it_ti_shp,
it_ti_add  TYPE STANDARD TABLE OF BBP_IV_ADD ,
wa_ti_add  LIKE LINE OF it_ti_add,
it_ti_cmt  TYPE STANDARD TABLE OF BBPACPO01 ,
wa_ti_cmt  LIKE LINE OF it_ti_cmt.

ld_i_hd = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ti_it to it_ti_it.
ld_be_data = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ti_tax to it_ti_tax.

"populate fields of struture and append to itab
append wa_ti_shp to it_ti_shp.

"populate fields of struture and append to itab
append wa_ti_add to it_ti_add.

"populate fields of struture and append to itab
append wa_ti_cmt to it_ti_cmt.

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