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

Scroll list and set cursor in selection screen

Former Member
0 Likes
1,081

Hi,

I have a selection screen which is really big. There are conditions given, where any field is left blank on a particular condition, a popup shows to the user.

But, the cursor was not pointed to the error field. Now I have given the set cursor in at selection-screen output, and that is working. But the page is not scrolling up to the field where it is errored.

Can anyone suggest a way by which I can scroll to the correct field and show the cursor there?

I have tried scroll list to first page, and that did not work. Any help will be greatly appreciated.

Thanks in advance.

Anjana.

Hi,

I have a selection screen which is really big. There are conditions given, where any field is left blank on a particular condition, a popup shows to the user.

But, the cursor was not pointed to the error field. Now I have given the set cursor in at selection-screen output, and that is working. But the page is not scrolling up to the field where it is errored.

Can anyone suggest a way by which I can scroll to the correct field and show the cursor there?

I have tried scroll list to first page, and that did not work. Any help will be greatly appreciated.

Thanks in advance.

Anjana.

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
752

If you raise your error in the event AT SELECTION-SCREEN on field than system automatically scrolls the screen.

Try to run this code:


parameters: p_first type char1.
selection-screen: skip 9.
selection-screen: skip 9.
selection-screen: skip 9.
selection-screen: skip 9.
selection-screen: skip 9.
parameters: p_second type char1.

at selection-screen on p_second.
 if p_second is initial.
   message 'Enter P_SECOND' type 'E'.
 endif.

Regards,

Naimesh Patel

Read only

0 Likes
752

Thanks for that. It is working fine. But can you please suggest the same with a popup message instead of an error message?

IF p_aut1 = '1' AND p_mil1 = ' '.

CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'

EXPORTING

titel = 'Transportation'

textline1 = text-e58

start_column = 25

start_row = 6.

EXIT.

ENDIF.

Thanks,

Anjana.

Read only

0 Likes
752

Hi Anjana,

AT SELECTION-SCREEN ON P_OUTPUT.
  IF P_OUTPUT IS INITIAL.
    MESSAGE 'Error. Enter Value ' TYPE 'E'  DISPLAY LIKE 'I'.
  ENDIF.

Thanks & regards,

Dileep .C