on 06-16-2011 10:51 AM
Hi,
In my FM i am using 2 models and if i dont completely exit the Function and use the same fm for another query based on another
model it is giving error saying invalid type.
if iv_type_of_search = 'A'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BP_APPL' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BuilHeaderAdvancedSearch' ).
Contact Search
elseif iv_type_of_search = 'C'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BP_APPL' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BuilContactAdvancedSearch' ).
*Opportunity Search
elseif iv_type_of_search = 'O'.
start the application BT
lv_bol_core = cl_crm_bol_core=>get_instance( ).
lv_bol_core->start_up( 'BT' ).
get an instance of dynamic opporunity query
lr_query = cl_crm_bol_dquery_service=>get_instance( 'BTQOpp' ).
endif.
Any idea how to over come this or remove the instance of the old query and model every time its run?
it looks like the object of the last run is still there and i cant find any destructor method or way and
if i exit se37 it works fine....
Hi George,
Check methods CL_CRM_BOL_DQUERY_SERVICE=>DELETE_QUERY_TEMPLATE and method DQUERY_DELETE of class CL_CRM_BOL_CORE, try calling delete dquery each time you are done using query service.
Regards,
Priyanka
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi George,
You can also set up your model (component set) with the components you need.
Check it on:
SPRO->CRM->CRM Cross-Application Components->Generic Interaction Layer/Object Layer->Basic Settings
Kind regards,
Garcia
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.