Application Development 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: 

Problem loop screen.

Former Member
0 Kudos

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

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.