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: 

Report output from memory to internal table (corresponding fields)

Former Member
0 Kudos

How can we pick any standard report output such as

RM07DOCS on to memory and from memory to an internal

table.Here by internal table ,i do not mean of type c

containing complete report but data should go from output to corresponding fields of internal table structure of whom is defined as same of the output.

3 REPLIES 3

Former Member
0 Kudos

SUBMIT rfbila00 AND RETURN

EXPORTING LIST TO MEMORY

  • WITH sd_ktopl-low = ' '

WITH sd_bukrs IN s_bukrs

WITH sd_prctr IN s_prctr

WITH bilavers = p_fsv

WITH bilaspra = 'EN'

WITH bilbjahr = p_fyear

WITH b-monate IN s_per

WITH bilvjahr = v_cfyear

WITH v-monate = l_per

WITH bilagvar = P_LAYOUT

WITH bilagrid = 'X'

WITH bilabkon = '2'

WITH bilagkon = '3'

WITH bilasumm = '0'

WITH bilavart = '1'

WITH bilaskal = '3/0'.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = t_list

EXCEPTIONS

not_found = 1.

REFRESH t_ascii.

CALL FUNCTION 'LIST_TO_ASCI'

TABLES

listasci = t_ascii " list converted to ASCII

listobject = t_list

EXCEPTIONS

empty_list = 1

list_index_invalid = 2

OTHERS = 3.

u will get the output in t_list...u have to split as per ur requir......

this will help u.....

Reward IF...........

Regards

Anbu

0 Kudos

what you are telling me t_list here is to defined as abaplist

The further modules will convert to text.

What i get is screen output to internal table but not segregated in terms of fields of internal table.I have tried this already by coding.

huseyindereli
Active Contributor
0 Kudos

Hi ,

Copy RM07DOCS to ZRM07DOCS. And put a parameter p_flag with the property of no-visible. When you call the program just to get the internal table ,

SUBMIT ZRM07DOCS ......

WITH p_flag = 'X'.

You need to change the program ZRM07DOCS ;

if p_flag eq = 'X'.

EXPORT gt_your_internal table to memory id 'Z_UNIQUE_ID' .
"" Just export int. table
else.
 "" Normal mode
endif.

than you can get your internal table using ;

IMPORT gt_internal_table FROM memory id 'Z_UNIQUE_ID' .