Fonction SAP BAPI_PRICEMARKDOWNPLAN_CREATE - Create a markdown plan

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DESCRIPTION BAPI1073I1-DESCRIPTION C 40 X Description
LANGU BAPI1073I1-LANGU C 1 X Language key
LANGU_ISO BAPI1073I1-LANGU_ISO C 2 X Language key ISO
PRICEMARKDOWNNO BAPI1073I1-MD_NO C 10 X Number of a markdown plan (external assignment)
PRICEMARKDOWNTYPE BAPI1073I1-MD_TYPE C 4 Markdown type
TEST BAPI1073I1-TEST C 1 X Test parameter(s)
VALIDFROM BAPI1073I1-VALIDFROM D 8 X Start date

Paramètre Reférence Type Long. Description
PRICEMARKDOWNPLAN BAPI1073I1-MD_NO C 10 Number of the markdown plan created

Paramètre Reférence Long. Facultatif Description
ITEMS BAPI1073T1 165 X Items
PLANTS BAPI1073T3 16 X Plants
PRICELISTS BAPI1073T16 8 X Interface Parameter Price Lists Markdown Plan
RETURN BAPIRET2 548 X Messages

Functionality
You use this method to create a markdown plan.
For each material, you have to enter the distribution chain via whichthe material is to be sold. If prices are to be activated later atplant or price list level, you can enter the plants or price lists in aseparate plant table or price list table.
It is also possible to enter the starting times and the quantities(planned sales quantities and initial stocks), as well as the salesprices. If a sales price is not entered, the system defaults one. Inaddition, you can enter a markdown rule from which the price phases arederived. If you do not enter a markdown rule for a material, the systemuses the default markdown rule from the markdown type.
The method carries out all the necessary consistency checks and returnsall messages as a return table. The return values and their meaningsare listed in the parameter documentation.

Notes
The entry of a markdown type is mandatory so that the system candetermine the price phases.
Checked authorization objects:

  • S_TCODE (authorization for transaction WMF1)

  • A Commit Work is not triggered in this method. As a result, after the
  • method has been called, a general BAPI "BAPI_TRANSACTION_COMMIT" mustbe called to triggered the update.

    Description
    The markdown plan is created under this key.
    For information on the markdown plan number, see the relevant dataelement documentation:
    Markdown plan number

    Description
    For information on the significance of the description, see therelevant data element documentation:
    Description

    Description
    For information on the significance of the language, see the relevantdata element documentation:
    Language

    Description
    Language in ISO code.

    Description
    The markdown plan number can be entered by the user. If the user doesnot enter a number, it is determined internally.
    For information on the significance of the markdown plan number, seethe relevant data element documentation:
    Markdwon plan number

    Description
    For information on the significance of the markdown plan number, seethe relevant data element documentation:
    Markdown rule

    Description
    For information on the significance of the test parameters, see therelevant data element documentation:
    Test run
    For information on the significance of the start date, see the relevantdata element documentation:
    Start date

    Description
    Table of materials, distribution chains, prices, markdown rules,planned sales quantities and initial stocks, as well as starting datesfor price markdowns.
    For information on the significance of the fields, see the relevantdata element documentation.
    Material
    Sales organization
    Distribution channel
    Starting date
    Markdown rule
    Final sales price
    Sales price currency
    Sales unit
    Price point indicator
    Initial stock
    Planned sales quantity

    Description
    Table with plants and the related distribution chains.
    For information on the significance of the fields, see the relevantdata element documentation:
    Customer number for plant
    Sales organization
    Distribution channel

    Description
    Tables with price lists.
    For further information on the meaning of the fields, see the relevantdata element documentation.
    Sales organization
    Distribution channel
    Pricing: Item-based price list category

    Description
    Messages for the method.

    Value range
    The following messages can occur:
    Type,,Number,,Message
    E,,004,,Planning number & already exists. Change the planning number.
    E,,045,,Number range & not created.
    E,,084,,Markdown type & not available.
    W,,085,,Start date & is before the current date. Date has beenadjusted.
    W,,086,,Start date changed to current date.
    W,,087,,Incorrect currency (&1) for material &2. Currency was replacedby a valid currency.
    E,,088,,Material is not available in the distribution chain entered.
    W,,089,,Material & is not available in the sales unit & entered.
    W,,090,,The markdown rule & entered for the item does not exist.
    W,,091,,Generic material & also selected for variant &
    W,,092,,Price-dependent variants also selected for generic material<(>&
    <)>.
    W,,093,,Final price not within the permitted value range.
    W,,094,,Planned sales quantity not within the permitted value range.
    W,,095,,Planned sales not within the permitted value range.
    W,,096,,Initial stock not within the permitted value range.
    E,,097,,Pricing reference material &1 is not in the markdown plan.Material &2 is rejected.
    W,,099,,Plant & could not be selected.
    E,,102,,Planning & is currently being processed by user &.
    E,,103,,Blocking of plan& failed. Transaction canceled.
    W,,112,,Material &/& result outside value range - check factors.
    W,,118,,Material & is price-dependent. Price entered will be ignored.
    W,,120,,Variants for generic material & are also selected.
    W,,121,,Valuated stock at purchase prices outside of the permittedvalue range.
    E,,122,,Material &1 does not exist in dictribution chain &2 &3.
    S,,124,,Markdwon plan & was succesffully created.
    E,,125,,The markdown plan number must be in the interval & to &.
    E,,126,,Error during internal number assignment.
    E,,127,,Sales unit & (ISO code) could not be converted.
    E,,128,,Currency & (ISO code) could not be converted.
    W,,138,,Internal number assignment. Planning number deleted.
    E,,139,,Enter planning number.
    W,,140,,Test ID set - markdown plan creation simulated.
    W,,146,,Pricing reference material & also selected for variant &.
    E,,159,,You are not authorized for transaction WMF1.
    W,,189,,Price list &1 &2 &3 could not be selected.
    E,,194,,You have no authorization for material &3 (distr. ch. &1 &2).
    Default