Skip to Content
0
Former Member
Jun 22, 2016 at 10:18 AM

Error while changing batch status, message M7661, return code 5

7913 Views

Hi Dears,

Searched through the forum but have not got any usefull advice. All are either for the same message with different return code or are not providing a solution.

So. the issue is following:

The batch status management is customized. I have that radio-button to change restricted-unrestricted use stock in batch master.

Batches are managed at material level. So I enter only material and butch at the header, switch the button and save. I expect status to change and mat doc with 341MvT generated. But instead of this I'm getting an error message Error 5 in posting for status change

I've read the documentation for the FM, so I know that

16 Initialization incorrect
15 Header data incorrect
11 Error when reading material master records per PREFETCH
10 Error when reading material short texts per PREFETCH
08 Allocation of IMSEG to EMSEG incorrect
07 Error when correcting an item
06 Error when creating an item
05 No item generated
04 It is only permitted to post all items; however, there is at least one incorrect item
03 Error when posting the document
02 Allocation of IMSEG to EMSEG incorrect
01 Allocation of YMBUZ to XMSEG incorrect


but "No item generated" does not seem clear for me.


I'm not really good in debug, but as far as I see the FM is doing multiple checks changing return codes EMKPF-SUBRC. And the current value of this parameter leads to one or another checks. So, my sequence of EMKPF-SUBRC values is 0-16-15-14-11-9-6-5 and then it exits with the error.


In customizing for MvT there are no any mandatory fields at header.


Kindly asking to share your experience if any or advise with possible solution.


Thank you,


Anton