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

Using list from memory

Former Member
0 Likes
384

I have the following code.

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

report ztest_098 line-size 500.

types : t_txt(1000) type c.

data : i_rspar type table of rsparams,

i_list type table of abaplist,

i_txt2 type table of t_txt,

i_txt type list_string_table.

data : i_s_rspar type rsparams.

submit rabest01

  • VIA SELECTION-SCREEN

line-size 500

with bukrs between 'BE10' and 'BE10'

with srtvr eq '0007'

with berdatum eq '20071130'

with bereich1 eq '01'

with summb eq 'X'

with xeinzel eq space

with xuntnr eq space

exporting list to memory

and return.

break-point.

call function 'LIST_FROM_MEMORY'

tables

listobject = i_list

exceptions

not_found = 1

others = 2.

if sy-subrc is initial.

call function 'LIST_TO_ASCI'

exporting

list_index = -1

  • WITH_LINE_BREAK = 'X'

importing

list_string_ascii = i_txt

tables

  • LISTASCI = i_txt2

listobject = i_list

exceptions

empty_list = 1

list_index_invalid = 2

others = 3 .

if sy-subrc is initial.

break-point.

endif.

endif.

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

Issue is that the list i_txt does not contain the full contents of a particular report line. It is shortened.

You can try the program chaning the parameter values in the submit statement.

The program being submitted is the one used by AR01 for asset values.

Appreciate your help.

1 REPLY 1
Read only

Former Member
0 Likes
308

Instead of using the program rabest01 use the program rabest_alv01.

The line-size statement in the program being submitted dictates the length of the output imported from memory.

The line-size specified with the submit report statement is overridden by that which is specified in the submitted program.