SAP BBP_ITEMLIST_CREATE_VERSION Function Module for









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

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



Function BBP_ITEMLIST_CREATE_VERSION 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_ITEMLIST_CREATE_VERSION'"
EXPORTING
IV_VERSION_HEADER = "
IV_ACTIVE_HEADER_GUID = "
IV_OLD_VERSION_GUID = "
IT_ACTIVE_CONDITIONS = "
IT_HIST_CONDITIONS = "
IT_ACTIVE_DYN_ATTR = "
IV_OBJECT_TYPE = "
IV_PROCESS_TYPE = "
* IS_ICOM = "

TABLES
IT_ACTIVE_ITEM = "
IT_ACTIVE_TOL = "
IT_ACTIVE_WEIGHT = "
IT_ACTIVE_DEP = "
IT_ACTIVE_CONFIRM = "
IT_ACTIVE_ATTACH = "
IT_ACTIVE_SDLN = "
IT_ACTIVE_LONGTEXT = "
IT_ACTIVE_STATUS = "
IT_ACTIVE_PRIDOC = "
IT_ACTIVE_PARTNER = "
IT_ACTIVE_ORG = "
IT_ACTIVE_FRT = "
IT_ACTIVE_LIMIT = "
IT_ACTIVE_TAX = "
IT_ACTIVE_ACCOUNT = "
IT_ACTIVE_ICF = "
.



IMPORTING Parameters details for BBP_ITEMLIST_CREATE_VERSION

IV_VERSION_HEADER -

Data type: CRMD_ORDERADM_H-GUID
Optional: No
Call by Reference: Yes

IV_ACTIVE_HEADER_GUID -

Data type: CRMD_ORDERADM_H-GUID
Optional: No
Call by Reference: Yes

IV_OLD_VERSION_GUID -

Data type: CRMD_ORDERADM_H-GUID
Optional: No
Call by Reference: Yes

IT_ACTIVE_CONDITIONS -

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

IT_HIST_CONDITIONS -

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

IT_ACTIVE_DYN_ATTR -

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

IV_OBJECT_TYPE -

Data type: CRMD_ORDERADM_H-OBJECT_TYPE
Optional: No
Call by Reference: Yes

IV_PROCESS_TYPE -

Data type: CRMD_ORDERADM_H-PROCESS_TYPE
Optional: No
Call by Reference: Yes

IS_ICOM -

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

TABLES Parameters details for BBP_ITEMLIST_CREATE_VERSION

IT_ACTIVE_ITEM -

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

IT_ACTIVE_TOL -

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

IT_ACTIVE_WEIGHT -

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

IT_ACTIVE_DEP -

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

IT_ACTIVE_CONFIRM -

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

IT_ACTIVE_ATTACH -

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

IT_ACTIVE_SDLN -

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

IT_ACTIVE_LONGTEXT -

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

IT_ACTIVE_STATUS -

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

IT_ACTIVE_PRIDOC -

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

IT_ACTIVE_PARTNER -

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

IT_ACTIVE_ORG -

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

IT_ACTIVE_FRT -

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

IT_ACTIVE_LIMIT -

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

IT_ACTIVE_TAX -

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

IT_ACTIVE_ACCOUNT -

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

IT_ACTIVE_ICF -

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

