Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Refresh screen

former_member355261
Participant
0 Likes
460

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

1 REPLY 1
Read only

Former Member
0 Likes
386

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.