CL_SALV_TABLE to display details

It seems quite simple but I could not get it works.  I need to write a report with header data and when double click on a selected line or click a push button to trigger event, it will show detailed data on a separate screen using CL_SALV_TABLE. 
My program show the header data and it work the first time, but when I choose a different header line, it still show the same item data because I have a code when the object is not bound, display the data.  I was able to get the correct header line and populate detailed data into the table.  The only obstacle I have is that in my code it said
IF gr_cont IS NOT BOUND.
    CREATE OBJECT gr_cont
      EXPORTING
        container_name = 'CONTAINER_100'
      EXCEPTIONS
        OTHERS         = 1.
    IF  sy-subrc <> 0.
      MESSAGE a052(zvn) WITH
      ' No container object found'.
    ENDIF.
    TRY.
        cl_salv_table=>factory(
        EXPORTING
*      list_display   = list_display
          r_container = gr_cont
*       container_name =
        IMPORTING
          r_salv_table = gr_alv
        CHANGING
          t_table = gt_orders
      CATCH cx_salv_msg INTO gr_error.
    ENDTRY.
*      Display alv
    gr_alv->display( ).
So when come the second time, the object is not initial.  Please help. thanks.
PS: I can use cl_gui_alv_grid but I want to use factory method in cl_salv_table.
Edited by: Matt on Aug 18, 2009 9:21 PM - added  tags surround the ABAP so it looks nice...

You need to use
    gr_alv->refresh( ).
Its works as same refresh_table_display in cl_gui_alv_grid

Similar Messages

  • How to hide display details in sap gui and create ad-hoc request in UWL?

    Hi,
    how to hide display "details in sap gui" and "create ad-hoc request" in UWL?
    Please telme the step-by-step procedure to hide "details in sap gui" and "create ad-hoc request".
    Thanks,
    Rashmi

    Hi,
    Thanks for the information. It was very helpfull.
    Can you please tellme where can we fine UWL iView? I tried to find this out in two ways.
    1) Portal Content -> Content Provided by SAP -> End User Content -> Standard Portal Users -> Views -> com.sap.coll.iviews -> Universal Worklist (finally i got this iView). Here i dint find any property called "List of UWL Actions to exclude". In the link which you had given, its written that we can modify the iView and add the name of the actions under the Actions to exclude from the UWL property.
    Which iView do we need to modify and where can i find that property?
    2) I downloaded the xml file and then tried to find this property "List of UWL Actions to exclude" or " Actions to exclude from the UW". But i couldnt find both the properties in xml file.
    Thanks,
    Rashmi

  • Problem in displaying detail along with Aggregate data.

    Hi
    I am new to BIP and I am facing problem to display detail as well as aggregate values at a time.
    My data is like below
    Security Value
    S1 10     
    S2 20     
    S3 30     
    S3 40     
    S4 50     
    S5 60     
    S5 70     
    I want to display data in report as
    Security Value
    S1 10     
    S2 20     
    S3 30     
    S3 40     
    Total S3 70
    S4 50     
    S5 10     
    S5 70     
    Total S5 80
    I tried using for <?for-each-group:G_2;./Security?> but I am getting following output:
    Security Value
    S1 10     
    S2 20     
    S3 30     
    Total S3 70
    S4 50     
    S5 10     
    Total S5 80
    Template:
    <?for-each-group:G_2;./Security?> <?Security?>:<?Value?>
    <?if:count(current-group()/SECNAME)>1?> Total <?Security?>:<?sum(current-group()/Value)?> <?end if?> <?end for-each-group?>
    The problem is I need to display detail as well as aggregate data. Please suggest.

    Hi Kavipriya
    Thanks for your response.
    I tried the code you provided but I am getting blank PDF report from RTF template.
    Also I didn’t understand <?variable:GRP;G2?>, is this declaration of group variable or something?
    Below is my xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Generated by Oracle BI Publisher 11.1.1.3.0-->
    <DATA_DS>
    <G_1>
    <SECURITY>S1</SECURITY>
    <VALUE1>10</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S2</SECURITY>
    <VALUE1>20</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S3</SECURITY>
    <VALUE1>30</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S3</SECURITY>
    <VALUE1>40</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S4</SECURITY>
    <VALUE1>50</VALUE1>
    </G_1>
    <G_1>
    <SECURITY>S4</SECURITY>
    <VALUE1>30</VALUE1>
    </G_1>
    </DATA_DS>
    And following is the code I used in RTF template
    <?variable:GRP;G1?>
    <?for-each-group:G1;./SECURITY?> <?xdoxslt:set_variable($_XDOCTX,'SEC',./SECURITY)?>
    <?for-each:$GRP[./SECURITY= xdoxslt:get_variable($_XDOCTX,'SEC')]?>
    <?SECURITY?>:<? VALUE1?> <?end for-each?>
    <?if:count(current-group()/SECURITY)>1?> Total <?SECURITY?>:<?sum(current-group()/VALUE1)?> <?end if?>
    <?end for-each-group?>

  • How to display details through toggle button in a table.

    Hi Experts,
    I have a table, which has a list of orders in the table. I also have a button in every row, wherein on click of the button i should be able to display detailed information of  the selected order under the row. This button should actually perform the actions of hiding and unhiding the detailed information. Can anyone help me with this.Please check the attachment.
    Thanks & Regards
    Chittibabu

    Hi Chittibabu,
    what about using a TreeTable control?
    SAPUI5 SDK - Demo Kit
    Regards
    Tobias

  • How can I get Firefox to display details about a JavaScript error when one occurs?

    When in Internet Explorer I can set it up to display JavaScript errors as follows. Select Tools then Internet Options… then the Advanced tab. Under Browsing, find '''Display a notification about every script error '''and be sure its box is checked.
    I cannot find out how to do this in Firefox. I would like for it to display details about JavaScript errors when they occur instead of doing nothing.

    *Web Developer: https://addons.mozilla.org/firefox/addon/60

  • Central Search to display Detail Area 1 directly

    Subj: Central Search to display Detail Area 1 directly upon selection of a single promotion.
    Hi all,
    We have a requirement in 5.0 version wrt to Central Search.
    When we enter a Trade Promotion Identfication in the central search area and click on Start, the corresponding Search result Area displays the selected Trade Promotion Details. However when we try to double click on this Trade Promotion number in the Search Result area, the detail Area 1 is not called. It forces us to click on the Goto->Details menu to display the details of the Promotion.
    Our requirement is to avoid this and display the Promotion directly at the  first instance itself when there is only a single promotion selected in the Search Area.
    Please let me know if any of you have worked on a similar requirement. All your inputs would be highly valuable to me as I am just 3 days old to PCUI.
    Looking forward for your quick response.
    Thanks in advance!
    Regards,
    Gayathri.

    Hello,
    I've got the answer from OSS:
    "CRM 5.0 UI was designed in this way that only the search result list will display on the page 1 and on the detail pagethe details of the record selected in page 1. This behaviour remains thesame even when the result list returns just one record. So unfortunately it is not possible to directly display the detail view."
    Bad news :-(.
    Regards
    Gregor

  • PFCG display details No technical details available

    Hi abbapers,
    I want view the transaccions of menu,
    In t-code PFCG go to tab Menu, right button on t-code and obtain message error No technical details available
    Can you help me, please?
    Cordial greetings.

    thank at all for your attention,
    Sabyasachi Rudra, is possible that change the node text by other name, I´m not sure.
    I want view the t-code associated to menu, then when right button on several when push display details, obtain message error No technical details available.
    In this case, I execute the option, then go to system ... status. Then with the name t-code, go to table TSTC (se16), and search name program corresponding of the t-code.
    If I view in the field text that it is IMG Activity. Is this the reason when appear the message error No technical details available. ?
    In this case if go to the se80 with the name program SAPLS_CUS_IMG_ACTIVITY (FunctionPool) that is the same that others options of the menu too.
    If go to left window on Dictionary Structures, Are used others names tables in the IMG ACTIVITY ?
    I want obtain name of tables that are used in t-code Can you help me please?
    Thank you very much.
    Cordial greetings.

  • Display Details View - Date_out

    Hello Experts,
    In one of our SNP Planning book I have entered some quantity in Keyfugure Distribution Receipt (planned).
    When i take the Display details, i am getting order with DATE_OUT field as first working day of the month. But i want to shift it to middle of the month. Please let me know how to acheive this.
    My Planning bucket profile is monthly.
    Thanks in advance.
    Best Regards,
    Srinivas

    Hi Srinivasa
    I think you are looking at the "Period Type", look on the "Lot Size" tab then click on the "Quantity and Date determination" sub-tab. There should be two fields halfway down in the "Scheduling" area. The first says "Use period factor" and the second says "Period Factor". You have two choices:
    1) Uncheck the "Use period factor", this will then use 0.5 by default
    2) If this is checked you can also enter 0.50 in the "Period Factor", this tells the system to place the receipt in the middle of your bucket, in your case "M" being a monthly period bucket.

  • CL_SALV_TABLE / FACTORY / DISPLAY

    I call the CL_SALV_TABLE methods FACTORY & DISPLAY multiple times to switch betweeen a detail and summary data view. However when I click on BACK button it goes back to previous view of ALV report. Is there a way to limit the ALV report level to 1, so that when I click BACK, I go back to report selection screen?

    Generally you should avoid creating 10 or more instances of alvs (with factory method in this case). Sooner or later you will likely receive an overflow exception. What you should do is either refresh your output or get rid of old instance and create new one on that place. This will prevent from putting new instances on stack in memory where each time factory method is called.
    OR
    If you stick to creating over and over again new instances, you have to ensure that each screen which you use for display has attribute Next screen set to 0. In your program once you want to switch from general view to detail one, you simply use CALL SCREEN, but next action on that screen will result in terminating this screen sequence (screen 0 will bring you back to previous screen -> this one will take you to the one before etc) hence you will be back in first screen.
    Regards
    Marcin

  • Hide a field in ALV "Display Details" list

    Hi Experts,
    I have a requirment where I have to hide a field in ALV output, as well as in "Details display".  I already put NO_OUT = 'X' for that field in fieldcatalog itself. It is hidden in the ALV output anyway, but the problem is when user selects a row and clicks on "Details" button in toolbar of ALV, it still displays the hidden fields of that ALV list with/out headings there. 
    Hope you understood my problem, pls respond soon if you hav any solution for this?
    Thanks
    Sarav

    Use TECH = 'X' in field catalog.
    Regards,
    Raymond

  • UIX Master-Detail  - Find button does not display detail lines

    Hello,
    We have a master-detail UIX page. Master has one attribute only. When 'Next' or 'Previous' buttons are pressed, the next master-detail records are displayed.
    However, when master attribute's value is changed by the user and the 'Find' button is pressed, the new detail lines are not displayed. Also we get following error:
    JBO-26080: Error while selecting entity for <ViewObject>
    Has anyone experienced this issue before?
    Thanks, Ali.

    Please dis-regard this post. The correct sequence is to click on Find button, enter new value then click on Execute button to query new values.
    Thanks, Ali.

  • How to Display Detailed navigation passing Top level navigation node name

    Hi All,
    I have prepared a DLN par file but unfortunatly my requirement is such that I need to pass one of the toplevel node name as input parameter and that should display the corresponding DLN which is from 3rd level.
    I have checked in sdn for passing a value to the navigation tag lib which will consider it as a selectednode but could find none.
    Can some body suggest me how to acheive this.
    Thanks in Advance.
    Sai Krishna. K

    Hi Kiran,
    Thanks for your Reply..
    Following is my Scenario:
    I use 2 same versions of portals connected via federated portal concept.
    I have my detailed navigation par file in portal2 and was calling it from portal1 from a iview.
    Since I am not physically navigating in portal2(which mean there is no selected node to iterate ), when I call that iview in portal1 it is picking up only 1st node in top level navigation.
    So i need to pass "My reports" (as 1st level) & "India" (as 2nd level) as parameters such that it gets only its DTN at all times from 3rd level.
    Hope you understand my scenario, below is my iteration code logic.
    <div id="myslidemenu" class="jqueryslidemenu">
    <ul>
         <nav:iterateSelectedNavNodesLevel level="<%=START_LEVEL%>">
         <%-- the 'currentDepth' attribute provides the byte value of the current level --%>
        <nav:recurseNavNodeChildren currentDepth="depth">
             <% current = start + depth.intValue() - 1; %>
             <%=writeClosingTags(last - current)%>
             <%
            last = current;
            %>
            <%-- we want to distinguish between folder and leaf nodes so we can use different graphics --%>
              <%-- complete the html syntax for the 'class' attribute pass it as an anchor attribute--%>
              <li><nav:navNodeAnchor navigationMethod="byURL" />
              <%-- checks for additional navigation level and the appropriate html tags to accomodate them --%>
            <nav:ifNextRecursionDepthWillIncrease>
                <ul>
            </nav:ifNextRecursionDepthWillIncrease>
            <nav:ifNextRecursionDepthWillNotChange>
                </li>
            </nav:ifNextRecursionDepthWillNotChange>
        </nav:recurseNavNodeChildren>
        <%=writeClosingTags(last - start)%>
        <% last = start; %>
    </nav:iterateSelectedNavNodesLevel>
    </ul>
    </div>
    As per the passing parameter concept please explain me a bit more clear with step by step procedure.
    <b>Here if not passing parameters, providing static values will also do for my requirement.</b>
    Many Thanks,
    Sai Krishna.
    Edited by: Konchada Sai Krishna on Feb 14, 2009 9:42 PM

  • UWL displays details of the previous work item:

    Hi Folks: I have posted this query in the EP Implementation forum but no response yet. Please see if anyone can advise
    If a user opens a work-item in the UWL, closes the browser window, and then opens another item on the UWL list, the new window still pops up the details of the previous work item. I tried looking at the cache parameters but with no luck.
    The undesirable workaround to the above problem is to refresh the page every minute via the parameter refresh="60" in the uwl.standard file in the
    View name= DefaultView
    Can someone advise a possible fix?
    Best Regards,
    Phani - SAP Basis Expert.

    Hi,
    As far as showing the name of the previous processor in the UWL is concerned, i believe its not possible, as Harsimran says. But there can be various workarounds.
    One is that in the second action of the process, you can give a text area or some input field in the callable object; the second processor can write something in this field, and this field can then be mapped to third screen, which tells the 3rd processor that it has been reviewed.
    Another neat solution is that, make a callable object of type:
    <b>User Management</b> -> <b>Read User Information</b>
    This callable object extracts the user information from the user who has logged into the portal and returns a lot of other information like firstname, lastname etc as output parameters. You can map these parameters to your third action and use it to display some message, say:
    <b>The review has been done by <FirstName></b>
    Reward points if it helps.

  • Spotlight search results for a contact no longer display details

    3GS software ver 3.1.3
    new problem with spotlight/search/contacts/results:
    I use spotlight to search on a contact, select the result.
    Normally it would display the details of the contact I have chosen. I like this.
    Now it is going to the All Contacts function. This is a problem for me.
    I have looked in this forum and the user guide for an answer.

    Actually there have been complaints off and on for ages that keyword search doesn't work at all, though you say that it was working for you. Certainly it isn't producing a result now, though searching on your title does. I'm afraid that all this is internal to the Store - the ranking and search methods are opaque and despite various websites claiming to explain them, nobody really knows except Apple, and as usual they aren't talking. There isn't really anything you can do about this.

  • Display detail exception message in af:messages

    Hi!
    I'm using ADF BC 10.1.3.3. I've created a backing bean event that calls Row.validate() method since before I call commit I want to ensure all the validation is passed or else the user is redirected to another page without committing the changes. Well, after the Row.validate call I'm catching the exception. But the problem I'm facing is that I'd like to display the detailed message of the exception caught which holds the actual validation message I defined on the model layer. If I use only Exception.getMessage() I receive the JBO-27024: Failed to validate a row with... message.
    But using the Exception.printStackTrace I can see in JDeveloper output console something like this:
    oracle.jbo.RowValException: JBO-27024:
    +...+
    +     at java.lang.Thread.run(Thread.java:595)+
    +## Detail 0 ##+
    oracle.jbo.RowValException: THE ACTUAL VALIDATION MESSAGE I DEFINED ON MODEL LAYER
    +     at oracle.jbo.rules.RulesBeanUtils.raiseException(RulesBeanUtils.java:206)+
    +...+
    Is there a way I could get the message from Detail 0 in my Catch block in the backing bean? I thought that using getStackTrace could help but there are only records to "+at java.lang.Thread.run(Thread.java:595)+" and not from Detail 0 part.
    I hope my question is clear and maybe there is another approach to achieve this.
    I'm doing it this way since the jspx opened doesn't consists of all the attributes from the VO's row but the validation on the Model layer is executed on those attributes anyway. So I need to display a massage that the process can't be completed and it would be very nice to display the actual problem instead of the JBO-27024 message.
    Thank you in advance,
    regards!
    BB

    Thanks John,
    I was catching all exceptions and Exception class doesn't have any appropriate methods. Catching RowValException I'm able to get reference to all detail exceptions.
    Regards!

