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

how can a variable value be made to '

Former Member
0 Likes
788

I have a variable of character type with length 10.Now i want to assign its value as ' But i am not able to do it bcoz its rising an error when i give it as var = ' ' '.Can anyone tell me how can i assign its value as '

Thanks & Regards

Sajid

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
769

Check the following code.

Data: g_val(1) type c.

initialization.

g_val = ''''.

start-of-selection.

write:/ g_val.

Check the following code.

Data: g_val(1) type c.

initialization.

g_val = ''''.

start-of-selection.

write:/ g_val.

6 REPLIES 6
Read only

Former Member
0 Likes
769

Hi

I didnt understand exactly..

Anyway You can increase the length of that variable....

v_var(35)

Thanks

Read only

Former Member
0 Likes
769

try this

<b>var = ' ' ' ' '.</b>

Read only

Former Member
0 Likes
770

Check the following code.

Data: g_val(1) type c.

initialization.

g_val = ''''.

start-of-selection.

write:/ g_val.

Read only

Former Member
0 Likes
769

hi,

var = ''''.

try.

regards,

ps

Read only

andreas_mann3
Active Contributor
0 Likes
769

hi,

use:

1) data y(10) type c value ''''.

or

2) text-element: '

A.

Read only

Former Member
0 Likes
769

Use four ' in order to get one '

var = '''' .
Write: ''''.
text-001  - '
Write:/ text-001. 

this works fine.

Please reward and close the thread.