Skip to Content
0

Is it possible to work with one Embedded Component with Customer Contact and Account both?

Jul 06, 2017 at 10:05 AM

72

avatar image
Former Member

Hi all,

I have created a BO 'DQF' with on key field zcontactID and ZAccountID.I have created EC on it. I used EC with Customer Contact it works well. But It not works with Customer Account. It use BusinessPartnerInternalID as key. Then retrieve AccountID from it.

Inport AccountID shows proper value but ZAccountID not get the value.

businessobject DQF {

[AlternativeKey] element zcontactID: BusinessPartnerInternalID;

element ZAccountID: BusinessPartnerInternalID;

}

Is it possible to work with one Embedded Component with Customer Contact and Account both?

Here is give picture of dataModel.

Here is my output screen

Why the BO element AccountID does not get the AccountID where as Inport parameter gets it?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Horst Schaude
Jul 06, 2017 at 01:39 PM
0

Hello Swati,

Did you use the InPort for the left and the InPort_AC for the right image?

Bye,
. Horst

Show 8 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Horst,

Thanks for help.

I use InPort for Customer Contact, Parameter ContactID and InPort_AC for Customer Account,Parameter AccountID.

InPort is worked ok for Contact but InPort_AC get AccountID but my custom BO's element ZAccountID remains blank.

ContactID is Alternative Key.

As I shown in picture below,

I mapped two fields properly.Is there any I missed to do?

Thanks

Swati

0

Hello Swati,

So, the binding works from both UIs. In both cases the ContactID resp. the AccountID was transported to the res.p EC InPort.

Now the mapping from the InPort parameter to the parameter used for the retrieve is now working.

Check both InPorts for every detail, like "local Event" and the "OnFire" ....

HTH,
. Horst

0
Former Member
Horst Schaude

Hi Horst,

I give a picture below, an event "Initilize_AC" fired in InPort_AC. It contains BOOperation Read. The read should put AccountID to BO's element ZAccountID as it bind with InPort parameter. Here in picture below should I select Type of parameter 'alternativeKey' or 'KeyNavigation'. ZAccountId is not AlternativeKey. Is it right? what can I do to get AccountID in BO's element?

Pls help me .

0

Hello Swati,

You are retrieving dat from your own Custom BO DQF_Contact.
Therefore you can define by yourself it the ID shall be an AlternativeKey.

HTH,
. Horst

0
Former Member
Horst Schaude

Hi Horst,

Thanks for reply.

Pls explain me how BO Operation Read works, is it work on alternative Key only? AccountID is not alternative key then how can I do the read my custom BO?

Thanks and Regards

Swati.

0

Hello Swati,

The BO Operation Read performs a Retrieve like in the ABSL coding.

It needs a unique identifier to determine the instance of the BO node.

Internally we use the NodeID, but in ABSL you need an AlternativeKey.

Did you verified that there is an instance for the AccountID 1001660?
In which element is the AccountID maintained?

As you state that the ContactID is an AlternativeKey is it possible that the AccountID is equal to the ContactID?

Bye,
. Horst

0
Show more comments