I am pretending to use the FM 'MB_CREATE_GOODS_MOVEMENT',
as it would be used by MIGO.
I need to pass qty in KG and also additional qty in L.
When I run it manually in MIGO and debug, everything is OK, when trying to run it from the program, I got the error only when trying to pass the table t_ms2int to the FM.
Do you have any idea how to fill the table parameter: t_ms2int
and where to find any documentation about the other parameters of this FM?
Are there some other options for automatization of MIGO goods receipt.
At the moment I call
CALL FUNCTION 'MB_SET_BAPI_FLAG'
call function 'MB_CREATE_GOODS_MOVEMENT'
imkpf = s_imkpf
xallp = 'X'
xallb = ' '
xallr = 'X'
ctcod = g_tcode
oia_pass = 'X'
i_oib_calculate = l_oib_calculate
emkpf = s_emkpf
emseg = i_emseg
imseg = i_imseg
t_ms1int = i_t_ms1int
t_ms2int = i_t_ms2int.
Any tips would be appreciated!