3.12.10

SAP Note 20031 - ME22, ME32: EM 06007 after order acknowledgment entry .

Symptom

"Change purchase order" (ME22) or "Change outline agreement" (ME32). If you change an item on the overview screen, then immediately choose the menu option "Header -> Order acknowledgment", enter a number and choose "Copy" (adopt), the error message 06007 ("This function not allowed here") appears.

Cause and prerequisites

The order acknowledgment dialog box is called up in FCODE_CALL. Then module FCODE is processed. There OK-CODE = SELFCODE is set. The latter is set to AUFB because it was set during LOOP in module CALL_BSTPOS (only if an item was changed). However, the entry with AUFB and control indicator 2 = ' ' does not exist in table T168.

Solution
Cf. correction numbers in this note.
Prior to this the error can be rectified as follows:
Program MM06EI0R, MODULE RM06E-LABNR:

CLEAR OK-CODE.
IF SELFCODE = 'AUFB'. "<--- einfügen / insert
CLEAR SELFCODE. "<--- einfügen / insert
ENDIF. "<--- einfügen / insert
CLEAR RM06E-LABNR.

No comments:

Post a Comment