Need to display report using SSRS

I have a query that display above format from different tables.
But since in row 2 and 3 date, time,day values are same, I don't want it do display it again in row 3.Below is the required format.
How to do this. I need to display this report using SSRS
Need Help..Thanks
Abhinav

This is basically a presentation issue.
You should be dealing this in your front end tool like say reporting services. The property is called Hide Duplicates in SSRS and is available from textbox properties. You dont need to do anything at sqlserver query end for this.
If you really have no other way then you can use a logic as below
select
case when t1.[Date] IS NULL then '' else cast(t.[Date] as varchar(20)) end AS [Date],
case when t1.[Date] IS NULL then '' else cast(t.[Day] as varchar(10)) end AS [Day],
case when t1.[Date] IS NULL then '' else cast(t.[Time]
as varchar(10)) end AS [Time],
t.company
from table t
left join (select [Date],[Day],[Time],MIN(Company) AS MinComp
FROM Table
GROUP BY [Date],[Day],[Time]
)t1
ON t1.[Date] = t.[Date]
AND t1.[Day] = t.[Day]
AND t1.[Time] = t.[Time]
AND t1.MinComp = t.Company
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page

Similar Messages

  • Balance Sheet/Income Statement Report using SSRS

    I am trying to create a balance sheet, income statement report using ssrs. Due to lack of experience, I am seeking some help from someone who has already built one. For the report I am trying to built, the data isn’t readily available
    in a master/detail format. I need to connect to an Oracle DB, run one or more stored procedures (in Oracle) to put data in a temporary/run-time table (reporting table) and read that data to create the financial statement.
    Any help or guidance would really be appreciated.

    Hi Khaga,
    Adding to Vishal's reply, before we can connect an Oracle data source, the system administrator must have installed the version of the .NET Data Provider for Oracle that supports retrieving data from the Oracle database. This data provider must be installed
    on the same computer as Report Builder and also on the report server. To retrieve data from an Oracle database, we can use Oracle or OLE DB data source type. For more details about the connection string, please see the following document:
    http://msdn.microsoft.com/en-IN/library/dd220591.aspx
    Besides, we can refer to the following SSRS tutorial about create a basic report in Reporting Service:
    http://msdn.microsoft.com/en-IN/library/ms167305.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Is it possible to put colors while displaying report using ALVs?

    Gayathri

    hi
    i think the following code is the ur solution
    TABLES VBAK.
    TYPE-POOLS SLIS.
    * Data Declaration
    TYPES: BEGIN OF T_VBAK,
          VBELN TYPE VBAK-VBELN,
          ERDAT TYPE VBAK-ERDAT,
          ERNAM TYPE VBAK-ERNAM,
          AUDAT TYPE VBAK-AUDAT,
          VBTYP TYPE VBAK-VBTYP,
          NETWR TYPE VBAK-NETWR,
          VKORG TYPE VBAK-VKORG,
          VKGRP TYPE VBAK-VKGRP,
         <b> LINE_COLOR(4) TYPE C,</b>
          END OF T_VBAK.
    DATA: IT_VBAK TYPE STANDARD TABLE OF T_VBAK INITIAL SIZE 0,
          WA_VBAK TYPE T_VBAK.
    * ALV Data Declaration
    DATA: FLDCAT TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          GD_LAYOUT TYPE SLIS_LAYOUT_ALV,
          GD_REPID TYPE SY-REPID.
    *      I_EVENTS TYPE SLIS_T_EVENT,
    *      W_EVENTS LIKE LINE OF I_EVENTS.
    START-OF-SELECTION.
    PERFORM DATA_RETRIEVAL.
    PERFORM BLD_FLDCAT.
    PERFORM BLD_LAYOUT.
    PERFORM DISPLAY_ALV_REPORT.
    * Build Field Catalog for ALV Report
    FORM BLD_FLDCAT.
    FLDCAT-FIELDNAME = 'VBELN'.
    FLDCAT-SELTEXT_M = 'Sales Document'.
    FLDCAT-COL_POS = 0.
    *FLDCAT-EMPHASIZE = 'C411'.
    FLDCAT-OUTPUTLEN = 20.
    FLDCAT-KEY = 'X'.
    APPEND FLDCAT TO FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'ERDAT'.
    FLDCAT-SELTEXT_L = 'Record Date created'.
    FLDCAT-COL_POS = 1.
    FLDCAT-KEY = 'X'.
    APPEND FLDCAT TO FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'ERNAM'.
    FLDCAT-SELTEXT_L = 'Cteated Object Person Name'.
    APPEND FLDCAT TO FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'AUDAT'.
    FLDCAT-SELTEXT_M = 'Document Date'.
    FLDCAT-COL_POS = 3.
    FLDCAT-EMPHASIZE = 'C110'.
    APPEND FLDCAT TO FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'VBTYP'.
    FLDCAT-SELTEXT_L = 'SD Document category'.
    FLDCAT-COL_POS = 4.
    APPEND FLDCAT TO FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'NETWR'.
    FLDCAT-SELTEXT_L = 'Net Value of the SO in Document Currency'.
    FLDCAT-COL_POS = 5.
    FLDCAT-OUTPUTLEN = 60.
    FLDCAT-DO_SUM = 'X'.
    FLDCAT-DATATYPE = 'CURR'.
    APPEND FLDCAT TO FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'VKORG'.
    FLDCAT-SELTEXT_L = 'Sales Organization'.
    FLDCAT-COL_POS = 6.
    APPEND FLDCAT TO FLDCAT.
    CLEAR FLDCAT.
    FLDCAT-FIELDNAME = 'VKGRP'.
    FLDCAT-SELTEXT_M = 'Sales Group'.
    FLDCAT-COL_POS = 7.
    FLDCAT-EMPHASIZE = 'C801'.
    APPEND FLDCAT TO FLDCAT.
    CLEAR FLDCAT.
    ENDFORM.
    * Build Layout for ALV Grid Report
    FORM BLD_LAYOUT.
    GD_LAYOUT-NO_INPUT = 'X'.
    GD_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    GD_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
    GD_LAYOUT-WINDOW_TITLEBAR = 'GRID DISPLAY'.
    *GD_LAYOUT-TOTALS_TEXT = 'GRAND TOTAL'.
    ENDFORM.
    * Display report using ALV grid
    FORM DISPLAY_ALV_REPORT.
    DATA T_EVENT TYPE SLIS_T_EVENT.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = T_EVENT.
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    GD_REPID = SY-REPID.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM                = GD_REPID
       IS_LAYOUT                         = GD_LAYOUT
       I_CALLBACK_TOP_OF_PAGE            = 'TOP_OF_PAGE'
       I_GRID_TITLE                      = 'SALES DOCUMENT HEADER'
       IT_FIELDCAT                       = FLDCAT[]
       I_SAVE                            = 'X'
      TABLES
        T_OUTTAB                          = IT_VBAK
    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.
    ENDFORM.
    * Retrieve data from VBAK table and populate itab IT_VBAK
    FORM DATA_RETRIEVAL.
    <b>DATA LD_COLOR(1) TYPE C.</b>
    SELECT VBELN ERDAT ERNAM AUDAT VBTYP NETWR VKORG
    UP TO 20 ROWS
    FROM VBAK
    INTO TABLE IT_VBAK.
    <b>LOOP AT IT_VBAK INTO WA_VBAK.
    LD_COLOR = LD_COLOR + 1.
    IF LD_COLOR = 8.
      LD_COLOR = 1.
    ENDIF.
    CONCATENATE 'C' LD_COLOR '10' INTO WA_VBAK-LINE_COLOR.
    MODIFY IT_VBAK FROM WA_VBAK.
    ENDLOOP.</b>
    ENDFORM.
    FORM TOP_OF_PAGE.
    DATA: T_HEADER TYPE SLIS_T_LISTHEADER,
          W_HEADER TYPE SLIS_LISTHEADER.
    W_HEADER-TYP = 'H'.
    W_HEADER-INFO = 'WELCOME HEADER LIST'.
    APPEND W_HEADER TO T_HEADER.
    W_HEADER-TYP = 'S'.
    W_HEADER-KEY = 'REPORT:'.
    W_HEADER-INFO = SY-REPID.
    APPEND W_HEADER TO T_HEADER.
    W_HEADER-TYP = 'S'.
    W_HEADER-KEY = 'DATE:'.
    CONCATENATE SY-DATUM+6(2) ' / ' SY-DATUM+4(2) ' / ' SY-DATUM(4) INTO W_HEADER-INFO.
    APPEND W_HEADER TO T_HEADER.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
        IT_LIST_COMMENTARY       = T_HEADER.
    ENDFORM.
    reward points,if it is useful

  • In Drill through report pass hyperlink value as parameter to another report using ssrs 2008 R2

    Hi All,
    I have one drill through SSRS report in which if I click one hyperlink in the summmary report it should be passed as parameter for detail report, like this....
    Summary:
    AccountType
    A1
    A2
    If I click A1 then that should be passed as parameter to detail report and display A1 data in detail report
    If I click A2 then that should be passed as parameter to detail report and display A2 data in detail report.
    Please give me some ideas or expression code to achieve this in using SSRS 2008R2. Its very urgent.
    Thanks,
    RH
    sql

    Thanks the folowing is my source data for the parameter I am including to the drill through
    SELECT DISTINCT
    case
    when EA_STATUS in ('E4', 'U4', 'P5', '02', '03', '04','B2','B3','B4','12')
    then CAST('Project' AS VARCHAR(15))
    else CAST('Non-Project' AS VARCHAR(15))
    end as EA_PROJECT_GROUP_DESC
    FROM TEAMS.FMPROD_V_EA
    As you can see it has only 2 values.So how do you suggest I wirte the expression to include in the report.
    The name of the parameter I will be using is EAProjectGroup.but below is the error I am getting trying to run the report
    rsMissingFieldInDataSet] The dataset Trends contains a definition for the Field EA_PROJECT_GROUP_DESC. This field is missing from the returned result set from the data source.
    [rsErrorReadingDataSetField] The dataset Trends contains a definition for the Field EA_PROJECT_GROUP_DESC. The data extension returned an error during reading the field. There is no data for the field at position 45.
    Preview complete -- 0 errors, 72 warnings
    what does the position 45 mean?

  • Column width issue in SharePoint 2010 Reports using SSRS webpart

    Dear sir,
    We need to adjust column width for output of reports. We are using SSRS webpart to generate reports. It is taking unexpected column width.
    We show that dynamically we cannot set the column width but we are passing the query statically is there any way or chances to mange column width.
    Please help.

    If it's important, I'd suggest ringing Microsoft Premier Support and logging a call.  The working world is probably just getting back to their offices.
    For both columns, you can think about some JQuery to isolate the appropriate selectors and just reside them in the page rendering.  You'll need JavaScript enabled in your browser for this but this code within a CEWP should do the trick. 
    <!--ADJUST TABLE COLUMN WIDTH-->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"
    type="text/javascript"></script>
    <script type="text/javascript">
    $(function(){
    $("TH.ms-vh2-nograd:contains('Status description')").css("width", "150px");
    $("TH.ms-vb:contains('Type of Work')").css("width", "150px");
    </script>
    You'll need to link to a JQuery instance of course and change the capture text for your columns.
    Credit to the code to Kjell-Sverre Jerijærvi from his
    blog post.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Display report using star office

    Hi...Need some light on this,,,How to display abap report using Star offce instead of MS excel???? Thanks

    If Star Office (??) is OLE compliant, you will need to issue a CREATE OBJECT 'WHATEVER.THE.REGISTRY.ENTRY.NAME.IS.HERE'.
    Then once it is activated on the client system, you will need to issue OLE automation commands from ABAP to the Star Office client.
    You will probably need an Object Browser to help you with the Star Office commands to pass the ABAP info down to the client.

  • Project Server Performance report using SSRS - Report display issue

    Hi All,
    We have developed and deployed a SSRS report in Project Server BI Center using performance dashboard, but half of the report only visible i.e. it is showing horizontal scroll bar at the bottom as below. I tried to change the web part width and height but
    there is no difference. I also tried to change the performance point dashboard height and width but faced same issue. 
    Thanks in advance, Arun

    As Per me their is not way to deal this issue. When you use web part and deploy SSRS  RDL in project server horizontal bar display in the bottom if display area is not enough to display the data.
    whatever height or width you choose in web part property it will come.
    We have to live with this problem .
    kirtesh

  • Images are not loaded while displaying report using Report Viewer with JRC!

    Hi Everybody,
    I created a Report designed using CR XI.
    I am viewing that report from my application using JRC and crystal Report Viewer and PDF viewer.
    In PDF viewer everything is fine including images display, saving etc.
    But in Crystal report Viewer, I am not getting the images of the buttons such as export, next page, previous page etc. But all the funtionalities are working.
    From where i can load the pictuers and how?
    Can anybody help on this?
    Thanks in advance,
    Saravanakumar.
    Edited by: Saravana kumar on Nov 17, 2008 1:23 PM

    Hi Saravana
    The issue you have posted here in the Crystal Reports Design Forum is a Developer issue.  Please post this query to the BusinessObjects SDK Application Development - > Java Development Crystal Reports forum.
    Regards
    Girish Bhosale

  • Deployment of reports using SSRS

    I am using VS2012 and SQL Server 2012 and I am developing a WinForm application. What choices do I have for deploying the reports associated with the Solution. The obvious one is the Report Manager. Is there another option?
    Thanks,
    John

    Hi John,
    If you want to display a report in your Windows Forms application, we can use a ReportViewer control. The ReportViewer controls work in either local processing mode or in remote processing mode. In local processing mode, we can display the .rdlc report from
    a stream, or from an embedded resource in your application. In remote processing mode, we can display the .rdl report from a Reporting Services report server.
    If you want to deploy some reports from the Solution to report server, we can specify the report server and optionally the folders for reports and shared data sources so that we can publish the items in a Report Server project to a report server.
    References:
    Adding and Configuring the ReportViewer Controls
    Set Deployment Properties (Reporting Services)
    If there are any other questions, please feel free to ask.
    Regards,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Reporting using SSRS not working - logon session does not exist

    Hello All,
    After installing the 'reporting site system role' and configuring (using MS technet reference guides), I see the report folder under my Monitoring-> reporting->reports folder;
    When I click on a report and 'run', I get the following error:
    "the default value expression for the report parameter 'usertokenSIDs' contains an error. A specified logon session does not exist. It may already have been terminated"
    details:
    System.Web.Services.Protocols.SoapException: The DefaultValue expression for the report parameter ‘UserTokenSIDs’ contains an error: A specified logon session does not exist. It may already have been terminated.
       at Microsoft.ReportingServices.Library.ReportingService2005Impl.GetReportParameters(String Report, String HistoryID, Boolean ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials, ParameterInfoCollection& Parameters)
       at Microsoft.ReportingServices.WebServer.ReportingService2005.GetReportParameters(String Report, String HistoryID, Boolean ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials, ReportParameter[]& Parameters)
    Microsoft.ConfigurationManagement.ManagementProvider.SmsException
    The DefaultValue expression for the report parameter ‘UserTokenSIDs’ contains an error: A specified logon session does not exist. It may already have been terminated.
    Stack Trace:
       at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ParameterPresenter.GetParameters()
       at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ParameterPresenter.LoadParameters(IReport report, Collection`1 navigationParameters, IResultObject resultObject)
       at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ReportViewerPresenter.Worker_DoWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
    System.Web.Services.Protocols.SoapException
    System.Web.Services.Protocols.SoapException: The DefaultValue expression for the report parameter ‘UserTokenSIDs’ contains an error: A specified logon session does not exist. It may already have been terminated.
       at Microsoft.ReportingServices.Library.ReportingService2005Impl.GetReportParameters(String Report, String HistoryID, Boolean ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials, ParameterInfoCollection& Parameters)
       at Microsoft.ReportingServices.WebServer.ReportingService2005.GetReportParameters(String Report, String HistoryID, Boolean ForRendering, ParameterValue[] Values, DataSourceCredentials[] Credentials, ReportParameter[]& Parameters)
    Stack Trace:
       at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ParameterPresenter.GetParameters()
       at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ParameterPresenter.LoadParameters(IReport report, Collection`1 navigationParameters, IResultObject resultObject)
       at Microsoft.ConfigurationManagement.AdminConsole.SrsReporting.ReportViewerPresenter.Worker_DoWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
    The account I'm using is a domain account with 'full' permissions to compliance security role. I also verified the individual object level permission and it holds good. I'm not sure what I'm missing here.
    Any help on this is greatly appreciated. thanks

    I talked to a member of the product team and they agree this is not a solution. He has not heard of this issue before and STONGLY recommends that you contact CSS for support. This is the only way this is going to be fixed permanently.
    It is my guess that if you ever apply a service pack 2 or other updates to CM12, this problem will re-occur, again this is my guess this will happen again.
    Remember that if it is a bug then there is no charge for the support call.
    http://www.enhansoft.com/

  • Displaying report using decision step

    Hi ,
    in the decision step .i am calling the custom report in the methods before workitem execution. when i execute the workitem from the inbox first it is displaying the report after i click back button ( or cancel) button the report is displaying again. I am not getting  why program is displaying the report again.
    this is code :
    BEGIN_METHOD REPORT CHANGING CONTAINER.
    SET  PARAMETER ID 'BES' FIELD OBJECT-KEY-PURCHASEORDER.
    CALL TRANSACTION 'Y0024' and skip first screen.
    END_METHOD.
    please can any one help in solving the problem.
    advance thanks
    paveee

    Hi Paveee,
    Search this forum. I think this problem has been addressed before.
    By the way, you have a question similar to this still open if that question is answered, please close the thread by marking it answered.
    Regards,
    Martin

  • Designing SSRS 2005 report using matrix

    I have created a report using ssrs 2005 and matrix.
    i have "to company" column group and "from company" row group. 
    i have filter for the report as "select currency type" - local currency (may be diff for diff companies)
      foreign currency (same for all companies)
    if user selects foreign currency i want to show total column and if user selects local currency then i want to hide total column (since curr can be diff so does not make sense adding)
    i have added subtotal for amount which look like, (rightclick on, =field!tocy.value and add subtotal)
    how to hide total column depending on currency selection ? 
    I tried to rightclick on total and hide it but it only hides the title. It displays column. i can not rightclick on cell right side of amount cell (below total).
    Any solution to hide total column depending on codition ??
    h2007

    Yes you can use an expression as below
    =IIF(Not InScope("<ColumnGroupName>") And Parameters!Currency.Value = "<Local Currency Name>",True,False)
    this should be set as the hidden property expression for the textbox in the data area ie  the one containing SUM(Fields!Amt.Value) as the value expression
     Also see
    http://visakhm.blogspot.in/2010/01/inscope-operator-in-sql-reporting.html
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • ALV report using the field catalog

    which is the quickest way to generate an ALV report using the field catalog merge.  without needing to build the field catalog manually .
    is it easier to create a structure and passe it in the field catalog merge .  if yes can i have an example plzzzz

    hI
    Supports the creation of the field catalog for the ALV function modules
    based either on a structure or table defined in the ABAP Data
    Dictionary, or a program-internal table.
    The program-internal table must either be in a TOP Include or its
    Include must be specified explicitly in the interface.
    The variant based on a program-internal table should only be used for
    rapid prototyping since the following restrictions apply:
    o Performance is affected since the code of the table definition must
    always be read and interpreted at runtime.
    o Dictionary references are only considered if the keywords LIKE or
    INCLUDE STRUCTURE (not TYPE) are used.
    If the field catalog contains more than 90 fields, the first 90 fields
    are output in the list by default whereas the remaining fields are only
    available in the field selection.
    If the field catalog is passed with values, they are merged with the
    'automatically' found information.
    Below is an example ABAP program which will populate a simple internal table(it_ekpo) with data and
    display it using the basic ALV grid functionality(including column total). The example details the main
    sections of coding required to implement the ALV grid functionality:
                             Data declaration
                             Data retrieval
                             Build fieldcatalog
                             Build layout setup
    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic requirement for this demo is to display a number of       *
    *& fields from the EKKO table.                                         *
    REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
    *       Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    * There are a number of ways to create a fieldcat.
    * For the purpose of this example i will build the fieldcatalog manualy
    * by populating the internal table fields individually and then
    * appending the rows. This method can be the most time consuming but can
    * also allow you  more control of the final product.
    * Beware though, you need to ensure that all fields required are
    * populated. When using some of functionality available via ALV, such as
    * total. You may need to provide more information than if you were
    * simply displaying the result
    *               I.e. Field type may be required in-order for
    *                    the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    *  fieldcatalog-do_sum      = 'X'.
    *  fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.        "Display column total
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
    *       Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    *  gd_layout-totals_only        = 'X'.
    *  gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
    *                                         "click(press f2)
    *  gd_layout-zebra             = 'X'.
    *  gd_layout-group_change_edit = 'X'.
    *  gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
    *       Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
    *            i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
    *            i_callback_user_command = 'USER_COMMAND'
    *            i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
    *            it_special_groups       = gd_tabgroup
    *            IT_EVENTS                = GT_XEVENTS
                i_save                  = 'X'
    *            is_variant              = z_template
           tables
                t_outtab                = it_ekko
           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.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
    *       Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL

  • Creating a report using KE31

    Hi,
              Can anyone tell me how can a report be created using KE31 transaction? Please help me with links and tutorials on this topic. I need to create a selection screen on this report (CO-PA module).
              Points for sure..
    Regards,
    Ramya

    Hi Chiranthaka,
    According to your description, my understanding is that you want to create a report based on a SharePoint list.
    I agree with Trevor’s and Mohammad’s suggestion to use SQL Server Reporting Service to create the report for SharePoint list.
    You need to configure Reporting Services for SharePoint 2010 and then use it to create reports.
    Here are two links with the detailed steps to create report using SSRS with SharePoint for you to refer:
    http://aaclage.blogspot.in/2011/11/create-reports-with-sharepoint-2010-and.html
    http://nikpatel.net/2010/06/11/step-by-step-consuming-sharepoint-2010-lists-data-in-the-ssrs-2008-r2-reports/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Creating a Report Using a SharePoint List

    I am using a SharePoint List that Named as 'Service Requests'. It has some fields with Date, Time, Status. The Date & Time will be entered. The Status as three values & those will be selected using a Drop Down List Box. The Statuses are 'In Progress,
    Completed, In completed'.
    I want to create a Report using this SharePoint List that include status with other fields in monthly basis. As an example I want the report about the Service Requests within the December month.
    I also need to know how am I able to link this report to a Web Menu that in the SharePoint Site. Because there is a web menu in that SharePoint Site. I have not developed this site so I don't know the type of the web menu of this site.
    I think someone can help me to solve these problems.
    Regards,
    Chiranthaka

    Hi Chiranthaka,
    According to your description, my understanding is that you want to create a report based on a SharePoint list.
    I agree with Trevor’s and Mohammad’s suggestion to use SQL Server Reporting Service to create the report for SharePoint list.
    You need to configure Reporting Services for SharePoint 2010 and then use it to create reports.
    Here are two links with the detailed steps to create report using SSRS with SharePoint for you to refer:
    http://aaclage.blogspot.in/2011/11/create-reports-with-sharepoint-2010-and.html
    http://nikpatel.net/2010/06/11/step-by-step-consuming-sharepoint-2010-lists-data-in-the-ssrs-2008-r2-reports/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • Migration an application from JDeveloper 10.1.3.2 to JDeveloper 11.1.1.2.0

    I have a project done using JDeveloper 10.1.3.2 and it contains a folder called lib. There are two .jar files named "adf-faces-impl" and "jsf-impl" After the migration I can see the lib folder in JDeveloper 11g but there isn't anything inside. Some f

  • How to send an event or calendar to a non MAC user.

    In Outlook you could attach a calendar or event to an email so the business associate would review and confirm the dates discussed. Is there a way to do this with iCal without being a member of MobilMe, or posting it to a server, or on a webpage? Tha

  • Flash textbox embedded in Director

    This has been a persistent problem since 2006. The ibeam cursor in Flash textbox, when used in Director disappears at its own will. End-users of applications get really frustrated as they get lost in the dark. I truly believe the best multimedia appl

  • Link between invoice no and payment clearing document no

    Hi sap gurus, in a reoprt i have to show the payment receive date against the invoice no. i can have the invoice no by customer no (KUNNR) and date range. now i am facing problem how to link invoice document no with payment clearing document no. Beca

  • Add date (selection criteria) in MB52/MB58

    Hi friends, I must add date selection in selection screen of MB52. I have been creating ZMB52 but I don't know how can I add date field in selection screen. Also i need to add date selection in MB58. Can anybody help me? Thanks, Jawahar.