Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Purchase Order Scheduling ATP Screen

Does anyone know how to deal with the standard purchase order scheduling user exit in SD?

Former Member
Former Member replied

I had to change the standard program after getting access keys. I used memory id to determine whether the custom logic should be fired. We had some custom checks based on which the dely date had to populated so am including only the code where the date is finally copied.

In include LATP4FD9 - move the desired date to the schedule line date - Line 194

  • updated material availability date is stored in ATPTERMX

READ TABLE atptermx WITH KEY tline = mdve_diax-tline

TRANSPORTING mbdat.

rv03v-mbdtl = atptermx-mbdat.

*{ INSERT

DATA EXIT_FLAG2(1).

IMPORT EXIT_FLAG1 TO EXIT_FLAG2 FROM MEMORY ID atpcsx-delnr.

IF NOT EXIT_FLAG2 IS INITIAL.

RV03V-ETDTL = RV03V-WZTER.

FREE MEMORY ID atpcsx-delnr.

ELSE.

*} INSERT

rv03v-etdtl = mdve_diax-dat02.

*{ INSERT

ENDIF.

*} INSERT

The memory id can be populated in USEREXIT_AVAILABILITY_IN and then retrieved in above code. You can debug, change the values and see the results before implementing the code.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question