Hi,
I am using the bapi BAPI_PROCORDCONF_CREATE_TT to confirm the process order and do automatic goods movement. The problem I am facing is it is confirming the process order but goods movement, at times is working and at times is not doing goods movement. Do not know whether its a data issue or I am doing something wrong in the bapi. Pls help on this.
Request clarification before answering.
I am using the bapi BAPI_PROCORDCONF_CREATE_TT to confirm the process order and do automatic goods ... Hence in AFRU-WABLNR is coming blank ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi I have found the solution, and its working for me. After running the bapi, check the MSEG table, if its blank i.e. material doc. number is not generated, MBLNR, then submit the program CORUPROC inside a perform. Then again check MSEG table, it will be filled with one entry. Hence ur material doc no. is created so goods movement is done.
Hi, If you execute the bapi BAPI_PROCORDCONF_CREATE_TT, if the process order is confirmed, it creates an entry in AFRU table. Here WABLNR is nothing but material document number. So you can fetch the material doc. no. from MSEG also its the same.
If you do the normal goods movement using COR6N transaction, you can see the entry in AFRU-WABLR field, but through bapi its not working. I faced the same problem.So we have used CORUPROC program to create the material doc number, and fetching it from MSEG table
MSEG-MBLNR value is same as AFRU-WABLNR. So its not necessary to get the mat doc no. from AFRU table only, take it from MSEG.
thanks ronsap, your help si very apreciated.. i have other problem now.. when bapi finish, table S021 no update data of production quantity... sometimes it works good , sometimes bad, i use bapi transaction commit now, and wait x. But i works sometimes and sometimes no.. you know if there are any command for make sure update table s021 and after the processs bapi continue ?
thanks for your help...
Leonel Saavedra
| User | Count |
|---|---|
| 14 | |
| 12 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.