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

MD01 User-exit

Former Member
0 Likes
414

Hello everyone,

I'm having some difficulties understanding the user-exit for transaction MD01. My colleague has created a new user exit key Z01, and now we would like to add to the user parameter a list of MRP's, not only one.

As stated in the code example, i can start by adding to the user-exit the following (for one MRP):


 CLEAR: NO_PLANNING, STOP_PLANNING.
  CASE USER_KEY.

   WHEN 'Z01'.
      UXPAR = USER_PAR.
      CONDENSE UXPAR.
      WRITE UXPAR+0(3) TO DISPO.
      IF DISPO IS INITIAL.
        EXIT.
      ENDIF.
      IF MT61D-DISPO <> DISPO.
        NO_PLANNING = 'X'.
      ENDIF.

I believe that in this piece of code, the MRP is passed to variable DISPO and that's it. But what if instead of choosing one MRP, i want 3 or 4, added to user parameter like this:

100,200,300,400

Can anyone help me ?

Thank you in advance to all.

Nuno

Solved it on my own.

1 REPLY 1
Read only

Former Member
0 Likes
373

Solved it on my own.