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

Need help for BAPI_GOODSMVT_CREATE

former_member196651
Contributor
0 Likes
2,147

Hello,

I am using the BAPI, BAPI_GOODSMVT_CREATE to generate a material document for goods issue against a Stock Transfer Order(movement type 351). The GM_CODE passed to the BAPI for this is 04.

My doubt is, when a material document is created using this BAPI with this GM_CODE, the transaction code shown in the MIGO display of the material document generated is MB1B. But when we do the goods issue manually against a STO, the transaction code shown in MIGO display is MIGO_GI.

Why there is a change in transaction code when we do it using a BAPI and manually? Whether this change is acceptable and if not what should I do to change it?

Regards,

Abijith

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,464

Transaction code of GM_CODE is picked from configuration table T158G (MMIM: Possible Codes for BAPI Goods Movement). See line number 53 of BAPI

select single * from t158g where gmcode = goodsmvt_code.

3 REPLIES 3
Read only

Former Member
0 Likes
1,465

Transaction code of GM_CODE is picked from configuration table T158G (MMIM: Possible Codes for BAPI Goods Movement). See line number 53 of BAPI

select single * from t158g where gmcode = goodsmvt_code.

Read only

0 Likes
1,464

Thanks Vinod. I know that the GM_CODE was picked from T158G. But my question is when we use this and successfully creates a document, there in the doc it will show MB1B. But when u do this from MIGO this is shown as MIGO_GI. Why there is change like this? Whether this is an error from my side or not?

Regards,

Abijith

Read only

0 Likes
1,464

I don't think there is any error from your side. It is the way BAPI update the field MKPF-TCODE (from t158g-TCODE).