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

Reading String within the single quotes

Former Member
0 Likes
801

Hi All,

Can you please let me know, how to read a String within the sinle quote in line.

I have to read a report into internal table and again from that I need to read a string within the single quote. Please help me in this.

Thanks in Advance,

Raghu

6 REPLIES 6
Read only

Former Member
0 Likes
755

hi,

data:str type string value 'xyz''abc''def'.

data:str1 type string value '''my string'''

write:/ str.

write:/ str1.

<b>reward if helpful</b>

rgds,

bharat.

Read only

0 Likes
755

Hi Bharat,

I want to retrive the string from another report into my new report and that string is not stored in any vairable.

Like there is one string in Line 243 with single quote and I need to capture that to one variable in my new report.

Regards,

Raghu

Read only

Former Member
0 Likes
755

hai raghu,

i didn't get ur actual requirement,

u can read data from a file to internal table but not from ur report

can eloberate ur requirement?

regards

ramesh,

Read only

0 Likes
755

I have to read a report into another report, that I can do using read report into an internal table.

Then from this internal table I need to fetch the string which is in ' ' (single quote).

Hope this suffice.

Read only

0 Likes
755

I have the following code:

REPORT test.

DATA: v_test(05) TYPE c.

v_test = ‘TTT’.

I am getting this errror:

Field “TTT” is unknown. It is neither kin on e of the specified tables nor defined by a “DATA” statement.

For some reason, my single quote is not being recognized from my keyboard. I noticed that my emotion icons are not being displayed either (example: I type and i do NOT get the smiley face on my end).

Is there a button that I pressed that caused that?

Read only

0 Likes
755

Well, somehow, you aren't actually using a single quote. Cut and paste this and see if it's any better.

DATA: v_test(05).
v_test = 'TTT'.

Rob