Application Development and Automation 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: 
Read only

How to disable slection parameter?

Former Member
0 Likes
1,178

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

9 REPLIES 9
Read only

rahulkavuri
Active Contributor
0 Likes
1,143

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

Read only

Former Member
0 Likes
1,143

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

Read only

Former Member
0 Likes
1,143

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

Read only

Former Member
0 Likes
1,143

HI,

Just do this.

screeen-input = 0.

modify screen.

Rgds,

Prakashsingh

Read only

Former Member
0 Likes
1,143

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

Read only

Former Member
0 Likes
1,143

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>

Read only

Former Member
0 Likes
1,143

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.

--


Activate & Deactivate Screen Fields--

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

Read only

0 Likes
1,143

<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.

Read only

Former Member
0 Likes
1,143

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