Skip to Content
0
Jun 13, 2022 at 12:58 PM

With 'SET HANDLER ... FOR src', 'src' cannot be 'ZERO'. FBL5H t-code

100 Views Last edit Jun 14, 2022 at 05:28 AM 3 rev

I want to fetch data from transaction FBL5H into zprogram for which im submitting standard program FAGL_LINE_ITEM_BROWSER_AR. PFB

DATA : lr_data TYPE REF TO data.
FIELD-SYMBOLS : <lt_data> TYPE ANY TABLE,
<lw_data> TYPE any.
cl_salv_bs_runtime_info=>set( EXPORTING display = abap_false
metadata = abap_false
data = abap_true ).
SUBMIT FAGL_LINE_ITEM_BROWSER_AR WITH s_bukrs = p_bukrs
EXPORTING LIST TO MEMORY AND RETURN.
TRY.
cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_data ).
ASSIGN lr_data->* TO <lt_data>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE `Unable to retrieve data` TYPE 'I'.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).

It is going to dump with error With 'SET HANDLER ... FOR src', 'src' cannot be 'ZERO'.

Can anyone help me on this?