Fonction SAP BAPI_PROMO_CHANGESITEPLANNING - Change of Quantities and Prices from Plants In a Promotion

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PROMOTION BAPI1068I1-PROMOTION C 10 Promotion Number

Paramètre Reférence Long. Facultatif Description
ITEMSDATA BAPI1068T7 63 Items with Required Quantities
ITEMSDATAX BAPI1068T7 63 Comparative Parameters (Values Prior to Change)
RETURN BAPIRET2 548 Error Messages

Functionality
This method is used to update quantities and sales prices for theindividual plants in the promotion.

Notes
Method GETSITEPLANNING can be used first to determine the item data ofthe plants for a promotion.
The following authorization objects are checked:

  • S_TCODE: Authorization for transaction WAK2

  • Messages are returned in parameter RETURN. Please see the parameterdocumentation for the return values and their meaning.

    Description
    Information on the meaning of the promotion number can be found in therelevant data element documentation:
    Promotion number

    Description
    Table of quantities and sales prices of the promotion items as they areto be updated in the promotion.
    For information on the meaning of the fields in the table, please seethe relevant data element documentation:
    Customer number of the plant
    Number of the promotion item
    Minimum order quantity
    Planned promotion sales
    Planned allocation quantity
    Quantity requested by the store
    Confirmed allocation quantity
    Sales price (gross)

    Description
    Table of quantities and sales prices of promotion items prior to thechange as determined earlier by method GETSITEPLANNING. These valuesmust be transferred too, to ensure that no changes are made in themeantime by another user.

    Description
    Error messages for the method

    Value range
    In the case of errors, the following messages are issued:
    TYPE ID Number Message
    E WU 554 Customer does not exist
    E WU 669 You have no authorization for customer &
    E WU 670 You do not have authorization for this transaction
    E WU 001 Promotion & does not exist
    E WU 648 No store items could be determined
    E WU 018 Promotion & is currently being processed by user &
    E WU 019 Promotion & cannot be blocked because of a system
    error
    E WU 563 The comparison parameters for item & are missing
    E WU 236 Material &1 &2 is blocked
    E WU 561 Data for item & has changed
    E WU 627 Changes not possible to alloc. qty as the alloc.table
    has already been generated
    E WU 562 Error during determination of next status for item