Skip to Content
0

Cannot change batch valuation type - M7018

Oct 28, 2016 at 01:49 PM

81

avatar image
Former Member

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"
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Oct 31, 2016 at 10:01 AM
0

I actually may have found the solution. It appears that I have to apply SAP note 215850.

I'll try that and report it back.

Share
10 |10000 characters needed characters left characters exceeded