Data fetched from buffer or database

Hi,
How to check tin the select query the data is being fetched from buffer or database .Is there any method to trace that  or it is just the setting we are  doing while creating a table..
Pls suggest

Hi,
>
arun purushothaman wrote:
>Is there any method to trace that  or it is just the setting we are  doing while creating a table..
> Pls suggest
sure. ST05.
SQL Trace shows everything that is going to the database. This means those statements are NOT
using the buffer. The SQL Trace lines are yellow.
Buffer Trace shows everything that is going to the buffer. This means those statements are NOT
going to the database. The Buffer Trace lines are blue.
Kind regards,
Hermann

Similar Messages

  • Data fetching from BSEG table

    Hi,
    I have used smartforms for generating suppler payment statement for financial department. more time duration is taken by the program when it is generating.
    I think this problem comes while data fetching from BSEG table. because, it has more records for one vendor ID.
    I want reduce this time duration.
    Please guide me.

    Have you tried this selection in se16? I'm quite sure that It will take
    a long time.
    The problem has been explained in this group before and I think you
    should search for bseg in the answers given.
    As a hint: It has to do with the selection universe. You are restricting
    only bukrs from the primary key (all the other restrictions in your
    where clause are filters that are applied on SAP's side (not on the
    database side)). The problem is that bseg isn't stored as separated
    fields in the RDBMS, but as a table with the primary key and a stream of
    bits in a raw field.
    You should review and change the logic you're using before reading bseg.
    It's the only way you'll improve the performance of this select. (for
    example, you could use one or more secondary index tables - bi or ba
    to retrieve belnr and access bseg with a better where clause).

  • Data fetch from table without Refresh and without using tab key.

    hi Friends,
    I have a problem i want to extract data from table without Refresh into text field without using Tab key. when i'll enter any value in a text field then corressponding value should come in to corressponding textfield without using Tab Key.
    eg. when i enter emp_id 101 in a text field then the first_name and last_name ,adress should come in to corressponding text fields without refresh and without using Tab key.
    How Can I do this.
    Thanks
    Manoj

    Hi Manoj,
    I assume that this is similar to: Data fetch without Refresh rather than Re: Value of one textfield should come into another textfield Without Using TAB ?
    If so, the only change you need to make on the first one is to use "onkeyup" instead of "onchange" in the item's "HTML Form Element Attributes" setting.
    Note, however, that the user must move away from the item at some point (for example, to click a button), so the onchange will be triggered anyway.
    Andy

  • Data fetching from Standard tables or transaction to SAP PI

    Dear Friends !
         Good day ! How are you ? 
         I have one requirement , My client asks me to develop a solution in that I should get the data from standard SAP tables like EKKO, EKPO ( MM related ) etc..  and send it to PI system and then PI system sends it to third party system database system.
    We have current scenario is working fine,  I have abap proxy that I called in various  standard transaction codes ( MIRO, MIGO, etc ) ' Baddis just beforethe commit stament and it passed the data to SAP PI system and it sends to SQL system.
    but my client dont want me to use Baddis. Client wants  like u should read from those EKKO,EKPO tables as soon as you get new entry there and send it to PI system.  I have no clue How can I go further in that. Shall I use events ? but then question is same I need to trgger them somewere?  Is any one have idea  How I can send the data to PI system frm SAP standard tcodes and tables without using Baddis.
    Please reply me. your any help will be appreciated.
    Regards
    Naeem

    The current Approach of your development perfectly good approach,
    it is not possbiel to read data directly from SAP Tables, you have to use IDoc/RFC/Proxy,if you want to avoid BADI's then better to contact ABAP Team, they will help you different approches .
    But you have to use Porxy/IDoc/BAPI for sure.
    Regards,
    Raj

  • Load data warehouse from non-Oracle database

    Hi
    I need to load a data warehouse (in a Oracle database 8.1.6) using Post Gree database tables.
    The question is: Oracle Warehouse Builder can identify this database like a source module?
    Or is better I generate txt files from Post Gree tables, load a staging database (in Oracle) with the same structure of POst Gree tables and after that, load my data warehouse?
    Best Regards
    Honorio Cardozo Jr

    You can identify Oracle sources from Oracle 7.3 and up. I.e. yes, you can directly go against the database and you do not need to extract into flat files.
    Mark.

  • Perofrmance issue on data fetch from db table

    Dear Experts,
    I have one requirement which explained below step wise.
    Step - 1 : I have a parameter on selection screen from where i ll get my ebeln value (User Input field) and that ebeln i ll check in ekpo table for validations.
                  If valid i  keep it in a variable gw_ebeln.
    Step - 2 : Need to fetch lifnr fron ekko based on gw_ebeln value.
    Step - 3 : Need to fetch adrnr from lfa1 based on lifnr (Previously fetched from ekko table in step 2)
    Step - 4 : Need to fetch email field from adr6 table based on adrnr value (Previously fetched from lfa1 table in step 3)
    Step - 5 : Now for these mail id , I need to send mail by given fm.
    My question is : I can create structure for step 2 , step 3, step 4 and by using " for all entries " in select statement i ll fetch my mail id in step 4.
    So instead of creating structure and then use for all entries , I can fetch by using "select single" statement for step 2 , step3 step 4.bcz i am fetching only one field from all 3 table.
    So which one is better performance wise and why ?
    I need more and clear clarifications on these difference.
    Please provide me suggestions.
    Thanks & Regards,
    Ajit Sarangi

    Hi Ajit,
    We are referring item table EKPO. Multiple entries are possible.
    To append the values in final internal table, we are going to process the LOOP. Inside loop, we should not use the Select statement, that decreases the performance. Database Interaction process should not done inside Loop...Endloop.
    That's why we are creating the Internal table for processing the values. Since we need limited number of fields in the particular table, we are creating our own structure in the program.
    For this case, For all entries will give better performance with compare to Select Single.
    Regards
    Rajkumar Narsimman

  • Report Bursting with data fetch from database

    Hi,
    i have a report which needs to be published in the below mentioned way and the report is scheduled daily.
    1. Fetch the details from the database with the Client id, language preference, delivery mechanism(Email,FTP,Fax), delivery location(Email -ID,FTP Location,FAx number).
    2. The client id needs to be passed as a parameter and the report has to be generated in the preferred language and deliver the generated report as per the preference.
    3. The delivery also needs to be tracked accordingly.
    Could you kinldy post your suggestions on the same.
    Thanks,
    Vijay

    The data table is created by me. I am positive that every field in the table has a value for every single record.

  • How can I get the data array from SQL Server Database?

    Hi,
    I can write a data array(2D)into a table of my SQL Server Database. The data array was writen to a column with image type. I know a data array is transformed a binary string when writing into database, but I dont know how to get the data array when I fetch the binary string from database.
    My question is:
    How to transform the binary string into data array? which vi's should I use? I have tried unflatten from string but failed.
    Any response is appriciated.
    Red

    happyxh0518 wrote:
    > I can write a data array(2D)into a table of my SQL Server Database.
    > The data array was writen to a column with image type. I know a data
    > array is transformed a binary string when writing into database, but I
    > dont know how to get the data array when I fetch the binary string
    > from database.
    >
    > My question is:
    > How to transform the binary string into data array? which vi's should
    > I use? I have tried unflatten from string but failed.
    In order to use Unflatten from string you first need to Flatten it
    before writing it. Also depending on the database driver, the returned
    data may actually not be binary but Hexadecimal encoded ASCII which you
    would first have to decode to binray.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Cost center data fetch from COSS/COSP tables.

    Hi Experts,
    I need to fetch data from COSS/COSP tables for particular Cost centers fetched in CSKS select.
    As there is no Costcenter field I cannot access the database tables directly.
    Fetching entire dat and then deleting is causing performance issue with the report.
    I need to reduse the time taken by COSS/COSP table select , as I have Cost center field on the selection screen.
    Is there any other method or  FM that I can use?
    Thanks in advance!!!

    Hi
    This is my code to get the data from a certain cost element group:
    }call function 'G_SET_GET_ID_FROM_NAME'
         exporting
           shortname                      = p_kagru
           tabname                        = 'CCSS'
           fieldname                      = 'KSTAR'
           kokrs                          = p_kokrs
           ktopl                          = 'ENPC'
           setclass                       = '0102'
           check_set_empty                = 'X'
         importing
           new_setid                      = setid
    *     SET_INFO                       =
        exceptions
          no_set_found                   = 1
          no_set_picked_from_popup       = 2
          wrong_class                    = 3
          wrong_subclass                 = 4
          table_field_not_found          = 5
          fields_dont_match              = 6
          set_is_empty                   = 7
          formula_in_set                 = 8
          set_is_dynamic                 = 9
          others                         = 10
       if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       endif.
       call function 'G_SET_GET_ALL_VALUES'
         exporting
    *     CLIENT                      = ' '
    *     FORMULA_RETRIEVAL           = ' '
    *     LEVEL                       = 0
           setnr                       = setid
    *     VARIABLES_REPLACEMENT       = ' '
    *     TABLE                       = ' '
    *     CLASS                       = ' '
    *     NO_DESCRIPTIONS             = 'X'
    *     NO_RW_INFO                  = 'X'
    *     DATE_FROM                   =
    *     DATE_TO                     =
    *     FIELDNAME                   = ' '
         tables
           set_values                  = t_set_values
        exceptions
          set_not_found               = 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.
      loop at t_set_values.
        count = count + 1.
        r_kstar(3) = 'IEQ'.
        r_kstar-low = t_set_values-from.
        append r_kstar.
        if count = 500.
          perform read_coep.
        else.
          at last.
            perform read_coep.
          endat.
        endif.
      endloop
    U can use somthing like that to get data from cost center
    Max

  • Strugging with exporting data out from an Unicode database

    Background information
    Server: Sun Solaris 5.10; 10g
    Client: Windows 2000; 10g, TOAD, Oracle ODBC 10.2.0.1
    select * from v$NLS_PARAMETERS
    NLS_LANGUAGE AMERICAN
    NLS_TERRITORY AMERICA
    NLS_CURRENCY $
    NLS_ISO_CURRENCY AMERICA
    NLS_NUMERIC_CHARACTERS .,
    NLS_CALENDAR GREGORIAN
    NLS_DATE_FORMAT DD-MON-RR
    NLS_DATE_LANGUAGE AMERICAN
    NLS_CHARACTERSET AL32UTF8
    NLS_SORT BINARY
    NLS_TIME_FORMAT HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY $
    NLS_NCHAR_CHARACTERSET AL16UTF16
    NLS_COMP BINARY
    NLS_LENGTH_SEMANTICS BYTE
    NLS_NCHAR_CONV_EXCP FALSE
    We import SAS data (Windows Latin character set) into Oracle, use OWB for ETL, export the results to SAS. Per regulatory requirements, character columns cannot exceed 200 in length.
    Problem scenario
    Data that cause the trouble (200 characters, with a degree sign at the 77th position):
    XXX PT PRIOR TO MSFC NOT TO USE WALKER, PT STATED SHE NEEDED IT LAST VISIT 2° BAD HEADACHE DECREASED BALANCE, WHICH WAS LATER FOUND TO BE SINUS INFECTION. ASKED PT NOT TO USE WALKER THIS TIME, PT SAID
    Degree sign is U+00B0 in UTF-8, or 0xB0 (176) in ASCII. Though, I found out select ascii('°') from dual would return 49480 (or, 0xC2 0xB0).
    In order to accommodate the import, Source.COMMENTX is VARCHAR2(201). Using OWB, we are mapping this to Target.COVAL which is VARCHAR2(200).
    To get around ORA-12899: value too large for column, we use the expression convert(Source.COMMENTX, 'WE8ISO8859P1', 'AL32UTF8')).
    Although viewing Target.COVAL shows a ¿ (true in TOAD, SQL*Plus), dump(COVAL) confirms the 77th character is 176:
    DUMP(COVAL)
    Typ=1 Len=200: [...],32,50,176,32,[...]
    Desirable outcome
    Store and display the text in a VARCHAR2(200) column without compromising the high-bit ASCII characters, e.g., degree sign, micro sign (i.e., Greek character mu), copyright sign, etc.
    Questions
    1. Is it a wrong assumption that AL32UTF8 supports the high-bit ASCII characters (i.e., characters between 128 and 255)? If not, why do the clients display the inverted question mark instead of degree sign when executing select chr(176) from dual?
    2. The aforementioned DUMP statement seems to confirm ASCII 0xB0 (i.e., not 0xC2 0xB0, or 0xBF) is being stored in the database at the 77th position. Why do my applications via ODBC interpreted and replaced it as 0xBF, which is the inverted question mark?
    Avenues attempted without the desirable outcome
    1. Changing Target.COVAL from VARCHAR2(200) to NVARCHAR2(200) or VARCHAR2(200 CHAR) would make SAS (data access through ODBC) think the length is 400 or 800, respectively [Note: The vendor claims it is ODBC 3.0 compliant]
    2. Through Microsoft's ODBC Test software, this is the output for describe column all against select COLVAL from Target:
    icol, szColName, pcbColName, pfSqlType, pcbColDef, pibScale, *pfNullable
    1, COMMENTX, 8, SQL_WVARCHAR=-9, 200, 0, SQL_NULLABLE=1

    Degree sign is U+00B0 in UTF-8, or 0xB0 (176) in
    ASCII. Though, I found out select ascii('°') from
    dual would return 49480 (or, 0xC2 0xB0).Well, U+00B0 represents 'degree sign' in Unicode, and the UTF-8 encoded value for this code point is C2 B0. ASCII does not include a degree sign, and 176 is not a ASCII code value (only 0-127). The function ascii will just return the decimal form of the encoded value, in the character set of the database (not necessarily ASCII, or US7ASCII as it is called in Oracle).
    >
    To get around ORA-12899: value too large for column,
    we use the expression convert(Source.COMMENTX,
    'WE8ISO8859P1', 'AL32UTF8')).This part I don't understand. And where are you storing this? In the same AL32UTF8 database? I think this might be your problem.
    >
    Although viewing Target.COVAL shows a ¿ (true in
    TOAD, SQL*Plus), dump(COVAL) confirms the 77th
    character is 176:Yes, since 176 is an invalid value in UTF-8. U+0079 is encoded as 79, U+0080 is encoded as C2 80 - notice the "leap" there. If I would input 176 in a "utf-8 decode" I would get "out of range" or NaN back. Similarily, if you have managed to illegally store 176 as a character encoded value in a AL32UTF8 database, and are trying to retrieve that, involving a conversion to client character set, you would get the replacement character ¿ meaning "bad conversion".
    >
    DUMP(COVAL)
    Typ=1 Len=200: [...],32,50,176,32,[...]
    Try
    select chr(49480) from dual;
    - but you need to do this from a tool such as Oracle SQL Developer (it's free) that can handle Unicode ouput.

  • Data fetch from table GLPCA taking long .

    Hi Friends,
    I am fetching five fields from GLPCA table and i have RACCT and RPRCTR ( account Number and profit Centre res ) in the where condition. neither of these field is the primary key of the table GLPCA. I have around 161096,482 entries in the GLPCA. It takes around 20 min to fetch the data. can you guys think of some method so that it works faster.

    Hi Vidya,
    The time utilization is due to the way data base is been accessed. Just think that you are selecting same data in SE16 with 200 hits. See how that behaves. If you find its Ok(i.e. around 1/2 mins) go for open cursor logic. Check this syntax and change the code accordigly and try:
    OPEN CURSOR w_cur1 FOR
           SELECT  ktabg vkorg ktaar ktaer kunnr
                   vtweg spart
                   FROM vbka
                   WHERE ktabg IN so_ktabg AND
                         vkorg IN so_vkorg AND
                         kunnr IN so_kunnr AND
                         ktaar IN so_ktaar AND
                         ktaer IN so_ktaer.
        DO.
          FETCH NEXT CURSOR w_cur1 INTO CORRESPONDING
                FIELDS OF TABLE it_vbka2 PACKAGE SIZE 200.
          IF sy-subrc NE 0.
            CLOSE CURSOR w_cur1.
            EXIT.
          ENDIF.
       ENDDO.
      It behaves just like Select ... Endselect. The most important thing here is the Pakage size which you have to decide based on the SE16 results. Also please mind that if the Package size is less, number of times it hits the DB is high, reducing the efficiency thereby.
    Regards & Thanks,
    Anand

  • Data fetch from table

    i have to select data from a database table into internal table but i want that it shud be selected as it is means i have a char 30 field which may have CAPS and small values in table but in the internal table it comes as all CAPS but it shud come as it is e.g "Data" shud come as "Data" in internal table but it comes as "DATA".

    Just check the Domain of the concerned field. There will be a characteristic check box called "lower case" in the Definition tab of your domain. See if that is Flagged. If that is flagged, then the stored record will be case sensitive. In best practice, you should not have that flagged, So that the records will not be case sensitive and you will not have to face a similar situation.
    Hope this helps.

  • How to display some data fetched from a Custom assembly?

    Here's my simplified scenario.
    I have a small .net library that connects to a database, fetches some data and does a bit processing.
    In an SSRS report, I am able to reference the assembly and can call a methods that returns a string list (for instance). It works just fine with appropriate permissions set (both in VS and Report Server).
    Now that I have the string list, how do I display it in some kind of a list? Is it possible?
    Thanks in advance for any help.

    Hi there,
    You could convert the list to a dataset and use the data table or list control to display.
    http://technet.microsoft.com/en-us/library/ms152917.aspx
    cheers,
    Andrew
    Andrew Sears, T4G Limited, http://www.performancepointing.com

  • Date fetching from table

    I have a customized table which contains monthwise details.say 12 entries for an year.I want to fetch the previous 5 month entries from the table wrto sy-datum.
    ie) if the month is 08 , then i want the records frm 03-07.
    ie) if the month is 02, i want the records 01,12,11,10,09.
    What logic to use?
    Rgds,
    SAPUSER100

    Hello,
    You have to also consider the year in your selection. so, change in the logic ...
    data: begin of r_mon occurs 0,
    mon(2),
    year(4),
    end of r_mon.
    l_month = sy_datum+4(2) - 1.
    l_year = sy_datum+0(4).
    do 5 times.
    r_mon-mon = l_month.
    r_mon-year = l_year.
    append r_mon.
    clear  r_mon
    l_mont = l_month - 1.
    if l_month = 0 .
    l_month = 12.
    l_year = sy_datum+0(4) - 1.
    endif.
    enddo.
    Once you got filled your range of the Month,
    I would advice like,
    loop at r_mon.
    select * from ztab
    appending table itab
    where mon = r_mon-mon
    and   year = r_mon-year.
    endloop.
    Regards,
    Naimesh

  • Table refresh is not working in case of data fetched from OUCM

    Hi All,
    I have created a Content Repository data control for a OUCM connection in an ADF application.
    I have five methods inside that. (advancedSearch, getURI, getAttributes, getItems, search)
    I have dragged and dropped the Return inside search method, as an ADF table in a jspx page. The table displays the list of documents in OUCM.
    The table code looks as follows.
    <af:table value="#{bindings.Return.collectionModel}" var="row"
    rows="#{bindings.Return.rangeSize}"
    emptyText="#{bindings.Return.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.Return.rangeSize}"
    rowBandingInterval="0"
    disableColumnReordering="true"
    selectionListener="#{bindings.Return.collectionModel.makeCurrent}"
    rowSelection="multiple" id="t2"
    binding="#{MyDocumentBean.documentTable}"
    filterModel="#{bindings.ReturnQuery1.queryDescriptor}"
    queryListener="#{bindings.ReturnQuery1.processQuery}"
    filterVisible="true" varStatus="vs"
    immediate="true" partialTriggers="delete"
    columnStretching="column:c2" width="948"
    columnResizing="disabled"
    contentDelivery="immediate" verticalGridVisible="false"
    displayRow="selected" summary="document table">
    I have a remove button with code as follows
    <af:commandButton text="Remove" actionListener="#{MyDocumentBean.deleteDoc}" id="delete" partialSubmit="true">
         </af:commandButton>
    In the MyDocumentBean's deleteDoc method , I am connecting to OUCM using RIDC and then deleting the content from OUCM.
    I have set the partialTrigger on table on partialSubmit of the remove button. But after I remove a document, the content is deleted from OUCM, but the table that shows the list of documents is not refreshed.
    I have to manually click a refresh button to refresh the table's content . The code for refresh button is
    <af:commandButton actionListener="#{bindings.search.execute}" text="Refresh" disabled="#{!bindings.search.enabled}" id="refresh" >
         </af:commandButton>
    I even tried using the below code for the search to be executed in the deleteDoc method
         BindingContext bindingContext = BindingContext.getCurrent();
         BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
         OperationBinding operationBinding = (OperationBinding) bindings.get("search");
         operationBinding.execute();
    But it also didn't work.
    I have even tried the following in the pageDefinition file. But in vain :(
    <methodIterator Binds="search.result" DataControl="OUCMDataControl"
    RangeSize="25"
    BeanClass="OUCMDataControl.search_return"
    id="searchIterator" Refresh="always"/>
    Please let me know how to refresh the table.
    Thanks in advance,
    Harini.

    Hi,
    can you try to refresh table "deleteDoc" action listener method using the below code
    AdfFacesContext.getCurrentInstance().addPartialTarget(tableBinding);if this doesn't work you can try to refresh the whole page (dont know whether its a good practice)
                            FacesContext context = FacesContext.getCurrentInstance();
                            String currentView = context.getViewRoot().getViewId();
                            ViewHandler vh = context.getApplication().getViewHandler();
                            UIViewRoot x = vh.createView(context, currentView);
                            context.setViewRoot(x);~Abhijit

Maybe you are looking for

  • Trouble setting up wireless printing between my Macbook Pro w. Mountain Lion 10.8.1 and my HP C4780 Printer

    Hi all, I'm having a frustrating problem trying to set up the wireless printing between my Macbook Pro 13" to my HP C4780 printer. I had no problem installing and configuring this before on my previous computer, a Macbook. However, when I got my new

  • Best Trategy to reduce the Database Size

    Hi Everyone, In our Client's Landscape SAP systems have been upgraded to newer versions whereas our client want one copy of older Production systems (one copy to retain) 1) SAP R/3 4.6 C system  (database size of this system is approx 2TB) 2) SAP BW

  • Bug report & possible patch: Wrong memory allocation when using BerkeleyDB in concurrent processes

    When using the BerkeleyDB shared environment in parallel processes, the processes get "out of memory" error, even when there is plenty of free memory available. This results in possible database corruption. Typical use case when this bug manifests is

  • Safari keeps crashing on me

    It happens especially when I am on a website that I am taking an online class for, which is making the class even more difficult. I don't know if it makes a difference, but the site is big on Flash...I can use the website with no problem on my old To

  • Backup and recovery

    how to take backup in archieve mode and how to restore the backup on archieve mode can anybody tell me step by step I am using oracle8i on sun solaris platform null