Skip to Content
0
Former Member
Jan 29, 2014 at 09:34 AM

set default value in help value, from Outbound Plug of SRQM_INCIDENT_H

33 Views

Very good morning,

I wanted to call a search help, and pass default values. In the call(from my Outbound Plug), I try to use lr_col for to pass the default value. But the first time dont work, and the next time the field are duplicated,but with default value.


I know that is possible to do it from other places of help value component(), but i want to use from my componet ' SRQM_INCIDENT_H'. The help value name is 'PRD01QR'. My code es:

lr_context_node = productvaluehelp_popup->get_context_node( iv_cnode_name = 'SEARCH' ).
lr_query_service ?= lr_context_node->collection_wrapper->get_current( ).
IF lr_query_service IS NOT BOUND.
lr_query_service = cl_crm_bol_dquery_service=>get_instance( 'ProdAdvSearchRgProducts' ).
ENDIF.

CALL METHOD lr_query_service->add_selection_param
EXPORTING
iv_attr_name = 'PRODUCT_ID'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = ''.

CALL METHOD lr_query_service->add_selection_param
EXPORTING
iv_attr_name = 'DESCRIPTION'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = ''.

CALL METHOD lr_query_service->add_selection_param
EXPORTING
iv_attr_name = 'CATEGORY_ID'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = 'Z0003'.

CALL METHOD lr_query_service->add_selection_param
EXPORTING
iv_attr_name = 'CATEGORY_DESC'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = ''.

lr_col = lr_query_service->get_selection_params( ).
productvaluehelp_popup->open( iv_inbound_plug = gv_refproduct_search_ip iv_collection = lr_col )

1000 thanks!!