Report to display record

I have report that have 1000 records and we have 3 types of user user1,user2,user3 I want when user1 run the report the only 100 record idisplayed rest 900 is not dislayed. when user2 run the report then on 200 record displayed rest and 800 record is not displayed.when 1000 user3 is run the report then all 1000 record is displayed how do i acheive this issue
thanks

Hi,
Eg: you have data in ODS/Cube like..
Material-Date-Qty
M1-10-02-2009-100
M2-10-02-2009-300
M1-11-02-2009-400
M2-11-02-2009-200
M1-12-02-2009-100
M2-12-02-2009-300
M1-12-02-2009-400
M2-12-02-2009-200
So in report you want to display only 12-02-2009 data, so define a customer exit variable on Date (0calday/any other date whichh you want to) and calculate the recent datae from sy-datum. And take only one date or date range using SY-DATUM.
Eg: Today is 13-02-2009, so you want to display 11 and 12 data, then calculate SY-DATUM-1 and SY-DATUM-2 and restrict the Customer exit variable in report.
Thanks
Reddy

Similar Messages

  • Filter on a Report to display  records only  from last 12 months

    Hi Folks,
    I have a requirement where I have to display Records for last 12 months. Following is the Filter that I am using
    Opportunity."Close Date" >= TIMESTAMPADD(SQL_TSI_MONTH, 0, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE)-1), CURRENT_DATE)) AND Opportunity."Close Date" <= TIMESTAMPADD(SQL_TSI_MONTH, 12, TIMESTAMPADD(SQL_TSI_DAY, -(DAY(CURRENT_DATE)), CURRENT_DATE))
    But this is showing me records for next 12 months.
    How can I solve this Issue??
    Thanks and Regards,
    Amit Koul

    Dinesh,
    The filter that you suggested works for last 365days, if you try to create a simple report with just Date field in it, you will come to know the difference.
    Using the filter suggested by you it will show me records from 27th Jan 2008 since today the date is 27th Jan 2009.
    I want it to filter records for last 12 months including Jan 2009.(so the interval comes to be Feb 2008 to Jan 2009)
    Hope I made sense!!
    Thanks and Regards,
    Amit koul
    Edited by: Amit Koul on Jan 27, 2009 7:27 PM

  • Standard Report to display locked records of an infotype

    Hi All,
    Is there any SAP standard report to display the locked records of an employee.
    Suppose for an employee his two absence record has been locked and one additional payment has been locked. Is there any SAP standard report to display his locked records.
    Thanks and Regards,
    Visali. Malepati

    Hi,
    Hi there is no standard report  to get the locked records.
    You create a query thru quick viewer.
    where you can heve selection field as lock indicator and Personnel number.
    Steps:
    1. Goto SQ01
    click Qucikviewer
    or
    SQVI
    2.Create a new query
    Datasouce:Table
    Table:PA0006
    3.Lst field Selection tab:
    Add the fields pernr,lock indicator,enddat,begdate.
    4.Selection fields Tab:
    Add the fields pernr,lock indicator
    5.Execute:
    Your Query is ready now:

  • Report is displaying but without record

    hi all
    i am using 10g Release 2.Report is displaying in PDF but
    without records.is there anything incorrect in web.show_document?
    declare
         rep report_object;
         vcJobid varchar2(100);
         vcURL varchar2(100);
         pl_id paramlist;
    ipaddress      report_server_name.V_IP%TYPE;
         vc_server    report_server_name.server_name%type;
         report_path_name report_server_name.report_path%type;
         PORT_NO           report_server_name.port%type;
    begin
    select server_name,report_path,v_ip,port into vc_server,report_path_name,ipaddress,port_no from report_server_name;
         pl_id := get_parameter_list('temp');
         if not id_null(pl_id) then
              destroy_parameter_list(pl_id);
         end if;
         pl_id := create_parameter_list('temp');
         Add_parameter(pl_id,'p_num',text_parameter,to_char(:block.num));
      Add_parameter(pl_id, 'PARAMFORM', TEXT_parameter, 'NO');
      rep := Find_Report_object('REPORT6');
    SET_REPORT_OBJECT_PROPERTY(REP,REPORT_FILENAME,report_path_name);
        SET_REPORT_OBJECT_PROPERTY(rep,REPORT_DESTYPE,cache);
    SET_REPORT_OBJECT_PROPERTY(REP,REPORT_SERVER,vc_server);
    SET_REPORT_OBJECT_PROPERTY(rep,REPORT_DESFORMAT,'PDF');
    --SET_REPORT_OBJECT_PROPERTY(REP,REPORT_OTHER,
    VCJOBID := RUN_REPORT_OBJECT(REP);
    VCJOBID := SUBSTR(VCJOBID,LENGTH(VC_SERVER) +2,LENGTH(VCJOBID));
    VCURL := 'http://'||ipaddress||':'||port_no||'/reports/rwservlet/getjobid' || VCJOBID || '?server='||VC_SERVER;
    WEB.SHOW_DOCUMENT(VCURL,'_blank');
    END;

    hi
    now try.....
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(20);
    plid ParamList;
    ipaddress      report_server_name.V_IP%TYPE;
         PORT_NO           report_server_name.port%type;
         vc_server    report_server_name.server_name%type;
         report_path_name report_server_name.report_path%type;
    BEGIN
         select v_ip,port,server_name,report_path into ipaddress,port_no,vc_server,report_path_name from report_server_name;
    plid := Get_parameter_List('tmp');
    IF NOT Id_Null(plid) THEN
    Destroy_parameter_List( plid );
    END IF;
    plid := Create_parameter_List('tmp');
    Add_parameter(plid,'p_num',text_parameter,to_char(:Block.num));
    Add_parameter(plid, 'PARAMFORM', TEXT_parameter, 'NO');
    repid := FIND_REPORT_OBJECT('REPORT6');
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_FILENAME,report_path_name);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_DESNAME,'report_name');--enter your report name.
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
    SET_APPLICATION_PROPERTY(CURSOR_STYLE,'NORMAL');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no');
    --SET_REPORT_OBJECT_PROPERTY(REPID,REPORT_OTHER,'P_NUM='||TO_CHAR(:Block.NUM));
    v_rep := RUN_REPORT_OBJECT(repid,plid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    WEB.SHOW_DOCUMENT('http://'||ipaddress||':'||port_no||'/reports/rwservlet/getjobid'||
    substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server='||vc_server||'&paramform=no','_BLANK');
    END;hope this helps you..
    sarah

  • Crystal Reports Displaying records where field 1 is populated but field 2 is empty

    i have 3 fields in my report.
    Job id, date on hold, date off hold
    I need to display records where there is a value for on hold but where off hold is blank so I can see which jobs are still on hold. How do i do this?
    thanks in advance

    Have you tried adding criteria of:
    Not IsNull() and
    IsNull()?
    Alastair

  • Oracle BAM report to display N number of records

    hello,
    We have configured a BAM report which displays data from a DB view. now since my view has 100's of records and we would like to show only first 100 records on report page.
    I understand this can be achieved by changing my query by adding  rownum <= 100 but here we dont want to change the query.
    I have checked on BAM report property and dont see any such setting...
    is this achievable from BAM DO or other property setting. ?

    resolved this issue by using FlowN functionality available in BAM

  • Does Reports have an internal manner of displaying records ?

    Hi all,
    Even though there is an order by clause in the code of a query of a group , is there something else internal to Reports which directs it to display records ?

    Hi,
    the order by clause in the query has only impact for the lowest group in a query. For higher groups the Break Order Property of a column is relevant (and vice versa).
    Regards
    Rainer

  • How Many Records a Desktop report can display

    Hi All,
    Just wanted to ask a basic question. Is there any limitation that a discoverer desktop report can display only a certain number records.
    My report is completed with error message saying fetched maximum number of records, Report may not contain all records.
    Thank you,

    madhu
    go to tools --> options --> query governor tab and deselect the "limit retreived query data to:"
    --boys                                                                                                                                                                                                                                       

  • SSRS report not displaying data in correct order

    Guys,
    I have a SSRS 2012 report not displaying returned records from SQL in the correct order.  Running the stored procedure in SSMS and supplying the parameter values returns the data correctly and running Query Designer in SSRS using the stored procedure
    on the dataset in question, likewise returns the data correctly.  Only when I run the actual report does the data display incorrectly(always last name order).  I've done similar reporting using very similar stored procedures and I've never had this
    problem.  Below is the stored procedure.  "@SortBy" is the parameter with the sorting value. 1=Due Date; 2=Denial Amt and 3=Last name and is passed by SSRS to SQL.  Wish I could supply screen shots.  
    Thanks for any help,
    Dave
    ALTER PROCEDURE [dbo].[RAC_PT_List]
    @Level as int,
    @SortBy as int,
    @PTLName as varchar(30) = NULL,
    @User as varchar(10) = NULL
    AS
    SELECT pat.headerID,
    pat.PT_LName + ', ' + pat.PT_FName AS PTName,
    pat.PT_AcctNo,
    rco.RCO_CLMREF,
    rco.RCO_AppealLevel,
    rco.RCO_LevelNo,
    rco.RCO_AuditorStatus,
    let.LET_DEN_DueDate,
    CONVERT(varchar(12),let.LET_DEN_DueDate) as DueDate,
    let.LET_DEN_Dollars,
    let.userID
    FROM Master_PT_List pat
    INNER JOIN Master_RCO_Work rco on RCO.PT_headerID = pat.headerID
    INNER JOIN Master_Letters let on LET.PT_headerID = pat.headerID
    WHERE (@PTLName IS NULL OR(pat.PT_LName LIKE + '%' + @PTLName + '%'))
    AND (rco.RCO_LevelNo = @Level)
    AND (let.userID = @User)
    --AND (rco.RCO_AuditorStatus <> 'Closed' and rco.RCO_AdminStatus <> 'Closed')
    ORDER BY 
    CASE WHEN @SortBy = '1' THEN LET_DEN_DueDate
    END
    DESC,
    CASE WHEN @SortBy = '2' THEN let.LET_DEN_Dollars
    END
    DESC,
    CASE WHEN @SortBy = '3' THEN pat.PT_LName
    END

    Hi DaveMac1960,
    According to your description, when you render data in report, you find it always shows the data with unexpected order. Right?
    In Reporting Services, if we don't set any sorting in tablix, it will order the data as your query in SSMS or Query Builder. In some scenario, for example, we add parent group for data rows, it will have the rows sort by the group on data field by default,
    and the "order by" in your query will be ignored. So please check the Sorting tab in Tablix Properties, in this scenario, we suggest you delete any sorting in the Sorting tab so that the "Order By" clause can work.
    Reference:
    Sort Data in a Data Region (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Report to display PO for vendors

    hi,
    how to develop a report to display all purchase orders for vendors available...
    regards
    kalpana

    Hi,
      Select the records from the table EKKO by filtering the vendor (LIFNR)..
    Thanks,
    Naren

  • Reporting on Merged Records

    I would like to know if there is a way to report on records that have been merged through Portal?  It would be nice to be able to report which records have been merged over a time period (like within the last month), but if that is not possible, I am just looking for a way to report on merged records through other criteria. I heard that an iView is being developed to do this, but I can't find one for this functionality right now. I can display the Key Mapping info without a problem. But there is no way to search against this information.
    Thanks,
    Justin
    Edited by: Justin Fountain on Apr 22, 2009 9:24 PM

    I found the answer:
    If you see the REP table, there is a column called REP_MAX_REP_SIZE which contains the maximum report size for each report. This value has a default value of 5000 for most of the reports. You can change this value to have a higher number so that the report returns the data. But increasing the number can reduce the response time since the number of records will be large.

  • Report to display all the contacts of an opportunity.

    Hello,
    I have a requirement, can we create a report which displays all the contacts of an opportunity apart from primary contact.
    Any inputs on the same will be appreciatable. TIA
    Edited by: 1004233 on May 6, 2013 12:16 AM
    Edited by: 1004233 on May 6, 2013 3:28 AM
    Edited by: 1004233 on May 6, 2013 3:28 AM

    Hey Aveek;
       Try this, which will get the most recent one.  You would just need to change it to loop at the edids records to get at them all...
          TABLES: *edidc, *edids, *t100.
          DATA: wf_string type string.
          CLEAR *edids.
          SELECT SINGLE *
             INTO *edids
             FROM edids
             WHERE docnum = *edidc-docnum
               AND status = '51'.
          SELECT SINGLE text
             INTO *t100-text
             FROM t100
             WHERE sprsl = 'EN'
               AND arbgb = *edids-stamid
               AND msgnr = *edids-stamno.
             CLEAR wf_string.
          MOVE *edids-stapa1 TO wf_string.
          REPLACE '&' WITH wf_string INTO *t100-text.
          IF sy-subrc EQ 0.
            CLEAR wf_string.
            MOVE *edids-stapa2 TO wf_string.
            REPLACE '&' WITH wf_string INTO *t100-text.
            IF sy-subrc EQ 0.
              CLEAR wf_string.
              MOVE *edids-stapa3 TO wf_string.
              REPLACE '&' WITH wf_string INTO *t100-text.
              IF sy-subrc EQ 0.
                CLEAR wf_string.
                MOVE *edids-stapa4 TO wf_string.
                REPLACE '&' WITH wf_string INTO *t100-text.
              ENDIF.
            ENDIF.
          ENDIF.
          A little sloppy (OK, alot!), but it gets the job done...
    Cheers,
    John

  • Update all alv (grid) displayed records to internal table

    Hi all,
    i want to update the records into the internal table which are changed by the user in the edit field.
    after he select save button.
    i  have to save the ALV grid displayed records in the internal table.
    hw can i do this ?

    ALV with EDIT and SAVE functionality
    Code:REPORT z_demo_alv_jg.*******************************************************************
    TYPE-POOLS                                                      *
    TYPE-POOLS: slis. *******************************************************************
    INTERNAL TABLES/WORK AREAS/VARIABLES     *
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
          w_field TYPE slis_fieldcat_alv,
          p_table LIKE dd02l-tabname,
          dy_table TYPE REF TO data,
          dy_tab TYPE REF TO data,
          dy_line TYPE REF TO data.*******************************************************************
    FIELD-SYMBOLS                                                   *
    FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
                   <dyn_wa> TYPE ANY,
                   <dyn_field> TYPE ANY,
                   <dyn_tab_temp> TYPE STANDARD TABLE.*******************************************************************
    SELECTION SCREEN                                                *
    PARAMETERS: tabname(30) TYPE c,
                lines(5)  TYPE n.*******************************************************************
    START-OF-SELECTION                                              *
    START-OF-SELECTION.* Storing table name
      p_table = tabname.* Create internal table dynamically with the stucture of table name
    entered in the selection screen
      CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_table->* TO <dyn_table>.
      IF sy-subrc <> 0.
        MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.    LEAVE TO LIST-PROCESSING.
      ENDIF.
    Create workarea for the table
      CREATE DATA dy_line LIKE LINE OF <dyn_table>.
      ASSIGN dy_line->* TO <dyn_wa>.* Create another temp. table
      CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN dy_tab->* TO <dyn_tab_temp>.  SORT i_fieldcat BY col_pos.* Select data from table
      SELECT * FROM (p_table)
      INTO TABLE <dyn_table>
      UP TO lines ROWS.  REFRESH <dyn_tab_temp>.* Display report
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_structure_name         = p_table
          i_callback_user_command  = 'USER_COMMAND'
          i_callback_pf_status_set = 'SET_PF_STATUS'
        TABLES
          t_outtab                 = <dyn_table>
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.  IF sy-subrc <> 0.  ENDIF.&----
    *&      Form  SET_PF_STATUS
          Setting custom PF-Status
         -->RT_EXTAB   Excluding table
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.  SET PF-STATUS 'Z_STANDARD'.ENDFORM.                    "SET_PF_STATUS&----
    *&      Form  user_command
          Handling custom function codes
         -->R_UCOMM      Function code value
         -->RS_SELFIELD  Info. of cursor position in ALV
    FORM user_command  USING    r_ucomm LIKE sy-ucomm
                               rs_selfield TYPE slis_selfield.* Local data declaration
      DATA: li_tab TYPE REF TO data,
            l_line TYPE REF TO data.* Local field-symbols
      FIELD-SYMBOLS:<l_tab> TYPE table,
                    <l_wa>  TYPE ANY.* Create table
      CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
      ASSIGN li_tab->* TO <l_tab>.* Create workarea
      CREATE DATA l_line LIKE LINE OF <l_tab>.
      ASSIGN l_line->* TO <l_wa>.  CASE r_ucomm.*   When a record is selected
        WHEN '&IC1'.*     Read the selected record
          READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
          rs_selfield-tabindex.      IF sy-subrc = 0.*       Store the record in an internal table
            APPEND <dyn_wa> TO <l_tab>.*       Fetch the field catalog info
            CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
              EXPORTING
                i_program_name         = 'Z_DEMO_PDF_JG'
                i_structure_name       = p_table
              CHANGING
                ct_fieldcat            = i_fieldcat
              EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
            IF sy-subrc = 0.*         Make all the fields input enabled except key fields
              w_field-input = 'X'.          MODIFY i_fieldcat FROM w_field TRANSPORTING input
              WHERE key IS INITIAL.        ENDIF.*       Display the record for editing purpose
            CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
              EXPORTING
                i_callback_program    = sy-repid
                i_structure_name      = p_table
                it_fieldcat           = i_fieldcat
                i_screen_start_column = 10
                i_screen_start_line   = 15
                i_screen_end_column   = 200
                i_screen_end_line     = 20
              TABLES
                t_outtab              = <l_tab>
              EXCEPTIONS
                program_error         = 1
                OTHERS                = 2.        IF sy-subrc = 0.*         Read the modified data
              READ TABLE <l_tab> INDEX 1 INTO <l_wa>.*         If the record is changed then track its index no.
            and populate it in an internal table for future
            action
              IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
                <dyn_wa> = <l_wa>.
                i_index = rs_selfield-tabindex.
                APPEND i_index.
              ENDIF.
            ENDIF.      ENDIF.*   When save button is pressed
        WHEN 'SAVE'.*     Sort the index table
          SORT i_index.*     Delete all duplicate records
          DELETE ADJACENT DUPLICATES FROM i_index.      LOOP AT i_index.*       Find out the changes in the internal table
          and populate these changes in another internal table
            READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
            IF sy-subrc = 0.
              APPEND <dyn_wa> TO <dyn_tab_temp>.
            ENDIF.      ENDLOOP.*     Lock the table
          CALL FUNCTION 'ENQUEUE_E_TABLE'
            EXPORTING
              mode_rstable   = 'E'
              tabname        = p_table
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.      IF sy-subrc = 0.*       Modify the database table with these changes
            MODIFY (p_table) FROM TABLE <dyn_tab_temp>.        REFRESH <dyn_tab_temp>.*       Unlock the table
            CALL FUNCTION 'DEQUEUE_E_TABLE'
              EXPORTING
                mode_rstable = 'E'
                tabname      = p_table.      ENDIF.
      ENDCASE.  rs_selfield-refresh = 'X'.ENDFORM.                    "user_command

  • Crystal Reports not displaying all data

    We have a simple report pulling from 3 tables on a sql server. For some reason, data from one table does not fully display. The table is called Referral, and we have some clients that have a Referral record tied to them. Out of a report of 20 records, we will have 3-4 that won't display the referral data (even though I can see it in the database), but the other 16 records will. If I go into the database, and change the data on one of the non-displaying referral records and save, it will start displaying. If I then change the data back to the original, it will also display. Being new to Crystal Reports, I don't know if this is a Crystal issue or a problem at the data source, but thought I would put it out here in case someone is familiar with this problem. Our Crystal Reports version is 2011.
    Thanks.

    Hi
    This could be either table join problem in your crystal reports designer or when you are linking the tables it is unable to match the records.
    -- Go in Crystal reports designer and refresh the report and go in Database Menu--Show SQL query and copy the SQL and run the same at database end and check.
    Also you said you are able to see all records at database end, if you are extracting data through SQL you can very well copy that SQL in crystal reports under 'Add Command'  option and create your report.
    You will find Add command option under your Database connection while creating a report.
    Thanks,
    Sastry

  • Report that display 'Net Pay' by Empl for current and previous period.

    Hi,
    We are looking for a SAP report that display 'Net Pay' by Employee for current and previous period in USA payroll module. If you know of any, pl let me know.
    Thanks in advance,
    Niranjan

    Thanks Archana and Sikindar.
    We knew about this report, however, it gives information one below the other if we run, say for 2 periods, but what we are looking for is something as shown in example below
    Empl #      Empl # Name    Prev Pay period Net Pay        Current Pay period net pay.
    123              XYZ                     $ 1200.00                                 $ 1200.00
    256              ABC                    $  2000.00                                $ 3000.00 
    We want to run for 2 periods at a time and get the results as above. That way, payroll dept can run this report and compare if we are paying too much in current pay, compared to previous pay. This is basically to avoid any typos when they create new pay records in infotype 0008.
    Niranjan

Maybe you are looking for