Skip to Content
0
Former Member
Feb 02, 2010 at 09:22 AM

If Condition Not working.

29 Views

Hello All,

in my Below code this if condition is not working properly. Here i want data like when BLART = RV this time amount move in one field and if BLART = DZ this time amount move in different filed. so i got right data in my ALV but now this distribution is not done by me. So can you please help me out..........

loop at itab.

move itab-kunnr to itab1-kunnr.

move itab-belnr to itab1-belnr.

MOVE itab-zuonr to itab1-zuonr.

MOVE itab-budat to itab1-budat.

MOVE itab-blart to itab1-blart.

if itab-blart = 'RV'.

MOVE itab-dmbtr to itab1-dmbtr.

endif.

if itab-blart = 'DZ'.

MOVE itab-dmbtr to dmbtr1.

endif.

append itab1.

endloop.

Thanks in Advance.