Skip to Content
0
Former Member
Jun 15, 2011 at 11:07 AM

how to get sum of quantity column in table control

624 Views

Hi, expert ,

Someone can guide me how to get som of qty column in table control ?

I created a screen with a table control and has a qty quantity field .

I want to show total of qty in a field .

my code like this ...

PROCESS AFTER INPUT.

LOOP AT I_tab.

CHAIN.

FIELD I_tab-COUNTQTY MODULE caculate_total_qty .

endchain.

MODULE UPDATE_TOTAL_QTY .

ENDLOOP.

but, when I Back to the previous screen

It's caculate again so I always get wrong Total quantity .

anyone can help me ...