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

FM : LIST_FROM_MEMORY

Former Member
0 Likes
765

Hello,

I have used this FM in my report. On execution of this report, it gives the report output correctly, but if i click F3 after exectuion of the report, i get the run-time error and the error "Exception condition "NOT FOUND" raised".

Plz do let me know how to handle this.

Regards,

Gururaj.

4 REPLIES 4
Read only

FredericGirod
Active Contributor
0 Likes
705

Hi,

this function is used to save the result of a program. Did you have manage the Exception on the CALL FUNCTION ?  use pattern if you didn't know how to do this.

regards

Fred

Read only

Former Member
0 Likes
705

hi I think you have commented the exceptions for the FM..any way Try this...

   CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject       = ttt
EXCEPTIONS
   NOT_FOUND        = 1
   OTHERS           = 2
          .
IF sy-subrc <> 0.

message ' error'  type 'I'.
LEAVE program.
ENDIF.

Read only

gouravkumar64
Active Contributor
0 Likes
705

Hi,

"Exception condition "NOT FOUND" raised".

So you can try to catch the exception.

CALL FUNCTION 'LIST_FROM_MEMORY'

  TABLES

    listobject       = it_table

EXCEPTIONS

   NOT_FOUND        = 1

   OTHERS           = 2

          .

IF sy-subrc <> 0.

message ...... with 'List not Found' .

ENDIF.

And are you trying with ALV grid OR ALV LIST?

Try with ALV List.

Thanks

Gourav.

Read only

Former Member
0 Likes
705

Hii Gururaj,

Don't comment the exception part of the FM.

Display the message including raising the exception like below.

CALL FUNCTION 'LIST_FROM_MEMORY'

  TABLES

    listobject       = itab

EXCEPTIONS

   NOT_FOUND        = 1

   OTHERS           = 2

          .

IF sy-subrc <> 0.

MESSAGE 'Not found' TYPE 'E' RAISING NOT_FOUND.


ENDIF.