Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: in objects result ,if user select any object and if i click the custom button on result directly open to service request creation page in sap crm ?

$
0
0

Hi,

 

I think you can get Service request from Productid

 

 DATA :   lv_productid               TYPE comt_product_id.   DATA :   lr_query_service      TYPE REF TO cl_crm_bol_dquery_service,            lr_result                        TYPE REF TO if_bol_entity_col,   lr_query_service = cl_crm_bol_dquery_service=>get_instance( 'BTQSrvReq' ). "#EC NOTEXT
*   Provide search parameters for the query     lr_query_service->add_selection_param( iv_attr_name = 'REFOBJ_IOBJECT_ID'                                            iv_option    = 'EQ'                                            iv_sign      = 'I'                                            iv_low       = lv_product_id ).     lr_query_service->add_selection_param( iv_attr_name = 'OBJECT_TYPE'                                            iv_option    = 'EQ'                                            iv_sign      = 'I'                                            iv_low       = ' BUS2000223' ).
*   Fire the query and get the result     lr_result = lr_query_service->get_query_result( ).


lr_result will contain service request structure  CRMST_QUERY_R_SRV_REQ_BTIL using guid you can write logic to navigate .

 

Regards,

Sumeet


Viewing all articles
Browse latest Browse all 7775

Trending Articles