Hi,
I have a selection screen with a date range. I want that both from and to values should be input before processing. Using obligatory only enforces input on the from value. So I tried the following code, which works fine. The only problem is, that if the user does'nt enter a value for the to field, an error message is displayed and the cursor focus is set to the from field. I want the focus to be on the to field.
SELECT-OPTIONS:
S_BLDATE FOR Z_VIEW_PDOC_FT2-BL_DATE OBLIGATORY NO-EXTENSION.
SELECTION-SCREEN END OF BLOCK PARAMS_GIT.
AT SELECTION-SCREEN ON S_BLDATE.
IF S_BLDATE-HIGH IS INITIAL.
MESSAGE ID '00' TYPE 'E' NUMBER '055'.
" Does'nt work
SET CURSOR field s_bldate offset 2.
ENDIF.
I want the cursor focus to be set on the to (second field). If anyone can tell me how to make this work, I'd appreciate it. Thanks.