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

Problem loop screen.

Former Member
0 Likes
460

Hi Guys , I have the follow code in one of my program but when i Run it screen-name always have the same value . why is that , any idea ?

loop at screen.
            check screen-name  cs 'REF_VP'.
            screen-input = 0.
            modify screen.
          endloop.

thank you

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
435

you should write this at selection screen event.

What you can do to check is debug it.

before entering the value press /h in command and then enter value to see if your loop at screen gets triggered. This way you will understand where to code the loop at screen.

Regards,

Lalit Mohan Gupta.

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
435

Are you doing this in the AT SELECTION-SCREEN OUTPUT event? If not, try it there.

AT SELECTION-SCREEN OUTPUT.

loop at screen.
      check screen-name  cs 'REF_VP'.
       screen-input = 0.
       modify screen.
 endloop.

Regards.

Rich Heilman

Read only

Former Member
0 Likes
435

If you have created only one element in that screen then you can see only one entry in the screen table. Try to create checkbox / pushbutton so that you can see multiple entries in the screen table.

Read only

Former Member
0 Likes
436

you should write this at selection screen event.

What you can do to check is debug it.

before entering the value press /h in command and then enter value to see if your loop at screen gets triggered. This way you will understand where to code the loop at screen.

Regards,

Lalit Mohan Gupta.