‎2006 Feb 28 8:26 AM - last edited on ‎2024 Feb 04 2:08 AM by postmig_api_4
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.
‎2006 Feb 28 8:53 AM
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
‎2006 Feb 28 8:34 AM
Hi SR,
the program which you have given completely hides the select-option.
can you check it once..
Regards
vijay
‎2006 Feb 28 8:39 AM
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'.
‎2006 Feb 28 8:45 AM
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'.
‎2006 Feb 28 9:07 AM
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.
‎2006 Feb 28 8:40 AM
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
‎2006 Feb 28 8:40 AM
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
‎2006 Feb 28 8:57 AM
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.
‎2006 Feb 28 9:05 AM
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
‎2006 Feb 28 8:48 AM
For Suppressing you can just set
screen-input = '0'.
Can you be clear about what exactly is your requirement.
Regards ,
Sriranjani.
‎2006 Feb 28 8:53 AM
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
‎2006 Feb 28 8:53 AM
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'.