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: 

how can I will declare the symbol u2018 (Single Quote) in the report

Former Member
0 Kudos

Hi ,

Could you please tell me how can I will declare the symbol u2018 (Single Quote) in the report.

My requirement is that I have concate the data with single quote and after that I have to store the data in to an internal table and I have to download the data in the form text file in the presentation server.

For example :

Let the below data I want to download into the presentation serve in the format of text file by storing in internal table.

Assume all are constants:

1st line : abcu2019add

2nd line : defu2019gef

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

Use twice singlecots where u want to display singlecots.

for ur requirement use write : 'abc'''.

Regards,

Meet

11 REPLIES 11

Former Member
0 Kudos

Do it like this...

data:

w_char(20) value 'abd''yuu'.

write: / w_char.

0 Kudos

Hi Jyothi,

Thanks for you are help.

Former Member
0 Kudos

Hi Jyothi,

Thanks for the reply .

My requriment is that only one open single quote ' .

Example .

i want to declare a constant variable like this abc'.

please let me know do have any solution for this.

0 Kudos

Hi

In ABAP whenever you want to give a single quote as TEXT you need to give two single quotes. First one is an identification for the next quote.

Finally you will get single quote in to the variable.

Hope you got the point.

0 Kudos

Hi Jyothi,

Thanks for the quick reply .

I can agree with you are point but My requirement is like this I am explaining clearly.

I have declared the internal table like this.

DATA: BEGIN OF OTAB OCCURS 0,

LINE (9024),

END OF OTAB.

So I have to append the each line item into the internal table.

So I am explaining what the data I have to append

Ist line contains

'UNBUNOC:2020308u2019 where 020308 I will get the date from reguh table

2nd line contains:

'DTM+20020510' where the 20020510 will be reference document number from the table reguh.

So I want to declare a constant 'UNBUNOC:2

2nd the date from reguh table

And another constant u2018

So that I can concate all the three and I can put into string and I will append into internal table and I can download the data into the presentation server.

Please let me know if you need any more clarification regarding my requirement.

Thanks in advance.

0 Kudos

Hi,

Try this

ld_comma = ''''.

Now ld_comma will contain ' as required.

now u can use this ld_comma in concatenate.

Regards,

Surinder

0 Kudos

HI Kiran,

if your problem is to declare constant '.

then declare it lke below.

DATA : QUOTE TYPE C VALUE ''''.

Regards,

Meet

0 Kudos

Hi All,

Thanks for providing the solutions and my problem got solved with all of you are given solution.

Again thanks for the time you all have spent for me.

Regards,

Kiran

Former Member
0 Kudos

HI,

Use twice singlecots where u want to display singlecots.

for ur requirement use write : 'abc'''.

Regards,

Meet

0 Kudos

Hi Meet.

Thanks for you are reply .

Your solution works fine when i will write in the screen, so i have one clarification is it will work similarly when i will append the data into the internal table and i will download the data in the text file format into the presentation server.

Thanks in advance.

regards,

kiran

0 Kudos

Hi Meet,

Thanks for the help.