09-18-2008 6:57 AM
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.
09-18-2008 7:08 AM
HI,
Use twice singlecots where u want to display singlecots.
for ur requirement use write : 'abc'''.
Regards,
Meet
09-18-2008 7:00 AM
Do it like this...
data:
w_char(20) value 'abd''yuu'.
write: / w_char.
09-18-2008 8:13 AM
09-18-2008 7:05 AM
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.
09-18-2008 7:09 AM
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.
09-18-2008 7:34 AM
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.
09-18-2008 7:46 AM
Hi,
Try this
ld_comma = ''''.
Now ld_comma will contain ' as required.
now u can use this ld_comma in concatenate.
Regards,
Surinder
09-18-2008 7:52 AM
HI Kiran,
if your problem is to declare constant '.
then declare it lke below.
DATA : QUOTE TYPE C VALUE ''''.
Regards,
Meet
09-18-2008 7:58 AM
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
09-18-2008 7:08 AM
HI,
Use twice singlecots where u want to display singlecots.
for ur requirement use write : 'abc'''.
Regards,
Meet
09-18-2008 7:46 AM
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
09-18-2008 8:14 AM