Fonction SAP BAPI_SVCHANGE_GET_ITEMS - Read Retail Revaluation Document for Store, Key Date, Item Status

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
LISTINPUT BAPIWBW5_LIST_INPUT u 14 Structure with Input Parameters

Paramètre Reférence Long. Facultatif Description
COUNTITEMS BAPIWBW5_CNT_ITEM_SHOW 258 Structure for a Count List Item
RETURN BAPIRET2 548 Confirmations


* Also see the documentation for the following documents:
* - Count_List_Doc
* - rein_wertmaessige_BF-Doc and
* - VKP_Doc
*

Functionality
The method GetItems is used for creating acount list for SAP Retail Store. When thesales price in the conditions changes, a count isalways necessary before you can revaluate at retail formaterials managed on a value-only basis. The count list supports the user in entering the quantities.
The system reads existing retail revaluation document items withthe status A ("to be counted") meeting the selection criteria listedbelow and issues them in the form of a count list (see exportparameters mentioned below).

Notes
When the method GetItems is used, the system checks theauthorization object for revaluation at retail.(W_WBEF_WRK).
A count list can only be created if the retail revaluation documentsfor the retail price changes in the conditions were previously createdusing report RWVKU001 or via the POS outbound interface.

Import parameters
For the system to select exist retail revaluation document items formaterials managed on a value-only basis, the following compulsoryfields in the parameter import structure ListInput must befilled:

  • Plant

  • Retail price change data and

  • Item status

  • The calling program must also indicate SAP Retail Store by setting theListInput-VORGA indicator to '4'.

    Export parameters
    The count list is issued as table CountItems and contains thefollowing information for each items:

    • material group

    • material

    • storage location

    • material group description

    • material short text

    • storage location description

    • new retail price

    • old retail price

    • retail price unit

    • sales unit

    • sales currency and

    • promotion number

    • The remaining table fields
      • retail revaluation document number

      • retail revaluation document year and

      • retail revaluation document item

      • are required internally to uniquely identify and assign the items.

        Success/error log
        The success/error log for the method is returned in the Return parameter.

        Description
        This structure contains the import parameters for creating acount list for materials managed on avalue-only basis, whosesales price in the conditions change on a particularkey date in a particular plant. Currently, the only status allowed forcreation of a count list is the value A (to be counted).

        Description
        This table contains the data from the relevant retail revaluationdocument items required to output a count list. This data comprises:

        • material group

        • material

        • storage location

        • material group description

        • material short text

        • storage location description

        • new retail price

        • old retail price

        • retail price unit

        • sales unit of measure

        • sales currency and

        • promotion number

        • The remaining table fields
          • retail revaluation document number

          • retail revaluation document year and

          • retail revaluation document item

          • are required internally to uniquely identify and assign items.

            Description
            This table contains the success/error log from calling the method.

            Value range
            A number of error messages exist that cannot be explained here.
            If any errors occur when the method is called, the Return table isfilled. If the method is called successfully without error, the successmessage is returned to the return table.