cancel
Showing results for 
Search instead for 
Did you mean: 

BOL object Campaign

markus_reich
Participant
0 Kudos

Hi Experts,

we want to make a new assignment block within the BP view, the view should show all campaigns where the bp is involved in.

We use the function module CRM_MKTPL_CAMPGNS_TO_BUPA_GET, which works well.

So we add a new view to the component BP_DATA, no I have certain problems getting the right bol entities!

First thought was to use root entity Campaign, but this BOL was not possible to set as BOL node within the view creation wizard? So we choose BuilCampaign, but BuilCampaign is no root entity, it is related to BuilHeader, so it's not possible to create entities by BOL framework e.g.


lr_core = cl_crm_bol_core=>get_instance( ).

lr_entity = lr_core->get_root_entity( iv_object_name = 'BuilCampaigns'
                                      iv_object_id = lv_id ).

Does anybody know why the BOL Campaign doesn't show up in the wizards search help for the BOL node?

regards

Markus

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Markus,

There's workaround to solve your problem. Create VAUE NODE for the context node. It's mean you need to :

1. Create structure for the attributes that you need to show in the Web UI, for example campaign_id, description, plan start, plan finish, etc.

2. redefine the on_new_focus method to get the value of the attibutes

in this method you can call FM 'CRM_MKTPL_CAMPGNS_TO_BUPA_GET' and passing by the bp_guid, you get the list of campaign_id. From there, you can get another attributes

Hope it's help,

Lina

markus_reich
Participant
0 Kudos

Hi Lina,

this would work, of course, but I thought there would be a nicer possibility, nevertheless thanx for response.

Markus

Answers (1)

Answers (1)

VishnAndr
Active Contributor
0 Kudos

Hello, Markus.

Firstly,

BOL Campaign must be in the model which is used in the component BP_DATA. If it's not there you won't be able to choose it in the wizard. You can check which model is in use in Runtime Repository Editor of this component.

Secondly,

why don't you use BuilCampaign itself? (don't know what it returns, but if it relates to BuilHeader...)

markus_reich
Participant
0 Kudos

Hi Andrei,

as I mentioned at the beginning, it's not possible to instantiate non-root objects like BuilCampaign through the BOL core framework?

Markus

VishnAndr
Active Contributor
0 Kudos

But you have a BuilHeader instance anyway. And you can get BuilCampaigns collection through BuilCampaingnsRel relation (with get_related_entities method), don't you?

markus_reich
Participant
0 Kudos

This was my first attend, there is a relation, but t gives nothing back, it seems that SAP plans to implement this, but by now it's not implemented

VishnAndr
Active Contributor
0 Kudos

Markus,

in such situation I'd suggest this: if you definetly now that BOL Campaign can help you and you know the component which this BOL belongs to you can add this component to component set BP_APPL (which is used in BP_DATA UI component) in SPRO -> CRM -> CRM Cross-Application Components -> Generic Interaction Layer/Object Layer -> Basic Settings. And from this point you'll be able to instantiate it in BP_DATA.