Sapass

 Simplify SAP R/3 development with Excel VBA/VB RFC  
Home> Bapi>SalesValueChange



Index

SalesValueChange

SalesValueChange


The object Sales value change contains the change of the value
of sales prices of materials that is recorded in the material stock account. This change is planned for a period of validity.

A sales value change comprises several items that contain the change planned for one material in each case.

With the sales value change the entire valuated stock of material, or a part of it, is revaluated.

If the change is carried out in a way that does not affect margins, then it has no influence on the valuation at delivered prices,
otherwise a price change (i.e. a change of the delivered prices) is
also carried out and recorded simultaneously in the material stock account.


11-Dec-2005


Methods

Available Methods


  • CalculatePrices : Perform Calculation and Post [ BAPI_RPC_CALCULATE_PRICES ]

11-Dec-2005


ChangeStatus

ChangeStatus


The method ChangeStatus enters the results of the count for a
count list requested by the method GetItems,
updates the relevant stock values at retail and changes the item status from A ("to be counted") to B ("stock counted,revaluation not yet carried out") or C ("revaluation carried out").

Notes

When method GetItems is used, the system checks the authorization object for revaluation at retail (W_WBEF_WRK).


Import parameters

The following compulsory fields in the parameter import structure ListInput have to be filled:

  • Plant
  • Date of retail price change and
  • Item status
  • You also have to indicate calling SAP Retail Store by setting the flag ListIinput-VORGA to '4'.


    The table CountedItems contains the material quantities entered:

  • Material
  • Counted material quantity and
  • Sales unit
  • Further table fields

  • retail revaluation document number
  • retail revaluation document year and

  • retail revaluation document item
  • are required internally to uniquely identify and assign items. This iswhy a storage location (with the material and the quantity entered) is not required in this table.

    Success/error log

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


    Further Information

    To create a count list using the method GetItems, the relevantretail revaluation documents for the retail price changes in theconditions have to have been created using report RWVKU001 or via the POS inbound interface.


    The method can only function as required if no error messages are generated in the Return table. This is the case when the retail revaluation document items are selected without any error and, forexample, there is no database lock preventing the stock values being updated at retail.


    If an error occurs, the count quantities passed to the BAPI are savedin the relevant retail revaluation documents and their status ischanged from A ("to be counted") to B ("stock counted, revaluation is not yet carried out").

    Transaction control is not implemented. The calling program must
    therefore trigger the "COMMIT WORK" itself after successfully calling this method.


    11-Dec-2005


    GetItems

    GetItems


    The method GetItems is used for creating a count list for SAP Retail Store. When the
    sales price in the conditions
    changes, a count is always 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 with
    the status A ("to be counted") meeting the selection criteria listed below and issues them in the form of a count list (see exportparameters mentioned below).

    Notes

    When the method GetItems is used, the system checks the authorization 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 created using report RWVKU001 or via the POS outbound interface.

    Import parameters

    For the system to select exist retail revaluation document items for
    materials managed on a value-only basis, the following compulsory fields in the parameter import structure ListInput must be filled:

  • Plant
  • Retail price change data and
  • Item status
  • The calling program must also indicate SAP Retail Store by setting the ListInput-VORGA indicator to '4'.


    Export parameters

    The count list is issued as table CountItems and contains the following 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.



    11-Dec-2005