cancel
Showing results for 
Search instead for 
Did you mean: 

EC component to Item Node of Opportunity C4C SDK

A-J-S
Active Participant
0 Kudos

Hi,

I have created a new custom BO with Item UUID as unique key and added a node in that.

Structure of BO looks like this.

Element ItemUUID

Element ProductID

Element OpportunityID

Node Char

Element Char1

Element Char2

Element Char3

I created a EC for this custom BO and added the header fields and table for the node Char

Linked this with Opportunity BO Item node using Items pane container, assigned the in ports and create an event to create an instance.

Problem is when the instance is created, it just creates one instance, it is not create difference instances for each item, instead one common instance for all items.due to this the node Char will always have values of all items together.

Is this a product limitation or how it can be made to create separate instances for each item ?

Thanks and Regards,

Ajith

Accepted Solutions (1)

Accepted Solutions (1)

former_member240914
Participant
0 Kudos

Hi Ajith,

I believe, you are creating an instance on custom BO via an event handler fired from an inport.

As you know, the inport is fired only when the EC is loaded. which means inport is fired only once, and hence create is called only once.

Since, the requirement is not clear, I cannot propose an optimal design here. but however if you want to create multiple item nodes.

You need to model custom BO with Root and Item node. Implement a custom action, which will read the opp item information and call creation of item node of custom BO. In EC, inport event handler will first read/create an instance of custom BO and call the BO action.

Thanks & regards

Pramodh

Answers (2)

Answers (2)

0 Kudos

Hi Ajith,

Is the issue is resolved ?

If yes ,I have a similar kind of requirement in sales quote .

please help me with your email ID.

Regards

Deepak Das

A-J-S
Active Participant
0 Kudos

Hi Promodh,

I got my solution from below link.

https://archive.sap.com/discussions/thread/3849703

Thanks for your response.

Ajith.