Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Using USEREXIT_AVAILABILITY_OUT

Former Member
0 Likes
1,185

If anyone has used the above user exit for carrying out availability checks, then please tell me how to use it. I want to change the 'Dely/Conf date' and 'Confirmed Qty' on the availability control screen but no success so far. There is no documentation available on this exit as well

PS: I am using VA02 and this user exit is called from routine MVERF_PRUEFEN in include LV03VF0M.

Edited by: hiFlier on Feb 26, 2009 8:30 AM

5 REPLIES 5
Read only

Former Member
0 Likes
880

We have the same issue...did you find a solution? Help! Let me know. Jeremy

Read only

0 Likes
880

Yes, finally I made it run. But not through the exits. They do not help at all (unless SAP has some trick to make it work!).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 checks based on which the dely date had to populated so am including 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 as well. Cheers!!

(Alas, I don't think I can get points for my own post..lol)

Read only

0 Likes
880

I just sent you a link respond to that and I will award full points.

Read only

0 Likes
880

hey... thanks.. i just replied to your post.. Hope the solution worked for you ?

Read only

Former Member
0 Likes
880

Solved myself