Skip to Content
avatar image
Former Member

How to read Standard BO Extension field value

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 17, 2017 at 04:30 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 17, 2017 at 04:46 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded