Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Filter the partner function - BTPARTNER

$
0
0

Hi Thomas,

 

I wrote the code in ON_NEW_FOCUS , but still it is not working.

 

DATA: lr_bo TYPE REF TO if_bol_bo_property_access,

         lr_iterator type ref to IF_BOL_BO_COL_ITERATOR,

         lr_entity type ref to cl_crm_bol_entity,

         lr_col type ref to if_bol_bo_col.

 

 

     lr_iterator = lv_collection->get_iterator( ).

 

     lr_iterator->filter_by_property( iv_attr_name = 'PARTNER_FCT'  " partner function 

                                       iv_value = 'Z00000001' )

 

     lr_bo = lr_iterator->get_first( ).

 

     CREATE OBJECT lr_col type cl_crm_bol_bo_col.

 

     while lr_bo is bound.

       lr_col->add( lr_bo ).

       lr_bo = lr_iterator->get_next( ).

     endwhile.

 

     me->collection_wrapper->set_collection( lr_col ).

 

Still it is not working .

 

regards,

ram


Viewing all articles
Browse latest Browse all 7775

Trending Articles