2015 May 08 3:50 PM
Hi,
I have a screen with an input field and a button.
So I want to add an input field each time the user presses the button.
To achieve this, I'm using a step loop and I have the following PBO:
MODULE status_0100.
LOOP AT t_values INTO s_values CURSOR n FROM n TO fill.
READ TABLE t_values INTO s_values INDEX sy-stepl.
ENDLOOP.
and in PAI, in the user_command, when clicking the button I increment the value of fill, but I need to refresh the screen or recall it.
So, please show me how to do this, or give me even another way to achieve my requirement.
Thanks in advance
2015 May 08 4:11 PM
Hi Occoro,
In the PAI you have to use the loop and read the changed values like this
LOOP.
MODULE TRANSP_ITAB_IN.
ENDLOOP.
MODULE transp_itab_in INPUT.
lines = sy-loopc.
idx = sy-stepl + line.
MODIFY t_values FROM s_values INDEX idx.
ENDMODULE.