I am developing a report. My requirement is once the material is set to inactive, i have to reduce the freely usable stock count by one count. I am using the BAPI_GOODSMVT_CREATE, with movement code = '06' (for Tcode: MB11) and i am passing the below parameters.
LWA_ITEM-MATERIAL = '000000000000000059'.
LWA_ITEM-PLANT = '002L'.
LWA_ITEM-STGE_LOC = '999'.
LWA_ITEM-MOVE_TYPE = '551'.
LWA_ITEM-STCK_TYPE = 'ST'.
LWA_ITEM-COSTCENTER = '0000858001'.
LWA_ITEM-ENTRY_QNT = '1'.
In the header, i am passing the posting date and document date as '21.01.2011' as the posting is open only from Dec'10 to Jan'11.
I am getting the error as:
E M7 021 Deficit of SL Unrestr. prev. 1 ST : 59 002L 999.
But when i check the number of stock availabe for the material in MMBE transaction, stock count is more than 9000.
I have made some research in SDN and made some check. But still coundnt solve it.