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: 

Making Selection Screen block invisble

Former Member
0 Kudos

Hi all,

here i have a prob with me, regarding setting attributes of selection screen SCREEN table dynamically.

in my selection screen, i have 10 parameters.

first 2 parameters in one block and other 8 are in some other block.

in the second block totally 8 controls are there, with 2 controls in each selection screen line and each control has been assigned with a selection screen comment.

here the prob start.

if the user executes the report the second block of selection screen should be in invisible mode.

i tried to set the attributes of SCREEN table in AT SELECTION-SCREEN OUTPUT, only i am able to set the controls invisible but not the commnets of the corresponding controls.

how i can make the comments of controls invisible.

thanks in advance.

Regards,

Phani

1 ACCEPTED SOLUTION

athavanraja
Active Contributor
0 Kudos

did you add the addition <b>MODIF ID modid</b> for the comment as well and made it invisible by modifying the screen.

May be if you post the piece of the code for your selscreen we can fix it.

Regards

Raja

7 REPLIES 7

Former Member
0 Kudos

Hi,

You mean the texts you are displaying in the seleciton screen, You need to trap the value of the comments in debug mode and make the invisible property for that particular field equal to 1, this will make it invisible.

Rgds,

athavanraja
Active Contributor
0 Kudos

did you add the addition <b>MODIF ID modid</b> for the comment as well and made it invisible by modifying the screen.

May be if you post the piece of the code for your selscreen we can fix it.

Regards

Raja

0 Kudos

There are two blocks on selection screen.

Based on the values entered in the block 1, block 2 should become visible.

I have written the following code to display the block 2

*Line for project id & test plan id

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(16) TEXT-H03. " Project name

PARAMETERS: P_PRJID1 LIKE ZHCLTUTPMASCOND-ZUPROJID MODIF ID DET.

" Project name

SELECTION-SCREEN COMMENT 60(17) TEXT-H04. " UTP Version

PARAMETERS: P_UTPV LIKE ZHCLTUTPMAS-ZUTPVER MODIF ID DET.

" UTP Version

SELECTION-SCREEN END OF LINE.

I am able to make the parameters P_PRJID1 and P_UTPV invisible. But not able to do the same for the comments TEXT-H03 & TEXT-H04.

Can i make the entire block invisible?

0 Kudos

Hi Raja,

Thanks for ur reply. I have assigned modif id to the Comment and disabled the comment also. But the problem is still the empty block is visible on the selection screen.

Regards,

Phani

0 Kudos

when each and every element within the block is made invisible , the whole block will become invisible.

like you have done it for parameters (the addition of modif id) follow the same for the selection-screen comment as well.

are you facing problems doing that?

Regards

Raja

0 Kudos

here is the sample code.

selection-screen begin of block a with frame .
parameters: a(1) default 'X' .
selection-screen end of block a .


selection-screen begin of block b with frame .
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT 1(23) TEXT-H03 modif id det.
parameters: b(1) modif id det.
SELECTION-SCREEN END OF LINE.

selection-screen end of block b .

at selection-screen output .

if a = 'X' .
loop at screen .
if screen-group1 eq 'DET' .
screen-invisible = '1' .
screen-input = '0' .
screen-output = '0' .
modify screen .
endif .
endloop .
endif .

If your question is answered, kindly mark the thread as answered and close it.

Regards

Raja

0 Kudos

Hi Raja,

Thank you very much. It solved my problem.

Regards,

Phani.