Application Development 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: 

Split Accouting documents while billing

Former Member
0 Kudos

Hi All,

There is a requirement to split the accounting documents when the billing is done. i.e currently there are only 3 line items in acouting document. The 3 rd line item has to be split 50% into another line item ( say 4th) and appended to accounting documemnts.

Kindly guide me. I found an exit EXIT_SAPLV60B_008, but not sure it can be used or there are better ways to do the same.

Regards,

Shankar

7 REPLIES 7

brad_bohn
Active Contributor
0 Kudos

What type of item is being split? Why don't you use a different condition type and revenue key in the pricing procedure for that and then use a statistical subtotal to show the total value for the two conditions in the billing document?

Former Member
0 Kudos

Hi Brad,

The business model does not support using different condition type as the current spliting is based on a arbitrary condition defined by a customer. Kindly suggest.

Regards,

Shankar

Sandeep_Kumar
Product and Topic Expert
Product and Topic Expert
0 Kudos

Are you using New G/L ? if yrs , this is quite easy .

0 Kudos

Hi Sandeep,

We are using New GL only. So suggest where the exit needs to be codded.

Regards,

Shankar

0 Kudos

Hi Sandeep,

Can you share the convenient method you are mentioned. Thanks in advance.

Regards,

Shankar

former_member213437
Active Participant
0 Kudos

Hi Shankar,

First find the length of the third line item like,

data: a char 10,

b char 10,

litm_1 type char255,

litm_2 type char255.

a = strlen(Third line item).

b = a / 2.

litm_1 = third_line_item+0(a).

litm_2 = third_line_item+a(b).

now you have first half in litm_1 and second half in litm_2.

Regards,

Murthy.

0 Kudos

Hi Murthy,

I think you got my requirement totally wrong. I meant splitting into two GL Accounts, not the length separation.

Regards,

Shankar