cancel
Showing results for 
Search instead for 
Did you mean: 

Customer Master & Sales Order

former_member1257031
Participant
0 Kudos

Hi Experts ,

We have a scenario as below.

A certain Customer say XYZ is valid for 3 countries say china , japan ,Eur .In XD01 for this customer in billing part and Tax portion we have maintained Tax country as China ,japan ,Eur and Tax Classification as 0,0,0 for this customer .Some values of this Tax classification for some countries may be blank also.

Now we have a sales order where in the header section (Additional Data Tab) we have a field called "TAX".

We want to keep a condition that if the customer has China in customer master "tax country" column he should maintain "0" in Tax field in SO , other wise he wont be able to save the sales order.

How should we proceed.

Thanks in advance

MM

Accepted Solutions (1)

Accepted Solutions (1)

bastinvinoth
Contributor
0 Kudos

you can display one error msg or warning msg before saving the sales order,

based on that user can go and change the tax field in SO.

User Exit: MV45AFZZ

USEREXIT_SAVE_DOCUMENT_PREPARE  / USEREXIT_SAVE_DOCUMENT

Regards,

Bastin.G

former_member1257031
Participant
0 Kudos

Hi Bastin ,

Thanks for response . But I want to display the warning /error msg only for China Customer . How to do implement that .

jpfriends079
Active Contributor
0 Kudos

Hello MM,

With help of your technical consultant, you might need to write logic based customer country fetched from address of Ship-to Party.

Thanks, JP

former_member184080
Active Contributor
0 Kudos

Hi MM,

If you are looking for China customer only, then you have to proceed with enhancement by taking help from ABAP.

Regards, Sai Krishna.

Answers (3)

Answers (3)

former_member184080
Active Contributor
0 Kudos

Hi MMDT,

How do you determine for which country customer you are delivering it? There should be an identification atleast in order to know to which country we have to ship the stock?

If you can help us to understand we may have better solution for this.

Regards, Sai Krishna.

former_member1257031
Participant
0 Kudos

Hi Krishna ,

We can identify it from Ship to party address.

former_member184080
Active Contributor
0 Kudos

Hi MM,

Yes, you have to proceed with exits mentioned by others by taking SH country as the check point.

Out of all these, I would also like to ask you is this requirment is to pick up "0" tax if the ship to party = China. If so, have you explored the option of keeping Ship to party region in your tax related condition type access ?

In standard SAP we have condition type JCST, if you look the access sequence of this consition type you may get some idea. If that satisfies your requirment, you can think of copying JCST and customize according to your requirment.

If this is not your requirment, then the exits are the only option leftout.

Regards, Sai Krishna.

former_member1257031
Participant
0 Kudos

Thanks all...I guess I have to use Exits only..closing the case.

Shiva_Ram
Active Contributor
0 Kudos

You need to fulfill through user exit USEREXIT_CHECK_VBAK or USEREXIT_CHECK_VBKD in program MV45AFZB.

Regards,

former_member1257031
Participant
0 Kudos

Hi Shiva ,

So what I guess from the replies above I need to  fulfill this by adding those conditions in the above User Exit.

former_member186385
Active Contributor
0 Kudos

Hi,

This is not possible in standard, this could be achievable using some exists

Check MV45AFZZ standard exist and do appropriate settings

regards,

santosh