cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict sales orders with past delivery dates

Former Member
0 Kudos

HI,

System picks the delivery date in a sales order as todays date. However when if the user changes the date to a past date it is allowed.

I need to restrict creation of sales orders with past delivery dates. Can anyone advice on how this can be done?

Thanks

Keshi

Accepted Solutions (1)

Accepted Solutions (1)

sailaja_vadlamudi
Contributor
0 Kudos

Hi ,

delivery date will be proposed by the system depending on the availability check .

You can check it from the system and do the backward scheduling

these are the availability checks

1. Customer-Material Information

2. Ship-to party customer master record

3. Material master record

Sail

Answers (4)

Answers (4)

Former Member
0 Kudos

Since you want to restrict your user for chane in the date . you can use this exit as other option where you can use the logic of if the Date field is changed it will not allow the user to save the document or will give a warning message.

MV50AFZ1

USEREXIT_SAVE_DOCUMENT_PREPARE

Hope this helps

Cheers

rmazzali
Active Contributor
0 Kudos

if you need a message make a user exit in mv45afzb:

FORM USEREXIT_CHECK_VBAK USING US_DIALOG. for header control

FORM USEREXIT_CHECK_VBAP USING US_DIALOG. for item control

also you can make some little customizing to avoid the backward scheduling at order level ( eg: no schedule lines in the past)

goto: SPRO: sales->basic function->delivery schedul.->define schedul. tp. for sales doc.

The third column flag disables/enables the backward scheduling. Read F1 documentation on the field.

Roberto

Manoj_Mahajan78
Active Contributor
0 Kudos

Keshini,

IN VOV8 check indicator -Propose delivery dates...

Also check other settings in this which defines delivery dates like lead time etc..

If not below are userexits used for delivery-

V02V0001 Sales area determination for stock transport order

V02V0002 User exit for storage location determination

V02V0003 User exit for gate + matl staging area determination (headr)

V02V0004 User Exit for Staging Area Determination (Item)

V50PSTAT Delivery: Item Status Calculation

V50Q0001 Delivery Monitor: User Exits for Filling Display Fields

V50R0001 Collective processing for delivery creation

V50R0002 Collective processing for delivery creation

V50R0004 Calculation of Stock for POs for Shipping Due Date List

V50S0001 User Exits for Delivery Processing

V53C0001 Rough workload calculation in time per item

V53C0002 W&S: RWE enhancement - shipping material type/time slot

V53W0001 User exits for creating picking waves

VMDE0001 Shipping Interface: Error Handling - Inbound IDoc

VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)

VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)

VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)

Of which I think V50S0001 User Exits for Delivery Processing will be appropriate for you...Speak to ur ABAPer regarding the usage..

REWARD Points If U finds this as useful...

Regds

MM

Former Member
0 Kudos

Hi..

I need to give an error when a user enters delivery date which is in the past. right now it gives just an information message,

Can we do anything in config to make it an error message?

Thanks

Keshi

Former Member
0 Kudos

Hi

You can try using the incompletion log in IMG SD > Basic Functions > Log of Incomplete Items

Former Member
0 Kudos

hi,

I think this we cannot do in configuration. This is a standard System message. You need to use some Userexit for this.

Keshini,Please update the group on this thread.

Sam