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: 

SLAD - no break

franz_reitmayer2
Explorer
0 Kudos

Hi Everyone,

I've a question abount Layer Aware Debugging. I set up an example with selection-screen a simple select and a cl_salv_table utilizing a fullscreen display with a custom toolbar.

Debugging using /h comes with the issue the salv uses its own program, so after pressing the custom button you dont enter your own coding but the auxillary code of salv table and one has to debug to the raise event ... statement which ties the salv table to the custom event handler.

So I found it handy to use Layer Aware Debugging to stop at the programm wich belongs the customer namespace, say Z*, but unfortunatelly I am not able to make that.

Can anyone please provide an hint on that?

Thanks and Regards,

SPAN { font-family: "Consolas"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; }

report ztest_salv.

class lcl_event_handler definition.
public section.
methods:
on_toolbar for event added_function of if_salv_events_functions importing e_salv_function.
endclass.

class lcl_event_handler implementation.
method on_toolbar.
message 'Toolbarbutton clicked!' type 'I'.
endmethod.
endclass.

data:
lv_event_handler_ref type ref to lcl_event_handler,
gs_sflight type sflight.

initialization.

lv_event_handler_ref = new lcl_event_handler( ).

selection-screen begin of block b1.
select-options:
s_connid for gs_sflight-connid,
s_carrid for gs_sflight-carrid.
selection-screen end of block b1.

start-of-selection.
select * from sflight
into table @data(lt_sflight)
where
connid in @s_connid
and
carrid in @s_carrid.

cl_salv_table=>factory(
importing
r_salv_table = data(lv_salv_tab_ref) " Basisklasse einfache ALV Tabellen
changing
t_table = lt_sflight
).

lv_salv_tab_ref->set_screen_status(
exporting
report = sy-repid " ABAP-Programm, aktuelles Rahmenprogramm
pfstatus = 'STATUS_TEST' " Bildschirmbilder, aktueller GUI-Status
set_functions = cl_salv_table=>c_functions_all " ALV: Datenelement für Konstanten
).

set handler lv_event_handler_ref->on_toolbar for lv_salv_tab_ref->get_event( ) .
lv_salv_tab_ref->display( ).

1 REPLY 1

franz_reitmayer2
Explorer

Got it. I've missed the "Next Object Set" Button, which must be used to break at the defined Software Layer.

Thanks and Regards

Franz