Fonction SAP BAPI_PROMO_CHANGE - Change Promotion

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
LANGU BAPI1068I1-LANGU C 1 X Language Key
LANGU_ISO BAPI1068I1-LANGUP_ISO C 2 X Language According to ISO 639
PROMOTION BAPI1068I1-PROMOTION C 10 Promotion
PROMOTION_HEADER BAPI1068T22 u 136 Promotion Header Data (Before Change)
PROMOTION_HEADER_NEW BAPI1068T22 u 136 Promotion Header Data (After Change)
PROMO_REF BAPI1068I3 u 52 X Interface Structure for Higher-Level Promotion
PROMO_REF_NEW BAPI1068I3 u 52 X Interface Structure for Higher-Level Promotion
SOA_SERVICE XFELD C 1 ' ' X Checkbox
TESTRUN BAPI1068I2-TESTRUN C 1 X Switch to Simulation Mode for Write BAPIs

Paramètre Reférence Long. Facultatif Description
DISCOUNTS BAPI1068T31 125 X Promotion Discounts (Before Change)
DISCOUNTS_NEW BAPI1068T31 125 X Promotion Discounts (After Change)
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
ITEMS BAPI1068T23 333 Item Data (Before Change)
ITEMS_NEW BAPI1068T23 333 Item Data (After Change)
PLANTGROUPS BAPI1068T24 135 Plant Groups (Before Change)
PLANTGROUPS_NEW BAPI1068T24 135 Plant Groups (After Change)
PLANTS BAPI1068T25 32 X Table Parameter: Plants (Changeable)
PLANTS_NEW BAPI1068T25 32 X Table Parameter: Plants (Changeable)
RETURN BAPIRET2 548 X Return Parameter(s)
TEXTS BAPI1068T29 43 X Promotion Names (Before Change)
TEXTS_NEW BAPI1068T29 43 X Promotion Names (After Change)
THEMES BAPI1068T10 4 Promotion Themes (Before Change)
THEMES_NEW BAPI1068T10 4 Promotion Themes (After Change)

Functionality
You use this method to change the detailed data of a promotion.
The following changes can be made:

  • Header data (change)

  • Promotion items (delete, add, change)

  • Promotion themes (delete, add)

  • Plant groups (delete, add, change)
  • Notes
    Before you call this method, you must import promotion data using themethod "GetDetail". The imported data must be returned in a comparisonparameter (e.g. PROMOTION_HEADER). The data of the comparison parameteris compared with the database and an error message is issued ifdiscrepancies occur.
    The data to be changed is entered in a change parameter (e.g.PROMOTION_HEADER_NEW).
    Entries can be deleted and added as follows:

    • Delete:

    • The entry to be deleted is not included in the change parameter
      • Add:

      • The new entry is added to the change parameter
        Promotion items that are not to be changed can be omitted from thecomparison and change parameters.
        Authorization for authorization object S_TCODE for transaction WAK2 ischecked.
        Messages are returned in parameter RETURN.

        Description
        The language key indicates the language in which the descriptions areto be displayed.

        Default
        If no language is entered, the system uses the logon language.

        Description
        The language key indicates the language in which the descriptions areto be displayed.
        This parameter can be entered as an alternative to parameter Language.If a value is entered in both parameters, the system uses the valueentered in parameter Language.

        Description
        For information on this parameter, see the documentation for dataelement Promotion.

        Description
        This parameter contains the header data of the promotion.
        For information on the meaning of the fields, see the relevant dataelement documentation.

        Description
        This parameter contains the header data of the promotion.
        For information on the meaning of the fields, see the relevant dataelement documentation.

        Description
        For information on this parameter, see the documentation for dataelement Test run.

        Description
        You use this parameter to transfer the previously imported item data asa table. This data is compared with the data on the database.

        Description
        You use this parameter to transfer (as a table) the promotion item datathat is to be changed.

        Description
        You use this parameter to transfer the previously imported plant groupsas a table. This data is compared with that on the database.

        Description
        You use this parameter to transfer (in a table) the plant groups of apromotion that are to be changed.

        Description
        This parameter contains the error messages of the method.

        Description
        You use this parameter to transfer the imported themes of a promotionin a table. This data is compared with that on the database.

        Description
        You use this parameter to transfer (in a table) the themes of apromotion that are to be changed.