Copy and paste ABAP code example for BBP_ITEMLIST_CREATE_VERSION 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_it_active_item  TYPE STANDARD TABLE OF BBP_PDS_ITEM_DIFF, "   
lv_iv_version_header  TYPE CRMD_ORDERADM_H-GUID, "   
lt_it_active_tol  TYPE STANDARD TABLE OF BBP_PDS_TOL_DIFF, "   
lt_it_active_weight  TYPE STANDARD TABLE OF BBP_PDS_WEIGHT_DIFF, "   
lt_it_active_dep  TYPE STANDARD TABLE OF BBP_PDS_DEP_DIFF, "   
lt_it_active_confirm  TYPE STANDARD TABLE OF BBP_PDS_CON_DIFF, "   
lt_it_active_attach  TYPE STANDARD TABLE OF BBP_PDS_ATT_DIFF, "   
lt_it_active_sdln  TYPE STANDARD TABLE OF BBP_PDS_SDLN_DIFF, "   
lt_it_active_longtext  TYPE STANDARD TABLE OF BBP_PDS_LONGTEXT, "   
lt_it_active_status  TYPE STANDARD TABLE OF BBP_PDS_STATUS, "   
lt_it_active_pridoc  TYPE STANDARD TABLE OF BBP_PDS_PRC_DIFF, "   
lv_iv_active_header_guid  TYPE CRMD_ORDERADM_H-GUID, "   
lt_it_active_partner  TYPE STANDARD TABLE OF BBP_PDS_PARTNER_DIFF, "   
lv_iv_old_version_guid  TYPE CRMD_ORDERADM_H-GUID, "   
lt_it_active_org  TYPE STANDARD TABLE OF BBP_PDS_ORG_DIFF, "   
lv_it_active_conditions  TYPE BBPT_PD_CND_DIFF, "   
lt_it_active_frt  TYPE STANDARD TABLE OF BBP_PDS_FREIGHT_DIFF, "   
lv_it_hist_conditions  TYPE BBPT_PD_CND_DIFF, "   
lt_it_active_limit  TYPE STANDARD TABLE OF BBP_PDS_LIMIT_DIFF, "   
lv_it_active_dyn_attr  TYPE BBPT_PDS_DYNATTR_DIFF, "   
lt_it_active_tax  TYPE STANDARD TABLE OF BBP_PDS_TAX_DIFF, "   
lv_iv_object_type  TYPE CRMD_ORDERADM_H-OBJECT_TYPE, "   
lv_iv_process_type  TYPE CRMD_ORDERADM_H-PROCESS_TYPE, "   
lt_it_active_account  TYPE STANDARD TABLE OF BBP_PDS_ACC_DIFF, "   
lv_is_icom  TYPE BBP_PDS_ITM_ICOM, "   
lt_it_active_icf  TYPE STANDARD TABLE OF BBP_PDS_ICF_DIFF. "   

  CALL FUNCTION 'BBP_ITEMLIST_CREATE_VERSION'  "
    EXPORTING
         IV_VERSION_HEADER = lv_iv_version_header
         IV_ACTIVE_HEADER_GUID = lv_iv_active_header_guid
         IV_OLD_VERSION_GUID = lv_iv_old_version_guid
         IT_ACTIVE_CONDITIONS = lv_it_active_conditions
         IT_HIST_CONDITIONS = lv_it_hist_conditions
         IT_ACTIVE_DYN_ATTR = lv_it_active_dyn_attr
         IV_OBJECT_TYPE = lv_iv_object_type
         IV_PROCESS_TYPE = lv_iv_process_type
         IS_ICOM = lv_is_icom
    TABLES
         IT_ACTIVE_ITEM = lt_it_active_item
         IT_ACTIVE_TOL = lt_it_active_tol
         IT_ACTIVE_WEIGHT = lt_it_active_weight
         IT_ACTIVE_DEP = lt_it_active_dep
         IT_ACTIVE_CONFIRM = lt_it_active_confirm
         IT_ACTIVE_ATTACH = lt_it_active_attach
         IT_ACTIVE_SDLN = lt_it_active_sdln
         IT_ACTIVE_LONGTEXT = lt_it_active_longtext
         IT_ACTIVE_STATUS = lt_it_active_status
         IT_ACTIVE_PRIDOC = lt_it_active_pridoc
         IT_ACTIVE_PARTNER = lt_it_active_partner
         IT_ACTIVE_ORG = lt_it_active_org
         IT_ACTIVE_FRT = lt_it_active_frt
         IT_ACTIVE_LIMIT = lt_it_active_limit
         IT_ACTIVE_TAX = lt_it_active_tax
         IT_ACTIVE_ACCOUNT = lt_it_active_account
         IT_ACTIVE_ICF = lt_it_active_icf
. " BBP_ITEMLIST_CREATE_VERSION




ABAP code using 7.40 inline data declarations to call FM BBP_ITEMLIST_CREATE_VERSION

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_iv_version_header).
 
 
 
 
 
 
 
 
 
 
"SELECT single GUID FROM CRMD_ORDERADM_H INTO @DATA(ld_iv_active_header_guid).
 
 
"SELECT single GUID FROM CRMD_ORDERADM_H INTO @DATA(ld_iv_old_version_guid).
 
 
 
 
 
 
 
 
"SELECT single OBJECT_TYPE FROM CRMD_ORDERADM_H INTO @DATA(ld_iv_object_type).
 
"SELECT single PROCESS_TYPE FROM CRMD_ORDERADM_H INTO @DATA(ld_iv_process_type).
 
 
 
 


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!