cancel
Showing results for 
Search instead for 
Did you mean: 

Billing split: create split by TAX code

0 Kudos

Hey Guys,

we are trying to implement a split criteria for invoices:

If the items selected for billing have different TAX codes, then the invoice should be split (1 Invoice per TAX code).

How can we define the Tax code of the items?

I know the Konditions in KONP via A002 & A011 are used, but as SAP is doing it anyway, which program/function module can we use to return the Tax code and use it as split criteria?

I hope we do not have to recode the logic!?

We are stuck on thsi topic - PLEASE ADVICE!

Thanks,
TIM


Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182708
Active Participant
0 Kudos

Hi

your requirement to implement a split routine based on the used tax code in the conditions of the items can not be realized.

The simple reason is the processing logic and its timely sequence. When the invoice creation starts, at first the copy routines are executed, then, based on the filling of the decisive fields (VBRK header and header partner data, see note 11162) the check for a split will take place in FORM XVBRK_BEARBEITEN of include LV60AB09.

At this point of time the function PRICING had not yet been executed, this will follow only later.

Therefore the program can not compare the tax codes (XKOMV-MSWK1), since the information is not yet available.

The first item will have already conditions, but when the second item is added, and the split decision is taken, this second item does not, because PRICING is running subsequently.

For custom own split logic you can use an own data transport routine and fill field VBRK-ZUKRI, but of course you can use only the fields that are available, not those of pricing. The standard example routine in the copy control (transaction VTFL, VTFA) on item level is 001 (FV60C001).

Best regards,

Tobias

Shiva_Ram
Active Contributor
0 Kudos

Will this link help?

http://scn.sap.com/thread/3336666

P.S: Please search the forum/web before posting as similar questions might have been answered before.

Regards,