2009 May 05 9:54 PM
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.
2009 May 05 10:05 PM
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
2009 May 05 10:23 PM
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.
2009 May 06 2:59 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |