Skip to Content
0
Former Member
Oct 28, 2016 at 01:49 PM

Cannot change batch valuation type - M7018

427 Views Last edit Oct 28, 2016 at 10:28 AM 2 rev

Hello!

I'm currently trying to find a way to goods issue a material in MIGO but I'm getting an error saying the batch valuation type is different from the stock valuation type. I went into MSC2n and tried to change the valuation type on the batch but it's returning an error (Enter Stor. Location *code M7018*). I've done some debugging and it looks like the program is searching for MSEG entries (using material and plant values) and checking if the storage location is there. Turns out I do have a couple of entries with no storage location values, which is probably why I'm not able to change the valuation type.

I'm not exactly sure what I'd need to do in this case. Has anyone ever experienced this?

Maybe there's an easier way to fix this? I've tried doing a transfer posting from one batch to another (with the correct valuation type) and that didn't work.

37	  IF SY-SUBRC IS INITIAL.
38	    IF NOI_TAB = 'MSEG' AND NOI_FIELD = 'UMCHA'.
39	      MESSAGE E018 WITH LS_DFIES-FIELDTEXT.
40	    ELSE.
41	      MESSAGE E018 WITH LS_DFIES-SCRTEXT_M. *IT GOES HERE
42	    ENDIF.
43	  ELSE.
44	    MESSAGE E018 WITH NOI_TAB NOI_FIELD.
45	  ENDIF.


***NOI_TAB value is "MSEG" and NOI_FIELD is "LGORT"