02-10-2017 6:58 AM
Hi.
I have a development that must create a Goods Movement 301 to transfer stock between special stock 'Q' WBS Elements. If you create the 301 manually by MIGO you can have a WBS supplier (goodsmvt_item-VAL_WBS_ELEM) and a WBS destiny (goodsmvt_item-WBS_ELEM) and MIGO creates the document perfect, in table MSEG you can see two records (one for the supplier and one for the destiny) the field TCODE = 'MIGO_TR', it´s the only value i see different If you try to replicate this with BAPI BAPI_GOODSMVT_CREATE you dont have the value to create a MIGO_TR, instead you create with TCODE 'MB1B' (value 04), you specify goodsmvt_item-VAL_WBS_ELEM and goodsmvt_item-WBS_ELEM, if i activate the MIGO Badi the tables IT_MSEG and IS_MKPF are filled with my values but when it finishes to create the document WBS_ELEM and VAL_WBS_ELEM are equal, so there's no transfer at all. How can i create a transfer with TCODE 'MIGO_TR', it's the only field that changes besides the WBS values (When manually create from MIGO WBS_ELM and VAL_WBS_ELEM are the ones defined, when i create this from the bapi it copies VAL_WBS_ELEM to WBS_ELEM).