ZSAPRCKML_COGS_DOC program is used to showcase and to give a choice to reversal the accounting documents. And to create this program one must follow the following steps:
1. One must need to call Transaction SE80 and then after one must go for Menu 'Workbench' --> 'Edit object'--> Tabstrip 'Program'.
2. Now submit ZSAPRCKML_COGS_DOC assuming as a program name and then select 'Create' and 'Without Topinclude'.
3. After that one need to use development class 'Z_CKML_COGS' which should be transportable and not to be saved as local object.
4.Copy the source code from program and then choose 'Goto' --> 'Text elements' --> 'Selection texts'/'Text symbols' from menu option and the text for program. And select English language for program text.
Manage the following selection text:
Field name Text (english)
P_BUKRS Company code
Manage the following text symbols:
Symbol Text (english)
005 Do you really want to reverse all documents?
006 Reverse documents
010 Year/ period
012 Control data
018 Valuation period
019 Company Code
020 Valuation period
021 List of Documents
022 Revaluation Cost of Goods Sold
5. One can choose 'Goto' --> 'Messages' to manage or create two messages.
Message Message short text (english)
150 All documents successfully reversed
And now after all these settings one can submit company code along with year within the selection screen to see the list of accounting documents by program ZSAPRCKML_COGS_DOC.
Use of ZSAPRCKML_COGS Program:
For Showcase the Document: One need to click the document number and select the suitable display variant and material from program ZSAPRCKML_COGS.
For Reverse Document: You may also use program ZSAPRCKML_COGS for it as it also provide this facility too.