Fonction SAP BAPI_PRICEMARKDOWNPLAN_CH_R_PL - Process Markdown Plan (Rough-Cut Planning)

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
LANGU BAPI1073I1-LANGU C 1 X Language Key
LANGU_ISO BAPI1073I1-LANGU_ISO C 2 X Language According to ISO 639
MARKDOWNPLANHEADER BAPI1073T14 u 52 Changeable Markdown Plan Header Data
MARKDOWNPLANHEADER_NEW BAPI1073T14 u 52 Changeable Markdown Plan Header Data
PRICEMARKDOWNPLAN BAPI1073I1-MD_NO C 10 Document no. of Markdown Plan
TESTRUN BAPI1073I1-TEST C 1 X Switch to Simulation Mode for Write BAPIs

Paramètre Reférence Long. Facultatif Description
ITEMS BAPI1073T1 165 X Interface Parameter Rough-Cut Planning Markdown Planning
ITEMS_NEW BAPI1073T1 165 X Interface Parameter Rough-Cut Planning Markdown Planning
PHASES BAPI1073T2 154 X Interface Parameter Detailed Planning Markdown Planning
PLANTS BAPI1073T3 16 X Interface Parameter Plants Markdown Planning
PLANTS_NEW BAPI1073T3 16 X Interface Parameter Plants Markdown Planning
PRICELISTS BAPI1073T16 8 X Interface Parameter Price Lists Markdown Plan
PRICELISTS_NEW BAPI1073T16 8 X Interface Parameter Price Lists Markdown Plan
RETURN BAPIRET2 548 X Return Parameters

Functionality
You can use this method to process an existing markdown plan.
The method allows you to process data at header, item, plant and price-
list level (rough-cut planning). It is not possible to process pricephases.
The document number of the markdown plan for processing and tablescontaining the old data (determined with method"PriceMarkdownPlan.GetDetail") and new (changed) data is transferred tothe method.
The system first checks whether the data that was transferred as "old"is the same as that on the database. If it is not, processing iscancelled and a message is returned. Only if the data is consistent isthe old and new data compared and the markdown plan is updated with thenew data.

