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 to String

Former Member
0 Likes
1,032

Hi All,

I need to generate a Error message for one of my application. In ABAP side i will be passing the Error message to a String and that will be shown to user as a popup.

Problem:

dataitab-message = 'Please type in all position name before clicking ' search'. '.

where dataitab is a internal table and message is of type string.

Since the error message contains ' ' inside it, it is showing syntax error.

Can someone suggest some work around to it?

Thanks in advance.

6 REPLIES 6
Read only

Former Member
0 Likes
818

Hi,

Try using below:


dataitab-message = 'Please type in all position name before clicking '' search''. '.

Thanks,

Sriram Ponna

Read only

Former Member
0 Likes
818

Hi

If you want to display the quote within the quote then use twice for it

open it and close it

dataitab-message = 'Please type in all position name before clicking ' 'search'.' '.

Regards

Shiva

Read only

0 Likes
818

Thanks Sriram / Shivkumar..

Cheers..

Read only

0 Likes
818

Hi

one more thing make use of text element dont write like this

if you check in SLIN it will show errors

regards

Shiva

Read only

0 Likes
818

Hi Shiv,

Thanks for the suggestion.

Can you please show me how can i do that using text elements?

Thanks,

Read only

0 Likes
818

Hi

copy the existing text and goto text elements and then paste it

the hard codesd text will translated when logon using different language

Regards

Shiva