Skip to Content

BO Operation Read

Hi Experts,

@Horst Schaude, @Alessandro Iannacci, @Vinodkumar Kommineni

I have business object as shown below.

businessobject Sales_Quote {

[Label("SQ")] [AlternativeKey] element SQ :BusinessTransactionDocumentID;

node Account[0,n]{

[Label("Envelop#")] [AlternativeKey] element Envelop_ID:ID;

[Label("Envelop DUP")] element DS_Envelop_ID:ID;

[Label("Sender")] element Sender :LANGUAGEINDEPENDENT_MEDIUM_Name;

[Label("Sender Email ID")] element Sender_EmailID:EmailURI;

[Label("Subject")] element Subject:LANGUAGEINDEPENDENT_MEDIUM_Name;

[Label("Envelop Status")] element Env_Status:LANGUAGEINDEPENDENT_MEDIUM_Name;

[Label("Sent")] element Sent_Date:Date;

[Label("Last Viewed")] element Last_Viewed:Date;

[Label("Completed")] element Completed:Date;

// node for capturing receipent data

node Receipent[0,n]{

[Label("Receipent Email")] element DSR_Email :EmailURI;

[Label("Receipent Name")] element DSR_Name :LANGUAGEINDEPENDENT_MEDIUM_Name;

[Label("Routing Order")] element DS_Rou_order :IntegerValue;

[Label("Receipent Status")] element DSR_Status:LANGUAGEINDEPENDENT_MEDIUM_Name;

[Label("Date Sent")] element DSR_Date_Sent:Date;

[Label("Date Deliverd")] element DSR_Date_Deli:Date;

[Label("Date Signed")] element DSR_Date_Sign:Date;

[Label("Date Declined")] element DSR_Date_Decli:Date;

[Label("Decline Reson")] element DSR_Decli_Reson:LANGUAGEINDEPENDENT_MEDIUM_Name;

}

}

}

I have created embedded component for this BO and attached to Sales Quote TI Screen.

when i click on envelope id. It will open further details of that record in new window. To achieve this i have used OBN Navigation. Now problem is when i trying to execute BO Operation(Read) on envelop id it's not fetching the data.

But when i execute BO Operation(Read) on root element(SQ in this case). It's fetching the data. But i want to execute BO Operation(Read) at item level and fetch further details of that item.

I want to know is it possible BO Operation(read) at item level.


Thanks,

Quddus.

1.PNG (9.2 kB)
2.png (22.6 kB)
3.png (22.7 kB)
Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jan 20, 2016 at 08:12 AM

    Never tried to read directly a subnode, but if not working in your case, why don't you read the entire sales quote and then you filter manually (for example using an absl filter during the initialization event of your EC) the item that you need to show? Another idea is to use quoteid and itemid concatenated together as a key for you custom bo. In this way you can always read at root element

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 20, 2016 at 09:58 AM

    Hello Quddus,

    The Read operation is always on BO level, i.e. the Root node of the BO is read.

    In your case you need to define the Data Model in such a way that the req. Item node is read also and all requ data is part of the Data Model.

    HTH,

    Horst

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Andres,

      You've got me wrong. 🤪

      If your DataModel contains Root and Item node, it is sufficient to read the Root node and the rest will be done by the system.

      This does not mean that you cannot read the Item node, as long as you have the correct NodeID or AlternativeKey. 🤣

      Bye,

      Horst

  • Posted on Jan 20, 2016 at 04:31 PM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.