Skip to Content

future week delivery restrict

Dear SD Gurus,

Any exit available to restrict PGI with future week as we are creating sales orders in the format of week

Ex: Jan 1st sales order created and S.lines confirmed on 2nd Jan ---It is 1st week

Now in the delivery vl01n, If I keep the delivery date 10th,system should restrict to go for delivery since it is 2nd week.

In above case system will allow till 7th as it is under first week.

How we can control above one.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 06, 2016 at 12:54 PM

    Hi Venu,


    Ask for the help of an abaper to implement your defined logic.



    Add comment
    10|10000 characters needed characters exceeded

  • Apr 06, 2016 at 10:32 AM

    Hi Venu,

    I guess you mean to say, if schedule line is confirmed for week N, GI date should not be week N+1? In this case material movement is not being made on future date (which naturally won't be allowed) but, not more than one week after schedule line confirmation date.

    You can prevent this by writing a piece of code on program MV50AFZ1, FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

    Bear in mind that in this case, if schedule lines are confirmed for Friday but physical goods issue is happening on Monday, you would have an error and you should be changing GI date to friday. In a disaster scenario, if Friday is the last day of month and month closing is done on Monday morning, well, you get the idea.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 06, 2016 at 10:06 AM

    Do you mean to say, in your system, it is allowing you to post the goods issue at future date?

    G. Lakshmipathi

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sir,

      As of now we cant create PGI with future date at all.

      I Found one exit to allow future date PGI but it will be only current month only.

      But In my current company we need to do PGI with future week like ( 10 Week ,)

      Ex : Sales order s.lines confirmed with 10th week.

      Like below given screen shot.

      In this case we should create the PGI only the dates from 16th week.

      Suppose if I try to create pgi with 20th week system should give block.

      V50s0001 But this wont solve my issue.

      1.PNG (3.0 kB)