Skip to Content
0
Former Member
Feb 19, 2011 at 03:22 PM

updating problem in material_maintain_dark

1084 Views

Hi All,

I am trying to use FM Material_maintain_dark to update Marm-umrez.But now it is not updating any table values.

Can any one suggest me what to do in this case.Please find the code that is used below in my program.

t_mara-mandt = sy-mandt.

t_mara-matnr = p_material.

t_mara-mbrsh = 'S'.

t_mara-tcode = 'MM02'.

t_mara-tranc = h_tranc.

APPEND t_mara.

t_marm-mandt = sy-mandt.

t_marm-matnr = p_material.

t_marm-meinh = p_meinh.

t_marm-umrez = p_moq.

t_marm-tranc = h_tranc.

append t_marm.

call function 'MATERIAL_MAINTAIN_DARK'

exporting

p_kz_no_warn = 'N'

kz_prf = 'S'

tables

amara_ueb = t_mara

AMARM_UEB = t_marm

AMERRDAT = t_amerrdat

EXCEPTIONS

KSTATUS_EMPTY = 1

TKSTATUS_EMPTY = 2

T130M_ERROR = 3

INTERNAL_ERROR = 4

TOO_MANY_ERRORS = 5

UPDATE_ERROR = 6

OTHERS = 7

.

if sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

Please help me out in this case ,

Thanks ,

Suman