Application Development 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: 

User Exit with MD01 screen

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

Can anyone please look into this issue and help me out...????

Really appreciate your guidance in this regard....

Regards

Pavan

Former Member
0 Kudos

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.