Ansicht
Dokumentation

FKK_SAMPLE_0496 - Event 0496: Determination of Debtors for Documents

FKK_SAMPLE_0496 - Event 0496: Determination of Debtors for Documents

CL_GUI_FRONTEND_SERVICES - Frontend Services   PERFORM Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module provides the co-debtors for a given list of line items. During the distribution every line item is distributed to its determined co-debtors. The event is processed during the distribution and before event 0494 is processed.

The data available comprises the type of co-liability (IV_COLIO_TYPE) and the key of the co-liability instance (IV_COLIO_GUID).

All line items which shall be distributed are available in the changing parameter CT_OP_DEBTOR_LINK. To every line item a list of all available debtors within the co-liability record is assigned. After processing the event the line items are distributed to all debtors which are assigned to them.

If for a line item the determination of the relevant debtors is not possible the key of this line item can be stored in export parameter ET_DEBTOR_DET_NOT_POSSIBLE. If some line items are added to this parameter, during the distribution a pop-up appears and the user has to select the relevant debtors for these line items manually.

Parameter Name Type
Import IV_COLIO_GUID /BOBF/CONF_KEY
Import IV_COLIO_TYPE COL_OBJ_TYPE_KK
Export ET_DEBTOR_DET_NOT_POSSIBLE FKK_COL_T_ITM_CLEARING_DATA
Export ET_MESSAGE BAPIRET2_T
Export EV_TRACE_GUID SYSUUID_X
Change CT_OP_DEBTOR_LINK FKK_COL_T_ITM_DEBTOR_LINK

Example

In co-liability record 1 there are two line items L1 and L2. In addition three debtors DEB1, DEB2, and DEB3 are assigned to record 1.

The line items L1 and L2 shall be distributed. When start processing event 0496 the changing parameter CT_OP_DEBTOR_LINK is filled with the following data:

Line Item Debtor
L1 DEB1
L1 DEB2
L1 DEB3
L2 DEB1
L2 DEB2
L2 DEB3

Line item L1 shall only be distributed to DEB3. In this case DEB1 and DEB2 must be deleted from the list. Line item L2 shall be distributed to DEB1 and DEB3. In this case only DEB2 must be deleted from the list.

After processing event 0496 the changing parameter CT_OP_DEBTOR_LINK contains the following data:

Line Item Debtor
L1 DEB3
L2 DEB1
L2 DEB3

Line item L1 will be distributed to debtor DEB3 and line item L2 will be distributed to debtors DEB1 and DEB3.

Notes

If you write a function module to carry out the relevant debtors for the line items you can add messages only and NOT exceptions. The messages can be transferred by adding them to export parameter ET_MESSAGE. The export parameter EV_TRACE_GUID is only needed when using BRFplus. If you do not use BRFplus but implement the function module you have to ignore this parameter.

Further information

This function module also exists as the variant FKK_SAMPLE_0496_NOT_TO_SAME_BP in which the logic for a limited distribution is implemented. For more information, see the function module documentation.





Parameters

CT_OP_DEBTOR_LINK
ET_DEBTOR_DET_NOT_POSSIBLE
ET_MESSAGE
EV_TRACE_GUID
IV_COLIO_GUID
IV_COLIO_TYPE

Exceptions

Function Group

FKK_COL_EVENTS

Vendor Master (General Section)   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.

Length: 6263 Date: 20240523 Time: 074431     sap01-206 ( 72 ms )