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

Version 4.7 (Selection screen)

Former Member
0 Likes
1,221

Dear all,

Please help me out in solving the below problem.

I am working on 4.7 version...and below is the code of a simple report fpr testing. On the selection screen there is one select option which can be displayed or supressed dynamically. For this I am using 'Modif ID xxx'. But the problem here is...when ever 'Loop at SCREEN - ENDLOOP' uesd to set the screen atrributes, on selection screen, a small box appearing before LOW input box of the select option(As you know there are only two input boxes(LOW, HIGH) for any select-option).

For eg. try this below program in Version 4.7

Please note that...the below program is just to let you know how the selection screen appearing now.

As it is a must to set the below entries for my requirement..I cannot avoid any of them.

screen-active.

screen-input .

screen-output.

screen-invisible.

-


REPORT sample.

tables:mara.

select-options:s_mat1 for mara-matnr modif id GR1.

initialization.

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

screen-input = '0'.

screen-output = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.

-


Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,196

Hi SR

If you want to hide the select-optiopns dynamically then do this code in at selection-screen output

At Selection-Screen output

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

screen-input = '0'.

screen-output = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

endloop.

regards

kishore

11 REPLIES 11
Read only

Former Member
0 Likes
1,196

Hi SR,

the program which you have given completely hides the select-option.

can you check it once..

Regards

vijay

Read only

0 Likes
1,196

Please try this..

REPORT ZSR_TEST1 .

TABLES:MARA.

SELECT-OPTIONS:S_MAT1 FOR MARA-MATNR MODIF ID GR1.

INITIALIZATION.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'GR1'.

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '1'.

SCREEN-OUTPUT = '1'.

SCREEN-INVISIBLE = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

START-OF-SELECTION.

WRITE :/' Test program'.

Read only

0 Likes
1,196

Hi,

Try this.

TABLES:MARA.

SELECT-OPTIONS:S_MAT1 FOR MARA-MATNR MODIF ID GR1.

*INITIALIZATION.

LOOP AT SCREEN.

IF SCREEN-GROUP1 = 'GR1'.

SCREEN-ACTIVE = '1'.

SCREEN-INPUT = '1'.

SCREEN-OUTPUT = '1'.

SCREEN-INVISIBLE = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

START-OF-SELECTION.

WRITE :/' Test program'.

Read only

0 Likes
1,196

Hi,

This code will satisfy the requirement.

tables:mara.

select-options:s_mat1 for mara-matnr modif id GR1.

parameters: rb_show RADIOBUTTON GROUP 1 USER-COMMAND rad,

rb_hide RADIOBUTTON GROUP 1 DEFAULT 'X'.

at selection-screen output.

LOOP AT SCREEN.

IF screen-group1 = 'GR1'. "Subsequent Doc Category

IF rb_hide = 'X'.

screen-active = 0.

ELSE.

screen-active = 1.

ENDIF.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Read only

vinod_gunaware2
Active Contributor
0 Likes
1,196

REPORT sample.

tables:mara.

select-options:s_mat1 for mara-matnr modif id GR1.

AT SELECTION-SCREEN OUTPUT.

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

  • screen-input = '0'.

  • screen-output = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.

check above it will work

regard

vinod

Read only

Former Member
0 Likes
1,196

tables:mara.

select-options:s_mat1 for mara-matnr modif id GR1.

initialization.

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

screen-input = '0'.

screen-output = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.

Hi SR,

Metioned completely hides the selection-screen. What is ur req..pls can you explain some what broadly.

Regards

eswar

Read only

0 Likes
1,196

Dear All,

I think I am giving U the clear picture...

Below is my actual requirement...

There are 7 radiobuttons on a selection screen.

Based on selection of the radio button, the selection screen should change (i.e. only respective select-options/parametes should appear).

For this I am using MODIF ID... and with the 'LOOP AT SCREEN' I am achieving the required functionality.. but only thing is... an additional box appearing on the selectioscreen.

Could you please help me in avoiding that additional box on selection screen.

Thanks in advance.

Read only

0 Likes
1,196

HI

try this sample code

REPORT Z_SELSCR_BLOCK.

PARAMETERS show_all radiobutton group g1 USER-COMMAND flag.

PARAMETERS no_show radiobutton group g1 default 'X'.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.

PARAMETERS: p1(10) TYPE c,

p2(10) TYPE c,

p3(10) TYPE c.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.

selection-screen begin of line.

SELECTION-SCREEN COMMENT 1(30) text-006 FOR FIELD insme modif id bl2.

PARAMETERS: insme AS CHECKBOX MODIF ID bl2.

selection-screen end of line.

SELECTION-SCREEN END OF BLOCK b2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF show_all <> 'X' AND

screen-group1 = 'BL2'.

screen-active = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

regards

kishore

Read only

Former Member
0 Likes
1,196

For Suppressing you can just set

screen-input = '0'.

Can you be clear about what exactly is your requirement.

Regards ,

Sriranjani.

Read only

Former Member
0 Likes
1,197

Hi SR

If you want to hide the select-optiopns dynamically then do this code in at selection-screen output

At Selection-Screen output

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

screen-input = '0'.

screen-output = '0'.

screen-invisible = '1'.

MODIFY SCREEN.

endloop.

regards

kishore

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,196

Hi,

This code will hide the select option and then show if you press enter.

tables:mara.

select-options:s_mat1 for mara-matnr modif id GR1.

Initialization.

LOOP at screen.

if screen-group1 = 'GR1'.

screen-active = '0'.

screen-input = '0'.

screen-output = '0'.

screen-invisible = '1'.

endif.

MODIFY SCREEN.

endloop.

start-of-selection.

write :/' Test program'.