Application Development 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: 

Good Movement confirmation Issue

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

try to make use of BAPI <b>BAPI_GOODSMVT_CREATE</b> and see its documentation.

Regards

Prabhu