Skip to Content
0

SLAD - no break

Mar 04, 2017 at 09:22 AM

82

avatar image
Former Member

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( ).

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member Mar 05, 2017 at 07:59 AM
1

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

Share
10 |10000 characters needed characters left characters exceeded