SAP BBP_PD_INV_CREATE Function Module for









BBP_PD_INV_CREATE is a standard bbp pd inv create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for bbp pd inv create FM, simply by entering the name BBP_PD_INV_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: BBP_PD_INV
Program Name: SAPLBBP_PD_INV
Main Program: SAPLBBP_PD_INV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function BBP_PD_INV_CREATE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'BBP_PD_INV_CREATE'"
EXPORTING
* I_REF_GUID = "
* I_PARK = "
* I_SAVE = "
* I_TESTRUN = "
* I_HEADER = "
* IT_ATTACH = "
* IV_MSG_SCENARIO = "
* I_ITEM_SORTED_BY_HIERARCHY = "

IMPORTING
E_HEADER = "
ET_ATTACH = "

TABLES
* I_ITEM = "
* E_ITEM = "
* E_ACCOUNT = "
* E_PARTNER = "
* E_ORGDATA = "
* E_LONGTEXT = "
* E_FREIGHT = "
* E_TAX = "
* E_STATUS = "
* ET_HUB_HREL = "
* ET_HUB_IREL = "
* I_ACCOUNT = "
* ET_EXCHRATE = "
E_MESSAGES = "
* E_TOL = "
* I_TOL = "
* I_HCF = "
* I_ICF = "
* E_HCF = "
* E_ICF = "
* I_PARTNER = "
* I_ORGDATA = "
* I_LONGTEXT = "
* I_FREIGHT = "
* I_TAX = "
* IT_HUB_IREL = "
* IT_EXCHRATE = "
.



IMPORTING Parameters details for BBP_PD_INV_CREATE

I_REF_GUID -

Data type: CRMD_ORDERADM_H-GUID
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PARK -

Data type: XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SAVE -

Data type: XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TESTRUN -

Data type: XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HEADER -

Data type: BBP_PDS_INV_HEADER_IC
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_ATTACH -

Data type: BBPT_PDS_ATT_T
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_MSG_SCENARIO -

Data type: BBP_MSG_SCENARIO
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ITEM_SORTED_BY_HIERARCHY -

Data type: XFELD
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for BBP_PD_INV_CREATE

E_HEADER -

Data type: BBP_PDS_INV_HEADER_D
Optional: No
Call by Reference: No ( called with pass by value option)

ET_ATTACH -

Data type: BBPT_PDS_ATT_T
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BBP_PD_INV_CREATE

I_ITEM -

Data type: BBP_PDS_INV_ITEM_ICU
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_ITEM -

Data type: BBP_PDS_INV_ITEM_D
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_ACCOUNT -

Data type: BBP_PDS_ACC
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_PARTNER -

Data type: BBP_PDS_PARTNER
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_ORGDATA -

Data type: BBP_PDS_ORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_LONGTEXT -

Data type: BBP_PDS_LONGTEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_FREIGHT -

Data type: BBP_PDS_FREIGHT
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_TAX -

Data type: BBP_PDS_TAX
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_STATUS -

Data type: BBP_PDS_STATUS
Optional: Yes
Call by Reference: No ( called with pass by value option)

ET_HUB_HREL -

Data type: BBP_PDS_IVHUB_HREL
Optional: Yes
Call by Reference: No ( called with pass by value option)

ET_HUB_IREL -

Data type: BBP_IV_ITEM_REL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACCOUNT -

Data type: BBP_PDS_ACC
Optional: Yes
Call by Reference: No ( called with pass by value option)

ET_EXCHRATE -

Data type: BBP_PDS_EXR
Optional: Yes
Call by Reference: Yes

E_MESSAGES -

Data type: BBP_PDS_MESSAGES
Optional: No
Call by Reference: No ( called with pass by value option)

E_TOL -

Data type: BBP_PDS_TOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TOL -

Data type: BBP_PDS_TOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_HCF -

Data type: BBP_PDS_HCF_INV
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ICF -

Data type: BBP_PDS_ICF_INV
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_HCF -

Data type: BBP_PDS_HCF_INV
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_ICF -

Data type: BBP_PDS_ICF_INV
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PARTNER -

Data type: BBP_PDS_PARTNER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ORGDATA -

Data type: BBP_PDS_ORG
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LONGTEXT -

Data type: BBP_PDS_LONGTEXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FREIGHT -

Data type: BBP_PDS_FREIGHT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TAX -

Data type: BBP_PDS_TAX
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_HUB_IREL -

Data type: BBP_IV_ITEM_REL
Optional: Yes
Call by Reference: No ( called with pass by value option)

IT_EXCHRATE -

