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

LIST_FROM_MEMORY raises exception 'not_found' for FF_5 program

Former Member
0 Likes
852

Hi,

I need to call the transaction FF_5 from a Z program and fetch the output list of this tcode into an internal table for further processing. I have used following lines of code:

SUBMIT RFBASM00

WITH einlesen EQ c_x

WITH format EQ c_i

WITH auszfile EQ l_filename

EXPORTING LIST TO MEMORY

AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = t_object

EXCEPTIONS

not_found = 1

OTHERS = 2.

The FF_5 returns its output as an ALV list but the FM 'LIST_FROM_MEMORY' returns sy-subrc = 1, saying the list is not found in the memory.

Please advise.

Hi,

I need to call the transaction FF_5 from a Z program and fetch the output list of this tcode into an internal table for further processing. I have used following lines of code:

SUBMIT RFBASM00

WITH einlesen EQ c_x

WITH format EQ c_i

WITH auszfile EQ l_filename

EXPORTING LIST TO MEMORY

AND RETURN.

CALL FUNCTION 'LIST_FROM_MEMORY'

TABLES

listobject = t_object

EXCEPTIONS

not_found = 1

OTHERS = 2.

The FF_5 returns its output as an ALV list but the FM 'LIST_FROM_MEMORY' returns sy-subrc = 1, saying the list is not found in the memory.

Please advise.

2 REPLIES 2
Read only

Former Member
0 Likes
568

Hi,

this Trick will work:

1. within your main program call a little Z-Program via CALL_TRANSACTION USNG...

(This will set SY-BPINT to "X")

2. within the Z-Program you do the SUBMIT RFBASM00 ... EXPORTING LIST TO MEMORY

3. in your main programm you can read the ALV-output with LIST_FROM_MEMORY

The reason for this detour is the fact that only ALV-ouput as List can be fetched by LIST_FROM_MEMORY.

Hope it solves your problems.

Regards

Markus

Read only

Former Member
0 Likes
568

It is because list is not getting transported to memory, check what is the result of the report to which you submit.

it can also be an error message and hence no list.