Drill Down in a Webi Report via Dashboard Builder

Hi,
I am using BOE XI3.1 SP2 and dashboard buider.
When you insert a webi document, you can right click on the report to select/unselect a report part.  When you do it for a crosstab in drill mode, it losses the drilling capabilities.  Is there a patch to correct this ?
Also when you look into the component properties, the display specific report part gives you the following info :
UIREF:RID=2:BID=38.
Is there any documentation which explain how to specify this string ?
Kind regards.

Do you have custom hierarchies set up?
You would need to set the three hierarchies up as you have described.
However, you'd have to consider the drilling within the report as all the objects from all three hierarchies are in each tab.
What concerns me is that the hierarchies can be so different.
Consider A -> B -> C -> D -> E as
Country -> Region -> Area -> City -> Store
How can you logically have the other two hierarchies?

Similar Messages

  • [Forum FAQ] How to use parameter to control the Expand/Collapse drill-down options in SSRS report?

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

    In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
    we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
    Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
    1. The report has the following group settings:
    Parent Group: SalesTerritoryGroup
     Child Group: SalesTerritoryCountry
      Child Group: CalendarYear
       Details: SalesAmount
    2. Add three parameters in the report:
    GroupExpand:
    Available Values: “Specify values”
    Label: Yes           Value: Yes
    Label: No            Value: No
    Default Values: “Specify values”
    Value: Yes
    CountryExpand:
    Available Values: “Specify values”
    Label: Yes           Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
    YearExpand:
    Available Values: “Specify values”
    Label: Yes          
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
    Label: No            Value: No
    Default Values: “Specify values”
    Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
    3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
    4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", False, True)
    Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
    5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", False, True)
    =IIF(Parameters!YearExpand.Value="Yes", False, True)
    6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
    =IIF(Parameters!GroupExpand.Value="Yes", True, False)
    7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
    =IIF(Parameters!CountryExpand.Value="Yes", True, False)
    =IIF(Parameters!YearExpand.Value="Yes", True, False)
    After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
    Note:
    In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
    Applies to
    Reporting Services 2008
    Reporting Services 2008 R2
    Reporting Services 2012

  • How to use drill down option in Crystal Report

    Dear all,
            I want to know how to use drill down option in Crystal report 2008.  In below i have explained my screnario
    For example
       My scenario is.  In crystal report I have Purchase order like PO101,PO102.  Each purchase order have 5 line items.  If i drill down each purchase order it should display line item in crystal report. 
    Regards,
    Baskaran.

    hi,
    Create a Group on 'Purchase order'.
    Group Expert -> Select the Purchase Order and Click the arrow button such that it appears right side. Click ok.
    GH1 is inserted.
    Your detail section should include 'Line items' fields.
    Right Click 'Detail' section on left hand side,  Click 'Hide (Drill down Ok)'.
    Now you will see only 'Purchase order's in Group Headers.
    Now when you click on a particular order, you will see respective line items.
    Regards,
    Vamsee

  • Drill Downs in SSRS 2010 reports

    Hello, I have a SSRS 2010 report that I’m trying to add some drill down features in List report.
    My dataset has the following fields:
    NAME
    MANAGER
    SEC_TYPE
    BUYS
    SALES
    NEW_MONEY
    AUM
    My Rows groups are:
    NAME – Parent Group
    SEC_TYPE – Child Group
    My columns are in this order NAME , SEC_TYPE, MANAGER , BUYS , SALES , NEW_MONEY,
     and AUM. The NAME and SEC_TYPE groupings are visible and the individual fields are hidden.
    I would like to add drill downs to report to do the following
    Show consolidated view of NAME, BUYS, SALES, NEW_MONEY, and AUM only. Essentially, I want to remove all the detail that SEC_TYPE and MANAGER brings into the report.
      2. When a user clicks a textbox it will expand into the view that adds the SEC_TYPE detail to the report.
      3. Then when a user clicks another textbox it will expand to add the Manager detail to the report as well.
    So I’m basically trying to give the user a very consolidated view and then have the ability to see more data upon request.
     I think some of can visibility settings..
    Any help would be greatly appreciated.
    x

    Drill downs are pretty straight forward. You create your tablix so it shows all of the desired data, grouped as you want. Add a Total row to show the summary data when the group details are collapsed. Then in each group properties starting from the Details
    and working up, set Visibility to Hide and to be toggled by another control. That control should be the textbox in the cell for the parent group. Continue this to the point that the report initially renders in the desired consolidated view. Each cell that
    controls the visibility of child groups will have a + next to it that can be clicked to expand the child groups data.
    "You will find a fortune, though it will not be the one you seek." -
    Blind Seer, O Brother Where Art Thou
    Please Mark posts as answers or helpful so that others may find the fortune they seek.

  • CRVS2010 Beta - Drill down functionality for Crystal Report in VS 2010

    I found a limitation with Drill down functinality in crystal Report using VS 2010.
    If report`s section or group has data in furthure section or same group, its work fine, but section/group does not have data, it allows to click on fields for drill down but genrate issue.
    Updated subject line per this Beta post - Crystal Reports for Visual Studio 2010 Beta - read before posting
    Edited by: Don Williams on Oct 16, 2010 12:59 PM

    If you look up you'll see you are now in the "SAP Community Network Forums » Business Intelligence SDK Application Development (SAP BusinessObjects and SAP Crystal Solutions) » .NET - SAP Crystal Reports"  forum.
    But if want the link here it is:
    Thank you
    Don

  • Drill in Webi reports via Java SDK

    Hi!
    Is it possible to programatically drill up\down in Webi reports? I'm looking throught RE documentation - there are interfeces providing drill functionality (DrillInfo etc). But I can't understand how I can drill in InfoObject instance or may be I can schedule a report with a drill on?
    I need to create a code that will create the instance of docement with drill by some dimensions..
    Thanks a lot
    Oleg Bakhirev

    I try to use this part of code and get an exception.. (list all dimensions and then try to get hierarhies for drill for al least one of them)
                            // drill
                            // get a report
                            Report objReport = doc.getReports().getItem("Main");
                            // DrillInfo - information about drill of a report
                            DrillInfo objDrillInfo = (DrillInfo) objReport.getNamedInterface("DrillInfo");
                            // add a new drill element from
                            // Path where to drill
                            DrillPath objDrillPath = objDrillInfo.getDrillPath();
                            objDrillPath.setAction(DrillActionType.UP);
                            DrillFromElement objFromDrillElement = (DrillFromElement)objDrillPath.getFrom().add();
                            DrillToElement objToDrillElement = (DrillToElement)objDrillPath.getTo().add();
                            // get dimensions - here is a wrapper around report query
                            Metric metrics[] = query.getMetrics();
                            for (int i = 0; i < metrics.length; i++) {
                                Metric metric = metrics<i>;
                                if (metric.getQualification().name().equalsIgnoreCase("DIMENSION") ) {
                                    DrillHierarchies drillHierarh = objDrillInfo.getContainingHierarchies(metric.getUnderlying().getID());
                                    if (drillHierarh != null) {
                                        objFromDrillElement.setObjectID(drillHierarh.getItem(0).getID());
                                        objToDrillElement.setObjectID(drillHierarh.getItem(drillHierarh.getCount() - 1).getID());
    Line
    DrillHierarchies drillHierarh = objDrillInfo.getContainingHierarchies(metric.getUnderlying().getID());
    causes
    java.lang.RuntimeException: com.businessobjects.rebean.wi.ServerException: An internal error occured while calling 'getDrillBar' API. (Error: ERR_WIS_30270)
    I can't understand why. I get this error even if i send ""  as a parameter.. In documentation it is written that it is and ID of dimension. Could you please help me, or may be It is impossible to to set drill elements and drill in this way?
    Big Thanks!
    Oleg

  • Implementing drill down functionality for BI reports

    Hi All,
    We want to integrate some BI reports in EP. What we want to achieve is:
    Display a graph (eg indicating sales revenue) or table in the iView
    Upon user click, drill down the report to view by various criteria.
    Using VC, we managed to implement drill down using a 'button', i.e. user selects the row or region in graph and clicks on a button to trigger the drill down.
    We want to improvise on the interface for triggering drill down. Instead of having to select a row and clicking on the button, can we trigger  drill down using context menu (using right click of mouse) or alternatively, clicking on a row or column in the graph? Would appreciate any inputs on this or alternative methods of implementing this. Thanks!
    cheers
    Prachi

    No, no configurable context menu in VC available.
    Only by using BI web reports embedded via HTML View.

  • Open Webi reports via xcelsius

    Hi Gurus,
    I want to open webi report using URL BUTTON via xcelsius dashboard.
    I genereted webi report url. and I tested it on borwser(explorer and firefox). ther was no problem, I can see webi report.
    But When I used url button on xcelsius dashboard;  first  came bobje login page, After I İnput my logon info.  ooops
    seem below eror message.
    An error has occurred: An error occured while trying to view the document
    What is the problem?  Anybody can help me, please.
    Best Regards
    Bulgur

    Hi Bulgur,
    what kind of link are you using? Did you try using the openDocument functionality?:
    http://www.businessobjectstips.com/tips/infoview/opendocument-an-introduction-to-a-powerful-tool/
    Regards
    Victor

  • Javascript Problem for Drill Down Action in SSRS Report when integrated to PPS 2010

    Hi all,
    I have a SSRS report which is integrated to PPS 2010(Performance Point Services) and it is having a drill down action through Go to URL action(I wrote javascript:void(window.open('xxxxx')) to open drill down report in new window).
    This report has 5 parameters and all are multiple valued. Drill down report is opening very well when I open the report form Report Manager for any number of parameters values selected. But when I integrate the same report is PPS and deployed to SharePoint
    then it is working only for 23 parameter values selected in PPS filters. If I select more the 23 values in PPS filters then the drilldown report is not opening.
    But it is working well in Chrome, I verified in IE and Mozilla, both browsers are having problem.
    When I look at Error Console of Mozilla, it is showing a javascript error as "Error: uncaught exception: ReferenceError: window is not defined" but the same report is working well if I select less than 24 filter values.
    Please provide me the solution
    Thanks in advance

    Hi Vasu,
    The issue might occur due to the Microsoft security update MS11-100 which limits the maximum number of form keys, files, and JSON members to 1000 in an HTTP request. Here, I suggest that you modify the Web.config file of the SharePoint site as follows:
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    </appSettings>
    If the SharePoint site uses the port 80, the web.config file of the SharePoint site is located in the C:\inetpub\wwwroot\wss\VirtualDirectories\80 folder.
    Reference:
    An ASP.NET request that has lots of form keys, files, or JSON payload members fails with an exception
    If the issue persist, please check whether there are any related errors in the Reporting Services log file which is located in <Drive>:\Program Files\Microsoft SQL Server\MSRSXX.<Instance Name>\Reporting Services\LogFiles.
    Regards,
    Mike Yin
    TechNet Community Support

  • Drill down arrow in Crystal Report

    Hi,
    I've created a crystal report based on a SQL statement that brings some information about service calls.
    I would like to include a drill down arrow for service call ID.
    I found this as being the link: 'http://$b1$/link?table=OCRD&key='+{OCRD.CardCode} but not sure how to change for what I need. I don't have any tables since I am using a command. Should I bring OSCL table? How do i have to chance it for CallID? I get an error message saying "A string is required".
    Thank you for your help!
    Cristina

    Hi Neetu,
    I don't get any error message so thanks for this.  I don't have OSCL table, I only have a command based on sql query containing the fields I want. When I replace OSCL with the command name it opens a web page "Internet Explorer cannot display the page" with http://$b1$/link?table=Command&key=6159 address. So it's recognising callID.  Do I need to bring OSCL table and link it to my command and use OSCL in the link?
    Thank you!
    Cristina

  • Drill Down facility in ALV Report

    Hi Guys,
    I want to provide Drill down facility based on columns in ALV Report (ALV Web Dynpro Report). Please let me know if you have any sample code or guidelines for this.
    Thanks,
    Pradeep

    Hi,
    Pls refer to the example provded by SAP -
    WDT_ALV
    Pls refer to this link -
    Learning what you don't need is as important as learning what you do (Parts 10b-c) of "Event-Driven" Tutorial on WDR_TEST_UI_ELEMENTS) and https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706.
    Reward if helpful.
    Best Wishes,
    Chandralekha

  • Scheduling webi reports via Java SDK in BI 4.1

    Hi,
    Has anyone been able to schedule a Webi report containing date prompts via Java SDK in BI 4.1? I have tried doing so but it doesn't work when date prompts are involved, I get the exception raised: java.lang.NullPointerException error. Though the scheduled instance is created and the date prompt appears to be correctly populated the report fails with the above mentioned error message. The code is working for other text prompts but fails when I have a date prompt in the report. I am using the populateWebiPrompts() method to populate the prompts.
    CF

    Hi Christopher,
    Try adding the following line in your code before scheduling:
    iWebi.setUserInputLocaleName(documentInstance.getProperties().getProperty(PropertiesType.BASE_LOCALE));
    Also as an FYI, please refer below details.
    For scheduling webi reports with prompts, the only supported way is to use Restful webservices SDKs.
    The feature of scheduling a webi report with prompts were deprected from release BI 4.x and introduced in the new restfull webservices. Restful is the future which SAP is focussing and would be great to have your application on supported terms with SAP.
    You can get details about the restful webservices from the documents and blogs available at below forum
    http://scn.sap.com/community/restful-sdk
    Thanks,
    Prithvi

  • CO-PA Report: Incorrect Drill-Down to Line Item Report result (KE32 / KE34)

    Hi There
    We have created a CO-PA report and assigned the ability to call up the CO-PA Line Item report (KE24).
    When we drill-down from a cell within the report for an actual amount for a specific period, the line item report displays the line-items from the prior period?
    Any assistance would be greatly appreciated.
    Thanks
    peter

    hi
    add another columns and populate the formula as required.

  • Hyperlink (Drill-Down) in a Sub-Report

    Hi,
    I have a report in which I am using on-demand sub-report.
    In the Sub-report I added a working Hyperlink to one of the columns to drill-down to transaction details.
    However when I run the report I can't drill from the Sub-report. The hyperlink inside of the Sub-report is not working.
    Is there any work around to make this to work?
    Thank you,
    Tanya.

    Hi Tanya, 
    Let's try breaking this down a little bit more granularly.  I'd like to know what the formulas in the subreport shows and what the main report shows.  It's always a possibility the subreport's formula is returning 0 and passing it properly to the main.  So this will show that. 
    1)  The formula in your subreport, just have it do: 
    WhilePrintingRecords;
    shared numberVar Nar_Count;
    Nar_Count:=Count ({Command.YTD_NARRATIVE});
    Show/Unsuppress the subreport's Report Footer so we can see the formula. 
    2)  Leave the formula in the main reports GF1 as: 
    WhilePrintingRecords;
    shared numberVar Nar_Count;
    Do you see a number in both formulas or do you see the number in the subreport but not the main report? 
    I want to see if the formula in the subreport is working and not just returning 0. 
    If the formula in the subreport works then I want to know what the formula in the main report is showing. 
    If this does work:
    1)  Change the formula in the subreport back to: 
    WhilePrintingRecords;
    shared numberVar Nar_Count;
    Nar_Count:=Count ({Command.YTD_NARRATIVE})+Count ({Command.PTD_NARRATIVE})
    2)  Leave the formula in the main report's GF1 as: 
    WhilePrintingRecords;
    shared numberVar Nar_Count;
    Again, what do you see in the subreport and the main report? 
    Good luck,
    Brian

  • How to use drill down ability in ALV report.

    Hi All,
    I have a ALV report and now i want to add  drill down functionality in this ALV report.
    See the requirement below.
    The Document Number, aka Accounting Document Number (BELNR) of each row will take the user to the appropriate document to edit as follows:
    For Parked documents:-
    If VBKPF-AWTYP (Reference Procedure) = “RMRP”, then the drilldown functionality should be to MIR4 using the Object ID in VBKPF- AWKEY.    In this scenario the Object ID represents a Invoice Document Number, not an Accounting Document Number.  Not the Object ID is a combination of Invoice Document Number and Fiscal Year
    If VBKPF-AWTYP = Any other value, then the drilldown functionality should be to FBV2 using the Object ID in VBKPF-AWKEY. In this scenario the Object ID represents a true Accounting Document Number.  Note the Object ID is a combination of Company Code (VBKPF-BUKRS), Accounting Document Number (VBKPF-BELNR) and Fiscal Year (VBKPF-GJAHR)
    For Posted, not Cleared documents:-
    Drilldown ability should be to FB02.   The combination of Company Code (BSIK-BUKRS), Accounting Document Number (BSIK-BELNR) and Fiscal Year (BSIK-GJAHR) will be used to open/drilldown to the correct document in FB02.
    For Cleared documents:-
    Drilldown ability should be to FB03.   The combination of Company Code (BSIK-BUKRS), Accounting Document Number (BSIK-BELNR) and Fiscal Year (BSIK-GJAHR) will be used to open/drilldown to the correct document in FB03.
    Its very urgent, pls help on this.
    Thanks!
    Vipin

    Hi Vipin,
    Please look at the reference code.
    You need to use the FM 'REUSE_ALV_EVENTS_GET' and in the user command event u need to pass the name of the form that u need to write.
    Please find the ollowing code:
    REPORT ZSOURAVICON NO STANDARD PAGE HEADING.
    type-pools: slis.
    tables: vbap.
    data: begin of itab occurs 0,
          chk,
          lights,
          vbeln like vbap-vbeln,
          posnr like vbap-posnr,
          matnr like vbap-matnr,
          kwmeng like vbap-kwmeng,
          end of itab.
    data: P_LIGNAM TYPE SLIS_FIELDNAME VALUE  'LIGHTS'.
    data: v_repid like sy-repid.
    data: t_fld type slis_t_fieldcat_alv,
          ws_fld like t_fld with header line,
          t_sort type slis_t_sortinfo_alv,
          ws_sort like t_sort with header line,
          ws_layout type slis_layout_alv,
          t_event type slis_t_event,
          ws_event like t_event with header line,
          c_topup TYPE slis_t_listheader,
          ws_topup like c_topup with header line.
    constants: c_top type slis_formname value 'TOP_OF_PAGE',
               c_pfs type slis_formname value 'PF_STATUS_SET',
               c_ucomm type slis_formname value 'USER_COMMAND'.
    initialization.
      v_repid = sy-repid.
    select vbeln posnr matnr kwmeng from vbap into corresponding fields of
                                             table itab.
      loop at itab.
        if itab-kwmeng lt 500.
          itab-lights = '2'.
        elseif itab-kwmeng = 500.
          itab-lights = '1'.
        else.
          itab-lights = '3'.
        endif.
        modify itab.
      endloop.
    HERE WE ARE POPULATING THE FIELD CATALOG
      ws_fld-col_pos = '3'.
      ws_fld-fieldname = 'VBELN'.
      ws_fld-KEY = 'X'.
      ws_fld-tabname = ITAB.
      ws_fld-reptext_ddic = 'SALES DOC'.
      append ws_fld to t_fld.
      clear ws_fld.
      ws_fld-col_pos = '4'.
      ws_fld-fieldname = 'POSNR'.
      ws_fld-tabname = 'ITAB'.
      ws_fld-reptext_ddic = 'SALES ITEM'.
      append ws_fld to t_fld.
      clear ws_fld.
      ws_fld-col_pos = '5'.
      ws_fld-fieldname = 'MATNR'.
      ws_fld-tabname = 'ITAB'.
      ws_fld-reptext_ddic = 'MATERIAL NO'.
      append ws_fld to t_fld.
      clear ws_fld.
      ws_fld-col_pos = '6'.
      ws_fld-fieldname = 'KWMENG'.
      ws_fld-tabname = 'ITAB'.
      ws_fld-reptext_ddic = 'UNIT'.
      ws_fld-do_sum = 'X'.
      append ws_fld to t_fld.
      clear ws_fld.
      ws_sort-spos = '1'.
      ws_sort-fieldname = 'MATNR'.
      ws_sort-tabname = 'ITAB'.
      ws_sort-subtot  = 'X'.
      append ws_sort to t_sort.
      clear ws_sort.
      ws_layout-zebra = 'X'.
    ws_layout-detail_popup = 'X'.
    ws_layout-f2code = '&ETA'.
      ws_layout-totals_text(60) = 'TOTAL'.
      ws_layout-subtotals_text(60) = 'SUB TOTAL'.
      ws_layout-box_fieldname = 'CHK'.
      ws_layout-lights_fieldname = P_LIGNAM.
      ws_layout-box_tabname = ITAB.
      ws_layout-edit = 'X'.
      clear ws_event.
      ws_event-name = c_top.
      ws_event-form = c_top.
      append ws_event to t_event.
      ws_event-name = c_pfs.
      ws_event-form = c_pfs.
      append ws_event to t_event.
      clear ws_event.
      ws_event-name = c_ucomm.
      ws_event-form = c_ucomm.
      append ws_event to t_event.
      clear ws_event.
      CLEAR ws_topup.
      ws_topup-typ  = 'H'.
      ws_topup-info = 'Purchase Order Report'.
      APPEND ws_topup TO c_topup.
      CLEAR ws_topup.
      ws_topup-typ  = 'H'.
      ws_topup-info = 'An ALV Report '.
      APPEND ws_topup TO c_topup.
      ws_topup-TYP = 'S'.
      ws_topup-KEY = 'CURRENT PROGRAM NAME:'.
      ws_topup-INFO = v_repid.
      APPEND ws_topup TO c_topup.
      CLEAR ws_topup.
      ws_topup-TYP = 'S'.
      ws_topup-KEY = 'DATE:'.
      write SY-DATUM to ws_topup-INFO.
      APPEND ws_topup to c_topup.
      CLEAR ws_topup.
      ws_topup-TYP = 'S'.
      ws_topup-KEY = 'TIME:'.
      write SY-UZEIT to ws_topup-INFO.
      APPEND ws_topup TO c_topup.
      CLEAR ws_topup.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
         I_CALLBACK_PROGRAM             = v_repid
      I_CALLBACK_PF_STATUS_SET       = ' '
      I_CALLBACK_USER_COMMAND        = ' '
      I_STRUCTURE_NAME               =
         IS_LAYOUT                      = ws_layout
         IT_FIELDCAT                    = t_fld
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
         IT_SORT                        = t_sort
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
         IT_EVENTS                      = t_event
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
        TABLES
          T_OUTTAB                       = itab[]
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
          FORM top_of_page                                              *
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary       = c_topup
          I_LOGO                   = 'LOGO'
      I_END_OF_LIST_GRID       =
    ENDFORM.
          FORM PF_STATUS_SET                                            *
    -->  RT_EXTAB                                                      *
    FORM PF_STATUS_SET using rt_extab type slis_t_extab.
      set pf-status 'STD'. "EXCLUDING RT_EXTAB.
    set pf-status 'STANDARD'.
    endform.
          FORM user_command                                             *
    form USER_COMMAND using r_ucomm like sy-ucomm
                            rs_selfield type slis_selfield.
      data: begin of itab_temp occurs 0,
            VBELN LIKE VBAP-VBELN,
            POSNR LIKE VBAP-POSNR,
            MATNR LIKE VBAP-MATNR,
            kwmeng like vbap-kwmeng,
            end of itab_temp.
      DATA: t_fld1  TYPE SLIS_T_FIELDCAT_ALV,
            ws_fld1  LIKE t_fld1  WITH HEADER LINE.
      case r_ucomm.
        when 'SHOW'.
          loop at itab where chk = 'X'.
            move-corresponding itab to itab_temp.
            append itab_temp.
            clear itab.
          endloop.
          ws_fld1-col_pos = '1'.
          ws_fld1-fieldname = 'VBELN'.
          ws_fld1-tabname = ITAB_TEMP.
          ws_fld1-reptext_ddic = 'SALES DOC'.
         ws_fld1-key = 'X'.
          append ws_fld1 to t_fld1.
          clear ws_fld1.
          ws_fld1-col_pos = '2'.
          ws_fld1-fieldname = 'POSNR'.
          ws_fld1-tabname = ITAB_TEMP.
          ws_fld1-reptext_ddic = 'SALES ITEM'.
         ws_fld1-key = ' '.
          append ws_fld1 to t_fld1.
          clear ws_fld1.
          ws_fld1-col_pos = '3'.
          ws_fld1-fieldname = 'MATNR'.
          ws_fld1-tabname = ITAB_TEMP.
          ws_fld1-reptext_ddic = 'MATERIAL NO'.
         ws_fld1-key = ' '.
          append ws_fld1 to t_fld1.
          clear ws_fld1.
          ws_fld1-col_pos = '4'.
          ws_fld1-fieldname = 'KWMENG'.
          ws_fld1-tabname = ITAB_TEMP.
          ws_fld1-reptext_ddic = 'UNIT'.
         ws_fld1-key = ' '.
          ws_fld1-do_sum = 'X'.
          append ws_fld1 to t_fld1.
          CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
            EXPORTING
             I_TITLE                       =  'my report'
            I_SELECTION                   = ' '
            I_ZEBRA                       = ' '
            I_SCREEN_START_COLUMN         = 0
            I_SCREEN_START_LINE           = 0
            I_SCREEN_END_COLUMN           = 0
            I_SCREEN_END_LINE             = 0
            I_CHECKBOX_FIELDNAME          =
            I_LINEMARK_FIELDNAME          =
            I_SCROLL_TO_SEL_LINE          = 'X'
              I_TABNAME                     = ITAB_TEMP
             I_STRUCTURE_NAME              = 'VBAP'
             IT_FIELDCAT                   = t_fld1
            IT_EXCLUDING                  =
             I_CALLBACK_PROGRAM            = v_repid
            I_CALLBACK_USER_COMMAND       =
             IS_PRIVATE                    = GS_PRIVATE
          IMPORTING
             ES_SELFIELD                   = RS_SELFIELD
             E_EXIT                        = G_EXIT
            TABLES
              T_OUTTAB                      = ITAB_TEMP[]
          EXCEPTIONS
            PROGRAM_ERROR                 = 1
            OTHERS                        = 2
          IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
          ENDIF.
      endcase.
    ENDFORM.
    Thanks and Regards,
    Saurabh

Maybe you are looking for

  • Query to fetch the list of Journal Entry without cancelled JE.

    Dear All, I have tried the following query to get the list of JE without Cancelled JE. SELECT T0.[TransId] FROM OJDT T0 WHERE T0.[TransId] NOT  IN  (SELECT T0.[StornoToTr] FROM OJDT T0) It is not working . can any one solve this? Thanks in advance, D

  • Pesonnel Change Request(PCR) in MSS

    Hi Experts, We are facing the following error when trying to access the Pesonnel Change Request in MSS. The initial exception that caused the request to fail, was: com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: In

  • Convert movies in iMove

    Hi Everybody. I have edited a video in iMovie with some clips. Now that I have this project done, I'd like to convert the file in .avi or .mpg or whatever. It seems that I'm not finding a good way to convert the file. I mean, the quality of the video

  • Table height

    In CS3 Dreamweaver had an autostretch button. CS4 doesn't have it. I want a table to automatically fill the page from top to bottom and size with the page. How do you do that in CS4?

  • IWorks has disappeared. How can I open documents saved as Word 97 from Pages stored on Dropbox?

    iWorks has disappeared.  How can I open document saved as Word 97 through Pages stored on Dropbox?