Wednesday, April 17, 2013

SAP CRM Dynamic query






DATA: lr_core TYPE REF TO cl_crm_bol_core,
  lr_query TYPE REF TO cl_crm_bol_dquery_service,
  lr_result TYPE REF TO if_bol_entity_col.
  "lr_entity TYPE REF TO cl_crm_bol_entity.


  lr_core = cl_crm_bol_core=>get_instance( ).
  lr_core->load_component_set( 'BTBP' ).

  lr_query = cl_crm_bol_dquery_service=>get_instance(
  iv_query_name = 'BTQOpp' ).


  CALL METHOD lr_query->add_selection_param
    EXPORTING
      iv_attr_name = 'PROSPECT'
      iv_sign      = 'I'
      iv_option    = 'EQ'
      iv_low       = '0001000426'
*     iv_high      =   iv_high
    .

  lr_opp_col = lr_query->get_query_result( ).

2 comments:

  1. It was really a nice article and I was really impressed by reading this article We are also giving all software Course Online Training. The Sap CRM Online Training is one of the leading Online Training institute in the world.

    ReplyDelete
  2. Well this was very good article and very useful for SAP CRM learners i was really satisfied see this article we also provide SAP CRM Online Training

    ReplyDelete