cancel
Showing results for 
Search instead for 
Did you mean: 

How to restric using last month SO in the delivery

Former Member
0 Kudos

DEAR ALL,

I want to control on using old SO in delivery. For example in the month of march the system should not allow to use SO of FEB. The moment enduser type T-code vl01n and put SO number, in backround system shoud verify the SO date and restrict user not deliver any qty. against the old SO.

Nikhil

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Nikhil,

It can be also done using following.

1) Frist create contract with validity period that ends on last day of that month e.g. 31st march. (Put error message on expiry of

validity period not the warning.

2) Create order (va01)with reference to this contract and deliver(vl01).

3) If u try to create new in next month system will give error for validity period.

4) Authorization:

Give authorization to create & display contract. Do not give authorization to change contract.

This way you can control creation of order & delivery in next month.

OR else use scheduling agreement in the same way.

Thanks & regards,

Shailendra

former_member209761
Active Contributor
0 Kudos

Dear Nikhil,

1) You will have to bring the date field ( End date MM/YYYY ) in the sales order

2) Identify an exit while doing VL01N.

The logic should be if the MM/YYYY in system date (DD/MM/YYYY) is greater than the END DATE (MM/YYYY) , system shouldn't allow creating the delivery.

It is possible to fulfill your requirement through this logic.

Please explore in this direction with the help of your abaper and revert back.

Thanks & Regards,

Hegal

Edited by: Hegal . K . Charles on Mar 18, 2010 5:51 PM

Former Member
0 Kudos

You can do MASS transaction through which you can put Delivery Block VBAK - LIFSK at Header level.After this , the Sales order will remain open but will not allow to do the Delivery.

You can get all the Sales orders for the month of Feb'10 through Table VBAK or through VA05.

Best Regards,

Ankur

Former Member
0 Kudos

Dear Ankur,

Thanaks for the reply. Good suggestion but faced on problem when the schedule line is complete system don't allow to put delivery block at header level. The same happending with us when we are closing the SO on mass level by puting reason for rejection. AS per the standard SAP when schedule line is complete the SO is closed but enduser can go to Va02 and can change the qty and can use to SO. Which we want to stop.

Anyway thanks for the suggestion.

Nikhil

Former Member
0 Kudos

Hi

Kindly write a BDC & run a program at the month begining for the old orders to put reason for rejection for not allowing to do the delivery

REgards

|Damu

Former Member
0 Kudos

Thanks for the reply. We are allready clsoing SO on mass level but still system is showing some so as open like for those SO schedule line in completed system don't allow to put any reason for rejection in SO. As per the Std SAP so is closed but if you go to va02 you can change the qty and can use the SO. We have allready tried I need other solution.

Nikhil