Hi,
I am trying to change Storage location for given Handling Units and using FM HU_CREATE_GOODS_MOVEMENT
Issue : there are 2 records,
96211001607348 - HU has wrong Material (Error HU)
96211000054366 - Correct HU (Successful HU)
Funny thing is In custom program if i give Input as, Error HU first, and success HU second, its giving me below error
"No status object is available for HU 1157703" .
But when I give correct HU first and error HU second and everthing is fine. Not sure whats happening here. Please help me.
Below is the code I am using.
CALL FUNCTION 'QAAT_HUMO_REFRESH'.
CALL FUNCTION 'MB_MOVEMENTS_REFRESH'.
CALL FUNCTION 'STATUS_BUFFER_REFRESH'.
CALL FUNCTION 'HU_STATUS_REFRESH'.
CALL FUNCTION 'HU_CREATE_GOODS_MOVEMENT'
EXPORTING
IF_EVENT = '0006'
IF_COMMIT = ' '
IF_TCODE = 'HUMO'
IT_MOVE_TO = IT_MOVE_TO
IT_EXTERNAL_ID = IT_EXTERNAL_ID
IMPORTING
EF_POSTED = I_POSTED
ES_MESSAGE = WA_MESSAGE
ET_MESSAGES = IT_MESSAGES
ES_EMKPF = WA_EMKPF.
COMMIT WORK AND WAIT.
I have seen this kind of issues in SDN but couldn't find exact solution for this. I think I am missing some refresh. Please help me.
Thanks
SB