Ansicht
Dokumentation

FKK_SAMPLE_0081 - Example 0081: Add Missing Segment Assignment

FKK_SAMPLE_0081 - Example 0081: Add Missing Segment Assignment

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The function module called up for event 0081 can enter a segment in the line items where not segment is assigned.

In the tables T_FKKOP and T_FKKOPK transferred, you can change the content of the field SEGMENT. However, the changes only take effect if

  • The field was initial before
  • The assignment of segments is generally active in the company code concerned
  • The item is not a general ledger item in a tax account or bank account (generally: Account relevant for movement of money)

Note that you cannot change the sort sequence of tables T_FKKOP and T_FKKOPK.

The document header I_FKKKO and table T_FKKCL are only for information purposes. You cannot change date here.

A document is created in two stages. The document creation program (for example, invoicing or payment program) creates certain line items and indicates items that are to be cleared. Based on the internal processing, further items arise derived from these (for example, rounding differences, company code clearing, cash discount, exchange rate differences, down payments/budget billing payments, non-statistical charges receivables, interest receivables, revenue and tax items to the items previously mentioned).

For these items, the segment is generally transferred from the triggering posting items (example: Exchange rate differences or cash discount inherit the segment of the business partner item(s) that caused the posting). If no segment is assigned in such segments, this indicates that no segment was assigned in the triggering item.

In this case, you may require an alternative derivation logic for the segment or no derivation logic at all. Parameters I_HIGH_EXT_POS_OP (highest business partner item transferred by program creating documents) and I_HIGH_EXT_POS_OPK (highest G/L account item transferred by program creating documents) indicate which line items are supplemented internally.

Dependencies

If segment fields remain initial, the standard logic is applied. This standard logic tries to inherit unique segments from the offsetting items. If this is not possible, it tries to assign standard segments in accordance with Customizing of posting area 0300. The standard logic is not applied to items created internally with the exception of tax items and rounding items.





Parameters

I_FKKKO
I_HIGH_EXT_POS_OP
I_HIGH_EXT_POS_OPK
T_FKKCL
T_FKKOP
T_FKKOPK

Exceptions

Function Group

FKML

BAL_S_LOG - Application Log: Log header data   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 2986 Date: 20240523 Time: 065215     sap01-206 ( 65 ms )