‎2010 Oct 11 8:49 AM
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
‎2010 Oct 11 8:59 AM
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.
‎2010 Oct 11 8:59 AM
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.
‎2010 Oct 12 10:33 AM
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
‎2010 Oct 12 10:39 AM
I don't think there is any error from your side. It is the way BAPI update the field MKPF-TCODE (from t158g-TCODE).