Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

FI Document line item text

mrahhaoui
Participant
0 Likes
2,707

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.

1 ACCEPTED SOLUTION
Read only

brad_bohn
Active Contributor
0 Likes
1,973

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.

6 REPLIES 6
Read only

brad_bohn
Active Contributor
0 Likes
1,974

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.

Read only

0 Likes
1,973

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,

Read only

Former Member
0 Likes
1,973

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

Read only

0 Likes
1,973

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.

Read only

brad_bohn
Active Contributor
0 Likes
1,973

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.

Read only

0 Likes
1,973

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.