06-13-2007 6:10 AM
06-13-2007 6:17 AM
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.
06-13-2007 6:17 AM
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.
06-13-2007 6:26 AM
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.
06-13-2007 6:30 AM
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
06-13-2007 6:46 AM
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.
06-13-2007 6:53 AM
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..
06-13-2007 6:56 AM
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
06-13-2007 6:28 AM
Hi,
I believe you cannot modify the long text of the message..
Thanks,
Naren
06-13-2007 6:30 AM
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^