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

Context Master Detail with Bapi

Hi,

I am creating a Master Detail application. I have list of orders retrieved using a BAPI. Based on user selection of any order, I would like to call another BAPI to retrieve item details. I know that I can use context programming. But I think I did not understand this fully.

Could some one clarify or give sample code for the following.

1) How do I get order number from the row retrieved[using getLeadSelection gives me current row selected]. where are the row values stored and how i can retrieve. Basically, where I need to put the coding?

2) How do I pass this order number and where I put the coding to execute second BAPI with this number and get back the results

3) I would like to used tabbed display to show the results, do I need to take any additional step apart from mapping to get the desired output.

Thanks for your help.

Raju

Message was edited by: Raju Datla

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 23, 2005 at 10:09 PM

    To react on a table's lead selection change, you could define an action / event handler in the view controller and use table.setOnLeadSelect(action) to handle the lead selection change.

    To get the new selected row / node element, you can either use the event parameter "row", which is the index of the new selected row, or take the lead selection of the table's data source node.

    The data of the selected row are the attribute values of the node element at the lead selection (in the table's data source node).

    In the event handler, you can call a method of a custom controller (or component controller), that calls the BAPI or whatever model function for getting the detail data.

    If you want to use a tab strip, you can either put all tab contents into one view, or you can use view container UI elements and separate views in each tab.

    Armin

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Good Armin,

      Thanks for your help.

      I have to try using supply function which I will do later.

      I am assigning the points and by the way if you come across any pattern development, please do let me know. I want to develop a search pattern to search order(sales or po or service, etc) after being used in an application

      Thanks once again,

      Raju

  • author's profile photo Former Member
    Former Member
    Posted on Jan 24, 2005 at 04:58 AM

    Hi

    In addition it is also a good thing to use supply functions for these kinds of tasks

    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/web dynpro tutorial and sample applications.faq

    Search string Supply Function in page

    Regards

    Pran

    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.