Uderc programming article aggregator sites

Restrict Shipping conditions on the Sales Orde Header Document

Tags:
Answers: Have 4 answers
Advertisement
Hi,
I have a unique requirement
We have a large pool of shipping conditions for our products namely
Overnight
One day
Ground
International
Saturday Delivery etc
Hazard Overnight
Hazard Ground
We have a few hazardous materials for which we want to restrict the shipping conditions to only 2
i.e
Hazardous Overnight
Hazardous 3 Day
in sales order creation.
What i mean is tht any time a sales order is created for these hazardous material,the customer service representative should not be able to select any other shipping conditions expect
Hazardous Overnight
Hazardous 3 Day
In Standard SAP we can have the shipping condition defaulted from the customer master in the sales document.However if required we can manually go and change the shipping conditions to any thing different.
How can i restrict this for specific materials though?
Thanks
Advertisement
The best answer: >
Dspsac wrote:
> What i mean is tht any time a sales order is created for these hazardous material,the customer service representative should not be able to select any other shipping conditions expect
>
> Hazardous Overnight
> Hazardous 3 Day
> Thanks
If the question is "can we limit the list that appears in the drop-down box to these 2 selections" then the answer is "No".
But in a user exit you can trigger an error message if the users select an invalid shipping condition. As correctly suggested above, this can be done in MV45AFZZ include.
There are various routines that are triggered at different times. You may be able to use USEREXIT_MOVE_FIELD_TO_VBAP or USEREXIT_MOVE_FIELD_TO_VBKD (if "shipping conditions" are stored in VBKD-VSART).