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

CONCATENATE problem

Former Member
0 Likes
911

heloo i have problem that CONCATENATion is doen only up to 256 character.

DATA : ZZ TYPE CATSXT_LONGTEXT_ITAB.

DATA : ZZ1 LIKE LINE OF ZZ.

DATA : TEXT_AA TYPE TEXT1024.

LOOP AT ZZ INTO ZZ1 .

CONCATENATE TEXT_AA ZZ1 INTO TEXT_AA.

ENDLOOP.

now for that TEXT_AA. prints only first 256 character .

so plz help in proper way

thanks

9 REPLIES 9
Read only

Former Member
0 Likes
851

Hi Rajan,

How are you printing this.

Can you show that code.

Regards,

Atish

Read only

0 Likes
851

CALL FUNCTION 'CATSXT_SIMPLE_TEXT_EDITOR'

EXPORTING

IM_TITLE = 'Enter your text here'

  • IM_DISPLAY_MODE = ' '

  • IM_START_COLUMN = 10

  • IM_START_ROW = 10

CHANGING

CH_TEXT = ZZ.

BREAK-POINT.

LOOP AT ZZ INTO ZZ1 .

CONCATENATE TEXT_AA ZZ1 INTO TEXT_AA.

ENDLOOP.

write TEXT_AA.

Read only

Former Member
0 Likes
851

Hi,

Instead of concatenating the values move the values by seting the offset length.

Regards,

Nandha

Read only

0 Likes
851

will u plz tell me in detail

Read only

Former Member
0 Likes
851

Hi,

Try like this...



DATA : ZZ TYPE CATSXT_LONGTEXT_ITAB.
DATA : ZZ1 LIKE LINE OF ZZ.
DATA : TEXT_AA TYPE STRING. "Use String
 
LOOP AT ZZ INTO ZZ1 .
CONCATENATE TEXT_AA ZZ1 INTO TEXT_AA.
ENDLOOP.

WRITE : / TEXT_AA.

Hope its helps

Read only

Former Member
0 Likes
851

Hi,

Use in this way,U'll get the output u specified 1000 char.just execute this

Report ZTEST12345 NO STANDARD PAGE HEADING LINE-SIZE 1000 .

data v1 TYPE string.

DO 50 TIMES.

CONCATENATE 'Hi How are u?' v1 INTO v1.

ENDDO.

WRITE : v1.

Read only

0 Likes
851

i am passing it to my smartforms

Read only

Former Member
0 Likes
851

solved by self

Read only

0 Likes
851

So you are another one of those posters that notes they solved the problem but you don't post the solution. Real helpful - NOT!

Please post your solution.