Application Development and Automation 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: 
Read only

BAPI parameters for movement type 532

former_member533538
Participant
0 Likes
2,315

Hello experts,i create a production order without material with TCODE co07,then i use BAPI 'BAPI_GOODSMVT_CREATE'  to do the by-products GR(531),it is sucessful at this point,but when i do 532 reversal,it is failed,i have set below BAPI parameters:

    ls_goodsmvt_item-material = gs_list-matnr.

    ls_goodsmvt_item-plant = gs_list-werks.

    ls_goodsmvt_item-stge_loc = gs_list-lgort.

    ls_goodsmvt_item-orderid = gs_list-aufnr.

    ls_goodsmvt_item-move_type = '532'.

    ls_goodsmvt_item-order_itno = gs_list-posnr.

    ls_goodsmvt_item-reserv_no = gs_list-rsnum.

    ls_goodsmvt_item-res_item = gs_list-rspos.

    ls_goodsmvt_item-entry_uom = gs_list-meins.

After i run the BAPI and commit,the posting is sucessfull, but the move type 532 would be replaced by 531 within the BAPI,pls. help me,thank you in advance.

1 ACCEPTED SOLUTION
Read only

former_member533538
Participant
0 Likes
1,867

I debug the BAPI and solve it by myself,implement BADI MB_BAPI_GOODSMVT_CREATE to set the field xstor fixed value 1,and create a record in table T156N.

4 REPLIES 4
Read only

former_member533538
Participant
0 Likes
1,867

I do a test,if i do not transport reservation parameters(reserv_no,res_item),the bapi could post the 532 sucessfully,but it posted to unplaned goods issue,i want to post to planned goods issue,pls. help.

Read only

JackGraus
Active Contributor
0 Likes
1,867

Hi, not a direct answer to your question, but what if you use BAPI_GOODSMVT_CANCEL ?

Regards Jack

Read only

0 Likes
1,867

Thank you,i can't use BAPI_GOODSMVT_CANCEL,because i need to change the quantity.

Read only

former_member533538
Participant
0 Likes
1,868

I debug the BAPI and solve it by myself,implement BADI MB_BAPI_GOODSMVT_CREATE to set the field xstor fixed value 1,and create a record in table T156N.