cancel
Showing results for 
Search instead for 
Did you mean: 

Prohibited Shipments to a Country

Former Member
0 Kudos

Is there an "easy" way in SAP to not allow orders to be entered into SAP if it is to a Country that is Prohibited, other than removing the country from SAP configuration? At this time we do not have the Foreign Trade Module set up.

Thanks,

Diane

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

you can take help of your programmer and just insert a two line code in the sales order user exit to give a hard error and not to save the order if the ship to party belongs to a certain country..

Regards

Former Member
0 Kudos

Do you have any samples of what this two line code would be, and where in the code to place?

Former Member
0 Kudos

Hello

Right now i don't have access to SAP..probably anybody else from this group might help you in giving you exact code.

but your programmer should be in a position to help you..

its like this, in the sale order user exit, we have to check whether the country of ship-to-party belongs to restricted country.. if so don't save it or give a hard error.. you can do this at two different locations..

1. when the ship-to-party entry looses focus or

2 .When you click save after you finish the data entry in the sales order..

Thanks

Answers (3)

Answers (3)

Lakshmipathi
Active Contributor
0 Kudos

Try with sale order USEREXIT_MOVE_FIELD_TO_VBAK in MV45AFZZ where you can hard code those restricted countries with the help of ABAPer and define a logic in such a way that if the ship to party in sale order contains any of those listed, sale order should not be saved.

Your ABAPer can definitely assist you in achieving this requirement.

thanks

G. Lakshmipathi

Former Member
0 Kudos

hi

just check may be possible by blocking the ship to party of that country by putting a block in VD05

regards

Former Member
0 Kudos

hi,

Check with the technical consultant whether User Exit V45A0002 be used to restrict the SH based on country