cancel
Showing results for 
Search instead for 
Did you mean: 

future week delivery restrict

venu_ch8
Active Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Venu,

try BADI LE_SHP_GOODSMOVEMENT, method CHANGE_INPUT_HEADER_AND_ITEMS.

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

Regards,

JM

Answers (2)

Answers (2)

sez41
Active Contributor
0 Kudos

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.

Lakshmipathi
Active Contributor
0 Kudos

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

G. Lakshmipathi

venu_ch8
Active Contributor
0 Kudos

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.