‎2019 Dec 09 1:08 PM
In selection screen, I have around 180 input boxes. My Requirement is if my cursor is on 1st input box and I press 'ENTER', then cursor should go to next input box. can anyone please help, how to achieve this functionality?
‎2019 Dec 09 1:28 PM
Hello SANDARBH SINGH,
You Just need to use the concepts of GET CURSOR in PAI event along with SET CURSOR in PBO event.
Sample Code Below for reference
*****PAI EVENT
GET CURSOR FIELD local_Cursor_Variable
*****PBO EVENT
CASE local_Cursor_Variable.
WHEN 'FIRST FIELD'
SET CURSOR FIELD 'FIELD2'
WHEN "SECOND FIELD'
SET CURSOR FIELD 'FIELD3'
Until The Last field
Note:If you wanted to ensure the user to enter all the fields use OBLIGATORY Keyword for all fieldsRegards!
‎2019 Dec 09 1:17 PM
just set parameter as obligatory, by default it will work like that
otherwise
AT SELECTION-SCREEN ...
SET CURSOR ...
‎2019 Dec 09 1:28 PM
Hello SANDARBH SINGH,
You Just need to use the concepts of GET CURSOR in PAI event along with SET CURSOR in PBO event.
Sample Code Below for reference
*****PAI EVENT
GET CURSOR FIELD local_Cursor_Variable
*****PBO EVENT
CASE local_Cursor_Variable.
WHEN 'FIRST FIELD'
SET CURSOR FIELD 'FIELD2'
WHEN "SECOND FIELD'
SET CURSOR FIELD 'FIELD3'
Until The Last field
Note:If you wanted to ensure the user to enter all the fields use OBLIGATORY Keyword for all fieldsRegards!
‎2019 Dec 10 5:33 PM
Thanks Satish Kumar Balasubramanian, after using this its working fine now.
‎2019 Dec 10 5:36 PM
If you've received the correct answer, could you please accept Satish's answer and close out the question? This will help people who have the same question in future, plus it ensures that Satish gets recognition for assisting you. Thanks!