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: 

Replace SO10 text variable with another SO10 text object

former_member184111
Active Contributor
0 Kudos

Hi Experts,

Email with variables like RFx number, RFx name, reciever name and dates etc is required, this is fine and I am doing it using variables in SO10 text.

Now there is the requierment to further add a disclaimer that can itself be huge(2000 chars or so) at end of this email. The disclaimer can change according to the country and region so this is also variable. I tried creating a new SO10 text for various disclaimers and replacing the variable with the SO10 object in main email but importing parameter VALUE_LENGHT of function module TEXT_SYMBOL_SETVALUE accepts only 80 characters.

How can I use one SO10 object(more than 80 chars) to replace a variable in another SO10 text?

Hope my query is clear...

Thanks,

Anubhav

1 ACCEPTED SOLUTION

Former Member

Can you check this out? FM REPLACE_TEXTSYMBOL.

http://scn.sap.com/thread/2059777

Thanks,

Shambu

6 REPLIES 6

Former Member

Can you check this out? FM REPLACE_TEXTSYMBOL.

http://scn.sap.com/thread/2059777

Thanks,

Shambu

0 Kudos

Hi Experts,

I'm currently facing exactly the same issue, but the FM 'REPLACE_TEXTSYMBOL' didn't solve my problem.

Can you please explain how can I replace SO10 variables with more than 80 chars ?

Thanks,

Hicham

0 Kudos

Have the same problem (80 chars max), anyone stumbled upon this and if so, what was your solution?

0 Kudos

call function 'READ_TEXT'
exporting
* CLIENT = SY-MANDT
id = gc_st
language = sy-langu
name = gwa_mail-text_name
object = gc_tdobject
tables
lines = lit_text
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
if sy-subrc = 0.

loop

if lwa_text-tdline cp lc_url(declared constant with value).
lwa_main_text-line = 'more than 80 characters'.

condense lwa_main_text-line no-gaps.

endloop.

0 Kudos

You do realize you responded to an "answered" query from 2014, right? I know Halloween is close, but no need to raise the dead.

I faced the problem recently and didn't get an answer to it in the community and the function module didn't solve my problem. So thought putting it might help at least one. Anyway, I am an Indian and we don't celebrate Halloween(smiley).