‎2013 Nov 12 9:29 AM
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.
‎2013 Nov 12 9:36 AM
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
‎2013 Nov 12 9:39 AM
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.
‎2013 Nov 12 9:44 AM
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.
‎2013 Nov 12 9:57 AM
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.