Maybe you are looking for

  • Free form search problem

    Hello Experts, There is a qualifier table in which 'Due Date' is one of the field (of data type Date). Now, In Data Manager when I try the free form search by entering date in the 'Due Date' field as the filter, it does not show up any records, altho

  • Problem using maani charts in safari(MAC os)

    HI , I am using maani charts(flash charts) in my app. Actually Im rendering chart in popup window. The charts are displaying fine in windows.But In Mac ,I can see pointer over the chart but unable to see it. but seen for a second when i close the cha

  • Error 7 windows 1114

    I uninstalled iTunes and all of the Apple-related products.  I downloaded and installed .NET 4.0 product.  My version of Windows is Windows 7 64 Bit.  I re-installed the latest iTunes software.  I still get this message and cannot access iTunes from

  • How to write a tab in a listbox

    Hello, I work with Labview 8.5 and I try to write several sentences with tab (\t) in a listbox but it does not work. The Tabs are represented like simple space (\s) ?! See my example in attached file Nono Attachments: TabInListbox.vi ‏10 KB

  • Pass transaction data from an InfoProvider to the BPC within BW

    Hi Gurus, I need to pass transaction data from an InfoProvider to the BPC Real-Time InfoCube, but I need to do from BW, and not from the BPC Excel interface. The reason is that I want to make the whole process in one step, and at the beginning of the