Purchase Order Scheduling ATP Screen
Does anyone know how to deal with the standard purchase order scheduling user exit in SD?
Rajesh K 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
rv03v-mbdtl = atptermx-mbdat.
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.
rv03v-etdtl = mdve_diax-dat02.
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.