05-24-2011 12:39 PM
Hi,
We are using Message type u2018MBGMCRu2019 for Goods movement posting.
Each Idoc has few line items (Segment E1BP2017_GM_ITEM_CREATE) with different material numbers. Now if any two consecutive Idocs have common material numbers, the current idoc goes into error without posting the document (Error - Valuation data for material & is locked by the user &). Is there a solution for this (Apart from reprocessing)?
Regards,
Goutham.
05-24-2011 12:52 PM
Hi,
Try this way.. You call the 'ENQUEUE_E_TABLE' and 'DEQUEUE_E_TABLE' function module in program and if you find already the record is locked with the help of SY-subrc then again call the function module in a do-loop unless until the lock is removed.
do.
CALL FUNCTION...'ENQUEUE'.
IF SY-SUBRC EQ 0.
call function..'DEQUEUE'.
exit.
endif.
enddo.
Regards,
Nagaraj