cancel
Showing results for 
Search instead for 
Did you mean: 

Deviation country in billing intercompany flow

Former Member
0 Kudos

Hi Gurus,

During Billing for intercompany flow, I got the following error message "Deviating country where taxes are levied in Document ".

Supplying Company Code: SCA (with Country code GB)

Supplying Plant: SPA (with Country code US)

Receiving Company Code: RCB (with Country code NL)

Receiving Plant: RPB (with Country code NL)

When I created the intercompany billing, SAP gets Country code GB (instead of US). This is very confusing because the deliverying plant is in US and not in GB. Is it normal?

It seems that SAP get the Country code from the Supplying Company code instead of the Supplying Plant.

How can we solve this issue?

Intercompany can not be correctly created (with correct costs, tax and so accounting documents).

Thanks a lot for your help.

Stéphane.

Accepted Solutions (1)

Accepted Solutions (1)

Lakshmipathi
Active Contributor
0 Kudos

Can you please let me know what country is assigned for Plant SPA in OX10. Also there is tax related fields both in VBRP and KOMK (not sure the field name). Please check these tables and update the forum.

thanks

G. Lakshmipathi

Former Member
0 Kudos

Thanks for your help.

In OX10, Plant SPA (Supplying Plant), Country key = GB

VBRP-ALAND = GB

VBRP-LLAND_AUFT = NL

KOMK is a structure, I can not display the entries of this one.

I used SE12. We have only the format.

Former Member
0 Kudos

Hi,

I understand now why I got the issue on Deviation country.

Supplying Company Code: SCA (with Country code GB)

Supplying Plant: SPA (with Country code GB)

There is specific code in User-Exit userexit_pricing_prepare_tkomk called during billing document creation.

This one change the country of the delivery plant with FR which get from shipping point.

Just after SAP detects that the initial country is different than the final country for the Supplying Plant.

This situation is quite tricky because the Stock of Supplying plant is physically in the Receiving Compagny code (in FR) but the owner of this Stock is the Company code of the Supplying plant (in GB). The Stock is linked to the Supplying plant.

It means that I try to create the invoice from the Supplying plant with country code in GB and a shipping point in FR.

So why I got the message.

For now, I didn't find the way to solve this situation.

Propositions:

1 - Create a virtual Shipping point in GB but it is not a SAP Best practise

2 - Change Country key in Supplying Structure organization. Impossible, too complex and too huge impacts

3 - Try to overwrite the initial value xvbrk-landtx with the value we change in the user-exit

For your information:

See below lines of code for deeply analyzis

In program LV60AA58:

Perform userexit_pricing_prepare_tkomk.

  • Überprüfen, ob das Steuerland für die Preisfindung und im

  • Fakturakopf übereinstimmen

if xvbrk-landtx ne space and xvbrk-landtx ne tkomk-aland.

message s135 with xvbrp-vgbel xvbrp-vgpos.

endif.

In the User-exit userexit_pricing_prepare_tkomk:

select single aland from tvst into tkomk-aland

where vstel = tkomk-vstel.

Many thanks.

Stéphane

Answers (0)