cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

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.

0 Likes
View Entire Topic
Former Member
0 Likes

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 ...

Former Member
0 Likes

i have the same problem, i am workin in it. if i correct it i say you how.

You found solution??

Former Member
0 Likes

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.

Former Member
0 Likes

thanks for your help, but my problem is in table AFRU field WABLNR(document) , i have run the coruproc but the table AFRU continue in blank the field WABLNR... please help me if you can....

best regards

Leonel Saavedra

Former Member
0 Likes

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.

Former Member
0 Likes

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