on 07-11-2017 11:17 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.