2006 Jun 08 11:19 AM
can any body tell how to disable a selection parameter.
I have parameter p_filename. I want to disable this.
Please let me know.
Thanks and Regards
Harish
can any body tell how to disable a selection parameter.
I have parameter p_filename. I want to disable this.
Please let me know.
Thanks and Regards
Harish
2006 Jun 08 11:20 AM
To be done in AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN OUTPUT .
LOOP AT SCREEN.
IF SCREEN-NAME = 'FIELD1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.This will disable the field FIELD1... please award points if found helpful
2006 Jun 08 11:21 AM
If you want to disable this.
LOOP AT SCREEN.
IF SCREEN-NAME = 'XXX'.
SCREEN-INVISIBLE = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
You can do this in AT SELECTION SCREEN OUTPUT
Regards,
Ravi
2006 Jun 08 11:22 AM
at selection-screen output.
if <some codition>.
loop at screen.
if screen-name = <Name of the screen field>.
screen-input = 0.
modify screen.
endif.
endif.
endif.
Regards,
Ravi
2006 Jun 08 11:22 AM
HI,
Just do this.
screeen-input = 0.
modify screen.
Rgds,
Prakashsingh
2006 Jun 08 11:22 AM
Hi,
U need to code for this in AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN OUTPUT.
loop at screen.
if screen-name = 'P_FIELNAME'.
screen-active = 0.
modify screen.
endif.
endloop.
U can try this also,
PARAMETERS : p_filename(10) NO-DISPLAY.
Sreedhar
2006 Jun 08 11:28 AM
Hi,
Refer the program DEMO_DYNPRO_MODIFY_SCREEN in SE38 for all the dynamic modification to the selection screen.
<b>Reward points to all the helpful answers and close the thread.</b>
2006 Jun 08 11:29 AM
Hi,
<b>Use this code with radio button it will work.
dont forget to add following Thinks
1) Modif ID
2) AT SELECTION-SCREEN OUTPUT
3) screen-input = '0'.
4) screen-group1.</b>
PARAMETERS : p_backgd RADIOBUTTON GROUP rad1
USER-COMMAND radio DEFAULT 'X'.
PARAMETERS : p_sumrep RADIOBUTTON GROUP rad1 .
*----
File
SELECTION-SCREEN : BEGIN OF BLOCK file WITH FRAME TITLE text-052.
PARAMETERS : p_sumfl TYPE char255 modif id ABC .
PARAMETERS : p_detfl TYPE char255 modif id ABC.
SELECTION-SCREEN : END OF BLOCK file.
--
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_sumrep = 'X'.
IF screen-group1 = 'ABC'.
screen-input = '0'.
MODIFY SCREEN.
ENDIF.
ENDIF.
ENDLOOP.
<b>Mark Helpful Answers</b>
Message was edited by: Manoj Gupta
2006 Jun 08 11:32 AM
<b>just copy and paste...</b>
Parameters: rd1 RADIOBUTTON group g1 default 'X' user-command ch ,
rd2 RADIOBUTTON group g1 ,
rd3 RADIOBUTTON group g1 ,
kishan1(10) type c modif id ID1.
AT SELECTION-SCREEN.
check sy-ucomm = 'CH'.
AT SELECTION-SCREEN output.
IF rd1 = 'X' or rd2 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' .
screen-active = '1'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
IF RD3 = 'X'.
LOOP AT SCREEN.
IF screen-group1 = 'ID1' .
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
2006 Jun 08 11:39 AM
hii Harish,
If you want a parameter but don't want to show it on the screen, then you can define your parameter with NO-DISPLAY option.
Use <b>MODIF ID modid</b> addition.
PARAMETERS: p_filename LIKE xyz default 'abc.txt' MODIF ID M123.
<b>AT SELECTION-SCREEN OUTPUT.
LOOP at SCREEN.
<b>IF SCREEN-GROUP1 = 'M123'.</b>
<b>screen-invisible = 1. "if you want to hide it
screen-output = 1. " if you want to disable it,
screen-input = 0. " if you want to disable it,</b>
endif.
endloop.</b>
Regards
Naresh
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |