06-10-2005 8:06 AM
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
06-10-2005 8:26 AM
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
06-10-2005 8:20 AM
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,
06-10-2005 8:26 AM
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
06-10-2005 8:38 AM
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?
06-10-2005 8:41 AM
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
06-10-2005 8:41 AM
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
06-10-2005 8:50 AM
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
06-10-2005 10:40 AM
Hi Raja,
Thank you very much. It solved my problem.
Regards,
Phani.