SAP BBP_COMPLETE_ITEMS_FROM_REF Function Module for
BBP_COMPLETE_ITEMS_FROM_REF is a standard bbp complete items from ref 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 complete items from ref FM, simply by entering the name BBP_COMPLETE_ITEMS_FROM_REF 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_COMPLETE_ITEMS_FROM_REF 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_COMPLETE_ITEMS_FROM_REF'".
EXPORTING
IS_HEADER = "
* IT_ACCOUNT = "
* IT_REF_ACCOUNT = "
* IT_PARTNER = "
* IT_REF_PARTNER = "
* IT_TAX = "
* IT_REF_TAX = "
* IT_ORGDATA = "
* IT_REF_ORGDATA = "
* IT_LIMIT = "
* IT_REF_LIMIT = "
IS_REF_HEADER = "
* IT_SDLN = "
* IT_REF_SDLN = "
* IT_LONGTEXT = "
* IT_REF_LONGTEXT = "
* IT_ATTACH = "
* IT_REF_ATTACH = "
* IT_CONDITIONS = "
* IT_REF_CONDITIONS = "
IS_MESSAGE_INFO = "
IS_IMPLICIT_DELETE_FLAGS = "
IV_OLD_HEADER_GUID = "
IV_OLD_PARENT_GUID = "
IV_NEW_PARENT_GUID = "
IT_ITEM = "
IT_REF_ITEM = "
* IT_ITEM_REL = "
* IT_REF_ITEM_REL = "
IMPORTING
ET_ITEM = "
ET_MESSAGES = "
CHANGING
* CT_PARTNER = "
* CT_ITEM_REL = "
* CT_LIMIT = "
* CT_SDLN = "
* CT_LONGTEXT = "
* CT_ACCOUNT = "
* CT_TAX = "
* CT_ATTACH = "
* CT_CONDITIONS = "
* CT_ORGDATA = "
IMPORTING Parameters details for BBP_COMPLETE_ITEMS_FROM_REF
IS_HEADER -
Data type: BBPS_PDEXT_HEADEROptional: No
Call by Reference: Yes
IT_ACCOUNT -
Data type: BBPT_PD_ACCOptional: Yes
Call by Reference: Yes
IT_REF_ACCOUNT -
Data type: BBPT_PD_ACCOptional: Yes
Call by Reference: Yes
IT_PARTNER -
Data type: BBPT_PD_PARTNEROptional: Yes
Call by Reference: Yes
IT_REF_PARTNER -
Data type: BBPT_PD_PARTNEROptional: Yes
Call by Reference: Yes
IT_TAX -
Data type: BBPT_PD_TAXOptional: Yes
Call by Reference: Yes
IT_REF_TAX -
Data type: BBPT_PD_TAXOptional: Yes
Call by Reference: Yes
IT_ORGDATA -
Data type: BBPT_PD_ORGOptional: Yes
Call by Reference: Yes
IT_REF_ORGDATA -
Data type: BBPT_PD_ORGOptional: Yes
Call by Reference: Yes
IT_LIMIT -
Data type: BBPT_PD_LIMITOptional: Yes
Call by Reference: Yes
IT_REF_LIMIT -
Data type: BBPT_PD_LIMITOptional: Yes
Call by Reference: Yes
IS_REF_HEADER -
Data type: BBPS_PDEXT_HEADEROptional: No
Call by Reference: Yes
IT_SDLN -
Data type: BBPT_PD_SDLNOptional: Yes
Call by Reference: Yes
IT_REF_SDLN -
Data type: BBPT_PD_SDLNOptional: Yes
Call by Reference: Yes
IT_LONGTEXT -
Data type: BBPT_PD_LONGTEXTOptional: Yes
Call by Reference: Yes
IT_REF_LONGTEXT -
Data type: BBPT_PD_LONGTEXTOptional: Yes
Call by Reference: Yes
IT_ATTACH -
Data type: BBPT_PDS_ATT_TOptional: Yes
Call by Reference: Yes
IT_REF_ATTACH -
Data type: BBPT_PDS_ATT_TOptional: Yes
Call by Reference: Yes
IT_CONDITIONS -
Data type: BBPT_PD_CND_ICUOptional: Yes
Call by Reference: Yes
IT_REF_CONDITIONS -
Data type: BBPT_PD_CND_ICUOptional: Yes
Call by Reference: Yes
IS_MESSAGE_INFO -
Data type: BBPS_MESSAGESOptional: No
Call by Reference: Yes
IS_IMPLICIT_DELETE_FLAGS -
Data type: BBPS_DETAIL_REQUESTEDOptional: No
Call by Reference: Yes
IV_OLD_HEADER_GUID -
Data type: BBP_GUIDOptional: No
Call by Reference: Yes
IV_OLD_PARENT_GUID -
Data type: BBP_GUIDOptional: No
Call by Reference: Yes
IV_NEW_PARENT_GUID -
Data type: BBP_GUIDOptional: No
Call by Reference: Yes
IT_ITEM -
Data type: BBPT_PDEXT_ITEMOptional: No
Call by Reference: Yes
IT_REF_ITEM -
Data type: BBPT_PDEXT_ITEMOptional: No
Call by Reference: Yes
IT_ITEM_REL -
Data type: BBPT_IV_ITEM_RELOptional: Yes
Call by Reference: Yes
IT_REF_ITEM_REL -
Data type: BBPT_IV_ITEM_RELOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for BBP_COMPLETE_ITEMS_FROM_REF
ET_ITEM -
Data type: BBPT_PDEXT_ITEMOptional: No
Call by Reference: Yes
ET_MESSAGES -
Data type: BBPT_PD_MESSAGESOptional: No
Call by Reference: Yes
CHANGING Parameters details for BBP_COMPLETE_ITEMS_FROM_REF
CT_PARTNER -
Data type: BBPT_PD_PARTNEROptional: Yes
Call by Reference: Yes
CT_ITEM_REL -
Data type: BBPT_IV_ITEM_RELOptional: Yes
Call by Reference: Yes
CT_LIMIT -
Data type: BBPT_PD_LIMITOptional: Yes
Call by Reference: Yes
CT_SDLN -
Data type: BBPT_PD_SDLNOptional: Yes
Call by Reference: Yes
CT_LONGTEXT -
Data type: BBPT_PD_LONGTEXTOptional: Yes
Call by Reference: Yes
CT_ACCOUNT -
Data type: BBPT_PD_ACCOptional: Yes
Call by Reference: Yes
CT_TAX -
Data type: BBPT_PD_TAXOptional: Yes
Call by Reference: Yes
CT_ATTACH -
Data type: BBPT_PDS_ATT_TOptional: Yes
Call by Reference: Yes
CT_CONDITIONS -
Data type: BBPT_PD_CND_ICUOptional: Yes
Call by Reference: Yes
CT_ORGDATA -
Data type: BBPT_PD_ORGOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for BBP_COMPLETE_ITEMS_FROM_REF 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_et_item | TYPE BBPT_PDEXT_ITEM, " | |||
| lv_is_header | TYPE BBPS_PDEXT_HEADER, " | |||
| lv_ct_partner | TYPE BBPT_PD_PARTNER, " | |||
| lv_it_account | TYPE BBPT_PD_ACC, " | |||
| lv_ct_item_rel | TYPE BBPT_IV_ITEM_REL, " | |||
| lv_it_ref_account | TYPE BBPT_PD_ACC, " | |||
| lv_it_partner | TYPE BBPT_PD_PARTNER, " | |||
| lv_it_ref_partner | TYPE BBPT_PD_PARTNER, " | |||
| lv_it_tax | TYPE BBPT_PD_TAX, " | |||
| lv_it_ref_tax | TYPE BBPT_PD_TAX, " | |||
| lv_it_orgdata | TYPE BBPT_PD_ORG, " | |||
| lv_it_ref_orgdata | TYPE BBPT_PD_ORG, " | |||
| lv_it_limit | TYPE BBPT_PD_LIMIT, " | |||
| lv_it_ref_limit | TYPE BBPT_PD_LIMIT, " | |||
| lv_ct_limit | TYPE BBPT_PD_LIMIT, " | |||
| lv_et_messages | TYPE BBPT_PD_MESSAGES, " | |||
| lv_is_ref_header | TYPE BBPS_PDEXT_HEADER, " | |||
| lv_it_sdln | TYPE BBPT_PD_SDLN, " | |||
| lv_it_ref_sdln | TYPE BBPT_PD_SDLN, " | |||
| lv_it_longtext | TYPE BBPT_PD_LONGTEXT, " | |||
| lv_it_ref_longtext | TYPE BBPT_PD_LONGTEXT, " | |||
| lv_it_attach | TYPE BBPT_PDS_ATT_T, " | |||
| lv_it_ref_attach | TYPE BBPT_PDS_ATT_T, " | |||
| lv_it_conditions | TYPE BBPT_PD_CND_ICU, " | |||
| lv_it_ref_conditions | TYPE BBPT_PD_CND_ICU, " | |||
| lv_is_message_info | TYPE BBPS_MESSAGES, " | |||
| lv_is_implicit_delete_flags | TYPE BBPS_DETAIL_REQUESTED, " | |||
| lv_ct_sdln | TYPE BBPT_PD_SDLN, " | |||
| lv_iv_old_header_guid | TYPE BBP_GUID, " | |||
| lv_ct_longtext | TYPE BBPT_PD_LONGTEXT, " | |||
| lv_iv_old_parent_guid | TYPE BBP_GUID, " | |||
| lv_ct_account | TYPE BBPT_PD_ACC, " | |||
| lv_iv_new_parent_guid | TYPE BBP_GUID, " | |||
| lv_ct_tax | TYPE BBPT_PD_TAX, " | |||
| lv_it_item | TYPE BBPT_PDEXT_ITEM, " | |||
| lv_ct_attach | TYPE BBPT_PDS_ATT_T, " | |||
| lv_it_ref_item | TYPE BBPT_PDEXT_ITEM, " | |||
| lv_it_item_rel | TYPE BBPT_IV_ITEM_REL, " | |||
| lv_ct_conditions | TYPE BBPT_PD_CND_ICU, " | |||
| lv_ct_orgdata | TYPE BBPT_PD_ORG, " | |||
| lv_it_ref_item_rel | TYPE BBPT_IV_ITEM_REL. " |
|   CALL FUNCTION 'BBP_COMPLETE_ITEMS_FROM_REF' " |
| EXPORTING | ||
| IS_HEADER | = lv_is_header | |
| IT_ACCOUNT | = lv_it_account | |
| IT_REF_ACCOUNT | = lv_it_ref_account | |
| IT_PARTNER | = lv_it_partner | |
| IT_REF_PARTNER | = lv_it_ref_partner | |
| IT_TAX | = lv_it_tax | |
| IT_REF_TAX | = lv_it_ref_tax | |
| IT_ORGDATA | = lv_it_orgdata | |
| IT_REF_ORGDATA | = lv_it_ref_orgdata | |
| IT_LIMIT | = lv_it_limit | |
| IT_REF_LIMIT | = lv_it_ref_limit | |
| IS_REF_HEADER | = lv_is_ref_header | |
| IT_SDLN | = lv_it_sdln | |
| IT_REF_SDLN | = lv_it_ref_sdln | |
| IT_LONGTEXT | = lv_it_longtext | |
| IT_REF_LONGTEXT | = lv_it_ref_longtext | |
| IT_ATTACH | = lv_it_attach | |
| IT_REF_ATTACH | = lv_it_ref_attach | |
| IT_CONDITIONS | = lv_it_conditions | |
| IT_REF_CONDITIONS | = lv_it_ref_conditions | |
| IS_MESSAGE_INFO | = lv_is_message_info | |
| IS_IMPLICIT_DELETE_FLAGS | = lv_is_implicit_delete_flags | |
| IV_OLD_HEADER_GUID | = lv_iv_old_header_guid | |
| IV_OLD_PARENT_GUID | = lv_iv_old_parent_guid | |
| IV_NEW_PARENT_GUID | = lv_iv_new_parent_guid | |
| IT_ITEM | = lv_it_item | |
| IT_REF_ITEM | = lv_it_ref_item | |
| IT_ITEM_REL | = lv_it_item_rel | |
| IT_REF_ITEM_REL | = lv_it_ref_item_rel | |
| IMPORTING | ||
| ET_ITEM | = lv_et_item | |
| ET_MESSAGES | = lv_et_messages | |
| CHANGING | ||
| CT_PARTNER | = lv_ct_partner | |
| CT_ITEM_REL | = lv_ct_item_rel | |
| CT_LIMIT | = lv_ct_limit | |
| CT_SDLN | = lv_ct_sdln | |
| CT_LONGTEXT | = lv_ct_longtext | |
| CT_ACCOUNT | = lv_ct_account | |
| CT_TAX | = lv_ct_tax | |
| CT_ATTACH | = lv_ct_attach | |
| CT_CONDITIONS | = lv_ct_conditions | |
| CT_ORGDATA | = lv_ct_orgdata | |
| . " BBP_COMPLETE_ITEMS_FROM_REF | ||
ABAP code using 7.40 inline data declarations to call FM BBP_COMPLETE_ITEMS_FROM_REF
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.Search for further information about these or an SAP related objects