cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a custom assignment block inside BP_HEAD component.

Former Member
0 Kudos

Hi Experts,

My requirement is to add a custom AB inside the BPHeadOverview page of BP_Head component. I tried the following steps:

1 . Created a Zcomponent (like ZLEXCOMP).

2. Added a window in the component structur browser (ZMYWindow). I just added the name of window and left all the upcoming screens of wizard empty.

3. Next I added a View(ZMYView). Again, just added the name of view and left all the upcoming screens of wizard empty.

So the view is an empty view.

4. Then in runtime repository I tried to add my view to the window( ZLEXCOMP/ZMYwindow).

There I entered the BSP application as ZLEXCOMP and view name as ZMYView. So the view ZLEXCOMP/ZMYView got added to my window ZLEXCOMP/ZMYwindow.

5. Then in the Component Interface part I added my window as the Interface View(ie: ZLEXCOMP/ZMYwindow.)

6. Then in the Runtime Rep. Editor of BP_Head component, I added a Component usage.

Gave id as Test, used component as ZLEXCOMP & corresponding interface view as ZLEXCOMP/ZMYwindow.

7. Then in the BPHeadOverview viewset, under the ViewArea I added the view which I created.

Giving BSP application as ZLEXCOMP and the view as ZLEXCOMP/ZMYwindow. Then saved the repository.

My problem is, after completing all these steps, in the Component Structure Browser I can't find my view under the Views section, so I am unable to configure the fields.

Also when I go to the configuration tab of BPHEADOverview I can't find my view under the 'Available Assignment Blocks'. Please tell me under which standard configuration will I find my AB??

Kindly suggest if I have followed the correct procedure?? Please guide me if I am wrong.

Thanks a lot in advance.

Regards,

Litty.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Follow steps in this wiki http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock.

You have created the component usage in BP_HEAD, instead create it in the Z component.

Hope this helps you.

Tks/rgds

Jaya.

Former Member
0 Kudos

Hi Jaya,

Thank you for your response.

I follwed the link which you have suggested but skipped the part where it was required to fetch the values from a Z table.

Because i need some standard fields in my AB.

So I skipped adding a value node to my view, and just added the model node.

Now one of my earlier problems is solved. That is, now I can find my view under the Views section of BP_Head component.

But, still I could not find my AB under the Configuration tab of BPHeadOverview.

I tried enhancing the view which I created, added 1 configuration with the fields that I need & then saved the configuration.

Still , could not find my AB under the Configuration tab of BPHeadOverview.

Is this problem due to the fact that I have enhanced the component BP_HEAD, but the z component which I created is a standard one, ie: not tagged to the enhancement set??

former_member214667
Contributor
0 Kudos

Hi...

You need to make the following change in the runtime repository editor of the component:

Add your new custom view to the 'Overviewpage' viewarea of overview page BPHeadOverview.

Only after you do this will your custom view come under 'Available Blocks' table of your overview page configuration. And, to do this, you need to enhance the component and here you will need an enhancement set. Also, do prefix the name of enhanced component with "Z'.

Regards,

Shiromani

Former Member
0 Kudos

Hi Shiromani,

Thanks for your response.

I have already enhanced the BP_HEAD component by creating an enhancement set.

I have also added my custom view inside the 'OverviewPage' viewarea of the viewset 'BPHEADOverview'.

Saved the repository successfully also.

Again can't find my view under availableABs.

But the Z component & view that are created are not in my Enhancement set, it is a standard component.

Is that what is creating the problem??

Also, in the repository.xml file of my Z component I found the following code:

<Windows>

<!-- Declaration of windows -->

<Window id="ZLEXCOMP2/MainWindow" default="TRUE">

<EmbeddedView id="ZLEXCOMP2/LVIEW2" default="TRUE"/>

<InboundPlugs/>

<OutboundPlugs/>

</Window>

</Windows>

where ZLEXCOMP2 is my custom component & LVIEW2 is my custom view.

I saw one SDN link where this piece of code was creating some problem similar to mine.

Kindly suggest if it is relevant to my problem.

Thanks,

Litty.

former_member214667
Contributor
0 Kudos

Hi Litty,

DId you try looking at the technical names of the views under Available Blocks list? It might already be there but you might not have been able to recognize it.

And, this custom view will not come under Views list in BP_HEAD. To make configuration changes, you need to go to your custom component only.

Regards,

Shiromani

Former Member
0 Kudos

Hi,

I have checked the technical names too..still no luck.

And when I add my custom view under the OverView page viewarea of BPHeadOverview viewset, after saving the repository my custom view automatically gets added under the Views section of component structure browser of BP_HEAD component.

Thanks,

Litty.