Skip to Content
0
Former Member
Dec 12, 2007 at 10:34 AM

change this code to dynamic(field symbols)

13 Views

hi,

i do this code and it working o.k. but i wont to change it to dynamic code like field symbols what is the best way to do that?

i reward

Regards

 LOOP AT  pro_tab into wa_pro.


      CASE wa_pro-period+0(2).

        WHEN '01'.

          MOVE wa_pro-epop TO wa_tr-month1.

        WHEN '02'.

          MOVE wa_pro-epop TO wa_tr-month2.



.....
        WHEN '11' .

          MOVE wa_pro-epop TO wa_tr-month11.

          WHEN '12' .

          MOVE wa_pro-epop TO wa_tr-month12.

      ENDCASE.

      AT LAST.

        APPEND wa_tr TO tr_tab.

      ENDAT.

    ENDLOOP.