Skip to Content
author's profile photo Former Member
Former Member

SAP Cloud Application Studio How to retrieve the details based on OVS in Product ID

Hi Experts,

I have small requirements in AdvanceListPanel. I have custom BO as mention below,

businessObject Demo {

element ID : ID;

node Sporoduct [0,n] {

element P_ID : ProductID;

element P_DES : SHORT_Description;

element P_QTY : Quantity;

element P_NET : Amount;

}

}

I have attached the OVS on Product ID (P_ID) element.

I want to auto-fill the details under the AdvanceListPanel ( Product Desc , Product Net value ( Price) )

1) How to get the details of Product ( Prod Descr, Product Price etc ).

Please anyone have idea about this share your thoughts.

Many Thanks,

Mithun

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 15, 2014 at 02:14 AM

    Hi, Mithun

    What you want is to auto-fill the related details when you select a product from your OVS.

    That means you have to write your codes in Event After Modify.

    We normally use QueryByElements or some other query options given for a particular standard BO.

    It would be like that.

    var query=Product.QueryByElements;

    var selParams=query.CreateSelectionParams();

    selParams.Add(query.ProductID ,"I","EQ",this.P_ID );

    var result=query.Execute(selParams);

    for(var product in result){

    this.P_DES =product.Description;

    }

    What I have just written is just a sample code. You have to find the exact name of the attributes of a standard BO in Repository Explorer.

    Hope this helps,

    Fred.

    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.