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

problem in displaying single quotes

Former Member
0 Likes
733

Hi,

I have applied the quotes but its still not working in the way I want. Like,

concatenate v_constantname '= ' ''''itab_split-constantname'''' into v_string2 separated by space.

concatenate v_linenum '= ' ''''itab_split-linenum''''

into v_string1 separated by space.

.....

concatenate v_string1 ' and ' v_string2 into itab_where-line separated by space.

This is the code and the concatenation is done for a dynamic where clause. The value of itab_split-linenum and itab_split-constantname should be within single quotes, e.g., it should be

C_LINE_NUM = '000047' and

C_NAME = 'CR_Z001_EMPLOYEE_COMPANY'

But it is coming like the following:

C_LINE_NUM = ' 000047 ' and

C_NAME = ' CR_Z001_EMPLOYEE_COMPANY '

There should not be any space between the value and the quotes. How to do it?

Thanks in advance,

Sangeeta.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
710

do like this

concatenate v_constantname '=' into v_string1 separated by space.

concatenate `'` itab_split-constantname `'` into v_string2.

concatenate v_string1 v_string2 into v_string3 separated by space.

concatenate v_string3 ' and ' v_string4 into itab_where-line separated by space. "v_string4 must also be built on same lines.

Regards,

Ravi

Hi,

I have applied the quotes but its still not working in the way I want. Like,

concatenate v_constantname '= ' ''''itab_split-constantname'''' into v_string2 separated by space.

concatenate v_linenum '= ' ''''itab_split-linenum''''

into v_string1 separated by space.

.....

concatenate v_string1 ' and ' v_string2 into itab_where-line separated by space.

This is the code and the concatenation is done for a dynamic where clause. The value of itab_split-linenum and itab_split-constantname should be within single quotes, e.g., it should be

C_LINE_NUM = '000047' and

C_NAME = 'CR_Z001_EMPLOYEE_COMPANY'

But it is coming like the following:

C_LINE_NUM = ' 000047 ' and

C_NAME = ' CR_Z001_EMPLOYEE_COMPANY '

There should not be any space between the value and the quotes. How to do it?

Thanks in advance,

Sangeeta.

5 REPLIES 5
Read only

Former Member
0 Likes
710

like that

concatenate '"' <fs> '"' into str.

Read only

Former Member
0 Likes
711

do like this

concatenate v_constantname '=' into v_string1 separated by space.

concatenate `'` itab_split-constantname `'` into v_string2.

concatenate v_string1 v_string2 into v_string3 separated by space.

concatenate v_string3 ' and ' v_string4 into itab_where-line separated by space. "v_string4 must also be built on same lines.

Regards,

Ravi

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
710

Hi,

Use <b>CONDENSE</b> statement to condense the blank spaces for v_string2...

It will do for u..

Cheers,

SImha.

<b>Mark all the helpful answers..</b>

Read only

Former Member
0 Likes
710

hi Sangeetha

concatenate '''' itab_split-constantname '''' into v_string1.

concatenate '''' itab_split-linenum '''' v_string2.

concatenate v_constantname '=' v_string1 v_linenum '=' v_string2 into itab_where-line separated by space.

Hope this 1 helps.

Regards

-


Sachin Dhingra

Read only

Former Member
0 Likes
710

Hello Sangeetha,

Save the single quotes as a TEXT Symbol and concatenate.

If useful reward.

Vasanth