SAP BAPI_PRODCAT_REPLICATEITEMS Function Module for Replicate Item Data of a Product Catalog (ALE Outbound)









BAPI_PRODCAT_REPLICATEITEMS is a standard bapi prodcat replicateitems SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Replicate Item Data of a Product Catalog (ALE Outbound) processing and below is the pattern details for this FM, 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 bapi prodcat replicateitems FM, simply by entering the name BAPI_PRODCAT_REPLICATEITEMS into the relevant SAP transaction such as SE37 or SE38.

Function Group: 1071
Program Name: SAPL1071
Main Program: SAPL1071
Appliation area: W
Release date: 24-Mar-1999
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_PRODCAT_REPLICATEITEMS 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 'BAPI_PRODCAT_REPLICATEITEMS'"Replicate Item Data of a Product Catalog (ALE Outbound)
EXPORTING
* CATALOGID = "Product Catalog to be Replicated
* REQUESTCOMPLETE = ' ' "Indicator, Send Item in Full
* REQUESTCHANGES = ' ' "Indicator, Replicate Modified Data Only
* CREATIONDATETO = "Final Date for the Selection of Change Pointers
* MAXITEMS = 100 "Maximum Number of Items per IDoc
* TESTRUN = ' ' "Indicator, Do Not Reset Change Pointers

TABLES
* VARIANTIDS = "Variants of CATALOGID to be Replicated
* AREAIDS = "Layout Areas of CATALOGID to be Replicated
* ITEMIDS = "Items of AREAIDS to be Replicated
* RECIPIENTS = "Logical Receiving Systems for PCITEMS Data
* REPLICATEDCATALOGIDS = "Numbers of Replicated Product Catalogs
* REPLICATEDITEMKEYS = "Keys for Replicated Items
* REPLICATEDMATERIALIDS = "Numbers of Replicated Materials
* COMMUNICATIONDOCUMENTS = "Key of Created IDocs
RETURN = "Return values
.



IMPORTING Parameters details for BAPI_PRODCAT_REPLICATEITEMS

CATALOGID - Product Catalog to be Replicated

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

REQUESTCOMPLETE - Indicator, Send Item in Full

Data type: BAPIPCALEHLP-REQCOM
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

REQUESTCHANGES - Indicator, Replicate Modified Data Only

Data type: BAPIPCALEHLP-REQCHA
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CREATIONDATETO - Final Date for the Selection of Change Pointers

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

MAXITEMS - Maximum Number of Items per IDoc

Data type: BAPIPCALEHLP-MAXOBJ
Default: 100
Optional: Yes
Call by Reference: No ( called with pass by value option)

TESTRUN - Indicator, Do Not Reset Change Pointers

Data type: BAPIPCALEHLP-CPTRNO
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BAPI_PRODCAT_REPLICATEITEMS

VARIANTIDS - Variants of CATALOGID to be Replicated

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

AREAIDS - Layout Areas of CATALOGID to be Replicated

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

ITEMIDS - Items of AREAIDS to be Replicated

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

RECIPIENTS - Logical Receiving Systems for PCITEMS Data

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

REPLICATEDCATALOGIDS - Numbers of Replicated Product Catalogs

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

REPLICATEDITEMKEYS - Keys for Replicated Items

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

REPLICATEDMATERIALIDS - Numbers of Replicated Materials

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

COMMUNICATIONDOCUMENTS - Key of Created IDocs

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

RETURN - Return values

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

Copy and paste ABAP code example for BAPI_PRODCAT_REPLICATEITEMS 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_catalogid  TYPE BAPIADMID-PRODCAT, "   
lt_variantids  TYPE STANDARD TABLE OF BAPIPCVARIANTID, "   
lt_areaids  TYPE STANDARD TABLE OF BAPIPCAREAID, "   
lv_requestcomplete  TYPE BAPIPCALEHLP-REQCOM, "   SPACE
lt_itemids  TYPE STANDARD TABLE OF BAPIPCITEMID, "   
lv_requestchanges  TYPE BAPIPCALEHLP-REQCHA, "   SPACE
lt_recipients  TYPE STANDARD TABLE OF BAPIPCRECIPIENTS, "   
lv_creationdateto  TYPE BAPIPCALEHLP-DATETO, "   
lv_maxitems  TYPE BAPIPCALEHLP-MAXOBJ, "   100
lt_replicatedcatalogids  TYPE STANDARD TABLE OF BAPIADMID, "   
lv_testrun  TYPE BAPIPCALEHLP-CPTRNO, "   SPACE
lt_replicateditemkeys  TYPE STANDARD TABLE OF BAPIPCITEMKEY, "   
lt_replicatedmaterialids  TYPE STANDARD TABLE OF BAPIPCMATERIALID, "   
lt_communicationdocuments  TYPE STANDARD TABLE OF BAPIPCOBJID, "   
lt_return  TYPE STANDARD TABLE OF BAPIRET2. "   

  CALL FUNCTION 'BAPI_PRODCAT_REPLICATEITEMS'  "Replicate Item Data of a Product Catalog (ALE Outbound)
    EXPORTING
         CATALOGID = lv_catalogid
         REQUESTCOMPLETE = lv_requestcomplete
         REQUESTCHANGES = lv_requestchanges
         CREATIONDATETO = lv_creationdateto
         MAXITEMS = lv_maxitems
         TESTRUN = lv_testrun
    TABLES
         VARIANTIDS = lt_variantids
         AREAIDS = lt_areaids
         ITEMIDS = lt_itemids
         RECIPIENTS = lt_recipients
         REPLICATEDCATALOGIDS = lt_replicatedcatalogids
         REPLICATEDITEMKEYS = lt_replicateditemkeys
         REPLICATEDMATERIALIDS = lt_replicatedmaterialids
         COMMUNICATIONDOCUMENTS = lt_communicationdocuments
         RETURN = lt_return
. " BAPI_PRODCAT_REPLICATEITEMS




ABAP code using 7.40 inline data declarations to call FM BAPI_PRODCAT_REPLICATEITEMS

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 PRODCAT FROM BAPIADMID INTO @DATA(ld_catalogid).
 
 
 
"SELECT single REQCOM FROM BAPIPCALEHLP INTO @DATA(ld_requestcomplete).
DATA(ld_requestcomplete) = ' '.
 
 
"SELECT single REQCHA FROM BAPIPCALEHLP INTO @DATA(ld_requestchanges).
DATA(ld_requestchanges) = ' '.
 
 
"SELECT single DATETO FROM BAPIPCALEHLP INTO @DATA(ld_creationdateto).
 
"SELECT single MAXOBJ FROM BAPIPCALEHLP INTO @DATA(ld_maxitems).
DATA(ld_maxitems) = 100.
 
 
"SELECT single CPTRNO FROM BAPIPCALEHLP INTO @DATA(ld_testrun).
DATA(ld_testrun) = ' '.
 
 
 
 
 


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!