‎2010 Jul 07 2:00 PM
Hi Guru's,
I try to copy the sales line item from the billing document to the FI document in line item text (SGTXT).
I know that I have to use an user-exit (EXIT_SAPLV60B_006 or BADI BADI_SD_ACCOUNTING) but I don't know how to find the link between them and if there is a function module to do that.
Anybody could explain how please?
Thanks,
M.
‎2010 Jul 07 7:55 PM
Among other options, you can implement SMOD enhancement SDVFX008. Set the value of XACCIT-SGTXT in a loop according to your requirement. The link to the billing doc item is provided by field POSNR_SD and the link to the sales doc item is provided by fields AUBEL and AUPOS.
‎2010 Jul 07 7:55 PM
Among other options, you can implement SMOD enhancement SDVFX008. Set the value of XACCIT-SGTXT in a loop according to your requirement. The link to the billing doc item is provided by field POSNR_SD and the link to the sales doc item is provided by fields AUBEL and AUPOS.
‎2010 Jul 08 8:40 AM
Hi Brad,
thnak you for your quick response but wen I put a brek point in this user-exit to check how it works and I call the transaction FB03, it doesn't enter in the user-exit.
Are you sure that that is this user-exit?
Regards,
‎2010 Jul 08 9:01 AM
Hi,
Solution given by Brad is correct. This exit is triggered when the billing document is saved and released to accounting. Put the break-point in this exit and save the Billing document in VF01. The control will stop at this exit.
Regards
Vinod
‎2010 Jul 08 9:06 AM
Ok I will try now.
And what is the link between them, I mean to find the good line item to modify.
How can I find it easily?
Regards,
M.
‎2010 Jul 08 1:35 PM
You will have multiple line items per SD line item, linked by the POSNR_SD field as I said. The number of line items depends on your pricing procedure and tax configuration.
‎2010 Jul 09 9:51 AM
Thnks a lot Brad I did what you've said. It works properly;
I should also take the company code since one of the criteria is based on that.
Regards,
M.