12-15-2006 8:20 AM
Hi all,
iam trying to use the function module
MB_CREATE_GOODS_MOVEMENT
to confirm goods for CO11N transcation
I have populated the valuse correctly into the parameter imseg .
sample code is as given below:
CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
EXPORTING
imkpf = s_imkpf
xallp = ' '
XALLB = 'X'
xallr = 'X'
ctcod = 'CO11N'
XQMCL = ' '
OLD_SUBRC = ' '
IPKCOM =
X_AUTHORITY = ' '
xlisu = 'X'
XQMSR = ' '
IMPORTING
emkpf = s_emkpf
E_LVS_TAFKZ =
ES_MKPF =
TABLES
emseg = t_emseg
imseg = t_imseg
IMSEG_CSL_TOKEN =
ET_MSEG =
.
the status in s_emkpf after execution of this function module are
MBLNR 4900000789
MJAHR 2006
CPUDT 00000000
CPUTM 000000
XABLN 10
SUBRC 1
the value of subrc is coming as 1.and the goods are not confirmed.
when the function module doc is searched it says:
01 Allocation of YMBUZ to XMSEG incorrect
please help regarding this.
thanks in advance,
SS
12-15-2006 9:08 AM
try to make use of BAPI <b>BAPI_GOODSMVT_CREATE</b> and see its documentation.
Regards
Prabhu