on 08-26-2014 2:12 PM
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.!!!!!!!!!!!!!!!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
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.