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

Sending An Error Message as Status Message

Former Member
0 Likes
1,024

Hi,

I have a selection screen which was (Object Oriented program ) defined through Function Group and calling via Function Module. when the transaction Starts with selection Screen and we have few buttons on the selection screen, when we enter data and we need to press F9 we are validating the data and we need to give an error message, i am doing same, but the error message was coming as pop-up, once i click on the pop-up it is getting out of the selection screen. but actual requirement was it has to stay

back on the selection screen.

Is there any way to give the error message as status message instead of

pop-up.

Thanks In Advance.

Regards

Nags

Hi,

I have a selection screen which was (Object Oriented program ) defined through Function Group and calling via Function Module. when the transaction Starts with selection Screen and we have few buttons on the selection screen, when we enter data and we need to press F9 we are validating the data and we need to give an error message, i am doing same, but the error message was coming as pop-up, once i click on the pop-up it is getting out of the selection screen. but actual requirement was it has to stay

back on the selection screen.

Is there any way to give the error message as status message instead of

pop-up.

Thanks In Advance.

Regards

Nags

7 REPLIES 7
Read only

Former Member
0 Likes
999

GIve an information message exit and write an exit immediately after the statement.

At selection-screen.

if sy-subrc <> 0.

message i001(zz) with 'Error has Occured'.

exit.

endif.

Regards,

Ravi

Read only

0 Likes
999

Hi Ravi,

As i mentioned it is not an Report program, it is typically an OO Concepts , which i am getting the validation in the middle of the methods.that's what the reason we are getting an error message as pop-up. but actually i need to give it in the same selection screen with a status message.

Regards

Nags

Read only

amit_khare
Active Contributor
0 Likes
999

Is it a custom or standard error message, if standard then check wether the message type is I or E.

If it is I change it to E.

Regards,

Amit

Reward all helpful replies.

Read only

0 Likes
999

Hi Amit,

it is custom message, based on validation we are defining the error message.

regards

Nags

Read only

Former Member
0 Likes
999

Hi,

We have an option to set this, the last button of the menu(button will be in multiple colors) , press that and select the settings, a pop up will open, there in one of the tab, you can select the option to display the mesage in the status bar

Regards

Sudheer

Read only

0 Likes
999

Sudheeer,

we can not define it with the menu control, i can understand what you are saying, but it is still unchecked ( Error message a dialog ).

Regards

Nags

Read only

Former Member
0 Likes
999

hi,

Try

message S008(MSG) 'Your maessage content'. .

MSG is message class.

Rewards point if helpful.

Regards

Santosh.