Application Development and Automation 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: 
Read only

Challenging SAPScript question....

Former Member
0 Likes
815

Hi,

I want material text to be printed only if it has copyright symbol (c with circle around it) otherwise not ?

How can I do this ?

Can this be done in print program or what is the way to do this ?

Any insights will be appreciated.

Please help.

Thanks.

Regards,

Tushar.

6 REPLIES 6
Read only

Former Member
0 Likes
782

Please throe an insight

Read only

Former Member
0 Likes
782

This is a duplicate post. Would you please close one of them.

Thanks

Rob

Read only

Former Member
0 Likes
782

Please help...

Read only

0 Likes
782

Hi tushar,

1. If u want to write the logic in driver program,

then u can write an IF Condition,

2. which will check if the Material Text (MAKTX)

contains the copy right character or not.

3. like this.

if MAKTX CS '©'

4. We can get this copy right character by

a) either u copy from here (Ctrl + C)

b) or Alt + 0169

©

regards,

amit m.

Read only

0 Likes
782

IF source CS ' '©'.

found = 'X'.

print source.

endif.

or

DATA: source TYPE string,

s_one type string,

s_two type string.

source = 'This is a entlittle © sentence.'.

SPLIT source AT '©' INTO s_ONE s_TWO.

if s_TWO <> ''.

print.

Read only

Former Member
0 Likes
782

Hi Tushar,

the only way i think is getting ur long text in a variable.

then using

if variable ca 'c' ( this shud be the special character that u need to get in ur program for comparision )

then print.

endif.

hope it helps..