we are trying to confirm goods using the the function module
the transcation we are using is 'CO11N'.
we are populating the values in IMSEG table.
CALL FUNCTION 'MB_CREATE_GOODS_MOVEMENT'
imkpf = s_imkpf
xallp = ' '
xallr = 'X'
ctcod = 'CO11N'
XQMCL = ' '
xlisu = 'X'
emkpf = s_emkpf
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,