on 08-27-2012 9:50 PM
I have a partner based component based on BP_DATA ( with runtime model BP_APPL ) .
I have a custom view that lists the number of activites that are associated with the partner.
While prepping my output (in on_new_focus) I create a collection as:
lref_main_collection ?= lref_main_entity->get_related_entities( iv_relation_name = 'BuilActivityRel' ).
( lref_main_entity is a BuilHeader )
I know that there are about 250 related entities, but my collection truncates at 100.
How can I adjust this?
Hi Mike,
Which version of CRM system are you using ??
As of CRM 7.0 and below , it should fetch all the bol relations. There is no filter option to fetch related entities ( which is now present in 7.0 Ehp1).
Try reading the relation using tcode GENIL_BOL_BROWSER by loading BP query and fetch the Activity Relations.
Regards,
Nithish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sridhar,
Thanks - a number of folks suggested what would have been my preferred solution - to use a maxhit enabled filter, but for some reason, that did not work for me. That was my preferred route, as I had much more conditional control over when it was enacted.
I have coded up your suggested BADI implementation, and yes, it does work for me - my only concern is that I am limitted in filter criteria.
I'm not closing this yet, but will probably go with in the direction you have suggested.
Thanks...
...Mike
Hi Mike,
Your system is CRM Ehp1 , where the actual filters are added in method get_related_entities_by_filter . Not all bol relations can use this filter . You can check in tcode genil_model_editor and figure out whether filter class has been assigned to any relation or not.
Coming to using filter , you need to activate CRM_BP_SFWS_ATTRIBUTE_SETS switch ( tcode swf1) assigned to business function crm_inf_1 which needs to turn on ( tcode swf5). then it will take filter into account . Here we have to pass all the selection parameters by ourselves ( even the partner number, partner function,etc) and we can fix the MAX_HITS .,hen it will work .
Be careful while activating this business function CRM_INF_1, its irreversible .
At the end , I guess the best solution is to create a badi implementation of CRM_BP_UIU_BT which was technique used before ehp1 .
Regards,
Nithish
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
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.