Count total number of record of table with deletion from archiving object

Does anyone know is there any SAP standard program to count the total number of record of the table with deletion from Archiving Object and display in repprt?

Not sure of the question. Are you looking to get the sql "select count(*) from table" from using the TopLink expression framework or are you getting that SQL already and want something else?
If you are looking just to get the count from a table/class, you can use a ReportQuery:
ReportQuery rquery = new ReportQuery(ClassToQueryOn.class);
rquery.addCount(); //equivalent to count(*);
session.executeQuery(rquery);
You can use a report query to return data instead of objects, and use selection criteria just like a normal read query.
Best Regards,
Chris

Similar Messages

  • How to count total number of records in mYSQL through JSP ??

    hi
    i want method to count total number of records in table.
    it was there rs.count() method in VB .
    But what about JSP , i used MYSQL database.
    tell me solution please...
    thanks...
    remember JSP - total record count for mySQL

    hello mr.
    i don't want ur suggestion ok
    i know that site.
    no need to give suggestion if u don't give code.
    its better to give proper reply instead of making a
    comment in forum.
    next time take care
    He was perfectly justified in that remark. I have given you the information you need, nicely, twice. But I, and noone else here is going to do your work for you. We will point you in the direction you need to be looking, but we are not going to give code. If you attempt to code something yourself, and it doesn't work, then post the code you tried, and we may make some corrections to it. Then again, with the attitude you've shown so far we probably will not. But one thing no one here will do, is do your work. Especially not for free.
    Now, if you are not willing to sit down, and look at the suggestion that has already been made, and attempt to use it. Then continue wasting your time, but go away and stop wasting our time.

  • Count the number of occurence in table with toplink

    Hi !
    there is no way to build a query with expressionbuilder or .... to count the number of occurences in my table ?
    i don't want use query " select count(*) from table "
    thanks

    Not sure of the question. Are you looking to get the sql "select count(*) from table" from using the TopLink expression framework or are you getting that SQL already and want something else?
    If you are looking just to get the count from a table/class, you can use a ReportQuery:
    ReportQuery rquery = new ReportQuery(ClassToQueryOn.class);
    rquery.addCount(); //equivalent to count(*);
    session.executeQuery(rquery);
    You can use a report query to return data instead of objects, and use selection criteria just like a normal read query.
    Best Regards,
    Chris

  • SQ02 InfoSet Get Count of Total Number of Records that will be processed

    I am developing a query (SQ01) and am currently working on building an InfoSet (SQ02). 
    The Infoset was set up using a 'Direct read of table'.  Next, I'm adding some various fields and then going to Extras and trying to define some code to get the total number of records that my query will be processing.  I'm not sure if SAP pulls a filtered result set into a temporary table (by default - if so how could I reference it?) that I can reference or is just pulling in a row at a time in the record processing code, but my question is in regards to getting a record count of how many records are returned in my result set PRIOR TO going through all of the records.
    Overall, I'd like to be able to have a field that says Record X of Y.  I can get the X part for each line, but cannot get 'Y' until the very end.  Any help or ideas would be much appreciated.  I've looked around a bunch, but haven't found anything like what I'm requesting.
    Query Output would look something like:
    Record X1 of Y | Title1 | Amount1
    Record X2 of Y | Title2 | Amount2

    Hi Subin,
         I have tossed around this idea in my head, but am trying to figure out how to get the values and selection options from the query screen to incorporate into my Select statement within my infoset.  The problem I'm running into is that my user enters a group of account numbers and an ending date that has to be pulled from the SQ01 query screen to the SQ02 infoset code.  I've looked around for examples on pulling the data from the query screen, but have been unsuccessful thus far.  Say for instance I have 15 specific accounts that the user is entering in and they want any records that have been submitted prior to the end of the current month and the start of the business year.
         On my query screen they would enter in something like
    Business Year:  2011
    Reporting End Date:  <= 31.03.2011 (Which equates to all records between 01.01.2011 AND 31.03.2011)
    Account #s:  0000, 0001, 0003, 0005, ..., 9999  (These are a variable amount of accounts entered and could include options such as not equal to or even between ranges etc)
    In my START-OF-SELECTION code I would need a select like:
    NOTE:  This is just a pseudo code format, not checked for syntax here
    SELECT count(*)
    FROM TABLE
    WHERE BusinessYear = '2011' AND
        RecordDate Between 01.01.2011 AND 31.03.2011 AND
        Accounts IN (0000, 0001, 0003, 0005, ..., 9999).
    So In this select I need to reference the values in the SQ01.  How would I reference the account #'s and whether or not the user has entered an account number and said Not Equal on it etc.  This select statement would have to be built on the fly, since it's not guaranteed to be the same for each run.
    Thanks,
    Mark

  • How to find total number of records in a BDoc?

    Dear all,
    I have replicated about BP 1088 records from ISU into CRM system with block size 100. Technically on SMW01, for each successfully processed BDoc, there will be 100 records (corresponds to 100 block size). But due to some failed BDocs, not all "successfully" BDocs will have 100 records each, some may have only 1 record inside...or 30...or 88 for example. So, may i know how to find or is there a report i can look into to find the total number of records clearly shown for each of the successfully processed green status BDocs???
    Please help and points will be rewards!!
    Thank You
    Best Regards,
    CK

    I am just showing this to show how to get the rowcount along with the cursor, if the program has so much gap of between verifying the count(*) and opening the cursor.
    Justin actually covered this, he said, oracle has to spend some resources to build this functionality. As it is not most often required, it does not makes much sence to see it as a built-in feature. However, if we must see the rowcount when we open the cursor, here is a way, but it is little bit expensive.
    SQL> create table emp_crap as select * from emp where 1 = 2;
    Table created.
    SQL> declare
      2   v_cnt     number := 0;
      3   zero_rows         exception;
      4  begin
      5    for rec in (select * from (select rownum rn, e.ename from emp_crap e) order by 1 desc)
      6     loop
      7        if v_cnt = 0 then
      8           v_cnt := rec.rn;
      9        end if;
    10     end loop;
    11     if v_cnt = 0 then
    12        raise zero_rows;
    13     end if;
    14   exception
    15    when zero_rows then
    16      dbms_output.put_line('No rows');
    17   end;
    18  /
    No rows
    PL/SQL procedure successfully completed.
    -- Now, let us use the table, which has the data
    SQL> declare
      2   v_cnt     number := 0;
      3   zero_rows         exception;
      4  begin
      5    for rec in (select * from
      6          (select rownum rn, e.ename from emp e)
      7          order by 1 desc)
      8     loop
      9        if v_cnt = 0 then
    10           v_cnt := rec.rn;
    11           dbms_output.put_line(v_cnt);
    12        end if;
    13     end loop;
    14     if v_cnt = 0 then
    15        raise zero_rows;
    16     end if;
    17   exception
    18    when zero_rows then
    19      dbms_output.put_line('No rows');
    20   end;
    21  /
    14
    PL/SQL procedure successfully completed.Thx,
    Sri

  • Total number of records in given range.

    total number of records in given range.
    Hi all ,
    I have the Requirement as follows.
    I Have a Table which Contains Duplicate Dates like
    22.11.2006
    15.11.2006
    31.10.2006
    15.09.2006
    15.09.2006
    14.09.2006
    15.09.2006
    14.09.2006
    16.09.2006
    etc...
    The input is monday of any week of a Year. Suppose 3 rd week starts from 15.11.2006 and ends to 21.11.2006. Weekly 5 days are working days. If i ienter the 15.09.2006 as input.....
    The Required out put is : 5 Records ( In above example 15.09.2006 to 21.09.2006 total Number of records is 5. I mean 15.09.2006 is Found 4 times + 16.09.2006 is found 1 time in the Specied Range.
    total: 4+1 = 5 records.)
    Simply...my requirement is to find total number of Records(with Duplicates) in the Given range .
    thanks in Advance
    sivaranga& Krish...

    this is the code. Where i have to make changes..
    this is the program which they given
    Report Title:         /GIL/ZZKWKBKS
    Author:               XNIMKARP
    Creation Date:        29.09.2006
    ZSAO System:          <&system>  (blue)
    ZSAO System Fct.:     <&sf>      (green)
    DER:                  DER&
    HLD:                  HLD&
    Request number:
    Description (technical)
    ===================================================================
    Modification History  (recent on top / refs: MODnnn+ or MODnnn-)
    Modification Number:  MODnnn
    Modifier:             &userid
    Modification Date:    &
    Change object:        DER, TPR, Clarify number
    Request number:
    Description
    Modification Number:  MOD001
    Modifier:             &userid
    Modification Date:    &
    Change object:        DER, TPR, Clarify number
    Request number:
    Description
    REPORT /GIL/ZZKWKBKS
             MESSAGE-ID  ??               "....
           NO STANDARD PAGE HEADING
           LINE-COUNT 65(0)
           LINE-SIZE 132.
    eject*******************************************************
    Data Declaration Section                                   *
    TABLE declarations for select-options only                 *
    TABLES: /GIL/ZZKDERMAST ,
            /GIL/ZZKCOMBOOK ,
            /GIL/ZZKWEEKID .
    SELECT-OPTIONS and PARAMETERS                              *
    SELECT-OPTIONS:
        S_STRWK   FOR /GIL/ZZKWEEKID-STRWK  NO INTERVALS .          "....
    "PARAMETERS:
    "    P_????  TYPE ????-????? DEFAULT ?,   "description ????
    "    PX_??? AS CHECKBOX                   "description ????
    TYPES                                                      *
    TYPES:
          begin of T_IT_OUTTAB  ,
              STRWK like  /GIL/ZZKCOMBOOK-STRWK ,
              CSTMZ like  /GIL/ZZKDERMAST-CSTMZ ,
              NAME_TEXT like ADRP-NAME_TEXT ,
              DERNO like  /GIL/ZZKCOMBOOK-DERNO ,
              BNAME like  /GIL/ZZKCOMBOOK-BNAME ,
              HRSBK like  /GIL/ZZKCOMBOOK-HRSBK ,
              STATS like  /GIL/ZZKDERMAST-STATS ,
              CLSDT like  /GIL/ZZKDERMAST-CLSDT ,
              MNTHI like  /GIL/ZZKWEEKID-MNTHI ,
              QRTRI like  /GIL/ZZKWEEKID-QRTRI ,
        end of T_IT_OUTTAB  .
    TYPES:
        begin of  T_IT_WEEKSUM ,
            STRWK  like  /GIL/ZZKCOMBOOK-STRWK ,
            MNTHI like  /GIL/ZZKWEEKID-MNTHI ,
            QRTRI like  /GIL/ZZKWEEKID-QRTRI ,
            DEVHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            CUSHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            TOTHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            DVMHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            CSMHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            TOMHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            DVQHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            CSQHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            TOQHRS like  /GIL/ZZKCOMBOOK-HRSBK ,
            TOTDER like  /GIL/ZZKCOMBOOK-HRSBK ,
            TOMDER like  /GIL/ZZKCOMBOOK-HRSBK ,
            TOQDER like  /GIL/ZZKCOMBOOK-HRSBK ,
        end of  T_IT_WEEKSUM .
    TYPES:
        begin of  T_IT_DEVSUM ,
            NAME_TEXT like ADRP-NAME_TEXT ,
            HRSBK like  /GIL/ZZKCOMBOOK-HRSBK ,
        end of  T_IT_DEVSUM .
    "TYPES: T_FL_???  TYPE ????-?????.          "description ???
    "TYPES: T_IT_???  TYPE ????-?????.          "description ???
    VARIABLES                                                  *
    "DATA: V_???   TYPE ????-?????.          "field description
    "DATA: VX_???  TYPE ????-?????.          "flag description
    DATA:  VIT_DATATAB TYPE T_IT_OUTTAB occurs 0 with header line.
    DATA:  VIT_WEEKSUM TYPE T_IT_WEEKSUM occurs 0 with header line.
    DATA:  VIT_DEVSUM TYPE T_IT_DEVSUM occurs 0 with header line.
    constants                                                  *
    CONSTANTS: C_BR1    TYPE C VALUE '(' ,
               C_BR2    TYPE C VALUE ')' ,
               C_DASH   TYPE C VALUE '-' ,
               C_005    TYPE I VALUE '5' ,
               C_006    TYPE I VALUE '6' ,
               C_030    TYPE I VALUE '30' ,
               C_031    TYPE I VALUE '31' ,
               C_055    TYPE I VALUE '55' ,
               C_056    TYPE I VALUE '56' ,
               C_080    TYPE I VALUE '80' ,
               C_081    TYPE I VALUE '81' ,
               C_105    TYPE I VALUE '105' ,
               C_106    TYPE I VALUE '106' ,
               C_125    TYPE I VALUE '126' ,
               C_130    TYPE I VALUE '130' ,
               C_150    TYPE I VALUE '150' .
    eject*******************************************************
    program section  (EVENTS)                                  *
    start of database access                                   *
    START-OF-SELECTION.
    PERFORM FETCH_BOOKING_DATA .
    PERFORM FETCH_USER_DATA .
    PERFORM WEEKLY_CUMULATION .
    TOP-OF-PAGE.
       PERFORM WRITE_HEADER .
    *&      Form  FETCH_BOOKING_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM FETCH_BOOKING_DATA .
        select a~STRWK
              a~DERNO
              a~BNAME
              a~HRSBK
              b~STATS
              b~CLSDT
              b~CSTMZ
              c~MNTHI
              c~QRTRI
        into corresponding fields of table VIT_DATATAB
        from  /GIL/ZZKCOMBOOK as a
        inner join /GIL/ZZKDERMAST as b
        on   bBNAME = aBNAME
        and  bDERNO = aDERNO
        inner join /GIL/ZZKWEEKID as c
        on cSTRWK = aSTRWK
        where a~STRWK in S_STRWK .
        if SY-SUBRC <>  0 .
            WRITE /10 TEXT-001.
            EXIT .
        endif .
    ENDFORM.                    " FETCH_BOOKING_DATA
    *&      Form  FETCH_USER_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM FETCH_USER_DATA .
    DATA:
        BEGIN OF LIT_USER OCCURS 0 ,
            BNAME like  /GIL/ZZKCOMBOOK-BNAME ,
            NAME_TEXT like ADRP-NAME_TEXT ,
        END OF LIT_USER .
    DATA : L_SY_TABIX LIKE SY-TABIX .
        LOOP AT VIT_DATATAB .
          MOVE-CORRESPONDING VIT_DATATAB TO LIT_USER .
          APPEND LIT_USER .
        ENDLOOP .
        DELETE ADJACENT DUPLICATES FROM LIT_USER COMPARING BNAME .
         if LIT_USER[] is not initial .
               SELECT BBNAME ANAME_TEXT
               INTO corresponding fields of table LIT_USER
               FROM ADRP AS A
               INNER JOIN USR21 AS B
               ON BPERSNUMBER = APERSNUMBER
               for all entries in LIT_USER
               WHERE B~BNAME = LIT_USER-BNAME .
         endif.
        loop at VIT_DATATAB .
          L_SY_TABIX = SY-TABIX .
          read table LIT_USER with key BNAME = VIT_DATATAB-BNAME .
          if sy-subrc = 0 .
              VIT_DATATAB-NAME_TEXT = LIT_USER-NAME_TEXT .
               modify VIT_DATATAB index L_SY_TABIX .
          endif .
        endloop.
    ENDFORM.                    " FETCH_USER_DATA
    *&      Form  WEEKLY_CUMULATION
          text
    -->  p1        text
    <--  p2        text
    FORM WEEKLY_CUMULATION .
    DATA:
        L_PREV_MNTHI  like /GIL/ZZKWEEKID-MNTHI ,
        L_PREV_QRTRI  like /GIL/ZZKWEEKID-QRTRI ,
        LFL_DATATAB_WA  TYPE T_IT_OUTTAB .
      SORT VIT_DATATAB BY STRWK CSTMZ NAME_TEXT .
      loop at VIT_DATATAB .
          move-corresponding VIT_DATATAB to LFL_DATATAB_WA .
          AT END OF NAME_TEXT .
              SUM .
              VIT_DEVSUM-NAME_TEXT =  VIT_DATATAB-NAME_TEXT .
              VIT_DEVSUM-HRSBK = VIT_DATATAB-HRSBK .
              APPEND VIT_DEVSUM .
          ENDAT .
          AT END OF CSTMZ .
              SUM .
              if LFL_DATATAB_WA-CSTMZ IS INITIAL .
                  VIT_DEVSUM-NAME_TEXT =  TEXT-011 .
              else.
                  VIT_DEVSUM-NAME_TEXT =  TEXT-012 .
              endif.
              VIT_DEVSUM-HRSBK = VIT_DATATAB-HRSBK .
              APPEND VIT_DEVSUM .
          ENDAT .
          AT END OF STRWK .
            CLEAR: VIT_WEEKSUM-DEVHRS ,
                  VIT_WEEKSUM-CUSHRS ,
                  VIT_WEEKSUM-TOTHRS .
            VIT_WEEKSUM-STRWK = LFL_DATATAB_WA-STRWK .
            VIT_WEEKSUM-MNTHI = LFL_DATATAB_WA-MNTHI .
            VIT_WEEKSUM-QRTRI = LFL_DATATAB_WA-QRTRI .
            SUM .
            VIT_WEEKSUM-TOTHRS = VIT_DATATAB-HRSBK .
            VIT_DEVSUM-NAME_TEXT =  TEXT-013 .
            VIT_DEVSUM-HRSBK = VIT_DATATAB-HRSBK .
            APPEND VIT_DEVSUM .
            SELECT SUM( HRSBK )
            INTO VIT_WEEKSUM-CUSHRS
            from /GIL/ZZKWEKBK
            where STRWK = LFL_DATATAB_WA-STRWK
            AND   CSTMZ NE  SPACE .
            VIT_WEEKSUM-DEVHRS =
                VIT_WEEKSUM-TOTHRS - VIT_WEEKSUM-CUSHRS .
           IF LFL_DATATAB_WA-MNTHI <> L_PREV_MNTHI .
              if week falls in differnet month .
                 L_PREV_MNTHI = LFL_DATATAB_WA-MNTHI  .
                CLEAR: VIT_WEEKSUM-DVMHRS ,
                       VIT_WEEKSUM-CSMHRS ,
                       VIT_WEEKSUM-TOMHRS .
                SELECT SUM( HRSBK )
                INTO VIT_WEEKSUM-DVMHRS
                from /GIL/ZZKWEKBK
                where MNTHI =  LFL_DATATAB_WA-MNTHI
                AND   CSTMZ EQ SPACE .
                SELECT SUM( HRSBK )
                INTO VIT_WEEKSUM-CSMHRS
                from /GIL/ZZKWEKBK
                where MNTHI =  LFL_DATATAB_WA-MNTHI
                AND   CSTMZ NE  SPACE .
                VIT_WEEKSUM-TOMHRS =
                    VIT_WEEKSUM-DVMHRS + VIT_WEEKSUM-CSMHRS  .
            ENDIF .
          IF LFL_DATATAB_WA-QRTRI <> L_PREV_QRTRI .
                L_PREV_QRTRI = LFL_DATATAB_WA-QRTRI .
                SELECT SUM( HRSBK )
                INTO VIT_WEEKSUM-DVQHRS
                from /GIL/ZZKWEKBK
                where QRTRI = LFL_DATATAB_WA-QRTRI
                AND   CSTMZ EQ SPACE .
                SELECT SUM( HRSBK )
                INTO VIT_WEEKSUM-CSQHRS
                from /GIL/ZZKWEKBK
                where QRTRI = LFL_DATATAB_WA-QRTRI
                AND   CSTMZ NE  SPACE .
                VIT_WEEKSUM-TOQHRS =
                    VIT_WEEKSUM-DVQHRS + VIT_WEEKSUM-CSQHRS  .
          ENDIF .
          APPEND VIT_WEEKSUM .
          NEW-PAGE .
          PERFORM WRITE_WEEKLY_STATISTICS .
          PERFORM WRITE_DEVELOPER_STATISTICS .
          ENDAT .
       endloop .
    ENDFORM.                    " WEEKLY_CUMULATION
    *&      Form  WRITE_DEVELOPER_STATISTICS
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_DEVELOPER_STATISTICS .
    SKIP 2.
    WRITE AT: /C_005 TEXT-014 .
      ULINE AT /C_005(C_125) .
      WRITE AT:/C_005 SY-VLINE ,
                C_006 TEXT-014 ,
                C_080 SY-VLINE ,
                C_081 TEXT-015 ,
                C_130 SY-VLINE .
       WRITE AT: C_005 SY-VLINE ,
                C_080 SY-VLINE ,
                C_130 SY-VLINE .
        ULINE AT /C_005(C_125) .
        loop at VIT_DEVSUM .
              CASE VIT_DEVSUM-NAME_TEXT .
              WHEN TEXT-011 .
                  WRITE AT:/C_005 SY-VLINE ,
                            C_006 VIT_DEVSUM-NAME_TEXT COLOR COL_NEGATIVE  ,
                            C_080 SY-VLINE ,
                            C_081 VIT_DEVSUM-HRSBK COLOR COL_NEGATIVE   ,
                            C_130 SY-VLINE .
               WHEN TEXT-012 .
                  WRITE AT:/C_005 SY-VLINE ,
                            C_006 VIT_DEVSUM-NAME_TEXT COLOR COL_NEGATIVE  ,
                            C_080 SY-VLINE ,
                            C_081 VIT_DEVSUM-HRSBK COLOR COL_NEGATIVE   ,
                            C_130 SY-VLINE .
               WHEN TEXT-013 .
                    WRITE AT:/C_005 SY-VLINE ,
                            C_006 VIT_DEVSUM-NAME_TEXT COLOR COL_TOTAL  ,
                            C_080 SY-VLINE ,
                            C_081 VIT_DEVSUM-HRSBK COLOR COL_TOTAL    ,
                            C_130 SY-VLINE .
                WHEN OTHERS .
                    WRITE AT:/C_005 SY-VLINE ,
                            C_006 VIT_DEVSUM-NAME_TEXT   ,
                            C_080 SY-VLINE ,
                            C_081 VIT_DEVSUM-HRSBK     ,
                            C_130 SY-VLINE .
               ENDCASE .
               WRITE AT: C_005 SY-VLINE ,
                C_080 SY-VLINE ,
                C_130 SY-VLINE .
               ULINE AT /C_005(C_125) .
        endloop .
        REFRESH VIT_DEVSUM .
        CLEAR VIT_DEVSUM .
    ENDFORM.                    " WRITE_DEVELOPER_STATISTICS
    *&      Form  WRITE_WEEKLY_STATISTICS
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_WEEKLY_STATISTICS .
       SKIP 2.
       ULINE AT C_005(C_125) .
       WRITE AT: /C_005 SY-VLINE ,
                  C_006 TEXT-003 ,
                  C_030 SY-VLINE ,
                  C_031 TEXT-004 ,
                  C_055 SY-VLINE ,
                  C_056 TEXT-005 ,
                  C_080 SY-VLINE ,
                  C_081 TEXT-006 ,
                  C_105 SY-VLINE ,
                  C_106 TEXT-007 ,
                  C_130 SY-VLINE .
       WRITE AT: /C_005 SY-VLINE ,
                  C_030 SY-VLINE ,
                  C_031 /GIL/ZZKWEEKID-STRWK ,
                  41    C_DASH ,
                  43    /GIL/ZZKWEEKID-ENDWK ,
                  C_055 SY-VLINE ,
                  C_056 VIT_WEEKSUM-MNTHI ,
                  C_080 SY-VLINE ,
                  C_081 VIT_WEEKSUM-QRTRI ,
                  C_105 SY-VLINE ,
                  C_130 SY-VLINE .
        WRITE AT: /C_005 SY-VLINE ,
                  C_030 SY-VLINE ,
                  C_055 SY-VLINE ,
                  C_080 SY-VLINE ,
                  C_105 SY-VLINE ,
                  C_130 SY-VLINE .
         ULINE AT C_005(C_125) .
        WRITE AT: /C_005 SY-VLINE ,
                  C_006 TEXT-008 ,
                  C_030 SY-VLINE ,
                  C_031 VIT_WEEKSUM-DEVHRS ,
                  C_055 SY-VLINE ,
                  C_056 VIT_WEEKSUM-DVMHRS ,
                  C_080 SY-VLINE ,
                  C_081 VIT_WEEKSUM-DVQHRS ,
                  C_105 SY-VLINE ,
                  C_130 SY-VLINE .
        WRITE AT: /C_005 SY-VLINE ,
                  C_030 SY-VLINE ,
                  C_055 SY-VLINE ,
                  C_080 SY-VLINE ,
                  C_105 SY-VLINE ,
                  C_130 SY-VLINE .
        ULINE AT C_005(C_125) .
        WRITE AT: /C_005 SY-VLINE ,
                  C_006 TEXT-009 ,
                  C_030 SY-VLINE ,
                  C_031 VIT_WEEKSUM-CUSHRS ,
                  C_055 SY-VLINE ,
                  C_056 VIT_WEEKSUM-CSMHRS ,
                  C_080 SY-VLINE ,
                  C_081 VIT_WEEKSUM-CSQHRS ,
                  C_105 SY-VLINE ,
                  C_130 SY-VLINE .
        WRITE AT: /C_005 SY-VLINE ,
                  C_030 SY-VLINE ,
                  C_055 SY-VLINE ,
                  C_080 SY-VLINE ,
                  C_105 SY-VLINE ,
                  C_130 SY-VLINE .
        ULINE AT C_005(C_125) .
        WRITE AT: /C_005 SY-VLINE COLOR COL_TOTAL,
                  C_006 TEXT-010 COLOR COL_TOTAL,
                  C_030 SY-VLINE COLOR COL_TOTAL ,
                  C_031 VIT_WEEKSUM-TOTHRS COLOR COL_TOTAL,
                  C_055 SY-VLINE COLOR COL_TOTAL,
                  C_056 VIT_WEEKSUM-TOMHRS COLOR COL_TOTAL,
                  C_080 SY-VLINE COLOR COL_TOTAL,
                  C_081 VIT_WEEKSUM-TOQHRS COLOR COL_TOTAL,
                  C_105 SY-VLINE COLOR COL_TOTAL,
                  C_130 SY-VLINE COLOR COL_TOTAL.
        WRITE AT: /C_005 SY-VLINE ,
                  C_030 SY-VLINE ,
                  C_055 SY-VLINE ,
                  C_080 SY-VLINE ,
                  C_105 SY-VLINE ,
                  C_130 SY-VLINE .
        ULINE AT C_005(C_125) .
    ENDFORM.                    " WRITE_WEEKLY_STATISTICS
    *&      Form  WRITE_HEADER
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_HEADER .
    SKiP 1 .
    SELECT SINGLE *
    FROM /GIL/ZZKWEEKID
    WHERE STRWK = VIT_WEEKSUM-STRWK .
    WRITE AT:  5 TEXT-002 INTENSIFIED ON .
    WRITE AT:  47 /GIL/ZZKWEEKID-MNTHI ,
                55 /GIL/ZZKWEEKID-WEEKI ,
                65 C_BR1 ,
                67 /GIL/ZZKWEEKID-STRWK ,
                78 C_DASH ,
                80 /GIL/ZZKWEEKID-ENDWK ,
                91 C_BR2
                INTENSIFIED ON  .
    ENDFORM.                    " WRITE_HEADER

  • Total number of records in a file

    hello experts,
    I am getting a file to upload the data.... This file is containing one header record one trailor record and remaining data records...
    how to read all the data into one internal table along with header and tralor record.
    Because i have to control record validation. In the trailer record the amount what they were giving is the total number of records along with header and trailor
    can anyone guide me how to do that
    SRI

    If thats an excel file then you can use function module
    CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
          filename                = p_fnam
          i_begin_col             = 1
          i_begin_row             = 1
          i_end_col               = 100
          i_end_row               = 30000
        TABLES
          intern                  = iexcel
        EXCEPTIONS
          inconsistent_parameters = 1
          upload_ole              = 2
          OTHERS                  = 3.
      IF sy-subrc <> 0.
        WRITE: / 'EXCEL UPLOAD FAILED ', p_fnam, sy-subrc.
        STOP.
      ENDIF.
    Instead of passing 1 in i_begin_row you, if you know how many lines the header is going to be then you can ignore those lines and pass the number of the row which has the first data record. You can hard code the header because this is giong to constant.
    Just a suggestion. Hope this works for you.
    Thanks.
    Message was edited by:
            mg s

  • Count the number of records

    Hi all,
    I have a BEx report that displays a list of empnos and their details based on a selection. Now I want to count the number of recrods that were selected and display the total number of records that were selected. How can this be done?
    Thanks,
    Sam

    Dear all,
    Thanks for the suggestions. Actially I had solved it in another way.
    As suggested by Sharma, I had used a CKF as count, But i did not want the empnos to come as the rows with 1 displayed across each row.
    I was trying to bring a summary in there.
    So I had created a structure in Rows and in the structure created a new selection and in that selection included Employee.
    This solved the problem that I was facing.
    Thanks everyone for your time and effort!!
    Cheers,
    Sam

  • Count the number of records between two key values (BTREE)

    How can I count the number of keys between two values?
    I'm using python driver, and BTREE access method.
    ====>
    ideally what I want is to average a whole time-series data set (the intervals can change) to a given number of points. The keys are the time stamps and the values are the data that needs to be averaged. I need to count the number of records between two time stamps so that I can divide that number by the number of points i need, and average the data. What is the best way to do this?  Or should I just keep the intervals for the time stamp constant and use RECNO access method?
    Thank you
    (first post btw.. and why aren't there many people in stackoverflow who answer Berkeley DB questions?)

    BDB is an embedded db and it does not have any internal counters or statistics that you could grap to use for this.    You will need to do it manually.
    You can create a cursor, grap the records you want, each time you get the next record you bump a counter.
    If you are using RECNO, you can use a cursor to get the record number of the record (DB_GET_RECNO), and if all you data is in
    sequentail records with no missing records you can figure out the total count by take last rec # - initial rec # + 1 to get a total count.
    If you switch over to the SQL API, you can issue a SQL query to give you a count.  Select count(*) Where .......
    Since you have to grab the data anyway, then best may be to count records as you go along.
    thanks
    mike

  • Total number of record in database??

    Hi,
    How to find total number of record in database using Single Query/Statement?
    Thanks

    Here we go, in a Single Statement Block
    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    v_cnt NUMBER := 0;
      3    v_tot NUMBER := 0;
      4    CURSOR cur_tables IS
      5      SELECT table_name FROM user_tables;
      6  BEGIN
      7    DBMS_OUTPUT.ENABLE(1000000);
      8    FOR t IN cur_tables
      9    LOOP
    10      EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM '||t.table_name INTO v_cnt;
    11      v_tot := v_tot + v_cnt;
    12    END LOOP;
    13    DBMS_OUTPUT.PUT_LINE('Total Table Rows: '||v_tot);
    14* END;
    SQL> /
    Total Table Rows: 5850553
    PL/SQL procedure successfully completed.
    SQL>What use it is is anybody's guess.
    Note: This only works on the users own tables, not all the system tables or tables from other schemas in the database.

  • Hw to find total number of records

    Hi All,
    Can anyone help from these
    1. how to find total number of reports for a particular cube/ods... need step - step solution
    2. how to find total number of records for a particular Cube and ODS and Aggr's to till date.
    3.what is sandbox,mirror sys,instance of a sys..?
    4.what r TWS(Tivoli Workload Scheduler) jobs? how these r different to standard schedulers?
    Thanks in ADv
    Linda

    Hello Linda,
    As you have lots of answers on first 2 so i'll start from 3rd onward.
    3. Sandbox is mostly practice system where you can do all kind of R&D, mirror sys can be mirror image of any system depends on the organization and instance of system is again mirror image of one system.
    4. TWS is third party tool for scheduling which doesn't come along with SAP like standard scheduler as TWS has been prepared specially for this purpose so it has some more features than standard.
    Hope it helps.
    San.

  • How do I count the number of records returned in the CMIS query

    How do I count the number of records returned in the query CMIS?
    SELECT COUNT(*) FROM ora:t:IDC:GlobalProfile WHERE ora:p:xRegionDefinition = \'RD_PROJETOS_EXCLUSIVOS\''}
    Euler Homero

    Hi Euler,
    interestingly enough, the reference guide for CMIS ( http://wiki.alfresco.com/wiki/CMIS_Query_Language ) that I found does not mention the COUNT function at all. On the other hand it states that: "The SELECT clause identifies which virtual columns to return in the result set. It can be either a comma-separated list of one or more queryNames of properties that are defined by queryable object types or * for all virtual columns."
    There are, however, some other posts like e.g. http://alfrescoshare.wordpress.com/2010/01/20/count-the-total-number-of-documents-in-alfresco-using-sql/ which state that they could make it working.
    Having asked in the WebCenter Portal forum, I assume that your content repository is WebCenter Content. The CMIS doc for the Content is available here: http://docs.oracle.com/cd/E23943_01/doc.1111/e15813.pdf (no COUNT there either). It does, however, mention explicitly that "CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query.". This means your could rather investigate the Result Set. Note that there are also other means than CMIS how to get the requested result set (e.g. calling a search service directly via so-called RIDC).
    In the given context I am also interested what your use case is. OOTB CMIS in WebCenter Portal is used, for instance, in Content Presenter, where it is content rather than "parameters" what's displayed.

  • Count total number of rows present in the schema

    Count total number of rows present in the schema including table, sequence, view
    Desirable Output
    table          Sequence     Views
    1000          20          1000

    You mean You need to count the No of Tables, View and Sequence Present in the Schema ??
    Hi Some thing like this,
    SELECT a.view_cnt AS "View Count", b.tab_cnt AS "Table Count",
           c.seq_cnt AS "Sequence Count"
      FROM (SELECT COUNT (*) view_cnt
              FROM USER_VIEWS) a,
           (SELECT COUNT (*) tab_cnt
              FROM USER_TABLES) b,
           (SELECT COUNT (*) seq_cnt
              FROM USER_SEQUENCES) cWhich give you,
    View Count      Table Count      Sequence Count
           153              878                   32Thanks,
    Shankar
    Edited by: Shankar Viji on Aug 28, 2012 3:03 AM

  • How to count the number of records retreived through a query?

    Dear All
    I want to find the total number of records retreived for a particular query .
    does BW provide any internal count function , which can solve my requirement??
    if yes, please provide some details.
    Thanks.
    Regards,
    Pandurang.

    hi pandurang
    when u see the contents of a particular cube
    RSA1->Infocube->manage->contents
    there is a option "Output number of Hits"
    An extra keyfigure is created displaying the number of records rolled up
    Aggregating the column might just solve ur issue
    Try
    Regards
    Akshay

  • Total number of records loaded into ODS and in case of Infocube

    hai
    i loaded some datarecords from Oracle SS in ODS and Infocube.
    My SOurceSytem guy given some datarecords by his selection at Oracle source system side.
    how can i see that 'how many data records are loaded into ODS and Infocube'.
                     i can check in monitor , but that not correct(becz i loaded second , third time by giving the ignore duplicate records). So i think in monitor , i wont get the correct number of datarecords loaded in case of ODS and Infocube.
    So is there any transaction code or something to find number records loaded in case of ODS and Infocube .
    ps tell me
    i ll assing the points
    bye
    rizwan

    HAI
    I went into ODS manage and see the 'transferred' and 'added' data records .Both are same .
    But when i total the added data records then it comes 147737.
    But when i check in active table(BIC/A(odsname)00 then toal number of entries come 1,37,738
    why it is coming like that difference.......
    And in case of infocube , how can i find total number of records loaded into Infocube.(not in infocube).
               Like any table for fact table and dimension tables.
    pls tell me
    txs
    rizwan

Maybe you are looking for

  • How to exculde a material in DTP Filter

    Hi experts, How to exculde a material in DTP filter. Exclude from selection is not working in DTP. please help me in solving the issue. Regards, Pradeep

  • Hyperlinks in word containing spaces are cut off in pdf generation

    We are using a mix of MS Word 2003, 2007 and 2010. All are experiencing the same problem when using Adobe products (Abobe Acrobat Pro 9, Adobe X, Adobe Elements) for the generation of a pdf document with respect to hyperlinks. When we have hyperlinks

  • BUCKET LIST FOR VERIZON....

    HEY VERIZON.. Here is  BUCKET LIST... 1. Fix the Server Bugs... always getting server busy 2 Allow you to delete all your recordings at once.. not 10 at a time.. it takes forever 3 Be able to time activate and unactivate  your Modes for Camera Record

  • How to set default, rendered save directory please?

    So every time I want to export (share) my movie to my PC, the default location is always "My Documents". I have set all Scratch Disk locations for my preferred folder, not My Documents. Is there a location where I can input a default "Share To" direc

  • WLS 9.2.2: JSP recompile for every page load with JAR'ed tag files

    I have a small custom tag library of three tag files. With the server running in development mode and the tag files in a JAR (included in WEB-INF/lib), the server appears to be doing a JSP recompile on every page load. However, it only compiles on th