cancel
Showing results for 
Search instead for 
Did you mean: 

Delivery inot to be allowed in back date

Former Member
0 Kudos

Hi All !!!!!!!!!!!!

The scenario is for Make to Order - Its in AFS.

Sales Order created on 01/10/2009, then the production order is triggered for the same and GRN is done on 21/10/2009. Now the stock is showing in unrestricted category. Now when we create the delivery for the same the PGI is happening even on 02/10/2009. Now when the GRN date is 21st delivery should not be created before 21st but the system is creating the delivery even on 02/10/2009.

How to check this that the the deluivery for the sales order should only happen after the GRN date and not before that.

Kindly help ASAP

Regards

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This is the standard SAP functionality, irrespective of the date system will allow you to post the material document with in that period.

e.g. If the GR has been don on 15.10.2009 then you can issue that material on 01.10.2009 and even on 30.10.2009.

But if GR is done on 15.10.2009 and you want to issue the material on 30.09.2009 then system will show you an error. As the stock is not available in Period 06 (i.e. September). As system check the stock period wise.

So for your solution, you can put the condition in Delivery --> Include MV50AFZ1 -->FORM userexit_save_document_prepare, then fetch all the movements happened against that Batch. Sort the list with Posting Date. Check with Credit/Debit Indicator. Then finally you can get the remaining stock on some particular date. Now check this date with the Actual GI Date.

But I will prefer not to use such kind of solution, as it will bring inconsistency in your system. Because in this case, only the PGI is dependent on dates. But the remaining movements will depend on the logic of PERIOD only.

So you can simply put a condition that Actual GI date should not be less than Current date, if it suits your requirement.

Regards,

Vishal

Edited by: Vishal Gupta on Oct 28, 2009 4:42 PM