Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9193

Re: Search Help In opportunities Search Page

$
0
0

Hi Cris

 

You can get it from the below process

 

if you are using decision popup . .if you want to fill the popup with values

 

  • Go to VIEW IMPL CLass
  • Redefine GET_DQUERY_DEFINIIONS

 

CALL METHOD super->get_dquery_definitions

RECEIVING

rt_result = rt_result.

LOOP AT rt_result ASSIGNING <rs_result>.

CASE <rs_result>-field.

 

WHEN 'FIELDNAME'.

<rs_result>-server_event = 'EVENTNAME'.

ENDCASE.

ENDLOOP.

 

  • Now Create a Event <EVENTNAME>

(in the event write the following code)

( Internal table and work area  declare globally so that it is available to other methods also )

 

REFRESH it_partner.

 

(here hust for eg i want to have bp number in popup )

wa_partner-partner = '421911'.

APPEND wa_partner TO it_partner.

 

(we can use select statements also to fill the internal table)

 

CALL METHOD comp_controller->window_manager->create_decision_popup

EXPORTING

iv_title             = 'Partner data'

iv_selection_mode    = 'SINGLESELECT'

iv_display_table     = it_partner

RECEIVING

rv_result            = <POPUPINSTANCE>

 

CALL METHOD <POPUPINSTANCE>->set_on_close_event

EXPORTING

iv_view       = me

iv_event_name = 'CLOSE1'.

 

<POPUPINSTANCE>->open( ).

 

in the CLOSE event of the popup write the below code : here we write the code for placing the selected value from popup into the field

 

data :  lr_outputnode TYPE REF TO cl_bspwdcmp_bspwdcomponen_cn01,

          obj_query      TYPE REF TO cl_crm_bol_dquery_service,

           index TYPE sy-index,

           lt_row_index   TYPE int4_table,

 

 

lr_outputnode ?= <popup instance>->get_context_node( 'OUTPUTNODE' ).

 

CHECK lr_outputnode IS BOUND.

 

lt_row_index = lr_outputnode->get_selectedrowindex_t( ).

 

LOOP AT lt_row_index INTO index.

READ TABLE <decision popup Internal tab > INDEX index INTO wa_partner.

ENDLOOP.

 

partner = wa_partner-partner.

 

obj_query ?= me->typed_context->nodename->collection_wrapper->get_current( ).

 

CALL METHOD obj_query->get_selection_params

RECEIVING

rv_result = obj_col.

 

lr_entity = obj_col->get_first( ).

 

CHECK lr_entity IS BOUND.

 

WHILE lr_entity IS BOUND.

 

CALL METHOD lr_entity->get_property_as_string

EXPORTING

iv_attr_name = 'ATTR_NAME'

RECEIVING

rv_result    = attr.

 

IF attr = 'FIELDNAME'.

 

CALL METHOD lr_entity->set_property

EXPORTING

iv_attr_name = 'LOW'

iv_value     = partner.

ENDIF.

 

lr_entity = obj_col->get_next( ).

 

endwhile.

 

***by using above code you can place selected value from popup

 

 

Regards

Dinesh Gurram


Viewing all articles
Browse latest Browse all 9193

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>