Queries within BLOBs

Hi everyone,
I am currently developing an application that stores
PDF document within IFS. Right now, we are able to store
a PDF document and generate an XML from that PDF
that is also store in IFS as a BLOB (very important).
That XML is used to query the information contained into
the PDF document who is the legal signed document. The queries
that we have to perform must be able to calculate stuff.
example:
Document A
<SUB_TOTAL>100.00</SUB_TOTAL>
Document B
<SUB_TOTAL>25.00</SUB_TOTAL>
Of course, the result from the query should return
125.00.
The questions are:
How can we query the XML document within
IFS who is stored as a BLOB to return the sum of tags from
multiple documents?
Is it possible to use Oracle TEXT within the PDF without using
an XML document?
Can I do this without exctracting the infos into relationnal
tables structured like the document (I hope not because thats
the main beauty of IFS; one schema!)?
We are running 9i db and ifs.
Tx in advance!
Claude

Hi,
I hope you used FM WRTITE_FORM to pass data to the specific text element.
For Example:
LOOP AT T_VBAP.
  CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      element                  = g_element 
                "-> Text element need to be passed here
      function                 = 'SET'
      type                     = 'BODY'
      window                   = 'MAIN'
    EXCEPTIONS
      element                  = 1
      function                 = 2
      type                     = 3
      unopened                 = 4
      unstarted                = 5
      window                   = 6
      bad_pageformat_for_print = 7
      OTHERS                   = 8.
  IF sy-subrc <> 0.
*TRIGGER ERROR
  ENDIF.
ENDLOOP.
Have wrote code similar to above? If not add the above code and check it once.
Thanks,
Ramakrishna

