12-19-2008 9:54 AM
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
12-19-2008 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.
12-19-2008 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.
12-19-2008 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.