Hi Kalpana,
Why did you add this code,
lr_current = cl_crm_bol_dquery_service=>get_instance( 'WFDResourceSearchRankDyn' ). "QRYRES Base Entity WFDResourceSearchRankDyn
The above line of code is not required and comment that line as you have already instance in line lr_current ?= me->typed_context->qryres->collection_wrapper->get_current( ).
You can set the org_id attribute with value using lr_current->add_selection_param.
Regards,
Dharmakasi.