02-15-2007 5:28 AM
Hi All,
In MD01 screen, you can find a field called <u>'User exit Parameter</u>".
The user will have 3 options to input the data into this field.
1. The User can enter single value... ex: E01
The user exit will execute the MRP Run based on this single value.
For this scenario, i have SAP standard code as follows.. (Pgm name: LXM61F01)
Here UXPAR will contain value 'E01'.
WHEN 'Z1'.
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.
2. The user can enter multiple values... ex: E01, E03, E09.
The user exit should take these valuse into account and run the MRP.
The above code is meant for single value.
Now i have to develop the code for this scenario. How to build logic for this scenario as the UXPAR will have value "E01, E03, E09"...????
3. The user can enter values in range format... ex: E01-E05.
The user exit should take E01, E02, E03, E04 and E05 to run the MRP.
How to build the logic for this scenario..?????
Please Help me........
Regards
Pavan
02-15-2007 6:05 AM
USER_PAR is string of characters so it is upto your requirement how you can control user to enter value....If user is allowed to enter value as per your example then you have to build logic in your program to manipulate that string. ex
1) if user enters multiple values then you can use user_par0(3), user_par3(3) etc to extract individual values.
02-15-2007 5:59 AM
Can anyone please look into this issue and help me out...????
Really appreciate your guidance in this regard....
Regards
Pavan
02-15-2007 6:05 AM
USER_PAR is string of characters so it is upto your requirement how you can control user to enter value....If user is allowed to enter value as per your example then you have to build logic in your program to manipulate that string. ex
1) if user enters multiple values then you can use user_par0(3), user_par3(3) etc to extract individual values.