Skip to Content
0
Former Member
Apr 21, 2009 at 03:20 AM

How to call the 'DETAIL' function in ALV for a program?

74 Views

Dear Friends,

I have a prf_tree (TYPE REF TO cl_gui_alv_tree), and I added below codes to add an new button for displaying the detail record, it works fine:

CALL METHOD prf_toolbar->add_button

EXPORTING

fcode = prf_tree->mc_fc_detail

icon = icon_detail

butn_type = cntb_btype_button

text = ''

quickinfo = 'Show Details'.

Everytime I click this new button, a window will popup and display the record details.

My question is: how to call this standard function ('DETAIL' function) in a program? for example:

CASE ldf_ok_code.

WHEN gcf_okcode_save.

PERFORM okcode_save.

WHEN 'SHOW_DETAIL'.

CHECK gdf_nodkey_9003 IS NOT INITIAL.

PERFORM SHOW_DETAIL.(How to write this code to display the detail data of the selected record?)

Thanks a lot!