cancel
Showing results for 
Search instead for 
Did you mean: 

How to bind an extension field to a standard field in yC4C with SAP Cloud Applications Studio

0 Kudos

Dear experts,

I recently tried to extend the phone call activity in SAP Cloud Applications Studio.

I need an extension field which displays the phone number of the account which is stored in the activity.

I added the field like this:

[Extension] businessobject AP.PC.ActivityManagement.Global:Activity {

element Z_AccountPhoneNumber : LANGUAGEINDEPENDENT_EXTENDED_Text;

node WorklistItem { } }

But now I see no possibility in UI Designer to bind this field to the right one in COD_PhoneCall.TI datamodel.

Is there another way to do this or something that I misunderstood?

Thank you and best regards,

Fabian

Accepted Solutions (1)

Accepted Solutions (1)

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Fabian,

Zoran described how to add the extension element to the UI, but I assume you want to know how to retrieve the data from the standard element?

BTW: Why do you use a 255 char long field to store a phone number?
Even the mobile numbers in Germany are (incl. country code) only 15 digits long.

Bye,
. Horst

0 Kudos

Hello Horst,

that's right, I want to display the data from the standard field in my extension field, because the accounts phone number is not available in standard application on COD_PhoneCall.TI.

And I am using LANGUAGEINDEPENDENT_EXTENDED_Text because I honestly had no idea which data type I should use, because as I understand the formatted number is stored as LANGUAGEINDEPENDENT_ENCRYPTED_NUMBER_SHORT_Description, which cannot be used as a data type in business object extension?

Thank you and best regards,

Fabian

HorstSchaude
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Fabian,

For the assignment of the accounts phone number you need some ABSL coding.

There are events available which are called if some data for a specific node is changed.
In you case you need to find the node and add the AfterModify event to it. Be aware that it is not possible to add an event to all nodes.

For the data type I suggest to use the data type DecimalValue with the annotation [Decimal(15,0)] if you need 15 digits.
For more details please have a look into the documentation. 🙂

HTH,
. Horst

Answers (1)

Answers (1)

former_member422907
Contributor
0 Kudos

Hi,

In the attachment you may find screen shot of UI designer and steps for add extension field to standard BO.

Please not that step 4. is visible only after save & activate UI.

br,

Zoran