Add line to GL, Accounting document VL01
I have a bit challenging requirement where we need 2 more lines in the Accounting document based on the payment type.
This can not be configured by functional guys as the Tax code for these two LIs is not needed and in one document they can have only one tax code or none.
So, once the billing document is ready from SD module, I somehow need to hook-in and create 2 more LIs. USER_EXITS is the ans. here is the one I found for this point:
SDVFX002 User exit for A/R line in transfer to accounting.
Can not use: SDVFX004 User exit G/L line in transfer to accounting as this allows only one structure manipulation not the whole table. SDVFX008 User exit: Processing of transfer structures SD-FI, provides data before billing document data is gathered, hence I don't know how adding lines to the 'xaccit' table here will help or what data exactly will help.
Please provide your valuable input if you have been through such/similar requirement.
Thanks n regards