Fonction SAP BAPI_PROMO_GETANNOUNCEDLIST - List of Promotions for a Plant

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
LANGU BAPI1068I1-LANGU C 1 X Language
LANGU_ISO BAPI1068I1-LANGUP_ISO C 2 X Language in ISO Code
PLANT BAPI1068I1-PLANT C 4 X Plant Number
PLANT_CUSTOMER BAPI1068I1-PLANT_CUSTOMER C 10 X Customer Number of Plant
PROMOTION BAPI1068I1-PROMOTION C 10 X Promotion Number
SALES_DATE_FROM BAPI1068I1-SALES_DATE_FROM D 8 X Start of Sales Period
SALES_DATE_TO BAPI1068I1-SALES_DATE_TO D 8 X End of Sales Period

Paramètre Reférence Long. Facultatif Description
DEPARTMENT_RANGE BAPI1068T3 11 X Selection Criterion - Departments
MATERIAL_RANGE BAPI1068T5 39 X Selection Criterion - Materials
MATL_GROUP_RANGE BAPI1068T4 21 X Selection Criterion - Material Groups
PROMOTIONLIST BAPI1068T1 54 List of Promotions
RETURN BAPIRET2 548 Error Messages

Functionality
This method is used to determine the promotions for a plant. Thepromotions can be selected by entering a sales period and the materialsinvolved, which are determined by entering a material list, materialgroups, or departments. Promotions are only selected if promotionannouncement has already been carried out.

Notes
You must enter parameter PLANT or PLANT_CUSTOMER.
To limit the number of materials involved, you can transfer onlyparameter DEPARTEMENT_RANGE, MATL_GROUP_RANGE or MATERIAL_RANGE.
The following authorization objects are checked:

  • S_TCODE: Authorization for transaction WAK11

  • W_AUFT_RMB: Authorization for customer number of the plant with
  • activity 03 (Display)
    Messages are returned in parameter RETURN. Please see this parameterdocumentation for information on the return values and their meaning.

    Description
    For information on the meaning of the parameters, please see therelevant data element documentation:
    Language

    Default
    If no language is entered, the log-on language is used.

    Description
    For information on the meaning of the parameter, please see therelevant data element documentation:
    Language in ISO code
    This parameter can only be used as an alternatie to parameter Language.If both parameters contain a value, the system uses the value inparameter Language.

    Description
    For information on the meaning of the plant number, please see therelevant data element documentation:
    Plant number

    Description
    For information on the meaning of the customer number of the plant,please see the relevant data elemenet documentation:
    Customer number of the plant

    Description
    For information on the meaning of the promotion number, please see therelevant data element documentation:
    Promotion number

    Description
    For information on the meaning of the parameter, please see therelevant data element documentation:
    On sale to consumers from

    Description
    For information on the meaning of the parameter, please see therelevant data element documentation:
    On sale to consumers to

    Description
    You can use this parameter to reduce the number of hits if you enterthe selection criterion for the departments. In this case, promotionsare only selected if they include materials that are assigned to thedepartments entered.
    This parameter can only be used as an alternative to parameterMATERIAL_RANGE and MATL_GROUP_RANGE.

    Description
    You can use this parameter to restrict the number of hits if you enterthe selection criterion for the materials. In this case, promotions areonly selected if they include the materials entered.
    This parameter can only be used as an alternative to parametersDEPARTEMENT_RANGE and MATL_GROUP_RANGE.

    Description
    You can use this parameter to limit the number of hits if you enter theselection criterion for the material groups. In this case, promotionsare only selected if they contain materials that are assigned to thematerial groups entered.
    This parameter can only be used as an alternative to parametersDEPARTEMENT_RANGE and MATERIAL_RANGE.

    Description
    List of promotions that were determined for the selection criteriaentered.
    For information on the meaning of the fields in the table, please seethe relevant data element documentation:
    Promotion number
    Description of the promotion
    Indicator: Reply permitted
    Language
    Language in ISO code

    Description
    Error messages for method

    Value range
    The following messages are issued if errors occur:
    TYPE ID Number Message
    E WU 555 Enter customer or plant
    E WU 577 Plant & does not exist
    E WU 554 Customer & does not exist
    E WU 001 Promotion & does not exist
    E WU 396 No promotion exists for the data entered
    E WU 669 You have no authorization for customer &
    E WU 670 You have no authorization for this transacion