2008 Jul 22 8:18 AM
Hi
How to set the SELECT-OPTIONS in display mode by default
regards
Srinivas
2008 Jul 22 8:23 AM
loop at screen.
if screen-name = 'FIELD-NAME' .
screen-input = 0 .
endif.
modify screen.
endloop.
use this piece of code ...
Regards
Anbu
2008 Jul 22 8:21 AM
2008 Jul 22 8:21 AM
Hi,
loop at screen.
screen-input = 0.
modify screen.
endloop.follow this link:
https://www.sdn.sap.com/irj/sdn/abap-forums
Thanks,
Shailaja
2008 Jul 22 8:22 AM
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.
2008 Jul 22 8:23 AM
loop at screen.
if screen-name = 'FIELD-NAME' .
screen-input = 0 .
endif.
modify screen.
endloop.
use this piece of code ...
Regards
Anbu
2008 Jul 22 8:23 AM
2008 Jul 22 8:26 AM
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
2008 Jul 22 8:27 AM
Can you please explain your question further?
Regards,
Kuldeep.
2008 Jul 22 8:29 AM
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
2008 Jul 22 8:29 AM
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.
2008 Jul 22 8:29 AM
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.
2008 Jul 22 8:31 AM
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
2008 Jul 22 8:56 AM
u can assign that in INITIALIZATION
INITIALIZATION.
s_matnr-low = '1000'.
s_matnr-high = '9999'.
append s_matnr.