Processing options

  • At header level:

  • Changes to name, start date and number of periods.
    • At item level:

    • Changes to start date of first price phase, markdown rule, final price,price point indicator, planned initial stock, and planned salesquantity.
      Adding and deleting of items.
      • At plant level:

      • Adding and deleting of plants.
        • At price-list level:

        • Adding and deleting of price lists.

          Notes
          The header data must always be transferred in full.
          To keep the transferred dataset as small as possible, not all old andnew data has to be transferred at item, phase, plant or price-listlevel
          . It is sufficient to transfer the data that needs to be changed. Themethod then returns a warning. However, note that processing of themarkdown plan is then not necessarily based on the current data on thedatabase.
          Checked authorization objects:
          S_TCODE (authorization for transaction "WMF2").

          • W_MARKDOWN ("Adding or Creating" or "Changing")

          • No Commit Work is triggered in this method. As a result, after themethod is called, BAPI "BAPI_TRANSACTION_COMMIT" must be called totrigger the update.

            Description
            For information on the purpose of the language, see the data elementdocumentation:
            Language

            Default
            If a language is not entered, the system uses the logon language.

            Description
            For information on the purpose of the parameter, see the relevant dataelement documentation:
            Language in ISO code
            This parameter can only be used as an alternative to the parameter'Language'. If a value is entered for both parameters, the system usesthe value in parameter 'Language'.

            Description
            The structure contains the old header data of the markdown plan.

            Description
            The structure contains the new header data of the markdown plan.

            Description
            For information on the purpose of the parameter, see the relevant dataelement documentation:
            PRICEMARKDOWNPLAN

            Description
            For information on the meaning of the test parameter, see the relevantdata element documentation:
            Test run

            Description
            The structure contains the old item data of the markdown plan.

            Description
            The structure contains the new item data of the markdown plan.

            Description
            The structure contains the old phase data of the markdown plan.

            Description
            The structure contains the old plant data of the markdown plan.

            Description
            The structure contains the new plant data of the markdown plan.

            Description
            The table contains the old price list data from the markdown plan.

            Description
            The table contains the new price list data from the markdown plan.

            Description
            Error messages for the method

            Value range
            If an error occurs, the following messages are issued:
            TYPE,, ID,,Number,,,,Message
            W,, W/,,067,,,,Material & cannot be deleted, as phases are alreadyactivated.
            W,, W/,,068,,,,Material & cannot be deleted, as its price is dependenton another material.
            W,, W/,,085,,,,Start date & falls before the current date. Date wasadjusted.
            W,, W/,,086,,,,Start date changed to current date.
            W,, W/,,087,,,,Incorrect currency (&1) for material (&2). Currency wasreplaced by valid currency.
            W,, W/,,089,,,,Material & does not exist in sales unit &.
            W,, W/,,090,,,,Markdown rule & entered for the item does not exist.
            W,, W/,,091,,,,Generic material & also selected for variant &.
            W,, W/,,092,,,,Price-dependent variants also selected for genericmaterial &.
            W,, W/,,093,,,,Final price does not fall within permitted value range.
            W,, W/,,094,,,,Planned sales quantity does not fall within permittedvalue range.
            W,, W/,,095,,,,Planned sales do not fall within permitted value range.
            W,, W/,,096,,,,Initial stock does not fall within permitted valuerange.
            E,, W/,,097,,,,Pricing reference material &1 not in markdown plan.Material &2 will be rejected.
            W,, W/,,099,,,,Plant & could not be selected.
            E,, W/,,100,,,,Enter a planning number.
            E,, W/,,101,,,,No data exists for the planning number. Enter anotherplanning number.
            E,, W/,,102,,,,Plan & is being modified by user &.
            E,, W/,,103,,,,Blocking of plan & failed. Transaction canceled.
            S,, W/,,105,,,,Markdown plan & is being saved.
            W,, W/,,112,,,,Material <(>&<)>/& result does not fall within permittedvalue range - check the factors.
            W,, W/,,118,,,,Material & is price-dependent. The price entered isignored.
            W,, W/,,120,,,,Variants are also selected for generic material &.
            W,, W/,,121,,,,Valuated stock at purchase prices does not fall withinpermitted value range.
            E,, W/,,122,,,,Material &1 does not exist in distribution chain &2 &3.
            E,, W/,,127,,,,Sales unit & (ISO code) could not be converted.
            E,, W/,,128,,,,Currency & (ISO code) could not be converted.
            W,, W/,,140,,,,Test ID set - processing of markdown plan is beingsimulated.
            I,, W/,,143,,,,Logon language & is used as the language ID.
            W,, W/,,144,,,,Language ID & is invalid.
            E,, W/,,148,,,,Inconsistent with database (&3: &1 <> &2) - processingnot possible.
            E,, W/,,149,,,,Material &1 does not exist in distr. ch. &3 &4processing not possible.
            W,, W/,,150,,,,Database contains additional entries - processing notrecommended.
            E,, W/,,151,,,,Phase &1 mat &2 in distr. ch. &3 &4 - processing notpossible.
            E,, W/,,152,,,,Plant &1 distribution chain &2 &3 not available -processing not possible.
            W,, W/,,153,,,,Material & cannot be deleted, as pricing referencematerial is for another material.
            W,, W/,,154,,,,Generic material &1 cannot be deleted without variant2.
            W,, W/,,155,,,,Sales price currency cannot be changed.
            W,, W/,,156,,,,Sales unit cannot be changed.
            W,, W7,,157,,,,Material & is not to be processed, as phases are alreadyactivated.
            W,, W/,,158,,,,Date & invalid.
            E,, W/,,159,,,You are not authorized for transaction WMF2.
            W,, W/,,189,,,,Price list &1 &2 &3 could not be selected.
            E,, W/,,190,,,,Price list &1 distr. ch. &2 &3 not available -processing not possible.
            E,, W/,,194,,,,You have no authorization for material &3 (distr. ch. &12).