FMs not returning ZES table values

Hi Experts,
I am an ABAPer, so the solution to this may be very simple but not to me.
while fetching cluster B2 data via various FMs the entries of ZES table aren't coming.
I have used HR_FORMS_TIM_GET_B2_RESULTS and HR_TIME_RESULTS_IN_INTERVAL.
While using the second FM I have observed it calls HR_TIME_RESULTS_GET and returns the ZES table data
but they get deleted based on few conditions which are dependent on T549Q payroll periods (obtained from HR_PAYROLL_PERIODS_GET).
So I need to know what configurational mistakes or time evaluations flaws lead to these kind of cases.
Thanks in advance,
Sourav

Hi,
I would suggest please ask Functional to check ZES table using PT66, does data is stored in ZES.
As structure has ZES, it should be store based on time type config.
Thanks,
Ketul

Similar Messages

  • Error: Expression must not return a multiline value

    Hi all,
    I am doing a file to file scenario. My input file has more than one record. I have to validate for each of these records and send back the erroneous records in a file to the source folder.
    I am using BPM for this. In my BPM, i have some multiline container elements. When i try to activate my BPM, i am getting an error saying: <b>Expression must not return a multiline value.</b>
    Can anybody tell me why this error is coming? Also i want to know what type of mapping i have to do to split my source file.
    Regards,
    Divija.

    "Can anybody tell me why this error is coming? Also i want to know what type of mapping i have to do to split my source file."
    Go through the following blogs which give step-bystep approach for split mapping using BPM:-
    1. /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    2. /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    Also, you might want to look at this, where a BPM is not required..i think you can avoid a BPM altogether if you have very little validation..
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    Regards,
    Sushumna

  • BPM collection pattern - Expression must not return a multiline value

    Hi,
    I am trying to create an integration process to collect messages - when I run the check function I get the message 'Expression must not return a multiline value' - I have checked everything and cannot find what is causing this message.  When I click on the message I get taken to the transformation step properties.
    Any ideas?
    Regards
    Ian

    HI,
    Your Interface Mapping should be of N:1 type.
    i.e occurence of your source message should be of 0..unbounded and target message should be 1.
    Once you change Interface Mapping, you need to change occurences of corresponding Message Maaping.
    Use this interface mapping in your Transformation Step in BPM, where you collect all the messages.
    Hope this helps,
    Regards,
    Moorthy

  • Expression must not return a multilne value

    Hi
    I am trying to create PurchaseOrder message via BPM.
    The target MI has:
    One Header record
    Unbounded Items records
    In BPM, Fork of 2 braches is created to recieve Header, another branch use looping to received Items and store into ItemsList
    After the fork, a tarnsformation is use to create target MI, which the source contains:
    Header (single record) and
    ItemList (multiline with Item record)
    Now the problem, when I do a check, I always hit the error: "Expression must not return a multilne value"
    However if use :
    Header (single record) and
    Item (single Item record)
    OR
    HeaderList (multiline record) and
    ItemList (multiline Item record)
    It does not generate this error.
    I seems the tarsnformation does not allow mixing of "Multiline" and "Singleline" for N:1 transformation???
    Please advise
    //jack
    Message was edited by: JackLim

    Hmmmmm ...
    >>>
    tarnsformation is use to create target MI, which the source contains:
    Header (single record) and
    ItemList (multiline with Item record)
    Recheck the parameters of the transformation step

  • Report query not returning the field value from external table

    hi
    I have an issue regarding reports. I have a query having 4 fields from external table and remaining from db tables. the report query returns all the fields from the db tables and only 2 fields from external table. but the same query if I tried in plsql developer it returns all the fields values.
    Can anyone please help me in this issue.
    Thanks and Regards
    kk

    Duplicate post?
    value not displaying in report whereas it returns in plsql developer
    value not displaying in report whereas it returns in plsql developer
    Please log a SR if you do not get any reply to your thread instead of creating new one.
    Thanks,
    Hussein

  • Do not display NULL tables/values(Urgent)

    Hi,
    My template consists of a parent BC and child BC fields(BIP integrated with Siebel) . I have inserted the child table inside the parent table. When there are no values in the child record i do not want the parent record to get displayed. I tried giving a condition <?if:ActivityStatus!=''?> in the child. The child table does not get displayed if there are null values but the corresponding parent record gets displayed. I tried constraining in the parent also but of no use. Any kind of help is greatly appreciated.Thanks in advance.
    Regards,
    Pavithra
    Edited by: 856511 on May 11, 2011 5:53 AM

    send your xml and rtf to [email protected]
    let me check

  • Cl_abap_typedescr= describe_by_name not returning correct length value

    Hi,
    I am using cl_abap_typedescr=>describe_by_name  to get the length and field names of a table.  But it is returning incorrect values for length.    For example, all character fields and numc fields contain double the correct length
    REPORT  ZCA_BOB_CL_ABAP_STRUCTDESCR.
    PARAMETERS P_TABNAM type TABNAME OBLIGATORY.
    Data: wa_spfli type spfli,
          r_descr type REF TO cl_abap_structdescr,
          wa_comp TYPE abap_compdescr.
    ** Create references to the needed ALV Global Classes
      data: lr_events type ref to cl_salv_events_table.
      data: gr_table   type ref to cl_salv_table.
      Data: r_grid TYPE REF TO cl_salv_table.
      data: r_title_text TYPE REF TO cl_alv_variant,
            r_grid_title TYPE LVC_TITLE.
    Data:  abap_compdescr_tab TYPE STANDARD TABLE OF abap_compdescr
                         WITH KEY name.
    START-OF-SELECTION.
    **         ?=   means cast
    ** r_descr ?= cl_abap_typedescr=>describe_by_data( wa_spfli ).
    r_descr ?= cl_abap_typedescr=>describe_by_name( P_TABNAM ).
    Loop at r_descr->components into wa_comp.
    *   write:/ wa_comp-name, wa_comp-type_kind, wa_comp-length,
    *            wa_comp-decimals.
       append wa_comp to abap_compdescr_tab.
    EndLoop.

    Hello Bob
    Below is the output of your report run on a 4.6c system:
    Structure WA_SPFLI:                                   
    MANDT                          C          3           0
    CARRID                         C          3           0
    CONNID                         N          4           0
    COUNTRYFR                      C          3           0
    CITYFROM                       C         20           0
    AIRPFROM                       C          3           0
    COUNTRYTO                      C          3           0
    CITYTO                         C         20           0
    AIRPTO                         C          3           0
    FLTIME                         I          4           0
    DEPTIME                        T          6           0
    ARRTIME                        T          6           0
    DISTANCE                       P          5           4
    DISTID                         C          3           0
    FLTYPE                         C          1           0
    PERIOD                         b          1           0
    4.6c = non-Unicode
    Your system = Unicode
    Thus, the length is apprently the length in bytes.
    Simply check and RFC destination (SM59) using button "Unicode Test". You will get the following message on an Unicode system:
    Target is a unicode system (character size 2)
    Regards
      Uwe

  • Open Hub 3rd party tool - API not returning data table

    I am implementing a 3rd party tool to get data from BI using the Open Hub Service.
    I have my server running and the API functions are working somewhat, but I have two problems.
    When I get notified by BI (RSB_API_OHS_3RDPARTY_NOTIFY), the REQUESTID field is always 0. Why? This should be the request id of the Data Transfer Process; I can see this id in BI.
    The second problem is when I make the call to read the data (I hard code the request ID), everything comes back fine, except the table is empty. I know it's not empty because the DTP said it create a table with many rows and I can see them in BI. Why is the table empty?
    Any help is appreciated. Thanks.
    Tim
    PS: I'm using SAP JCo to implmenet the server and the API. And I'm using BI 7.0.
    Edited by: Tim Wise on May 17, 2008 4:58 PM

    I am not sure I should continue: I am not an expert with the use of these API - in fact I have never used them:-)
    This is in case the discussion would help you:
    My understanding is that the 'green' status is the status of the 3rd party tool.  Only when the 3rd party sets a 'green' status will extraction proceed.  The third-party can choose to stop extraction by setting a 'red' status.
    See the link below:
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/8dea54c4e273e2e10000000a1553f6/content.htm
    Guess all these APIs are geared for automatic processing - another link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/59/90070982d5524b931ae16d613ac04a/content.htm
    RSB_API_OHS_3RDPARTY_NOTIFY:  This function module has no source code - the code needs to be implemented in the 3rd party tool to do whatever is required with the parameters provided.  The import parameters required have to be supplied to it.
    That's it, I am retiring:-)
    Mathew.

  • V$session prev_hash_value not returning the correct value?

    Hello,
    I am executing a plsql package (which has the following query) in two modes: through Toad and through a deployed web application. I get two results.
    SELECT sa.sql_text,
    sa.sql_id,
    ss.sid
    FROM v$session ss,
    v$sqlarea sa
    WHERE ss.status = 'ACTIVE'
    AND sa.hash_value = ss.prev_hash_value
    AND ss.username = USER;
    Toad gives me the correct result. The query above pulls the correct SQL statement. But when running through the web application it gives me
    some random SQL statement executed during that session. I thought it might have something to do with pooled JDBC connections so I made sure for that
    execution I created a new dedicated JDBC connection. Still did not work. I used the function SYS_CONTEXT('USERENV', 'SID') to report the session id
    from my java program and from the query above. Both return the same SID. I've tried different variations of that query above (removing status = ACTIVE, removing username = USER, etc...)
    and I still get the same result.
    So any thoughts on what's going on?
    Thanks,
    Piyush

    I believe I figured it out. My testing was flawed. The testing in Toad was directly calling my package (e.g., pkg_b). The web app doesn't do that. It calls pkg_a which does a bunch of setup and then calls the target package (pkg_b) using EXECUTE IMMEDIATE. Apparently the v$session stops collecting info at that point. The current statement always shows as 'BEGIN :b1 := pkg_b; END;'. But it's still confusing why it would do that. Is there another way to access SQL statements from within that dynamic block?

  • Error / BUG in BPM SAP PI7.1 "Expression must not return a multiline value"

    Hey experts,
    I try to use a MULTILINE interface in an integration process, but when I try to select the multiline interface in the sending Step (asynch), then I can´t select a INDEX variable? ...
    See here: Picture of ERROR
    I tried my steps with a XI3.0 in exactly the same way and it works. Is this a bug in the PI? We have Service Package 04 (initial Shipment).
    Does anyone has an idea?
    Thanks a lot for fast help
    Rgds,
    Steffen

    Hi,
    I tested it on a PI 7.1 SP 8 and there it works.
    What you could try is to export your Integration Process from XI 3.0 (you said it's working) and import it in your PI 7.1.
    Regards
    Patrick

  • FM F4IF_INT_TABLE_VALUE_REQUEST do not return value in RETURN_TAB

    Hi all,
    I used the FM F4IF_INT_TABLE_VALUE_REQUEST to return the objid and stext and it is showing the search help in the selection screen, however, after i choose a value from the search help, the FM does not return me the value that i have choosen. The following is the code that I had written.
    DATA: lt_retval  TYPE STANDARD TABLE OF ddshretval,
            lwa_retval TYPE ddshretval.
      DATA: lt_field  TYPE STANDARD TABLE OF dfies,
            lwa_field TYPE dfies.
    CONSTANTS: lc_retfield       TYPE dfies-fieldname VALUE 'STEXT',
                           lc_value_org      TYPE c VALUE 'S'.
    lwa_field-fieldname = 'F0001'.
      lwa_field-langu     = sy-langu.
      lwa_field-position  = '1'.
      lwa_field-offset    = '0'.
      lwa_field-domname   = 'HROBJID'.
      lwa_field-rollname  = 'HROBJID'.
      lwa_field-leng      = '8'.
      lwa_field-intlen    = '16'.
      lwa_field-outputlen = '8'.
      lwa_field-datatype  = 'NUMC'.
      lwa_field-inttype   = 'N'.
      lwa_field-precfield = 'HROBJID'.
      lwa_field-headlen   = '8'.
      lwa_field-scrlen1   = '10'.
      lwa_field-scrlen2   = '15'.
      lwa_field-scrlen3   = '20'.
      lwa_field-fieldtext = 'Posting ID'.
      lwa_field-reptext   = 'Posting ID'.
      lwa_field-scrtext_s = 'PostingID'.
      lwa_field-scrtext_m = 'ID'.
      lwa_field-scrtext_l = 'Posting ID'.
    APPEND lwa_field TO lt_field.
      CLEAR lwa_values.
    lwa_field-fieldname = 'F0002'.
      lwa_field-langu     = sy-langu.
      lwa_field-position  = '2'.
      lwa_field-offset    = '16'.
      lwa_field-domname   = 'TEXT40'.
      lwa_field-rollname  = 'STEXT'.
      lwa_field-leng      = '40'.
      lwa_field-intlen    = '80'.
      lwa_field-outputlen = '40'.
      lwa_field-datatype  = 'CHAR'.
      lwa_field-inttype   = 'C'.
      lwa_field-precfield = 'STEXT'.
      lwa_field-headlen   = '40'.
      lwa_field-scrlen1   = '10'.
      lwa_field-scrlen2   = '15'.
      lwa_field-scrlen3   = '20'.
      lwa_field-fieldtext = 'Posting Text'.
      lwa_field-reptext   = 'Posting Text'.
      lwa_field-scrtext_s = 'PostingTxt'.
      lwa_field-scrtext_m = 'Text'.
      lwa_field-scrtext_l = 'Posting Text'.
      lwa_field-lowercase = 'X'.
    APPEND lwa_field TO lt_field.
      CLEAR lwa_values.
      IF lt_values IS NOT INITIAL.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = lc_retfield
    *        dynpprog        = sy-repid
    *        dynpnr          = sy-dynnr
    *        dynprofield     = lc_fieldn
            value_org       = lc_value_org
          TABLES
            value_tab       = lt_values
            field_tab       = lt_field
            return_tab      = lt_retval
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc EQ 0.
          CLEAR lwa_retval.
          READ TABLE lt_retval INTO lwa_retval INDEX 1.
          IF sy-subrc EQ 0.
            MOVE lwa_retval-fieldval TO s_post-low.
            CLEAR lwa_retval.
          ENDIF.
        ELSE.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
      ENDIF.
    Please assist, thanks so much.
    Edited by: yf wee on Oct 5, 2009 8:11 AM

    Hi,
    Refer this demo code:-
    PARAMETERS : p_belnr TYPE belnr,
                 p_bukrs TYPE bukrs.
    DATA : BEGIN OF itab OCCURS 0,
             belnr TYPE belnr,
           END OF itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_belnr.
      PERFORM f4_belnr_help USING p_belnr.
    *&      Form  f4_belnr_help
    *       text
    *      -->P_BELNR text
    FORM f4_belnr_help USING p_belnr.
      SELECT belnr from <db_table> INTO TABLE itab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'BELNR' "internal table field
          dynpprog               = 'Z_F4' "program name
          dynpnr                 = '1000' "screen number
          dynprofield            = 'P_BELNR' "screen field name
          value_org              = 'S'
        TABLES
          value_tab              = itab "internal table
        EXCEPTIONS
          PARAMETER_ERROR        = 1
          NO_VALUES_FOUND        = 2
          OTHERS                 = 3.
      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.                    " f4_belnr_help
    Hope this helps you.
    Regards,
    Tarun

  • FM returns wrong total value for Limit type PO's

    Hi all,
    I am working on SRM 5.0 (SP13) ECS.
    I have implemented the BADI "BBP_WFL_APPROVAL_BADI" for determining the Approvers for PO whenevr a PO is changed.If the diference between the Old PO value and new PO value is > 1000 and the approval text field(custom text under "Documents" link) is set to "YES",then the WF approval is required and the approvers are determined.
    The above logic works fine for the Standard type PO's where the difference between the old value and new value is determined using FM "BBP_PD_PO_GETDETAIL"  by passing the GUID (for the change version and the active vesion) obtained at runtime in the BADI.
    However for the limit type PO's,whenevr I change the total value for the Limit item,I see that the FM "BBP_PD_PO_GETDETAIL" doesnt return the changed value but  always returns blank!
    Bcause I need to check bth the values i.e. Custom text set to "YES" as well as Total value diff ,I cant use the start conditions in tcode SWB_COND.ALso I need to fetch the approvers based on the price diff so I need this value at runtime in the BADI using the FM "BBP_PD_PO_GETDETAIL".
    Please advise why the FM is not returning the changed values for the Limit type PO and is there any other way(other table/FM) to get the changed value at runtime for the LIMIT type PO.
    Thanks for your time.
    Edited by: Rads1234 on Nov 18, 2010 4:39 AM

    Thanks for the rpely.
    Yes.I am using the GUID available at runtime in the  BADI "BBP_WFL_APPROV_BADI" which is the current change version GUID.I tried using that GUID to get the data from both FM as well as CDHDR and CDPOS tables.
    I think this is something related to LImit type PO because for Standard type PO's the FM returns the corretc changed value (as in the screen) for the change version GUID.I fail to understand why the changed values are shwon on the screen but are not stored anywhere in the system before actually ordering the PO!

  • Syndication of lookup table values.

    Hi all,
    How to sybdicate lookup table values when we are using R/3 as the remote system. I am not getting lookup table values like Plant,MRP type .
    regards,
    Pramod

    hi,
    How to sybdicate lookup table values when we are using R/3 as the remote system. I am not getting lookup table values like Plant,MRP type .
    you can syndicate look up table values as normal fields.
    1. You can select the lookup table as the source table. what the fileds you want to syndicate in that table, you map to destination fields and then syndicate.
    if you have XSD file ok, if no you have to create the destination fields.
    follow this article: how to syndicate qualified table data( this is qualified look up table)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/301494b6-4bbe-2a10-8a8b-ae45dc34898b
    hope this may help you,
    Regards,
    Srinivas

  • Table-Valued Function not returning any results

    ALTER FUNCTION [dbo].[fGetVendorInfo]
    @VendorAddr char(30),
    @RemitAddr char(100),
    @PmntAddr char(100)
    RETURNS
    @VendorInfo TABLE
    vengroup char(25),
    vendnum char(9),
    remit char(10),
    payment char(10)
    AS
    BEGIN
    insert into @VendorInfo (vengroup,vendnum)
    select ks183, ks178
    from hsi.keysetdata115
    where ks184 like ltrim(@VendorAddr) + '%'
    update @VendorInfo
    set remit = r.remit
    from
    @VendorInfo ven
    INNER JOIN
    (Select ksd.ks188 as remit, ksd.ks183 as vengroup, ksd.ks178 as vendnum
    from hsi.keysetdata117 ksd
    inner join @VendorInfo ven
    on ven.vengroup = ksd.ks183 and ven.vendnum = ksd.ks178
    where ksd.ks192 like ltrim(@RemitAddr) + '%'
    and ks189 = 'R') r
    on ven.vengroup = r.vengroup and ven.vendnum = r.vendnum
    update @VendorInfo
    set payment = p.payment
    from
    @VendorInfo ven
    INNER JOIN
    (Select ksd.ks188 as payment, ksd.ks183 as vengroup, ksd.ks178 as vendnum
    from hsi.keysetdata117 ksd
    inner join @VendorInfo ven
    on ven.vengroup = ksd.ks183 and ven.vendnum = ksd.ks178
    where ksd.ks192 like ltrim(@PmntAddr) + '%'
    and ks189 = 'P') p
    on ven.vengroup = p.vengroup and ven.vendnum = p.vendnum
    RETURN
    END
    GO
    Hi all,
    I'm having an issue where my Table-Valued Function is not returning any results.
    When I break it out into a select statement (creating a table, and replacing the passed in parameters with the actual values) it works fine, but with passing in the same exact values (copy and pasted them) it just retuns an empty table.
    The odd thing is I could have SWORN this worked on Friday, but not 100% sure.
    The attached code is my function.
    Here is how I'm calling it:
    SELECT * from dbo.fGetVendorInfo('AUDIO DIGEST', '123 SESAME ST', 'TOP OF OAK MOUNTAIN')
    I tried removing the "+ '%'" and passing it in, but it doesn't work.
    Like I said if I break it out and run it as T-SQL, it works just fine.
    Any assistance would be appreciated.

    Why did you use a proprietary user function instead of a VIEW?  I know the answer is that your mindset does not use sets. You want procedural code. In fact, I see you use an “f-” prefix to mimic the old FORTRAN II convention for in-line functions! 
    Did you know that the old Sybase UPDATE.. FROM.. syntax does not work? It gives the wrong answers! Google it. 
    Your data element names make no sense. What is “KSD.ks188”?? Well, it is a “payment_<something>”, “KSD.ks183” is “vendor_group” and “KSD.ks178” is “vendor_nbr” in your magical world where names mean different things from table to table! 
    An SQL programmer might have a VIEW with the information, something like:
    CREATE VIEW Vendor_Addresses
    AS
    SELECT vendor_group, vendor_nbr, vendor_addr, remit_addr, pmnt_addr
      FROM ..
     WHERE ..;
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

Maybe you are looking for

  • Adobe Acrobat 9 Pro - Form Toolbar

    There has been a big change from Acrobat 8 Pro to 9 Pro regarding how the forms toolbar is displayed.  While the changes are a great improvement to make it easier to create forms...I am having trouble adjusting to editing forms.  Is there any way to

  • Connecting to dial-up internet with imac through mac mini?

    I can't quite figure out how to do this. I have a imac g3 and mac mini connected with ethernet crossover. the modem on imac is dead, dial-up connecting though mac mini. i can go through the menus for connecting through internet through ethernet but c

  • LIV posting

    Hi, Would like to know during LIV posting, the default exchange rate taken is based on that maintained in PO or the exchange rate of current month of posting? Appreciate if any expert can advise, thanks.

  • Obiee installation in vista

    hi, i have a loptop with windows vista. and i am very intrested to install OBIEE.but my OS is not supporting me to do so. so, i have a thought of using the vm for getting the xp virtually and installing the obiee to work for.... is it possible for me

  • Buffer Cache hit Ratio

    Hi All, My DB Version: 10.2.0 OS: Windows Server 2003 I run the following script to get Hit ratio's SELECT cur.inst_id, 'Buffer Cache Hit Ratio ' "Ratio", to_char(ROUND((1-(phy.value / (cur.value + con.value)))*100,2)) "Value" FROM gv$sysstat cur, gv