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

Structure ABAPLIST

Former Member
0 Likes
704

Hi,

I have an internal table that has this table type.

DATA: it_tableTYPE STANDARD TABLE OF abaplist INITIAL SIZE 0

WITH HEADER LINE.

I am having a problem trying to load this table.

If I concatenate text into it, I get an error saying table needs to be character-type.

If I concatenate text into a string, then try and move it to this table, there is no change in the table.

Thanks

Lindy

3 REPLIES 3
Read only

Former Member
0 Likes
446

Hi lindy,

1. We cannot directly put character data

in this kind of structure ABAPLIST

bcos it contains field RFCRECORD

which is of type RAW.

2. This structure is generally filled in by the system

where it stores the output of a list program and

provides it back.

regards,

amit m.

Read only

0 Likes
446

Hi Amit,

I am trying to email a report that has lines longer than 255 characters.

If I use FM table_compress, I need to pass a table of type ABAPLIST which returns a table of type SOLISTI1.

I have tried using the following, but the return table is full of funny characters and not my data.

TYPES: BEGIN OF t_table,

line(1000),

END OF t_table.

DATA: it_table TYPE STANDARD TABLE OF t_table INITIAL SIZE 0

WITH HEADER LINE.

DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0

WITH HEADER LINE.

... load internal table it_table ...

CALL FUNCTION 'TABLE_COMPRESS'

TABLES

in = it_table

out = it_attach

EXCEPTIONS

OTHERS = 1.

... it_attach come back with funny characters ...

I need to know how I can load my internal table into a table with type ABAPLIST.

Thanks

Lindy

Read only

RaymondGiuseppi
Active Contributor
0 Likes
446

Use function module ABAPLIST. (But usually we read these list, not write them)

Regards