Skip to Content
0
Former Member
Jul 31, 2009 at 12:39 PM

MRP run only for certain MRP controllers

300 Views

Hello all,

we have a daily batch job running with the program RMMRP000.

Now we only want it to run for materials with MRP controllers 001, 002 and 003.

So I have created a variant with user exit key 123 and User exit parameters 001 002 003.

The user exits are active and when I debug it, the program goes to the exit.

I have put this code into these user exits: EXIT_SAPLM61C_001 (INCLUDE ZXM61U02) and EXIT_SAPMM61X_001 (INCLUDE ZXM61U01).

&----


*& Include ZXM61U02 *

&----


CLEAR: NO_PLANNING, STOP_PLANNING.

CASE USER_KEY.

----


  • materials with MRP Controller = 001 or =002 or =003 only

----


WHEN '123'.

IF ( MT61D-DISPO <> '001' ) AND ( MT61D-DISPO <> '002' ) AND (

MT61D-DISPO <> '003' ).

NO_PLANNING = 'X'.

ENDIF.

----


  • materials with MRP Controller = 002 only

----


WHEN '002'.

IF MT61D-DISPO <> '002'.

NO_PLANNING = 'X'.

ENDIF.

----


  • materials with MRP Controller = 004 Only

----


WHEN '004'.

IF MT61D-DISPO <> '004'.

NO_PLANNING = 'X'.

ENDIF.

ENDCASE.

Now the problem is, it is still using MRP controller 004 in the daily MRP run.

So what am I doing wrong??

Thanks

Anne

Edited by: Anne on Jul 31, 2009 2:40 PM

Edited by: Anne on Jul 31, 2009 2:41 PM