Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Asset Condition Failed error in EPM 10 read transaction BADI

Hi Experts,

We were using BPC 7.5 earlier and now we have upgraded to EPM 10.1.  As a process we are replacing the obsolete READ and Write methods in the BADI's.

When I am using this method run_rsdri_query of interface IF_UJO_QUERY, I am setting I_PACKAGESIZE parameter for the method.

If I set package size parameter I am getting a dump saying ASSERT CONDITION failed(see the dump on the line 16 below).  But if I do not set the I_PACKAGESIZE parameter there is no dump.  did anyone face this issue? can you please help me?

dump:

Source Code Extract

Line  SourceCde

    1 method RUN_RSDRI_QUERY.

    2                                     "begin frp290513 hana native model

    3   data:

    4         lf_first_call type uj_flg,

    5         ls_opt type if_ujo2_request=>s_query_option.

    6

    7   lf_first_call = io_request->is_first_call( ).

    8   ls_opt = io_request->get_options( ).

    9   if ls_opt-package_size <= 0.

   10     lf_first_call = abap_true.

   11   endif.

   12   if lf_first_call = abap_false.

   13     data: lo_query_engine type ref to if_ujo2_rsdri_query_engine.

   14     lo_query_engine = io_request->get_query_engine( ).

   15     "call set_query_engine inside the run_rsdri_query method of the engin

>>>>>     assert lo_query_engine is not initial.

   17     ro_resultset = lo_query_engine->run_rsdri_query( io_request ).

   18   else.

   19     data: lo_request_distributor type ref to if_ujo2_request_distributor.

Former Member
Former Member replied

Hi Biswajit,

I resolved this issue by passing C_FIRST_CALL changing parameter to the RSRDI_RUN_QUERY method.  initially C_FIRST_CALL parameter was not passed hence when we pass package size parameter it throwing dump.

Thanks,

Vijay

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question