* Also see the documentation for the following objects * - Count_List_Doc * - rein_wertmaessige_BF-Doc and * - VKP_Doc *Functionality 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> andchanges 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 authorizationobject for revaluation at retail (W_WBEF_WRK>).Import parameters The following compulsory fields in the parameter import structureListInput> 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 flagListIinput-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) isnot required in this table.Success/error log The success/error log of the method is returned in the parameterReturn>.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 thePOS inbound interface. The method can only function as required if no error messages aregenerated in the Return> table. This is the case when the retailrevaluation document items are selected without any error and, forexample, there is no database lock preventing the stock values beingupdated 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 isnot yet carried out"). Transaction control is not> implemented. The calling program musttherefore trigger the "COMMIT WORK" itself after successfully callingthis method.Description This structure contains the import parameters for creating acount list> for materials managed on avalue-only basis>, whoseretail 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 information required for transferring thequantities entered for revaluating the stock at retail of materialsmanaged on a value-only basis. The information comprises:
- Material
- Material quantity counted
- Sales unit
- Retail revaluation document number
- Retail revaluation document year and
- Retail revaluation document item
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.
|