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

Generating ALV list through submit statement

Former Member
0 Likes
1,087

Hi everyone !

I have to get the result ALV list from a program which is called by a submit statement.

This program is a copy of the standard RAABGA01 which has been modified in order to display results in ALV format. I call it using a submit statement with the option EXPORT LIST TO MEMORY and get the list back using FM LIST_FROM_MEMORY.

I don't have troubles getting the list back but the problem is that there is no results in it.

I only get the column headers and the message 'List contains no data'.

When I execute my copy of RAABGA01 manually with exactly the same parameters the list is not empty.

Does anybody have an idea of what's happening here ?

(RAABGA01 is using logical database to select data. Maybe this is related ?)

Thanks.

Nicolas.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
809

Hi,

Whatever u r getting the import from memory

it will have the data with header

u have to remove the header data ,only u have to download the records not header

so ,it is difficult to do. but the list u r updating in to memory should not have the header u have to upload as a internal table format and download it again as same structure.

then u can display it in ALV format.

Logical database also some time have problem. Please get authorization to display to view that .if u r able to see data in standard then u r z report also it should display. But u have to call that LDB in attribuutes also

Regards,

Nandha

Reward if it helps

3 REPLIES 3
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
809

Hi,

Problem may be that you are loosing the data as you are creating a New Session.

You can use EXPORT IMPORT (ABAP memory) only between two internal sessions of an external session.

Make sure you are not creating any other external session in between.

Also USE FM to store and retrive or EXPORT and IMPORT to store and retrieve dont club them, thst is dont store using EXPORT and then try to get it using an FM call.

Regards,

Sesh

Read only

Former Member
0 Likes
809

Hello Nicolas,

Since the report is using ALV list display, there is no need to export the list to memory.

Directly submit the report and use return.

Vasanth

Read only

Former Member
0 Likes
810

Hi,

Whatever u r getting the import from memory

it will have the data with header

u have to remove the header data ,only u have to download the records not header

so ,it is difficult to do. but the list u r updating in to memory should not have the header u have to upload as a internal table format and download it again as same structure.

then u can display it in ALV format.

Logical database also some time have problem. Please get authorization to display to view that .if u r able to see data in standard then u r z report also it should display. But u have to call that LDB in attribuutes also

Regards,

Nandha

Reward if it helps