Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in BAPI for stock posting from quality inspection to unrestricted usage

0 Kudos

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.

11 REPLIES 11

naveenvishal
Contributor
0 Kudos

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.

0 Kudos

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.

0 Kudos

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

331Withdrawal for sampling from quality inspection

sivaprasad_paruchuri
Active Participant
0 Kudos

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

0 Kudos

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.

0 Kudos

if u post through mb1b is it affecting the qa11,qa33.

Regards,

siva

0 Kudos

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?

0 Kudos

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.

0 Kudos

There is no problem in configuration since the posting is successful when done through QA11 without using BAPI.

0 Kudos

check did u miss any special stock category indicator..

Regards,

Siva Prasads.

0 Kudos

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.