Skip to Content
author's profile photo Former Member
Former Member

how to pass dynamic values in text symbols

hi,

i have made one text :" the value of & is equal to & " , in report in goto==>textelement==>textsymbols

now my problem is how to pass the values of v_inr and y_tbr in place of first '&'and second '&' ?

rahul

Edited by: RAHUL SHARMA on Dec 19, 2008 10:55 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 10:02 AM

    HI,

    Instead of declareind the text 'the value of & is equal to &' in text symbol ..declare in this way....

    'the value of &1 is equal to &2'.

    example in text symbot I01 - 'the value of &1 is equal to &2'.

    declare a variable in Program.

    Data : l_text type string.

    l_text = TEXT-I01.

    REPLACE '&1' WITH v_inr INTO l_text .

    REPLACE '&2' WITH y_tbr INTO l_text.

    CONDENSE l_text.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 10:35 AM

    With Text symbols if you use MESSAGE then it does not allow WITH or INTO so you cannot directly replace '&' with a variable.

    Either use a Message class text or Replace as has been explained above.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.