Hi All.
This is the situation:
I have a Selection-screen which I added buttons for it via "SET PF-STATUS" in the INITIALIZATION event.
When the user press one of the added buttons I want to validate the screen status (meaning which fields are filled) before actual execution.
To do it I use the "AT SELECTION-SCREEN" event like this:
*&--------------------------------
*$ AT SELECTION-SCREEN.
*&--------------------------------
AT SELECTION-SCREEN.
* Dynamic break-point.
BREAK-POINT ID zme28.
* Set flag according to user's action on Selection-screen.
CASE sscrfields-ucomm.
* Get Not-released documents.
WHEN 'ONLI'.
gv_mode = gc_mode_not_released.
* Get Released documents.
WHEN 'ONLI1'.
PERFORM validate_other_options_fields.
gv_mode = gc_mode_released.
ENDCASE.
As you can see there is a Form call, this is where the validation occurs.
If the validation fails I want to display a message and go back to the Selection-screen.
I can't use the "MESSAGE" keyword since my message is more than 50chars, and "LEAVE LIST-PROCESSING" will not work here.
Any ideas?
Regards.
Ayal Telem.