Skip to Content
0

How to read Standard BO Extension field value

Jul 17, 2017 at 01:20 PM

253

avatar image
Former Member

Dear Experts

How to read custom/extension field value in my Custom business object in SDK, custom field was created in standard business object (individual Customer) using KUT tool.

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

2 Answers

Saurabh Kabra
Jul 17, 2017 at 04:30 PM
0

Hi,

First you have to create a customer reference specific field as mentioned in following blog:

https://blogs.sap.com/2016/02/16/how-to-utilize-field-add-using-key-user-tool-in-script/

Once the field is available in SDK then you can very well write logic to perform fire QueryByElements to read the value.

Thanks

Saurabh

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Jul 17, 2017 at 04:46 PM
0

Hi Saurabh

Thank you for the update, am expecting to get custom field data when query by customer in my custom business object.

I have declared Association in my custom BO, association ToBP[0,1] to Customer;

In my custom BO, am querying using var BPQuery = Customer.QueryByIdentification; and to get the data

foreach(var BPAccount in BPResultData) { this.GetFirst().ToBP = BPAccount; break; }

Am getting all the standard customer BO data except extended fields which i added through KUT.

I would to show those custom data in my Custom business object view automatically when I read the standard business object

At the movement I can display all the standard data which is working fine. am more keen on to display custom field data also in my view.

Please provide if you have any other thoughts to get the custom data from the standard BO.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

hi Chakravarthy ,
i try to make the same scenario
if you have finished please give me the solution
thanks .

0