cancel
Showing results for 
Search instead for 
Did you mean: 

lr_bol_entity - OBJECTS_OBJREF_NOT_ASSIGNED - CX_SY_REF_IS_INITIAL

Former Member
0 Kudos

Hi Experts,

I am trying to provide access to a program which has the following code.

LOOP AT it_actid INTO lw_actid.

lv_low = lw_actid-activity_id.

lr_bol_query_service->clear_query_parameter_values( ).

lr_bol_query_service->insert_selection_param( iv_index = 1

iv_attr_name = 'OBJECT_ID'

iv_sign = 'I'

iv_option = 'EQ'

iv_low = lv_low ).

lr_result ?= lr_bol_query_service->get_query_result( ).

IF lr_result IS BOUND.

CLEAR : lr_bol_entity .

lr_bol_entity ?= lr_result->get_first( ).

The last statement doesn't retrieve any boll objects & the system dumps. i have no clue what this method is trying to read & to my surprise the Trace on ST01 doesn't show any failure !! I wonder what AUth object would solve this issue. But while SAP_ALL is assigned it works & the trace during that time alo doesn't show any extra auth objects being checked !!

Please developers/Security Consultants throw some light here .

Cheers.

Shawn.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member193352
Active Contributor
0 Kudos

Dear Shawn,

You might like to check the types declaration for lr_result and lr_bol_entity which if not similar will lead to exception at runtime.

Thanks

Vishal

Former Member
0 Kudos

Dear Vishal,

But the strange thiing is this code works with SAP ALL.

If it is a type mismatch it should'nt work with that extra Auth too !.

regards,

Shawn.

christian_koch3
Explorer
0 Kudos

Hi Shawn, could you post please the data declarations? Maybe there is a declaration mismatch (the type of the reults entitties is another than the entity variable that you are using). Which Query(name) are you using?

Best regards

Christian