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: 

Create string 'xxx'

Former Member
0 Kudos

Hi all,

I need create string with char '

I try this:

******************

  • OBJNR EQ 'KSxxxx'

DATA znak(1) TYPE X VALUE '27H'.

CONCATENATE 'OBJNR' ' EQ' znak xxxx znak INTO objnr_m.

******************

But I dont use this syntax. In concatenate must be znak CHARACTER-TYPE data object.

How can I do this string?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

REPORT znak.

DATA znak(1).

DATA output(20).

znak = ''''.

CONCATENATE znak 'xxx' znak INTO output.

WRITE: 'znak: ', znak,

/'output: ', output.

5 REPLIES 5

Former Member
0 Kudos

Hello,

In this stmt cut and paste this.

CONCATENATE OBJNR ' EQ' znak xxxx znak INTO objnr_m.

If useful reward points.

REGARDS;

VASANTH

0 Kudos

I have same problem. ZNAK is not CHARACTER-TYPE data object.

I try znak define like structure, but my problem is still unsolved.

***************

DATA: BEGIN OF crlf,

znak(1) TYPE x VALUE '27H',

END OF crlf.

CONCATENATE 'OBJNR' 'EQ' crlf-znak objnr clrf-znak

INTO objnr_m.

Manohar2u
Active Contributor
0 Kudos
REPORT  YMANO_TEST1                             .
data objnr type equi-objnr.
data objnr_m(100).
* OBJNR EQ 'KSxxxx'
DATA znak TYPE string VALUE '27H'.
objnr = '121210001'.
CONCATENATE OBJNR ' EQ ' znak INTO objnr_m separated by space.

write objnr_m.

Former Member
0 Kudos

REPORT znak.

DATA znak(1).

DATA output(20).

znak = ''''.

CONCATENATE znak 'xxx' znak INTO output.

WRITE: 'znak: ', znak,

/'output: ', output.

0 Kudos

Thanks a lot...