SAP BBP_DOCUMENT_COMPLETE Function Module for









BBP_DOCUMENT_COMPLETE is a standard bbp document complete 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 document complete FM, simply by entering the name BBP_DOCUMENT_COMPLETE into the relevant SAP transaction such as SE37 or SE38.

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



Function BBP_DOCUMENT_COMPLETE 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_DOCUMENT_COMPLETE'"
EXPORTING
* IV_ITEM_LIST_COMPLETE_TRAN_IND = 'X' "
* IT_PARTNER = "
* IT_REFERENCE_PARTNER = "
* IT_FREIGHT = "
* IT_REFERENCE_FREIGHT = "
* IT_TAX = "
* IT_REFERENCE_TAX = "
* IT_ORGDATA = "
* IT_REFERENCE_ORGDATA = "
* IT_LIMIT = "
* IT_REFERENCE_LIMIT = "
IS_HEADER = "
* IT_SDLN = "
* IT_REFERENCE_SDLN = "
* IT_LONGTEXT = "
* IT_REFERENCE_LONGTEXT = "
* IT_ATTACH = "
* IT_REFERENCE_ATTACH = "
* IT_CONDITIONS = "
* IT_REFERENCE_CONDITIONS = "
IV_MESSAGE = "
* IS_REFERENCE_HEADER = "
* IT_ITEM = "
* IT_REFERENCE_ITEM = "
* IT_ITEM_REL = "
* IT_REFERENCE_ITEM_REL = "
* IT_ACCOUNT = "
* IT_REFERENCE_ACCOUNT = "

IMPORTING
ES_HEADER = "
ET_SDLN = "
ET_LONGTEXT = "
ET_ATTACH = "
ET_CONDITIONS = "
ET_MESSAGES = "
ET_ITEM = "
ET_ITEM_REL = "
ET_ACCOUNT = "
ET_PARTNER = "
ET_FREIGHT = "
ET_TAX = "
ET_ORGDATA = "
ET_LIMIT = "
.



IMPORTING Parameters details for BBP_DOCUMENT_COMPLETE

IV_ITEM_LIST_COMPLETE_TRAN_IND -

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

IT_PARTNER -

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

IT_REFERENCE_PARTNER -

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

IT_FREIGHT -

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

IT_REFERENCE_FREIGHT -

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

IT_TAX -

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

IT_REFERENCE_TAX -

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

IT_ORGDATA -

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

IT_REFERENCE_ORGDATA -

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

IT_LIMIT -

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

IT_REFERENCE_LIMIT -

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

IS_HEADER -

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

IT_SDLN -

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

IT_REFERENCE_SDLN -

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

IT_LONGTEXT -

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

IT_REFERENCE_LONGTEXT -

Data type: BBPT_PD_LONGTEXT
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)

IT_REFERENCE_ATTACH -

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

IT_CONDITIONS -

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

IT_REFERENCE_CONDITIONS -

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

IV_MESSAGE -

Data type: CHAR40
Optional: No
Call by Reference: Yes

IS_REFERENCE_HEADER -

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

IT_ITEM -

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

IT_REFERENCE_ITEM -

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

IT_ITEM_REL -

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

IT_REFERENCE_ITEM_REL -

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

IT_ACCOUNT -

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

IT_REFERENCE_ACCOUNT -

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

EXPORTING Parameters details for BBP_DOCUMENT_COMPLETE

ES_HEADER -

Data type: ANY
Optional: No
Call by Reference: Yes

ET_SDLN -

Data type: BBPT_PD_SDLN
Optional: No
Call by Reference: Yes

ET_LONGTEXT -

Data type: BBPT_PD_LONGTEXT
Optional: No
Call by Reference: Yes

ET_ATTACH -

Data type: BBPT_PDS_ATT_T
Optional: No
Call by Reference: Yes

ET_CONDITIONS -

Data type: BBPT_PD_CND_ICU
Optional: No
Call by Reference: Yes

ET_MESSAGES -

Data type: BBPT_PD_MESSAGES
Optional: No
Call by Reference: Yes

ET_ITEM -

Data type: TABLE
Optional: No
Call by Reference: Yes

ET_ITEM_REL -

Data type: BBPT_IV_ITEM_REL
Optional: No
Call by Reference: Yes

ET_ACCOUNT -

Data type: BBPT_PD_ACC
Optional: No
Call by Reference: Yes

ET_PARTNER -

Data type: BBPT_PD_PARTNER
Optional: No
Call by Reference: Yes

ET_FREIGHT -

Data type: BBPT_PD_FREIGHT
Optional: No
Call by Reference: Yes

ET_TAX -

Data type: BBPT_PD_TAX
Optional: No
Call by Reference: Yes

ET_ORGDATA -

Data type: BBPT_PD_ORG
Optional: No
Call by Reference: Yes

ET_LIMIT -

