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: 

More than one icon in a string

claudio_ramos
Explorer
0 Kudos

Hello everyone,

Is it possible to have more than one icon in a string? Something like:

CONCATENATE '@S_OKAY@' 'dd' '@S_OKAY@' INTO t_text.

WRITE: 35 t_text AS ICON.

I could not find any information about this possibility.

Regards,

Cláudio Ramos

1 ACCEPTED SOLUTION

Former Member
0 Kudos

may be you can try like this..

REPORT  ZTEST2.

data: t_text1(10) value '@S_OKAY@',
      t_text2(10) value 'dd',
      t_text3(10) value '@S_OKAY@'.

WRITE: 10 t_text1 AS ICON.
WRITE: 20 t_text2.
WRITE: 30 t_text3 AS ICON.

Thanks

Satyasuresh Donepudi

4 REPLIES 4

Former Member
0 Kudos

try it and let us know how it works out.

0 Kudos

Only the first part is recognized as an icon. All the rest is defined as plain text.

Former Member
0 Kudos

may be you can try like this..

REPORT  ZTEST2.

data: t_text1(10) value '@S_OKAY@',
      t_text2(10) value 'dd',
      t_text3(10) value '@S_OKAY@'.

WRITE: 10 t_text1 AS ICON.
WRITE: 20 t_text2.
WRITE: 30 t_text3 AS ICON.

Thanks

Satyasuresh Donepudi

0 Kudos

This way is possible, but unfortunately it does not work for a concatenated string. For instance, if I want to send the whole structure (icon + text + icon) as a parameter, it will be reconized as (icon + text).

As I can see, for every icon, I should have a new variable. No way to have more than one icon identifier in the same text variable.