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: 

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

michael_scofield
Explorer
0 Kudos

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?

3 REPLIES 3

Former Member
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since this is your first question, I recommend that you familiarize yourself with: https://community.sap.com/resources/questions-and-answers, as the overview provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question by selecting Actions, then Edit.

By adding a picture to your profile you encourage readers to respond: https://developers.sap.com/tutorials/community-profile.html

Sandra_Rossi
Active Contributor
0 Kudos

You'll need to debug, we can't do it for you.

Alternatively, you could go to the Support to see if there is something about the issue.

Possible solution if you don't find anything: if your Z program calls the transaction code FBL5H (call transaction ... using ...) instead of program FAGL_LINE_ITEM_BROWSER_AR (submit), then you'll be in exactly same context, and there will be no reason to get a short dump...

michael_scofield
Explorer
0 Kudos

Thanks for the response!

I would like to fetch data from that transaction into my zprogram. Any suggestion?