Application Development 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: 

Messages in long text

Former Member
0 Kudos

Hello Everyone,

How to pass the dynamic values in the long text.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi usha,

welcome to sdn,

first of all your question is not clear,

u can define one local variable with data type string then u can pass into that.

ex: data: l_text type string.

reward points if helpful,

regards,

seshu.

8 REPLIES 8

Former Member
0 Kudos

hi usha,

welcome to sdn,

first of all your question is not clear,

u can define one local variable with data type string then u can pass into that.

ex: data: l_text type string.

reward points if helpful,

regards,

seshu.

Former Member
0 Kudos

How to pass the dynamic values in the long text for a particluar message.

For Example, if we have message as "<b>Material number '&' is invalid</b>" then for the same message if we create the long text as "<b>Material number '&' invalid</b>" then how to pass dynamic values in the long text.

i.e. for message, we will write as Message s000(zsample) with p_matnr.

So, How to pass the value to long text as well.

0 Kudos

Hi Usha,

In the long text give it as follows:

<b>"Material Number &p_matnr& invalid"</b>

Regards,

Ramesh Babu

*Award points if reply is helpful

0 Kudos

Thanks for your reply.

Tried with the solution which is provided but "Material number &p_matnr& invalid" didnt work.

So, can you elaborate your answer.

0 Kudos

hi,

better to create your own message class, then put a message that contains & & & &...now you use this message like ( message s001 with 4 long text ) .. each & can contain 50 chars...hope this will help you..

0 Kudos

Hi,

there is a simple work around:

1)put your message in a text element(lets say text-001)

2)e.g text-001 contains "Material number &1 is invalid"

3)use:

replace '&1' into text-001 with matnr.

message text-001 type 'I'. " Or type E, W,S depending upon your requirements.

Regards,

Sooness

Former Member
0 Kudos

Hi,

I believe you cannot modify the long text of the message..

Thanks,

Naren

Former Member
0 Kudos

hi

good

go throgh these links,hope help you to solve your problem

http://fuller.mit.edu/SAPDocs/sap_long_text.html

http://www.sap-basis-abap.com/sapac002.htm

thanks

mrutyun^