Application Development and Automation 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: 
Read only

ABAP Runtime error..

Former Member
0 Likes
512

Hi while executing a report iam facing an error.

cs_salv_bs_sc_runtime_info exception is thrown. Near the Function Module SSF_FUNCTION_MODULE_NAME..

Please tell me how to catch that error?

Its going into ABAP DUMP..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
474

Hi,

Which method are you trying to use from the class: cx_salv_bs_sc_runtime_info

You need to write the stmt. inside TRY..ENDTRY as follows:

TRY.

CALL METHOD l_stmt_ref->execute_query

EXPORTING

statement = lv_stmt

hold_cursor = space

RECEIVING

result_set = l_res_ref.

  • catch SQL and parameter errors

CATCH cx_sql_exception INTO lr_cxsql.

error_text = lr_cxsql->get_text( ).

err_no = sy-msgno.

ENDTRY.

Hope this helps.

Regards,

Subramanian

2 REPLIES 2
Read only

former_member195383
Active Contributor
0 Likes
474

analyse the dump in st22. See if u are missing any parameter. or if thr is any mismatch in datatype.

betwwen the parameters that u have delared and the Data type that the FM accepts...

Reward points..if the ans is helpful..

Read only

Former Member
0 Likes
475

Hi,

Which method are you trying to use from the class: cx_salv_bs_sc_runtime_info

You need to write the stmt. inside TRY..ENDTRY as follows:

TRY.

CALL METHOD l_stmt_ref->execute_query

EXPORTING

statement = lv_stmt

hold_cursor = space

RECEIVING

result_set = l_res_ref.

  • catch SQL and parameter errors

CATCH cx_sql_exception INTO lr_cxsql.

error_text = lr_cxsql->get_text( ).

err_no = sy-msgno.

ENDTRY.

Hope this helps.

Regards,

Subramanian