2009 Mar 03 10:43 AM
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
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
2009 May 12 9:28 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |