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

Problem while getting exporting and importing the ALV list data !

Former Member
0 Likes
620

Hi experts,

I have a requirement that, I need to call a standard program inside my program and use its output data for further processing. So I used SUBMIT rep EXPORTING LIST TO MEMORY. That standard report has the output in ALV list format. I think It is exporting it to the output and while reading the memory data, I have used the function module 'LIST_FROM_MEMORY'. However this function module returns the data in ASCII format.

How do I convert that, back to my ABAP program usable data.

Please help.

Regards,

Ganesh Khumse

3 REPLIES 3
Read only

Former Member
0 Likes
580

do one simple thing

dont submit ALV data into memory..

use following code :

IT is an internal table that u r displaying in ALV ok.

EXPORT IT TO MEMORY ID 'XYZ'.

THEN CALL UR REPORT HERE.

IMPORT IT FROM MEMORY ID 'XYZ'. ( if u are importing the data in different program then the table IT should be same type ok )

THIS IS EASIEST CODE...

reward points if useful........

Read only

0 Likes
580

HI Naresh,

Thanks for the reply. But ALV is getting displayed in the standard report. I am not passing the internal table to the ALV. As per you, then I need to clone the standard object to pass the internal table to memory, which will involve lot of cloning. Main program, couple of function modules and includes.

Is this the only one solution for this?

thanks.

Read only

Former Member
0 Likes
580

Copied the standard program and some function modules in it. Before passing it to the ALV, the internal table is exported to memory with ID and back in the program imported the same.