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

Error message at the selection screen while processing screen logic

Former Member
0 Likes
3,803

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,212

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.

11 REPLIES 11
Read only

Former Member
0 Likes
2,212

Use AT SELECTION-SCREEN event.

Read only

Former Member
0 Likes
2,212

Hi,

Try to use the command

AT SELECTION-SCREEN.

Thanks

Nayan

Read only

Former Member
0 Likes
2,212

To populate error message without terminating the process, use

MESSAGE type I... DISPLAY LIKE E.

Read only

Former Member
0 Likes
2,212

give ur

message type I

which stands for info message

Cheers

Snehi

Read only

Former Member
0 Likes
2,212

Hi,

In AT SELECTION-SCREEN event u can raise Error Message.

Regards.

Read only

Former Member
0 Likes
2,212

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.

Read only

Former Member
0 Likes
2,213

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.

Read only

0 Likes
2,212

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.

Read only

2,212

Hi

Use the statement:



Leave List Processing.

Reward if helpful.

Regards.

Read only

Former Member
0 Likes
2,212

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

Read only

Former Member
0 Likes
2,212

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