Application Development 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: 

Regarding ALV

Former Member
0 Kudos
58

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?

1 REPLY 1

Former Member
0 Kudos
35

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