You can use the function modules that are called up for the events listed below to trigger industry- or installation-specific additional actions when you are posting or reversing a document in
Contract Accounts Receivable and Payable
.
Event |
You can use a function module called up for this event to: |
---|---|
0010 |
Trigger additional actions when you are posting a document in
|
0020 |
Trigger additional actions when you are posting a document in
|
0030 |
Close additional actions initiated by event 0010 (document posted) or 0020 (document posted and items cleared). You can use the document header, including the document number assigned (I_FKKKO_OPBEL).See the documentation for the sample function module FKK_SAMPLE_0030. |
0090 |
Reset the data noted for events 0010, 0020, and 0030 to ensure consistent data for a ROLLBACK WORK.See the documentation for the sample function module FKK_SAMPLE_0090. |
Additional Items in the Document
Using a function module called up for event 0032, you can create additional line items in a document. Event 0032 is processed before the creation of items for cross-company code clearing.
See the documentation for the sample function module FKK_SAMPLE_0032.
Note
The event is not processed if you post reversals, returns, or clearing reversals. You cannot create additional items for purely statistical documents.
Dependent Documents
You can use events 0010, 0020, or 0030 to create an additional document for a document automatically. To do this, in the events, define a function module that creates the additional document, checks it, and the calls up the function module FKK_CREATE_DOC_ADDITIONAL.
For more information, see the documentation for the function module FKK_CREATE_DOC_ADDITIONAL.
You can use a function module called up for event 0070 to integrate document reversal. To check whether the reversal is permitted, you can use the document header data, I_FKKKO, the desired reversal date, I_STODT, and an ID for the reversal trigger, I_CALLR.
See the documentation for the sample function module FKK_SAMPLE_0070.
You can use a function module called up for event 0071 to integrate clearing reversal. See the documentation for the sample function module FKK_SAMPLE_0071.
You can use function modules called up for events 5500 and 5502 to subject document posting and reversal to a check. For more information, see the documentation for the sample function modules FKK_SAMPLE_5500 and FKK_SAMPLE_5502 and the section Dual Control Principle for Posting and Reversing .
In event 5504, you can subject changes to documents to a check and subsequent release in accordance with the dual control principle dependent on document data. See the documentation for the sample function module FKK_SAMPLE_5504.
In event 5508, you can check and approve repayment requests in a workflow. See the documentation for the sample function module FKK_SAMPLE_5508.
In event 5512, you can subject write-offs of documents to a check and subsequent release in accordance with the dual control principle dependent on document data. See the documentation for the sample function module FKK_SAMPLE_5512.
Write function modules for the events stated above as required.
Define these function modules for the relevant events in the Implementation Guide for
Contract Accounts Receivable and Payable
under
.