05-25-2006 7:08 PM
Hi All,
Can you pls let me know , how to position the cursor in selected selection-screen filed. My requirement is i have 3 selection-screen fields, By default cursor is positioned on field screen field, but i want the cursor to be positioned at 3rd screen field to enter input, i want to do this coz i am filling first 2 screen fields with default values, so i need to position the cursor at 3 rd screen filed. let me know if it is possible to achieve this.
Thanks in advance.
Regards
Vishal
05-25-2006 7:09 PM
05-25-2006 7:09 PM
05-25-2006 7:29 PM
thanks rich,
can u pls let me know the event name where i can put this command set cursor.thanks.
regards
vishal
05-25-2006 7:30 PM
05-25-2006 7:31 PM
05-25-2006 7:31 PM
Do it at the INITIALIZATION event if it's a program otherwiser if it's a module pool program then set it in PBO.
Cheers
Nishanth
05-25-2006 7:34 PM
05-25-2006 7:53 PM
Hi Rich/Nishanth,
Its working fine with parameters but its not working in case of select-options.
pls check my code.
select-options :
s_bukrs for REGUH-ZBUKR default 'US10',
s_laufd for REGUH-LAUFD default sy-datum,
S_LAUFI FOR REGUH-LAUFI .
at selection-screen output.
set cursor field 'S_LAUFI'.
any thoughts on this, thanks.
regards
vishal
05-25-2006 7:57 PM
Set ur cursor on 'S_LAUFI-LOW' instead of 'S_LAUFI' and it will work fine.,
05-25-2006 7:58 PM
You will need to point it to the LOW field.
report zrich_0001.
tables: reguh.
select-options :
s_bukrs for REGUH-ZBUKR default 'US10',
s_laufd for REGUH-LAUFD default sy-datum,
S_LAUFI FOR REGUH-LAUFI .
at selection-screen output.
<b>set cursor field 'S_LAUFI-LOW'.</b>
Welcome to SDN! PLease be sure to award points for helpful answer and mark you post as solved when solved completely. Thanks.
Regards,
Rich Heilman
05-25-2006 7:58 PM
For select options you have to specify LOW also along with the name. So it will be S_LAUFI-LOW in your case.
05-25-2006 7:56 PM
i tried with Initialization event also but its not working for select-options.