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: 

goods movement using "MB_CREATE_GOODS_MOVEMENT"

Former Member
0 Kudos

Hi all,

we are trying to confirm goods using the the function module

MB_CREATE_GOODS_MOVEMENT

the transcation we are using is 'CO11N'.

we are populating the values in IMSEG table.

for ex.

CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'

EXPORTING

imkpf = s_imkpf

xallp = ' '

xallr = 'X'

ctcod = 'CO11N'

  • XQMCL = ' '

  • IPKCOM =

xlisu = 'X'

IMPORTING

emkpf = s_emkpf

TABLES

emseg = t_emseg

imseg = t_imseg

.

in CO11N transcation we need to confirm

the yield as well as scrap.

the problem we are facing is that.

In which field we populate the values so as to differenciate the yield to confirm quantity and scrap quantity.

as per current functionality the function module is posting for only yield to confirm only.

the movement types for both scarp and yield are both 261.

any suggestion or sample code might help.

thanks in advance,

PA

4 REPLIES 4

Former Member
0 Kudos

Hi PA,

first check HOW SAP is doing . I think Yiedl = LMNGA,Scrap = XMNGA in CO11N .

Regards

Prabhu

0 Kudos

hi Prabhu,

thanks.

but i have already debugged tha standard SAP program but

could not find what variable value iam missing which has to be passed to

Table IMSEG in order to differenciate between scrap and yield quantity.

I need to knowin which field of table IMSEG somevalue is passed

by which the quantity for scrap or yield is confirmed.

Please help.

regards PA

Former Member
0 Kudos

solved

sankar_roy
Participant
0 Kudos

Hi Parvez,

Can you provide me the sample code for the same?

Regards,

Sankar