Similar Messages

  • 2 Queries within 1 workbook in BEx BI7.0

    Hi Experts,
    I know that there is a new method of creating a workbooks in BI7.0 using the Design Mode.
    Suppose I have put 2 queries within 1 sheet in excel (one on top of the other). I did this by inserting 2 analysis grids within the same worksheet.
    When I try to drill down the query on top, the area it occupies expands and completely overwrites the query at the bottom.  As such, the bottom query disappears.
    Is there a setting somewhere which will make the system adjust the position of the query at the bottom in this scenario?
    I remember that with 3.x, when you insert 2 queries within the same worksheet in the workbook and you try to do a drilldown, the system would ask if you want it to overwrite or adjust the affected query area.
    I am trying to look for the same functionality in BI7.0 workbook creation.
    Thanks for your help in advance.
    Emelee

    Some leads..
    Multiple queries in a workbook
    Multiple queries on same sheet
    Hope it Helps
    Chetan
    @CP..

  • Control multiple updates and queries within one transaction in JPA

    Hi,
    I have a question regarding control multiple updates and queries within one transaction. We are using EclipseLink 2.3.1. With below code, will I be able to:
    - have all insert, update, select queries committed in one transaction;
    - queryGetBalance will return the latest OrgBalance after update;
    - if one fails, everything rolls back.
    Thanks!
    Jeffrey
    PS: I realized that I cannot use em.getTransaction().begin() and em.getTransaction().commit(), since I am using JTA.
    =============
    @PersistenceContext(unitName="Test")
    EntityManager em;
    em.setFlushMode(FlushModeType.COMMIT);
    newTransaction.setAmount(1000);
    newTransaction.setType("check");
    em.persist(newTransaction);
    orgAudit.setUpdateUser("Joe")
    orgAudit.setupUpdateTime(time);
    em.merge(orgAudit);
    Query queryUpdateBalance = em.createQuery("update OrgBalance o set o.balance = o.balance + :amount where orgId = :myOrgId");
    queryUpdateBalance.setParameter("amount", 1000);
    queryUpdateBalance.setParameter("myOrgId", 1234);
    Query queryGetBalance = em.createQuery("select OrgBalance o where o.orgId = :myOrgId");
    queryGetBalance.setHint("javax.persistence.cache.storeMode", CacheStoreMode.REFRESH);
    queryGetBalance.setHint("javax.persistence.cache.retrieveMode", CacheRetrieveMode.BYPASS);
    queryGetBalance.getResultList();
    em.flush();
    Edited by: JeffreyW on Dec 12, 2011 10:34 AM

    Yes, the operation will be in a single transaction, assuming you are using a JTA managed SessionBean and the code is part of a SessionBean method.

  • Embedding 2 queries within the same tab in a work-book?

    Hi Experts,
    Is it possible to embedd multible queries within a single tab in a Workbook?i.e. can we define a cell range in which a particular query is to be embedded and a different cell range within the same tab for another query?
    Thanks
    Aravind

    Hi,
    It is very much possible.
    Just insert the 2 queries at different places and save the work book.
    In the properties you can so the the result of the 2 queries do not overwrite and ouput is adjusted accordingly.
    Regards,
    Nitin

  • Refresh individual queries within a workbook in SP20 EHp1 System

    Hi,
    Currently we have upgraded our BI system to EHP1 pack for SP20. Now we are in BI7.01. We have found in SAP release notes for EHP1 like " in BEX 7 analyzer we will able to Refresh individual queries within a workbook:".
    Can you please tell me how to acheive that, as when we are trying to do it refreshes all the sheets.
    Also in Global settings tab " Allow single data provider refresh" is disabled. Kindly tell me step by step procedure to acheive this,
    Thanks

    Hi Krishna,
    Really thanks for your instructions. We have enabled hte "refresh on individual workbooks" in the workbook settings tab adn we are able to see the same in the context menu of the analysis grid.
    Again i have few doubts.
    I can able to see two options as below.
    1. Refresh
    2. Refresh this query.
    What is the difference between this two?. Also when i click the "refresh this query" it shud display the "selections screen of the particular query", But it is not at all showing me a selection screen,
    What i am doing is.. I am simply doing "refresh this query" option that will refresh my screen first adn i am doing change variables.
    That will give me the selection screen of the particular query. If i am not doing so, all workbooks are refreshing,
    Please advice, whether selection screen of the particular query can be shown when clicking "refresh this query".
    Thanks/

  • Query to get list of queries within a specific session.

    Hi all,
    I want to know the query which will return me all the queries within a session. I have a query which I use quite often, but it returns the last query executed within that session.
    select st.sql_text
    from v$sqltext st,v$session sn where st.address=sn.sql_address and st.hash_value=sn.sql_hash_value and
    sn.sid = <sid> and
    sn.serial# = <serial#>
    order by st.piece
    Could anybody help me.
    thanx,

    Hi,
    Thanx.
    I have one more query, does oracle server keep cursors open till end of the transaction or close it immediately as soon as query is successfully executed ? If it's not closing the cursors immediately, why the following query where I am joining v$sqltext, v$session and v$open_cursor is not retruning me all the queries in one transaction. I believe, transaction is queries executed between two successive commit / rollback. The following query is returning me the same resultset as the earlier one.
    select oc.sql_text from v$session sn, v$open_cursor oc where sn.sql_address = oc.ADDRESS and sn.sql_hash_value = oc.HASH_VALUE and sn.sid = 8 and sn.serial#= 22769;
    Thanx,

  • Refrsh individual queries within a workbook

    Dear Experts,
    We have implemented Enhancement package 1 SP-04 in our BI system.
    1 of the new functionalities provided with this upgrade was
          " Single dataprovider refresh is possible , vs a Global refresh of all the queries in the workbook "
    But we can not see any such option in workbook setting.
    It would be of great help if you can provide in your valuable inputs to solve this issue.
    Regards
    Vaibhav Halde

    Hi Chandrashekhar,
    Thank you for your input.
    It will surely work if you refresh query Q2 and not query Q1.
    Our issue is that along with enhancement package 1 SP04 we should have got a new check box on general tab in a workbook setting.
    Initially...workbook setting-general tab - there was a check box - Refresh workbook on open
    after upgrade there should have been a new check box : Refresh individual dataprovider
    but that is not the case.
    We want to know reason behind this ?
    or
    Does this functionality really come along with EHP1 SP04 or with any other support package?
    Regards
    Vaibhav Halde

  • How to transfer data within blob column to server

    Hi,
    I have the following requirement where i have a table which has a blob column that holds the files that are attached to a page using front end. I need to fetch these files and import them to server. How do i go about in achieving this?
    Any in\puts would be of great help.
    Thanks In Advance.

    876841 wrote:
    Hi,
    I have the following requirement where i have a table which has a blob column that holds the files that are attached to a page using front end. I need to fetch these files and import them to server. How do i go about in achieving this?
    Any in\puts would be of great help.Well, if the blob data is stored in columns on the database then it already resides on the server. If you need to save that data as files on the server then it's just a case of writing out the data to a file in the appropriate directory location.
    Example code... (untested)...
    As sys user:
    CREATE OR REPLACE DIRECTORY MY_FILES AS 'c:\myfiles';
    GRANT READ,WRITE ON DIRECTORY MY_FILES TO myuser;As myuser:
    DECLARE
       -- Data Variables
       v_blob             BLOB;
       v_data_length      NUMBER;
       -- Loop Control Variables
       v_offset           NUMBER := 1;
       v_chunk   CONSTANT NUMBER := 32767; -- maximum chunk size
       -- UTL_FILE variables
       fh                 UTL_FILE.file_type;
    BEGIN
       v_blob := ... populate the blob variable here
       v_data_length := DBMS_LOB.getlength (v_blob);
       -- Open the file
       fh := UTL_FILE.fopen ('MY_FILES', 'myfile.dat', 'wb', v_chunk);
       LOOP
          -- Exit when our file offset is bigger than our file
          EXIT WHEN v_offset > v_data_length;
          -- Write the output chunk by chunk
          UTL_FILE.put_raw (fh, DBMS_LOB.SUBSTR (v_blob, v_chunk, v_offset), TRUE);
          -- Increment the offset by the amount written
          v_offset := v_offset + v_chunk;
       END LOOP;
       -- Close the file
       UTL_FILE.fclose (fh);
    END;

  • Saving Queries within SAP B1

    Hello,
    I remember on 2005, blank ad hoc queries would be saved as queries.txt so we could just overwrite the last one on the server in order to bring it up on screen. However, itu2019s annoying that it now defaults to no name (u2018.txtu2019) therefore brings up an error when we try to export to excel. We then have to call it something like u2018a.txtu2019 or u2018888.txtu2019 just to make it display on screen.
    Is it possible to make ad-hoc queries default to u2018queries.txtu2019 again?
    Regards,
    Juan

    Dear Juan,
    I have tested a database demo in 2007a sp 01 pl 10 and when I export the values of a query in the query generator it will save the document as .txt as default (txt is the text file).
    After it was saved, I tried to change the type of the document from .txt to .xls to transform it into an excel file and the data was still consistent.
    Maybe I am not answering to your question. I thought you were speaking about 2005 SAP Business One Version and not sql server version. Am I correct?
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Quering on blob fields that contain XML

    Hi All,
    I need to query on blob fields that contain XML data. So I wanna say give me XML docs where ELEMENT[@ATTRIBUTE='VALUE']. So, I need to be able to query on attributes. Is there any way to do that?
    Thanks.

    Thanks for the attempt, but tried what you suggested and it will only pull records where the Asterisk is the ONLY character in that data field.
    Maybe I wasn't clear enough.
    I have in access of 200,000 records in KNA1, out of which some of them have one or more * values in the some of the fileds, eg: Comany ABC At XXXX road Workshop  is stored in the Name 1 field, I want all records like this where * is one of the characters in that field.
    May have to download the entire lot and use Excel to filter.

  • Query tuning for search within blob content.

    Hi,
    I ve got a query which searches across 3 tables. When I include a search condition : (CONTAINS(CF.blob_content,''{''||:P146_TEXT||''}'',1)>0 AND CF.REF_ID = CR.REF_ID) the query takes really long time to execute. Is there a way to reduce the execution time. If you need any more info on this, please let me know. I need to work out a solution for this issue really soon.
    I have indexed the blob_content column using a domain index type.
    Thanks,
    Vignesh

    Hi,
    an explain plan would be helpful.
    Is it possible to use the bind variable already include the "{", i mean :P146_TEXT := '{'||:P146_TEXT||'}' and then use :p146_text solely in the contains. Then you are using a real bind variabel. Maybe a second variable is necessary to make it work.
    Another possibility is that CF.REF_ID is not indexed or CR.REF_ID is not indexed, that's way it's handy to give an explain plan. Then you can see maybe the problem.
    Herald ten Dam
    Superconsult.nl

  • Queries on pl/sql tables within a function

    hi,
    how can i execute regular sql-queries within a function on a pl/sql table which the function has recieved as a parameter ? i have tried quite a bit and always get type mismatches or internal errors. anybody has a good example on this ?
    thanks in advance,
    stephan

    hi,
    okay, i will not post the actual code i have, because it won't make too much sense out of the context, but here are the relevant parts...
    i have a few object definitions that represent the records of the three tables (two input and one output)...
    create type t1 as object (...);
    create type t2 as object (...);
    create type t3 as object (...);
    and a package with the table definitions
    create or replace package t_defs as
    type tab_t1 is table of t1;
    type tab_t2 is table of t2;
    type tab_t3 is table of t3;
    end t_defs;
    and here is a rough sketch what the function should look like later:
    CREATE OR REPLACE FUNCTION some_function (
    tab1 IN t_defs.tab_t1, tab2 IN t_def.tab_t2)
    RETURN t_defs.tab_t3 PIPELINED IS
    TYPE refcur IS REF CURSOR;
    cur0 refcur;
    curr_rec t3 := t3(NULL, ....);
    BEGIN
    open cur0 for 'here is the statement i could not do';
    LOOP
    FETCH cur0 INTO curr_rec.....;
    EXIT WHEN cur0%NOTFOUND;
    . -- (manipulate the record) --
    PIPE ROW(curr_rec);
    END LOOP;
    RETURN;
    END;

  • How do i access multiple bex queries in one crystal reports??

    Hello Experts,
    I have 10 cubes and 30 bex queries on it and i need to create 3 final crystal reports on these 30 queries.
    I am on BI 4.0 & CR 2011. but my client is not on correct SAP patch ie., he is on 15+ but he must be on 23+ to access multiple bex queries on CR 2011 Database expert. (I am unable to see bex queries in Database expert to link couple of bex queries)
    And my client env doesnt have SAP EP for SAP BW Netweaver Connection to create a connection to access cubes or queries in IDT.
    Do my client env need EP? so that SAP BICS Connection will work in IDT?
    How do i approach to achive this...
    Thank you...

    Hi,
    have you checked the option "allow external access" in your query? SAP Toolbar will find all queries but the database export needs this flag to be set.
    Using multiple queries within one crystal report is using the "multi database join feature" of crystal reports. You can link your queries by key fields and crystal will join them in memory. So when there are many queries or many datarows this can be a huge performance killer.
    Actuallly one of our customers is running a report which has more than 20 BEx queries linked together. It runs just fine.
    Please be sure to set your joins correctly. E.g. crystal will try to make a join on the "key figures" sturcture if you let it create a suggestion or it will try to link on all fields of an infoobject. This will bring MDX errors.
    So you should be setting your joins correctly - the [infoobject]-[20infoobject] fields are fine for that.
    I hope you can use some of my words.
    Regards
    Thorsten

  • How to run multiple queries in a workbook

    Hi,
    I have 3 queries in a workbook with the same variables. How can I refresh all the 3 queries when I change the variable value. It allows me to refresh only one query at a time but I need to refresh all the 3 queries at once whenever variable value changes.
    Thanks,
    Kal

    Prakash,
    Do you have any more information on where i would find the setting to;
    "Refresh individual queries within a workbook (Single DataProviderRefresh)"
    is it on the
    i) dataprovider setting
    ii) workbook setting
    iii) elsewhere?
    many thanks
    Ian

  • Run-Time Error '6' Overflow within BEx Analyzer after copy/paste query

    Hi all,
    User is getting a "Run-time error '6' overflow" message which is caused after copying any query in a 'query pack' to any free row/column within the same sheet (BEx Analyzer). This "query pack" has multiple queries within one sheet and covers 1800 rows so there is enough free space left for copying one of the queries to another position in the same sheet.
    Microsoft Office Excel SP2 is used which is part of MS Office professional edition 2003. The BW version is 3.0.
    Please let me know if more details are required or above mentioned error message is recognized and can be explained.
    Thanks and kind regards,
    Raymond Flaton

    Hi VRV,
      This error is caused whenever there is memory issue. If your query is built on a cube which has a BWA index then this problem can be related to the issue with the BWA server. Check your BASIS team to check if there is memory issue presently in the BWA server.
    Sometimes the issue is temporary, where the several users accesing the reports to fetch data from BWA lead to this type of error as the BWA gets overloaded. Try exiting the report and run it after some time again.
    Alternatively you can also try restricitng the selection for fetching the data in the report as suggested.
    Thanks

