Skip to Content
0
Former Member
Feb 15, 2007 at 05:28 AM

User Exit with MD01 screen

131 Views

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