cancel
Showing results for 
Search instead for 
Did you mean: 

Bol Programming for Search Result

0 Kudos

Hello Experts,

I have requirement as,in search I have to pass multiple parameter like Business Partner No,City,First name, last name  with range value and I need to get result regarding my Input, Please help me out for my requirement.How i right code for multiple import parameter  In BOL programming please let me know.


Thank's In Advance.!!!!!!!!!!!!!!!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Tasnim,

You can use the Bol Search Object 'BuilHeaderAdvancedSearch' . ( Dynamic query )

-- To that search parameter you can pass Partner , city etc,.

****

First you need to Load the component set : eg: ONEORDER

lr_core ?= cl_Crm_bol_core=>get_instance( ).

lr_core->load_Component_set( XXXXX = ONEORDER' ).

***

Now get the dynamic query instance

lr_dquery ?= cl_crm_bol_dquery_servce=>get_instance( XXXXX = 'BuilHeaderAdvancedSearch' )

** Now add the selection parameters

lr_dquery->add_selection_param( iv_attr_name = 'PARTNER

                                                 iv_sign  = '

                                                 iv_option  = 'BT'

                                                 iv_low   = '12271'

                                                 iv_high  = '131214'  )

( you can pass mutiple param )

** Now you can retrieve the result

lr_col type ref to cl_Crm_bol_bo_col.

lr_col ?= lr_dquery->get_query_result( ).

** Lr_col instance gives you the result entities

Hope this will help

Regards,

Dinesh Gurran