Need some logic for field calculations.
I need a simple logic but I am not getting it how to do.
I am having a Z table with 12 fields like Fld1 Fld2 Fld3 .......Fld12.
I have taken the all fields data into one internal table ( ITAB ).
In my selection screen parameter If I have given 1 then I need to take the Fld1 values from my ITAB for some calculations.
If I taken 3 then 3rd field data....like that.
I am looping the ITAB.
assume like this : if selection screen parameter value is 1.
Loop at Itab.
cal_total = ITAB-field1.
I know we can do it with Case - ENDCASE.
but is there any better way to do this?