07-30-2014 1:12 PM
Hi all,
I am using BAPI_GOODSMVT_CREATE for stock posting from quality inspection to unrestricted usage Stock against quality inspection lot(not by MB1B) using mvt type 321.The material doc gets created by the BAPI,but actual stock posting is not taking place ie.the stock doesn’t get reflected in QA33/32 and QA11 also .Can any one suggest what must be wrong?The inputs given are as follows:
GOODSMVT_HEADER:
PSTNG_DATE =30/07/2014, DOC_DATE = 30/07/2014, REF_DOC_NO = INSP LOT NO.
GOODSMVT_CODE:
GM_CODE: ‘04’ .
GOODSMVT_ITEM:
MATERIAL = MATERIAL NO
PLANT = PLANTCODE
STGE_LOC = ‘WIP’
BATCH = BATCHNO
MOVE_TYPE = ‘321’
ENTRY_QNT = 100
ENTRY_UOM = ‘EA’
ORDERID = Prd ord no.
After executing this I used BAPI_TRANSACTION_COMMIT also. I am able to see the posted qty in MMBE,but it is not reflecting in QA11/33/32.
Kindly help me.
07-30-2014 1:20 PM
You have to do Auto UD of the Quality stock before the movement.
Use FM QAVE_PROCESS_AUTO_UD for Auto UD before actual movement.
07-31-2014 7:55 AM
Hi Naveen,
Thanks for the reply. Even after using FM QAVE_PROCESS_AUTO_UD,when i execute
BAPI_GOODSMVT_CREATE, the same thing is happening.I am unable to see the stock deducted in QA33.
Is there any input in the goods mvt bapi where we can provide inspection lot no since i believe that the goods mvt has to get connected with the inspection lot.
07-31-2014 8:07 AM
You have to consult functional consultant (for correct input on movement type and special indicator) for proper consumption of stock.
I think you have to use
331 | Withdrawal for sampling from quality inspection |
07-31-2014 8:32 AM
i think u need to give order item , if reservation nos also there for that production order and item specify rsnum and rspos in the item details check in this way and confirm back.
Regards,
Siva
07-31-2014 10:40 AM
Hi Siva,
I tried it,but still no result.do i have to input inspection lot no somewhere in the Bapi?if any one has encountered this problem before,plz do let me know the inputs for the BAPI.
07-31-2014 11:13 AM
if u post through mb1b is it affecting the qa11,qa33.
Regards,
siva
07-31-2014 11:34 AM
Hi Siva,
By using BAPI_GOODSMVT_CREATE the qty gets posted through MB1B only.Hence it is not reflecting in QA11 & QA33. The 'tcode2' field in MKPF table for the material doc no that is getting generated by the BAPI is 'MB1B' and not 'QA11'. What can i do or what bapi and inputs to use so that the posting is done through QA11?
07-31-2014 11:52 AM
it is the problem with inspection type configuration it seems check with the QM consultant... http://benxbrain.com/en/QM-inspection-for-movement-321-and-322-thread-01-0002119092.html check this link might be helpful
Regards,
Siva Prasad.
07-31-2014 12:56 PM
There is no problem in configuration since the posting is successful when done through QA11 without using BAPI.
07-31-2014 1:05 PM
check did u miss any special stock category indicator..
Regards,
Siva Prasads.
07-31-2014 2:16 PM
Special stock category is blank.I checked in the MMBE tcode for the material for which i did manual QA11. I also put the order item no and order no in the BAPI. When I put Reservation no and the reservation item no of the FG ,it shows error that for the reservation no and the reservation item no,no
movements can be posted.Also if i enter another reservation item no,it shows error since these are raw materials.