Skip to Content
0
Former Member
Feb 15, 2011 at 09:56 AM

How to derive tax_code from contract to purchase order

31 Views

Hi all,

This is the scenario:

In my project we have four tax_code types: Z1, Z2, Z3 and Z4.

I have created a SC with tax_code = Z1, and a CTR with tax_code = Z3, and I want to create a PO from Carry out Sourcing.

In this place in "Assign Sources of Supply" y assign the contract to de SC and I create a Draft to PO.

When I process the draft the PO is created with the tax_code of the SC (Z1) not with the tax_code of the CTR (Z3).

I want to pass this tax_code to the PO.

I've created a new implementation of the badi BBP_DET_TAXCODE_BADI. In this place I've put the code for do it, and by debugging i can see that the tax_code is transmited properly.

But when the PO is created still has the tax_code of the SC (Z1).

Any idea?

Thanks in advance.