Skip to Content

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 12, 2017 at 12:45 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Jul 11, 2017 at 12:55 PM

    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

    Add comment
    10|10000 characters needed characters exceeded