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

select-options in display mode

Former Member
0 Likes
2,106

Hi

How to set the SELECT-OPTIONS in display mode by default

regards

Srinivas

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,853

loop at screen.

if screen-name = 'FIELD-NAME' .

screen-input = 0 .

endif.

modify screen.

endloop.

use this piece of code ...

Regards

Anbu

Hi

How to set the SELECT-OPTIONS in display mode by default

regards

Srinivas

12 REPLIES 12
Read only

Former Member
0 Likes
1,853

hi,

use no-display option

Read only

Former Member
0 Likes
1,853

Hi,

loop at screen.
screen-input = 0.
modify screen.
endloop.

follow this link:

https://www.sdn.sap.com/irj/sdn/abap-forums

Thanks,

Shailaja

Read only

Former Member
0 Likes
1,853

you can do that using at selection-screen output.

report sztest.


tables: mara.

select-options: s_matnr for mara-matnr.


at selection-screen output.

loop at screen.

if screen-name CS 'S_MATNR'.

screen-input = 0.
modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
1,854

loop at screen.

if screen-name = 'FIELD-NAME' .

screen-input = 0 .

endif.

modify screen.

endloop.

use this piece of code ...

Regards

Anbu

Read only

Former Member
0 Likes
1,853

Hi ,

make user of SCREEN internal table.

Regards

prabhu

Read only

Former Member
0 Likes
1,853

hiii

for every LOW and HIGH value of select option you can use a code like given below..

First initialize your select option with some values then use following code

AT SELECTION-SCREEN OUTPUT .

  IF s_docno IS NOT INITIAL .
    LOOP AT SCREEN.
      IF screen-name CS 's_docno'.
       screen-input = 0.
        MODIFY SCREEN.
      ENDIF.                           " IF screen-name CS 'p_docno'.
    ENDLOOP.                           " LOOP AT SCREEN.

regards

twinkal

Read only

Former Member
0 Likes
1,853

Can you please explain your question further?

Regards,

Kuldeep.

Read only

Former Member
0 Likes
1,853

Hi,

SELECT-OPTIONS: s_option FOR mara-matnr.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-name CS 's_option'.

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Regards,

Sandeep

Read only

Former Member
0 Likes
1,853

write code in Initialization event ..

select-options : s_pernr for pa0001-pernr.

initialization.

loop at screen.

if screen-name = 'S_PERNR-LOW'.

screen-input = 0.

elseif screen-name = 'S_PERNR-HIGH'.

screen-input = 0.

endif.

modify screen.

endloop.

Read only

Former Member
0 Likes
1,853

no-display will not generate report .

Use this one for particular scenrio:

at selection-screen output.

loop at screen.

if screen-name EQ 'FIELDNAME'.

screen-input = 0.

modify screen.

endif.

endloop.

Read only

Former Member
0 Likes
1,853

thanku vijay anbu and all

Another question:

I want to display the min rcord in LOW and

max record in HIGH of SELECT-OPTIONS

Regards

Edited by: sri vas on Jul 22, 2008 9:32 AM

Edited by: sri vas on Jul 22, 2008 9:33 AM

Read only

0 Likes
1,853

u can assign that in INITIALIZATION

INITIALIZATION.

s_matnr-low = '1000'.

s_matnr-high = '9999'.

append s_matnr.