Fonction SAP BAPI_PRODCAT_SAVEHEADREPLICA - Replicate Basic and Structure Data of a Product Catalog (ALE Inbound)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CATALOGBASEDATA BAPIPCWWMI u 116 X Product Catalog Basic Data
CATALOGBASEDATAX BAPIPCWWMIX u 43 X Basic Data Selection Parameters
LAYOUT BAPIPCTWGV u 47 X Product Catalog Layout
LAYOUTX BAPIPCTWGVX u 35 X Layout Selection Parameters

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Parameters

Paramètre Reférence Long. Facultatif Description
AREALONGTEXTS BAPIPCLTEXT 210 X Layout Area Long Texts
AREALONGTEXTSX BAPIPCLTEXTX 73 X Layout Area Long Text Selection Parameters
AREANAMES BAPIPCTWGLVT 66 X Layout Area Description
AREANAMESX BAPIPCTWGLVTX 47 X Layout Area Description Selection Parameters
AREAS BAPIPCTWGLV 80 X Product Catalog Layout Areas
AREASX BAPIPCTWGLVX 48 X Product Catalog Layout Areas Selection Parameters
AREATEXTS BAPIPCWLMT 140 X Layout Area Texts
AREATEXTSX BAPIPCWLMTX 61 X Layout Area Text Selection Parameters
CATALOGNAME BAPIPCWWMIT 66 X Product Catalog Description
CATALOGNAMEX BAPIPCWWMITX 27 X Product Catalog Description Selection Parameters
EXTENSIONIN BAPIPAREX 990 X Customer Enhancements
LAYOUTNAME BAPIPCTWGVT 56 X Layout Description
LAYOUTNAMEX BAPIPCTWGVTX 37 X Layout Description Selection Parameters
VARIANTNAMES BAPIPCWWVT 69 X Variant Description
VARIANTNAMESX BAPIPCWWVTX 30 X Variant Description Selection Parameters
VARIANTS BAPIPCWWMV 155 X Product Catalog Variants
VARIANTSX BAPIPCWWMVX 37 X Production Catalog Variants Selection Parameters

Functionality
In Application Link Enabling, youuse this program to distribute basic and structure data (i.e. layoutareas and layout hierarchies) of product catalogs by directly sendingthe data to other systems.
If it is necessary to use this method outside of ALE distribution,please note that after this method is called, when you call methods"BapiService.TransactionCommit" (in case of success) and"BapiService.TransactionRollback" (in case of errors) the changes areupdated to the database and discarded respectively.
All data that can be changed in product catalog maintenance (with theexception of document links and classifications) for which a separatedistribution mechanism exists can also be changed using this method.
A selection box is displayed next to each data parameter, each with thesame number of fields and field descriptions. This indicates thechange-relevant fields.
To indicate that a data record is to be deleted, the field "FUNCTION"must have value "003" in the relevant structure. Any other value isinterpreted as creation or change of data, depending on context.
If a parameter contains fields for language indicators (e.g."CatalogName": field "Langu"), currencies (e.g. "CatalogBaseData":field "Currency") or units of measure (e.g. "CatalogBaseData": field"Unit_Shares"), there is always a field of the same name with thesuffix "_ISO". This means it is possible for language indicators,currencies or units of measure to be transferred in either the SAP codeor the standardized ISO code. Internally, ISO codes are converted toSAP codes for further processing. This ISO code is only used if the SAPcode is not transferred. If ISO codes are used, there must be a uniqueassignment between the ISO codes and the SAP codes for languageindicators, currencies, and country indicators in Customizing.
If information or error messages occur during processing, they arerecorded in an application log, with reference to the triggering datarecord.
The changed objects (if transfer was successful) or the most seriouserrors (if transfer was faulty) are returned in the paramter "Return".The "Log_No" field of this parameter contains the number of theapplication log in which all (other) messages are stored.

Notes
For data to be created and changed, you need authorization for theactivity "Post IDocs" for the relevant catalog for authorization object"W_PCAT_MTN".
Extension parameter "ExtensionIn" and function exit "Exit_Saplwpca_003"of SAP extension "Wpca001" are available for customer extensions.
Method "ProductCatalog.SaveItemsReplica" is available as an appropriatemethod for the item data of a product catalog.

Further information

Description
This structure is used to return the return code to the callingprogram.
For information on the significance of the individual fields of thestructure, see the relevant data element documentation for theindividual fields.
As many information and error messages can occur during processing oflayout area items of a product catalog, the messages that are generatedare collected and stored in a log. A success message or the mostserious error is then returned in the return parameter, and field"Log_No" contains information on the number under which the messagescan be displayed in the application log.

