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: 

how to pass dynamic values in text symbols

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.