Skip to Content
0
Oct 05, 2005 at 01:27 PM

IDOC INVOIC/FI, why is vendor line item always at the end?

173 Views

Hi,

I implement an IDOC/EDI solution where some invoices are sent directly to FI module using INVOIC FI message, in SAP R/3 4.7.

Normally, when such invoice is posted manually in the system (e.g. tcode FB01) the users enter vendor line item at the beginning of the FI document(item 001).

When the invoice is posted from IDOC, the vendor line item is always appended by the system as the last item in the FI document which is 'unnatural' for the end users.

After tracing the code in function module IDOC_INPUT_INVOIC_FI

I can see that vendor line item is counted as '1' in internal table beleg_daten[] throught the processing of IDOC. But at the end, in FORM VERARBEITUNG_BELEGENDE, when data is moved from beleg_daten[] to fb01_daten[] and vendor data is always appended as the last line item to be posted here.

Do you have any similar experience and an idea how to influence this behaviour, to get the vendor line item

posted as item 001 in FI document, from IDOC?

Kind regards,

Michal Kunze