Value range
Type,, ID ,, Number
E ,, 00 ,, 055
E ,, 00 ,, 058
E ,, B1 ,, 549
I ,, S_DX_BAPI ,, 000
I ,, S_DX_BAPI ,, 001
E ,, W+ ,, 101
E ,, W+ ,, 102
E ,, W+ ,, 103
E ,, W+ ,, 104
E ,, W+ ,, 105
E ,, W+ ,, 110
W ,, W+ ,, 113
I ,, W+ ,, 116
E ,, W+ ,, 210
E ,, W+ ,, 230
E ,, W+ ,, 264
E ,, W+ ,, 265
E ,, W+ ,, 268
E ,, W+ ,, 269
E ,, W+ ,, 324
E ,, W+ ,, 401
E ,, W+ ,, 404
E ,, W+ ,, 420
E ,, W+ ,, 500
E ,, W+ ,, 502
E ,, W+ ,, 504
E ,, W+ ,, 506
E ,, W+ ,, 507
E ,, W+ ,, 517
W ,, W+ ,, 528
W ,, W+ ,, 529
E ,, W+ ,, 531
E ,, W+ ,, 531
E ,, W+ ,, 539
E ,, W+ ,, 564
E ,, W+ ,, 586
E ,, W+ ,, 587
E ,, W+ ,, 588
E ,, W+ ,, 590
E ,, W+ ,, 592
E ,, W+ ,, 593
E ,, W+ ,, 594
E ,, W+ ,, 595
E ,, W+ ,, 619
This parameter contains basic data for a product catalog and comprisesthe following fields:

  • FUNCTION: Message on how the data is to be processed

  • PRODCAT: Catalog number

  • ORGSYS: Original system that the catalog comes
  • from
    • CATEGORY: Product catalog category

    • PROMOTION: Number of a promotion to which the catalog
    • is assigned
      • LAYOUT: Layout of the catalog

      • UNIT_SHARES_ISO: Unit of measure for display size in
      • the product catalog in ISO format
        • UNIT_SHARES: Unit of measure for display size in the
        • product catalog
          • HIERARCHY_IND: Indicator for hierarchical product catalog


            • VALID_FROM: Valid from date

            • VALID_TO: Valid to date

            • DOC_SCHEME: Document schema for determining the
            • calculation schema
              • REF_CUSTOMER: Reference customer

              • SALES_ORG: Sales organization

              • DISTR_CHANNEL: Distribution channel

              • DIVISION: Division

              • PRICE_DATE: Key date for product catlog price
              • determination
                • CURRENCY_ISO: Display currency in ISO format

                • CURRENCY: Display currency

                • PRICE_IND: Indicator for display of price

                • AUTH_GROUP: Authorization group for product catalog

                • PCTYPE: Product catalog type

                • CATALOGCODE: Catalog code

                • This parameter contains information on changes relating to the basicdata of a product catalog and comprises the following fields:
                  • FUNCTION: ,,Message on how the data is to be processed

                  • PRODCAT: Catalog number

                  • ORGSYS: Original system that the catalog comes
                  • from
                    • CATEGORY: Updated information relating to the product
                    • catalog type
                      • PROMOTION: Updated information relating to the
                      • promotion
                        • LAYOUT: Updated information relating to the layout

                        • UNIT_SHARES_ISO: Updated information relating to the
                        • unit of measure in ISO format
                          • UNIT_SHARES: Updated information relating to the unit
                          • of measure
                            • HIERARCHY_IND: Updated information relating to the
                            • indicator for a hierarchical product catalog
                              • VALID_FROM: Updated information relating to the valid
                              • from date
                                • VALID_TO: Updated information relating to the valid
                                • to date
                                  • DOC_SCHEME: Updated information relating to the
                                  • document schema
                                    • REF_CUSTOMER: Updated information relating to the
                                    • reference customer
                                      • SALES_ORG: Updated information relating to the sales
                                      • organization
                                        • DISTR_CHANNEL: Updated information relating to the
                                        • distribution channel
                                          • DIVISION: Updated information relating to the
                                          • division
                                            • PRICE_DATE: Updated information relating to the key
                                            • date
                                              • CURRENCY_ISO: Updated information relating to the
                                              • display currency in ISO format
                                                • CURRENCY: Updated information relating to the display
                                                • currency
                                                  • PRICE_IND: Updated information relating to the
                                                  • indicator for display of price
                                                    • AUTH_GROUP: Updated information relating to the
                                                    • authorization group
                                                      • PCTYPE: Updated information relating to the product
                                                      • catalog type
                                                        • CATALOGCODE: Updated information relating to the
                                                        • catalog code
                                                          This parameter contains the layout for a product catalog. Thiscomprises the following fields:
                                                          • FUNCTION: Message on how the data is to be processed

                                                          • PRODCAT: Catalog number

                                                          • ORGSYS: Original system that the catalog comes
                                                          • from
                                                            • LAYOUT: Layout of the catalog

                                                            • LAYOUTTYPE: Layout type

                                                            • HIGHEST_AREA_NUMBER: Highest layout area number

                                                            • This parameter contains information on changes relating to the layoutof a product catalog. This comprises the following fields:
                                                              • FUNCTION: Message on how the data is to be processed

                                                              • PRODCAT: Catalog number

                                                              • ORGSYS: Original system that the catalog comes
                                                              • from
                                                                • LAYOUT: Layout of the catalog

                                                                • LAYOUTTYPE: Updated information relating to the
                                                                • layout type
                                                                  • HIGHEST_AREA_NUMBER: Updated information relating to
                                                                  • the laoyut area number
                                                                    This parameter contains long texts for the layout areas of a productcatalog. This comprises the following fields:
                                                                    • FUNCTION: Message on how the data is to be processed

                                                                    • PRODCAT: Catalog number

                                                                    • ORGSYS: Original system that the catalog comes
                                                                    • from
                                                                      • LAYOUT: Layout of the catalog

                                                                      • AREA: Layout area number

                                                                      • ITEM: Identifier for the layout area item, in this case blank

                                                                      • APPL_OBJECT: Application object of the text

                                                                      • TEXT_ID: Text ID

                                                                      • LANGU_ISO: ISO code for language of the text in TEXT

                                                                      • LANGU: Language of the text in in TEXT

                                                                      • TEXT_TYPE: Format for the text

                                                                      • FORMAT_COL: Tag column

                                                                      • TEXT_LINE: Text line

                                                                      • This parameter contains information on changes relating to long textsof layout areas of a product catalog. This comprises the followingfields:
                                                                        • FUNCTION: Message on how the data is to be processed

                                                                        • PRODCAT: Catalog number

                                                                        • ORGSYS: Original system that the catalog comes
                                                                        • from
                                                                          • LAYOUT: Layout of the catalog

                                                                          • AREA: Layout area number

                                                                          • ITEM: Identifier for layout area item, in this case blank

                                                                          • APPL_OBJECT: Application object of the text

                                                                          • TEXT_ID: Text ID

                                                                          • LANGU_ISO: ISO code for the language of the text in TEXT

                                                                          • LANGU: Language of the text in TEXT

                                                                          • TEXT_TYPE: Updated information relating to the format
                                                                          • of the text
                                                                            • FORMAT_COL: Updated information relating to the tag
                                                                            • column
                                                                              • TEXT_LINE: Updated information relating to the text
                                                                              • line
                                                                                This parameter contains the descriptions of the layout areas of aproduct catalog. This comprises the following fields:
                                                                                • FUNCTION: Message on how the data is to be processed

                                                                                • PRODCAT: Catalog number

                                                                                • ORGSYS: Original system that the catalog comes
                                                                                • from
                                                                                  • LAYOUT: Layout of the catalog

                                                                                  • AREA: Layout area number

                                                                                  • LANGU_ISO: ISO code for the language of the text in NAME

                                                                                  • LANGU: Language of the text in NAME

                                                                                  • NAME: Description of the layout area

                                                                                  • This parameter contains information on changes relating to the layoutareas of a product catalog. This comprises the following fields:
                                                                                    • FUNCTION: Message on how the data is to be processed

                                                                                    • PRODCAT: Catalog number

                                                                                    • ORGSYS: Original system that the catalog comes
                                                                                    • from
                                                                                      • LAYOUT: Layout of the catalog

                                                                                      • AREA: Layout area number

                                                                                      • LANGU_ISO: ISO code for the langauge of the text in NAME

                                                                                      • LANGU: Language of the text in NAME

                                                                                      • NAME: Updated information relating to the description
                                                                                      • of the layout area
                                                                                        This parameter contains the layout areas of the product catalog. Thiscomprises the following fields:
                                                                                        • FUNCTION: Message on how the data is to be processed

                                                                                        • PRODCAT: Catalog number

                                                                                        • ORGSYS: Original system that the catalog comes
                                                                                        • from
                                                                                          • LAYOUT: Layout of the catalog

                                                                                          • AREA: Layout area number

                                                                                          • MODULE: Layout module

                                                                                          • PARENT: Higher level layout area

                                                                                          • CHILD: Relative grouping number

                                                                                          • POSITIONS: Number of items in layout area

                                                                                          • AUTH_GROUP: Authorization group for layout area

                                                                                          • This parameter contains information on changes relating the layoutareas of a product catalog. This comprises the following fields:
                                                                                            • FUNCTION: Message on how the data is to be processed

                                                                                            • PRODCAT: Catalog number

                                                                                            • ORGSYS: Original system that the catalog comes
                                                                                            • from
                                                                                              • LAYOUT: Layout of the catalog

                                                                                              • AREA: Layout area number

                                                                                              • MODULE: Updated information relating to the layout
                                                                                              • module
                                                                                                • PARENT: Updated information relating to the higher-

                                                                                                • level layout area
                                                                                                  • CHILD: Updated information relating to the relative
                                                                                                  • grouping number
                                                                                                    • POSITIONS: Updated information relating to the number
                                                                                                    • of items in the layout area
                                                                                                      • AUTH_GROUP: Updated information on the authorization
                                                                                                      • group for the layout area
                                                                                                        This parameter contains texts on the layout areas of a product catalog.This comprises the following fields:
                                                                                                        • FUNCTION: Message on how the data is to be processed

                                                                                                        • PRODCAT: Catalog number

                                                                                                        • ORGSYS: Original system that the catalog comes
                                                                                                        • from
                                                                                                          • LAYOUT: Layout of the catalog

                                                                                                          • AREA: Layout area number

                                                                                                          • ITEM: Identifier for layout area item, in this case blank

                                                                                                          • LANGU_ISO: ISO code for the language of the text in TEXT

                                                                                                          • LANGU: Langauge of the text in TEXT

                                                                                                          • TEXTID: ID for the layout area text

                                                                                                          • LINE: Consecutive number for text line

                                                                                                          • TEXT: Title line

                                                                                                          • This parameter contains information on changes relating to the texts ofthe layout areas of a product catalog. This comprises the followingfields:
                                                                                                            • FUNCTION: Message on how the data is to be processed

                                                                                                            • PRODCAT: Catalog number

                                                                                                            • ORGSYS: Original system that the catalog comes
                                                                                                            • from
                                                                                                              • LAYOUT: Layout of the catalog

                                                                                                              • AREA: Layout area number

                                                                                                              • ITEM: Identifier for layout area item, in this case blank

                                                                                                              • LANGU_ISO: ISO code for the language of the text in TEXT

                                                                                                              • LANGU: Language of the text in TEXT

                                                                                                              • TEXTID: ID for the layout area text

                                                                                                              • LINE: Consecutive number for the text line

                                                                                                              • TEXT: Updated information relating to the title line


                                                                                                              • This parameter contains the description of a product catalog. Thiscomprises the following fields:
                                                                                                                • FUNCTION: Message on how the data is to be processed

                                                                                                                • PRODCAT: Catalog number

                                                                                                                • ORGSYS: Original system that the catalog comes
                                                                                                                • from
                                                                                                                  • LANGU_ISO: ISO code for the language of the text in NAME

                                                                                                                  • LANGU: Language of the text in NAME

                                                                                                                  • NAME: Product catalog description

                                                                                                                  • This parameter contains information on changes relating to thedescription of a product catalog. This comprises the following fields:
                                                                                                                    • FUNCTION: Message on how the data is to be processed

                                                                                                                    • PRODCAT: Catalog number

                                                                                                                    • ORGSYS: Original system that the catalog comes
                                                                                                                    • from
                                                                                                                      • LANGU_ISO: ISO code for the language of the text in NAME

                                                                                                                      • LANGU: Language of the text in NAME

                                                                                                                      • NAME: Updated information relating to the product
                                                                                                                      • catalog description

                                                                                                                        Description
                                                                                                                        Parameter for transferring customer-specific data. This can betransferred to customer tables using function exit "Exit_Saplwpca_003"of SAP extension "Wpca001". It is also possible to transfercustomer-specific extensions of SAP tables "WWMI" and "TWGLV"automatically (without separate coding) as part of the 'BAPI TableExtensions'.

                                                                                                                        Value range
                                                                                                                        In additional to customer-specific data, the following BAPI TableExtensions can be processed automatically:
                                                                                                                        "BAPI_TE_WWMI" for table "WWMI" and
                                                                                                                        "BAPI_TE_TWGLV" for table "TWGLV".

                                                                                                                        Notes
                                                                                                                        For further information, see Reference structure forBAPI extension parameters.
                                                                                                                        This parameter contains the description of the layout of a productcatalog. This comprises the following fields:

                                                                                                                        • FUNCTION: Message on how the data is to be processed

                                                                                                                        • PRODCAT: Catalog number

                                                                                                                        • ORGSYS: Original system that the catalog comes
                                                                                                                        • from
                                                                                                                          • LAYOUT: Layout of the catalog

                                                                                                                          • LANGU_ISO: ISO code for the language of the text in NAME

                                                                                                                          • LANGU: Language of the text in NAME

                                                                                                                          • NAME: Description of the layout

                                                                                                                          • This parameter contains information on changes relating to the layoutof a product catalog. This comprises the following fields:
                                                                                                                            • FUNCTION: Message on how the data is to be processed

                                                                                                                            • PRODCAT: Catalog number

                                                                                                                            • ORGSYS: Original system that the catalog comes
                                                                                                                            • from
                                                                                                                              • LAYOUT: Layout of the catalog

                                                                                                                              • LANGU_ISO: ISO code for the language of the text in NAME

                                                                                                                              • LANGU: Language of the text in NAME

                                                                                                                              • NAME: Updated information relating to the description
                                                                                                                              • of the layout
                                                                                                                                This parameter contains the description of the variants of a productcatalog. This comprises the following fields:
                                                                                                                                • FUNCTION: Message on how the data is to be processed

                                                                                                                                • PRODCAT: Catalog number

                                                                                                                                • ORGSYS: Original system that the catalog comes
                                                                                                                                • from
                                                                                                                                  • VARIANT: Product catalog variant

                                                                                                                                  • LANGU_ISO: ISO code for the language of the text in NAME

                                                                                                                                  • LANGU: Language of the text in NAME

                                                                                                                                  • NAME: Description for the product catalog variant

                                                                                                                                  • This parameter contains information on changes relating to the variantsof a product catalog. This comprises the following fields:
                                                                                                                                    • FUNCTION: Message on how the data is to be processed

                                                                                                                                    • PRODCAT: Catalog number

                                                                                                                                    • ORGSYS: Original system that the catalog comes
                                                                                                                                    • from
                                                                                                                                      • VARIANT: Product catalog variant

                                                                                                                                      • LANGU_ISO: ISO code for the language of the text in NAME

                                                                                                                                      • LANGU: Language of the text in NAME

                                                                                                                                      • NAME: Updated information relating to the description
                                                                                                                                      • for the product catalog version
                                                                                                                                        This parameter contains the variants of a product catalog. Thiscomprises the following fields:
                                                                                                                                        • FUNCTION: Message on how the data is to be processed

                                                                                                                                        • PRODCAT: Catalog number

                                                                                                                                        • ORGSYS: Original system that the catalog comes
                                                                                                                                        • from
                                                                                                                                          • VARIANT: Product catalog variant

                                                                                                                                          • LANGU_ISO: Language for variant in ISO code

                                                                                                                                          • LANGU: Language for variant

                                                                                                                                          • CURRENCY_ISO: Currency for the variant in ISO code

                                                                                                                                          • CURRENCY: Currency for the variant

                                                                                                                                          • URRENCY_EWU_ISO: ISO code for parallel currency for variant

                                                                                                                                          • CURRENCY_EWU: Parallel currency for variant

                                                                                                                                          • MATERIAL_VARIANT: Material for the variant

                                                                                                                                          • COPIES: Number of copies

                                                                                                                                          • This parameter contains information on changes relating to the variantsof a product catalog. This comprises the following fields:
                                                                                                                                            • FUNCTION: Message on how the data is to be processed

                                                                                                                                            • PRODCAT: Catalog number

                                                                                                                                            • ORGSYS: Original system that the catalog comes
                                                                                                                                            • from
                                                                                                                                              • VARIANT: Product catalog variant

                                                                                                                                              • LANGU_ISO: Updated information relating to the
                                                                                                                                              • language for the variant in ISO code
                                                                                                                                                • LANGU: Updated information relating to the language
                                                                                                                                                • for the variant
                                                                                                                                                  • CURRENCY_ISO: Updated information relating to the
                                                                                                                                                  • currency for the variant in ISO code
                                                                                                                                                    • CURRENCY: Updated information relating to the
                                                                                                                                                    • currency for the variant
                                                                                                                                                      • MATERIAL_VARIANT: Updated information relating to the
                                                                                                                                                      • material for the variant
                                                                                                                                                        • COPIES: Updated information relating to the number of
                                                                                                                                                        • copies