2011 Jul 29 9:47 AM
hi there,
i have the following selection screen definitions:
SELECTION-SCREEN COMMENT 01(33) text-001.
PARAMETERS: p_ras1(4) TYPE n DEFAULT '0031'.
PARAMETERS: p_ras2(4) TYPE n DEFAULT '0062'.
PARAMETERS: p_ras3(4) TYPE n DEFAULT '0093'.
PARAMETERS: p_ras4(4) TYPE n DEFAULT '0000'.
PARAMETERS: p_ras5(4) TYPE n DEFAULT '0000'.
in a variant i hide the 5 parameters for the user.
but the text-001 is still displayed. so i only have the text there. how can i hide the text-001 for a specific variant. i can't do it in the variant itself, i have to do it in my z-program.
best regards, Martin
2011 Jul 29 10:13 AM
hi,
i am not sure if this helps or not, but if you can identify the screen field name for the text, you can modify the screen structure.
if sy-slset = <variant-name>
loop at screen.
IF screen-fieldname = 'TEXT'.
screen-invisible = '0'.
screen-active = '0'.
modify screen.
endif.
endloop.
endif.
Edited by: sap_wiz on Jul 29, 2011 2:45 PM
hi there,
i have the following selection screen definitions:
SELECTION-SCREEN COMMENT 01(33) text-001.
PARAMETERS: p_ras1(4) TYPE n DEFAULT '0031'.
PARAMETERS: p_ras2(4) TYPE n DEFAULT '0062'.
PARAMETERS: p_ras3(4) TYPE n DEFAULT '0093'.
PARAMETERS: p_ras4(4) TYPE n DEFAULT '0000'.
PARAMETERS: p_ras5(4) TYPE n DEFAULT '0000'.
in a variant i hide the 5 parameters for the user.
but the text-001 is still displayed. so i only have the text there. how can i hide the text-001 for a specific variant. i can't do it in the variant itself, i have to do it in my z-program.
best regards, Martin
2011 Jul 29 9:51 AM
2011 Jul 29 9:53 AM
yes, i know that i can use SY-SLSET.
but HOW can i hide the text ??????
2011 Jul 29 10:56 AM
Hmmm. I thought if i give the variable you can just build the logic.
Anyway you got the logic also now.
2011 Jul 29 10:13 AM
hi,
i am not sure if this helps or not, but if you can identify the screen field name for the text, you can modify the screen structure.
if sy-slset = <variant-name>
loop at screen.
IF screen-fieldname = 'TEXT'.
screen-invisible = '0'.
screen-active = '0'.
modify screen.
endif.
endloop.
endif.
Edited by: sap_wiz on Jul 29, 2011 2:45 PM
2011 Jul 29 11:05 AM
Try a
SELECTION-SCREEN BEGIN OF BLOCK 001 WITH FRAME TITLE text-001.
PARAMETERS: p_ras1(4) TYPE n DEFAULT '0031'.
PARAMETERS: p_ras2(4) TYPE n DEFAULT '0062'.
PARAMETERS: p_ras3(4) TYPE n DEFAULT '0093'.
PARAMETERS: p_ras4(4) TYPE n DEFAULT '0000'.
PARAMETERS: p_ras5(4) TYPE n DEFAULT '0000'.
SELECTION-SCREEN END OF BLOCK 001.And look what happens to frame and title when every parameter is hidden in it.
Regards,
Raymond
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |