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: 

loop at screen - not all fields are available

Former Member
0 Kudos

Hi all,

I want to set some fields on the screen invisible.

When I do the loop at screen in PBO not all fields from the screen are available.

Just four fields are available. In the screen there are about 20 fields.

I try to use the chain. field xyz. endchain... But it was not the problem.

Any ideas?

regards

3 REPLIES 3

Former Member
0 Kudos

program error

Former Member
0 Kudos

Try this ,May be Help ful

{ SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 2(10) FOR FIELD r_cars.

PARAMETERS : r_cars RADIOBUTTON GROUP rgb USER-COMMAND usd .

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 20(10) FOR FIELD r_toyota .

PARAMETERS : r_toyota RADIOBUTTON GROUP rgb1 DEFAULT 'X'.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 20(10) FOR FIELD r_ford .

PARAMETERS : r_ford RADIOBUTTON GROUP rgb1 .

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 2(10) FOR FIELD r_bus .

PARAMETERS : r_bus RADIOBUTTON GROUP rgb DEFAULT 'X'.

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 20(10) FOR FIELD r_volvo .

PARAMETERS : r_volvo RADIOBUTTON GROUP rgb2 .

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 20(10) FOR FIELD r_merced .

PARAMETERS : r_merced RADIOBUTTON GROUP rgb2 DEFAULT 'X'.

SELECTION-SCREEN END OF LINE.

AT SELECTION-SCREEN OUTPUT. " AT SELECTION-SCREEN OUTPUT

IF r_cars = 'X'. " If R_CURS radiobutton is selected

LOOP AT SCREEN . " Looping at screen

IF screen-name CS 'R_VOLVO' OR

screen-name CS 'R_MERCED'.

screen-active = 0. " Hiding the R_VOLVO and R_MERCED

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ELSE.

LOOP AT SCREEN .

IF screen-name CS 'R_TOYOTA' OR

screen-name CS 'R_FORD'.

screen-active = 0.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ENDIF. }

Former Member
0 Kudos

Loop at screen.

when screen-name eq field1.

screen-invisible = 1.

.... and so on

endloop.

you can check the value of structure SCREEN in debugging . This will help what is going inside your code.