‎2008 Jun 23 8:12 AM
Hi All,
I need to show error message at the selection screen.
I am calling the screen inside the START-OF-SELECTION, and processing the calculation and putting the data into i_final internal table. If internal table I_FINAL is empty I have to show error message saying ' DATA is empty' , this error message should be shown at the SELECTION SCREEN (Report input screen 1000) and provide the user to enter the input values once again.
But whenever I am populating error message, I am getting a pop up to chose exit, and process is terminating.
Since I am in the middle of the screen processing whenever I am giving a error message.
Please let me know how can I populate error message without terminating the process while I was in the middle of the screen processing logic.
Regards,
Mahesh
‎2008 Jun 23 8:35 AM
Put if condition where u r filling the I_FINAL TABLE.
After filling the I_FINAL table put condition like as follows
If I_FINAL[] is not intial.
message 'Data is Empty' type 'I'.
exit.
endif.
It will take you to the selection screen.
‎2008 Jun 23 8:13 AM
‎2008 Jun 23 8:16 AM
‎2008 Jun 23 8:16 AM
To populate error message without terminating the process, use
MESSAGE type I... DISPLAY LIKE E.
‎2008 Jun 23 8:19 AM
give ur
message type I
which stands for info message
Cheers
Snehi
‎2008 Jun 23 8:25 AM
Hi,
In AT SELECTION-SCREEN event u can raise Error Message.
Regards.
‎2008 Jun 23 8:32 AM
You can validate by using the
AT SELECTION-SCREEN Event
and raising error message type
message text-xxx type 'E'.
it will allow user to enter correct input.
‎2008 Jun 23 8:35 AM
Put if condition where u r filling the I_FINAL TABLE.
After filling the I_FINAL table put condition like as follows
If I_FINAL[] is not intial.
message 'Data is Empty' type 'I'.
exit.
endif.
It will take you to the selection screen.
‎2008 Jun 23 9:04 AM
No, it's going to ouput list with empty data records.
Since I am using SET_TABLE FORFIRST_DISPLAY function to display the alv list in the Table control.
‎2008 Jun 24 6:55 AM
Hi
Use the statement:
Leave List Processing.
Reward if helpful.
Regards.
‎2008 Jun 24 6:40 AM
Use AT SELECTION-SCREEN ON FIELD,
AT SELECTION-SCREEN ON BLOCK,
AT SELECTION-SCREEN events to perform validation on your selection screen which will allow you to throw a error message in the status bar and will allow the user to enter a new value, you can use message type E & W...
thanks
pritam
‎2008 Jun 24 6:51 AM
hi
If u are trying to validate a field use
AT SELECTION_SCREEN ON <field>
if want to validate a block
AT SELECTION SCREEN ON <block>
If Universal Validation
AT SELECTION SCREEN
and display a 'E' Message inside the block.
You can Enter Correct Value and start processing Forward.
hope this will help.
Regards
Sumit Agarwal