2009 Nov 24 12:35 PM
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.
2009 Nov 26 2:05 PM
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
2009 Nov 26 3:30 PM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |