Definition
An interface to create and execute Work-in-Process (WIP) Clearing Run instance.
Business Context and Use
Work-in-process (WIP) clearing runs are periodic tasks that are usually performed at regularly scheduled times or during period closing to correct and clear the work in process account. A run selects all production lots that have the corresponding status and reduces the associated work-in-process inventory to zero.
By taking account of all changes to work in process during the period, WIP clearing runs ensure that the value of the work in process is correctly reported at the end of the period.
WIP clearing runs determine any remaining work in process balances for production lots that have the logistical status Finished. If any differences occurred for the production lots, the system applies the perpetual cost method (Standard or Moving Average) and zeroes out the balances. The resulting postings depend on the cost method. WIP clearing runs generate journal entries in the general ledger.
The Web service interface Accounting WIP Clearing Run enables you to create and execute Work-in-Process Clearing Run instance. This Web service interface Accounting WIP Clearing Run has operation Create WIP which enable user to create and execute WIP run instance.
This WIP run instance can be shown in UI under Inventory Valuation WorkCentre WIP Clearing work center view.
Here is an example of a simple Web service request
<n0:WIPCreateRequest xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
<WIPRun>
<ProductionLotID>31</ProductionLotID>
<RunDescription languageCode="EN">Run Description</RunDescription>
<AccountingPeriodID>010</AccountingPeriodID>
<FiscalYearID>2015</FiscalYearID>
<AccountingClosingStepCode>010</AccountingClosingStepCode>
<CompanyID>MC10000</CompanyID>
<SetOfBooksID schemeID="Token 7" schemeAgencyID="Token 8">01</SetOfBooksID>
<BusinessResidence>MC64000</BusinessResidence>
<TestRunIndicator>true</TestRunIndicator>
</WIPRun>
</n0:WIPCreateRequest>
Production lot ID defines the production lot "31" on which the run will be performed.
Run Description provides the description of WIP run which can help to find run instance in UI under Inventory Valuation work center WIP Clearing work center view.
Accounting period value ‘010’ selects all production lot which are finished in this accounting period.
Fiscal year value ‘2015’ provides fiscal year to post journal entry. Accounting closing steps value posts journal entry with closing steps ‘010’.
Set of books defines the set of books where the journal entries are posted by the WIP Run.
If the Test run indicator value is selected to be ‘true’, WIP run will be created in test mode (simulation) which will not create any journal entry.
Here is an example of a simple Web service response.
<n0:WIPRunResponse xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:QCL:/1SAI/TAS321CE61824281D1B131F:804">
<WIPResponse>
<WIPRunStatus>true</WIPRunStatus>
</WIPResponse>
</n0:WIPRunResponse>
Here WIP run status ‘true’ means WIP run instance create successfully. This run instance can be found in UI Inventory Valuation work center WIP Clearing work center view.
Run instance can also be found using ‘run description’ provided in request parameter while creating run. In case there is any error then response parameter <WIPRunStatus> value would be false to indicate that there is not any instance created for WIP.
Constraints and Integrity Conditions
General Rules for Using this Web Service
The Web service interface operation requires the following input request:
Request Message Element ES Name Description
ProductionLotID Production Lot ID
RunDescription WIP Run Description
AccountingPeriodID Accounting Period ID
FiscalYearID Fiscal Year
AccountingClosingStepCode Accounting Closing Step
CompanyID Company ID
SetOfBooksID Set of Books
BusinessResidence Business Residence
TestRunIndicator Test Run Indicator
The Web service interface operation requires the following input response:
Response Element Description
WIPRunStatus Run Status. Here Status value True means WIP Run created and scheduled.
Log Error Log.