Maybe you are looking for

  • Received new macbook pro on friday. want to return, but threw out receipt

    i received my new macbook pro in the mail on friday. i still have the box and all the accessories, but i threw out the packing slip/receipt. i tried to retrieve it from the garbage can outside my house, but found a hundred maggots in it and was traum

  • Want to trigger the workflow from MIGO

    Hi Experts,       I want to trigger the workflow from MIGO transaction and should handle the created material document number (i.e. I am doing the goods receipt for the process order, when he post it, the material document details (material doc numbe

  • CALL METHOD CL_PROXY_FAULT

    Hi, i am testing fault message(inbound server abap proxy - sync), but i do not know what do i set class name on  exception_class_name on CALL METHOD CL_PROXY_FAULT=>raise. data : uname         type ZXIUSER_NAME_DT_DATA1-name. data : f1            typ

  • Sandbox violation loading from Twitter RSS ?

    hello. I'm trying to make a RSS reader which is on mydomain.com. But when I load from twitter flash says that it can't load because of security, anybody knows what's the problem? ACTIONSCRIPT feedUrlLoader.load(new URLRequest("http://twitter.com/stat

  • Print from open accordian panel only

    Hi all, I'm hoping I have put this in the right section. Apologies if I haven't. I am trying to use accordian panels and what I want is to be able to print from the open panel only. I want to have a link in the panel saying "print this...." and only