Ansicht
Dokumentation

FKK_SAMPLE_0494 - Event 0494: Amount Determination for Distributed Documents

FKK_SAMPLE_0494 - Event 0494: Amount Determination for Distributed Documents

Addresses (Business Address Services)   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module provides data for the distributed items of a specific co-debtor. The event is processed during the distribution of line items to the relevant co-debtors. It is processed after the co-debtors are determined (event 0496).

The data available consists of a list of all line items to be distributed (IT_DFKKOP_FOR_DISTRIBUTION), information about the debtor to which the items are to be distributed (IS_DEBTOR), a list of all existing items belonging to the debtor (IT_ITEMS_OF_DEBTOR), the type of co-liability (IV_COLIO_TYPE) and the key for the co-liability instance (IV_COLIO_GUID).

The event is processed during distribution and for every debtor to which the line items are to be distributed. To add the data determined to a distributed item, a new entry in export table ET_DISTRIBUTION_DATA is needed. The internal table stores the link between the line item to be distributed and the determined data. The actual distributed item is created after event 0494 is processed. Therefore, it is necessary to assign the new data to the original line item.

If the export table is completely empty, the distribution values for the debtors are used to determine the amounts for the distributed items.

Parameter Name Type
Import IV_COLIO_GUID /BOBF/CONF_KEY
Import IV_COLIO_TYPE COL_OBJ_TYPE_KK
Import IT_DFKKOP_FOR_DISTRIBUTION DFKKOP_T
Import IT_ITEMS_OF_DEBTOR DFKKKO_T
Import IS_DEBTOR FKK_COL_S_DOC_BP
Export ET_DISTRIBUTION_DATA FKK_COL_T_ITM_AMOUNT
Export ET_MESSAGE BAPIRET2_T
Export EV_TRACE_GUID SYSUUID_X

Example

Notes

If you write a function module to transfer the data for the distributed items, you can add messages only and NOT exceptions. The messages can be transferred by adding them to the export parameter ET_MESSAGE. The export parameter EV_TRACE_GUID is only needed if you are using BRFplus. If you are not using BRFplus but implement the function module, you have to ignore this parameter.

Further information





Parameters

ET_DISTRIBUTION_DATA
ET_MESSAGE
EV_TRACE_GUID
IS_DEBTOR
IT_DFKKOP_FOR_DISTRIBUTION
IT_ITEMS_OF_DEBTOR
IV_COLIO_GUID
IV_COLIO_TYPE

Exceptions

Function Group

FKK_COL_EVENTS

Addresses (Business Address Services)   General Material Data  
This documentation is copyright by SAP AG.

Length: 4749 Date: 20240523 Time: 081713     sap01-206 ( 54 ms )