Data type: BBP_PDS_EXR
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BBP_PD_INV_CREATE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_i_item  TYPE STANDARD TABLE OF BBP_PDS_INV_ITEM_ICU, "   
lv_e_header  TYPE BBP_PDS_INV_HEADER_D, "   
lv_i_ref_guid  TYPE CRMD_ORDERADM_H-GUID, "   
lt_e_item  TYPE STANDARD TABLE OF BBP_PDS_INV_ITEM_D, "   
lt_e_account  TYPE STANDARD TABLE OF BBP_PDS_ACC, "   
lt_e_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER, "   
lt_e_orgdata  TYPE STANDARD TABLE OF BBP_PDS_ORG, "   
lt_e_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT, "   
lt_e_freight  TYPE STANDARD TABLE OF BBP_PDS_FREIGHT, "   
lt_e_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX, "   
lt_e_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS, "   
lt_et_hub_hrel  TYPE STANDARD TABLE OF BBP_PDS_IVHUB_HREL, "   
lt_et_hub_irel  TYPE STANDARD TABLE OF BBP_IV_ITEM_REL, "   
lv_i_park  TYPE XFELD, "   
lv_et_attach  TYPE BBPT_PDS_ATT_T, "   
lt_i_account  TYPE STANDARD TABLE OF BBP_PDS_ACC, "   
lt_et_exchrate  TYPE STANDARD TABLE OF BBP_PDS_EXR, "   
lt_e_messages  TYPE STANDARD TABLE OF BBP_PDS_MESSAGES, "   
lt_e_tol  TYPE STANDARD TABLE OF BBP_PDS_TOL, "   
lt_i_tol  TYPE STANDARD TABLE OF BBP_PDS_TOL, "   
lt_i_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_INV, "   
lt_i_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_INV, "   
lt_e_hcf  TYPE STANDARD TABLE OF BBP_PDS_HCF_INV, "   
lt_e_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_INV, "   
lv_i_save  TYPE XFELD, "   
lt_i_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER, "   
lt_i_orgdata  TYPE STANDARD TABLE OF BBP_PDS_ORG, "   
lv_i_testrun  TYPE XFELD, "   
lv_i_header  TYPE BBP_PDS_INV_HEADER_IC, "   
lt_i_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT, "   
lv_it_attach  TYPE BBPT_PDS_ATT_T, "   
lt_i_freight  TYPE STANDARD TABLE OF BBP_PDS_FREIGHT, "   
lt_i_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX, "   
lv_iv_msg_scenario  TYPE BBP_MSG_SCENARIO, "   
lt_it_hub_irel  TYPE STANDARD TABLE OF BBP_IV_ITEM_REL, "   
lv_i_item_sorted_by_hierarchy  TYPE XFELD, "   
lt_it_exchrate  TYPE STANDARD TABLE OF BBP_PDS_EXR. "   

  CALL FUNCTION 'BBP_PD_INV_CREATE'  "
    EXPORTING
         I_REF_GUID = lv_i_ref_guid
         I_PARK = lv_i_park
         I_SAVE = lv_i_save
         I_TESTRUN = lv_i_testrun
         I_HEADER = lv_i_header
         IT_ATTACH = lv_it_attach
         IV_MSG_SCENARIO = lv_iv_msg_scenario
         I_ITEM_SORTED_BY_HIERARCHY = lv_i_item_sorted_by_hierarchy
    IMPORTING
         E_HEADER = lv_e_header
         ET_ATTACH = lv_et_attach
    TABLES
         I_ITEM = lt_i_item
         E_ITEM = lt_e_item
         E_ACCOUNT = lt_e_account
         E_PARTNER = lt_e_partner
         E_ORGDATA = lt_e_orgdata
         E_LONGTEXT = lt_e_longtext
         E_FREIGHT = lt_e_freight
         E_TAX = lt_e_tax
         E_STATUS = lt_e_status
         ET_HUB_HREL = lt_et_hub_hrel
         ET_HUB_IREL = lt_et_hub_irel
         I_ACCOUNT = lt_i_account
         ET_EXCHRATE = lt_et_exchrate
         E_MESSAGES = lt_e_messages
         E_TOL = lt_e_tol
         I_TOL = lt_i_tol
         I_HCF = lt_i_hcf
         I_ICF = lt_i_icf
         E_HCF = lt_e_hcf
         E_ICF = lt_e_icf
         I_PARTNER = lt_i_partner
         I_ORGDATA = lt_i_orgdata
         I_LONGTEXT = lt_i_longtext
         I_FREIGHT = lt_i_freight
         I_TAX = lt_i_tax
         IT_HUB_IREL = lt_it_hub_irel
         IT_EXCHRATE = lt_it_exchrate
. " BBP_PD_INV_CREATE




ABAP code using 7.40 inline data declarations to call FM BBP_PD_INV_CREATE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
"SELECT single GUID FROM CRMD_ORDERADM_H INTO @DATA(ld_i_ref_guid).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!