cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a New Assignment Block

Former Member
0 Kudos

Hello Experts,

I need to add/create a new assignment block 'Strategy Plan ' similar to existing assignment block 'Attachment'

in Account screen.

I got the document which suggest creation of new assignment block by creating Set Type and attribute.

But can't figure out how to make that assignment block similar to existing one 'Attachment'.

Please help me how to proceed .

Thanks in Advance,

Ram

Accepted Solutions (0)

Answers (1)

Answers (1)

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

The set type assignment block example is only for scenarios where you have created a set type for, say, a product and wish to bring it to the UI as an assignment block. This may not be the right example to follow in your case. Assignment blocks usually come from component usages. Identify the BSP component you wish to make available as an assignment block. This component must have an interface defined. In the runtime repository of the parent component, add the bsp component interface you want under the component usages. Then, open the viewset under the overview page and add your component usage window. Then go to the UI configuration tool and push the new window to available blocks. The node bindings may be done in the component controler's wd_usage_initialize method. You may refer to the already existing component usages that are used as assignment blocks.

Regards,

Arun Prakash

Former Member
0 Kudos

Hi Arun,

I did exactly how you said.

Opened the Component BP_HEAD in Enhancement set 'Z_ENHANCE'.

Added the component usage 'ZStrategy' their inbound plugs and outbound plugs

similar to one used by Attachment assignment block.

Added the View 'ZStrategy.MainWindow' under viewarea 'OverviewPage'

of ViewSet 'BP_HEAD/BPHEADOverveiw'.

Also Initialized the component usage in WD_USAGE_INITIALIZE of component controller.

But When I see the assignment block in WebUI.

I see simple window with no toolbars in it. Also It disapears when expanded.

I gives error like "CX_BSP_WD_INCORRECT_IMPLEMENT - Define component usage 'ZStrategy'

CX_BSP_WD_INCORRECT_IMPLEMENT - Define component usage 'ZPlanStrategy' "

I think I missed some steps or may be my enhancement set is not loading.

Help me out.

Thanks and Regards,

Ram

arunprakash_karuppanan
Active Contributor
0 Kudos

Hi,

First test your Zcomponent from the component workbench. Make sure that it is working alright on it's own. Check if a component interface has been properly defined and the inbound/outbound plugs added in the interface. If you are using component controller binding, make sure that the context node is added to the component interface.

If your zcomponent itself is not working correctly on its own, correct it. The next possible thing may be a problem with the binding. Comment out the binding code in wd_usage_initialize and check. If the component comes up ok, correct the binding code. Make sure that the source and target nodes are specified properly and that the node is available in the component interface.

Regards,

Arun Prakash

Former Member
0 Kudos

Hi Arun ,

Resolved the issue.

Actually the Enhancement set which I was using for the component was not

assigned to the client.

That's why the enhancement set was not loading up.

Thanks anyways,

Ram