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: 

getting a single quot into a variable.

Former Member
0 Kudos

<b>getting a single quot into a variable.</b>

I have a condition where I am dynamically constructing an IF condition, and passing it to my subroutine pool. My IF condition exceeds text literal maximum length. I cut it up into segments and wrote out the code in segments. This is not acceptable when the break is IN A TEXT LITERAL. ex.

IF BSEG-KUNNR EQ '2322093' OR BSEG-KUNNR EQ '330938'.
  gets broken up into 
IF BSEG-KUNNR EQ '2322093' OR BSEG-KUNNR EQ '33
0938'.

What I am doing instead is getting every 2 character piece of the string IFSTRING and trying to check if that 2 character string equals [' ]. That's just a single quote and a space. That would indicate the end of a single comparison. I tried comparing it to ` , ''', '` ', and others:

MOVE IFSTRING+OFF(CURLENGTH) INTO lt_string.
IF lt_string eq '` '.
 APPEND OFF TO BREAKREFERENCES.
ENDIF.

<b>Does anyone know how to move a single quote to a variable</b>? so i can concatenate <singlequot> & <singlespace> into comparisonstring.

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure.....

Data: s type string.


s = ''''.

Regards,

Rich Heilman

1 REPLY 1

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Sure.....

Data: s type string.


s = ''''.

Regards,

Rich Heilman