2007 Mar 13 7:24 PM
Hi,
DATA : formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE'.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = i_events
EXCEPTIONS
read table i_events with key name = slis_ev_top_of_page
into l_i_event.
IF sy-subrc = 0.
MOVE formname_top_of_page TO l_i_event-form.
APPEND l_i_event TO i_events.
ENDIF.
***ERROR MESSAGE***
THE EXCEPTION "NAME" MUST BE ASSIGNED TO A NUMBER(LITERAL),
BUT "SLIS_EV_TOP_OF_PAGE"IS NOT NUMERIC.
Hoe to solve the Error?
2007 Mar 13 8:18 PM
Hi chaitanya,
in your function call is missing a line for the exceptions.
Please look in the definition of the function call 'REUSE_ALV_EVENTS_GET' and check there the strip EXCEPTIONS. If you want to catch any of these exceptions add a line in your code, like no_more_lines = 01. This gives you then the value for the sy-subrc if the code of this function module is finsihed. If you don't want to catch any exceptions, omit the line exceptions.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = i_events.
will do for simplicity.
Hope it helps.
Regards,
Juergen