Data type: BBPT_PD_LIMIT
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BBP_DOCUMENT_COMPLETE 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:
lv_es_header  TYPE ANY, "   
lv_iv_item_list_complete_tran_ind  TYPE XFELD, "   'X'
lv_et_sdln  TYPE BBPT_PD_SDLN, "   
lv_it_partner  TYPE BBPT_PD_PARTNER, "   
lv_et_longtext  TYPE BBPT_PD_LONGTEXT, "   
lv_it_reference_partner  TYPE BBPT_PD_PARTNER, "   
lv_et_attach  TYPE BBPT_PDS_ATT_T, "   
lv_it_freight  TYPE BBPT_PD_FREIGHT, "   
lv_et_conditions  TYPE BBPT_PD_CND_ICU, "   
lv_it_reference_freight  TYPE BBPT_PD_FREIGHT, "   
lv_it_tax  TYPE BBPT_PD_TAX, "   
lv_et_messages  TYPE BBPT_PD_MESSAGES, "   
lv_it_reference_tax  TYPE BBPT_PD_TAX, "   
lv_it_orgdata  TYPE BBPT_PD_ORG, "   
lv_it_reference_orgdata  TYPE BBPT_PD_ORG, "   
lv_it_limit  TYPE BBPT_PD_LIMIT, "   
lv_it_reference_limit  TYPE BBPT_PD_LIMIT, "   
lv_et_item  TYPE TABLE, "   
lv_is_header  TYPE ANY, "   
lv_it_sdln  TYPE BBPT_PD_SDLN, "   
lv_it_reference_sdln  TYPE BBPT_PD_SDLN, "   
lv_it_longtext  TYPE BBPT_PD_LONGTEXT, "   
lv_it_reference_longtext  TYPE BBPT_PD_LONGTEXT, "   
lv_it_attach  TYPE BBPT_PDS_ATT_T, "   
lv_it_reference_attach  TYPE BBPT_PDS_ATT_T, "   
lv_it_conditions  TYPE BBPT_PD_CND_ICU, "   
lv_it_reference_conditions  TYPE BBPT_PD_CND_ICU, "   
lv_iv_message  TYPE CHAR40, "   
lv_et_item_rel  TYPE BBPT_IV_ITEM_REL, "   
lv_is_reference_header  TYPE ANY, "   
lv_it_item  TYPE TABLE, "   
lv_et_account  TYPE BBPT_PD_ACC, "   
lv_et_partner  TYPE BBPT_PD_PARTNER, "   
lv_it_reference_item  TYPE TABLE, "   
lv_et_freight  TYPE BBPT_PD_FREIGHT, "   
lv_it_item_rel  TYPE BBPT_IV_ITEM_REL, "   
lv_et_tax  TYPE BBPT_PD_TAX, "   
lv_it_reference_item_rel  TYPE BBPT_IV_ITEM_REL, "   
lv_et_orgdata  TYPE BBPT_PD_ORG, "   
lv_it_account  TYPE BBPT_PD_ACC, "   
lv_et_limit  TYPE BBPT_PD_LIMIT, "   
lv_it_reference_account  TYPE BBPT_PD_ACC. "   

  CALL FUNCTION 'BBP_DOCUMENT_COMPLETE'  "
    EXPORTING
         IV_ITEM_LIST_COMPLETE_TRAN_IND = lv_iv_item_list_complete_tran_ind
         IT_PARTNER = lv_it_partner
         IT_REFERENCE_PARTNER = lv_it_reference_partner
         IT_FREIGHT = lv_it_freight
         IT_REFERENCE_FREIGHT = lv_it_reference_freight
         IT_TAX = lv_it_tax
         IT_REFERENCE_TAX = lv_it_reference_tax
         IT_ORGDATA = lv_it_orgdata
         IT_REFERENCE_ORGDATA = lv_it_reference_orgdata
         IT_LIMIT = lv_it_limit
         IT_REFERENCE_LIMIT = lv_it_reference_limit
         IS_HEADER = lv_is_header
         IT_SDLN = lv_it_sdln
         IT_REFERENCE_SDLN = lv_it_reference_sdln
         IT_LONGTEXT = lv_it_longtext
         IT_REFERENCE_LONGTEXT = lv_it_reference_longtext
         IT_ATTACH = lv_it_attach
         IT_REFERENCE_ATTACH = lv_it_reference_attach
         IT_CONDITIONS = lv_it_conditions
         IT_REFERENCE_CONDITIONS = lv_it_reference_conditions
         IV_MESSAGE = lv_iv_message
         IS_REFERENCE_HEADER = lv_is_reference_header
         IT_ITEM = lv_it_item
         IT_REFERENCE_ITEM = lv_it_reference_item
         IT_ITEM_REL = lv_it_item_rel
         IT_REFERENCE_ITEM_REL = lv_it_reference_item_rel
         IT_ACCOUNT = lv_it_account
         IT_REFERENCE_ACCOUNT = lv_it_reference_account
    IMPORTING
         ES_HEADER = lv_es_header
         ET_SDLN = lv_et_sdln
         ET_LONGTEXT = lv_et_longtext
         ET_ATTACH = lv_et_attach
         ET_CONDITIONS = lv_et_conditions
         ET_MESSAGES = lv_et_messages
         ET_ITEM = lv_et_item
         ET_ITEM_REL = lv_et_item_rel
         ET_ACCOUNT = lv_et_account
         ET_PARTNER = lv_et_partner
         ET_FREIGHT = lv_et_freight
         ET_TAX = lv_et_tax
         ET_ORGDATA = lv_et_orgdata
         ET_LIMIT = lv_et_limit
. " BBP_DOCUMENT_COMPLETE




ABAP code using 7.40 inline data declarations to call FM BBP_DOCUMENT_COMPLETE

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.

 
DATA(ld_iv_item_list_complete_tran_ind) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!