Content and Schema Tables

Hi,
The 9.0.2 documentation states that the documents are stored like this: in table odm_document we have the id for the document (wich is the same id as thepublic obejct) and the CONTENTOBJECT wich is a number.
Now, CONTENTOBJECT is the ID for table ODMM_CONTENTSTORE where the actual blob of the document is stored (as long as is supposed to be indexed).
The question here is, did this change with the new version?. I am having troubles trying to do content search on files other than TXT files and when I went looking for my documents in these two tables I found that there is an entry in ODM_DOCUMENT but there is NO entry for ODM_DOCUMENT.CONTENTOBJECT in ODMM_CONTENTSTORE.
Thanks.
PS: No, i am not modifying a thing directly in SQL, I used this time to figure out why the heck I am not able to content search the files.

well, sorry for replying to myself but this is what i found out.
The documentation of 9.0.2 is either incorrect or it was like that in that version. Currently here is what i can see:
ODM_DOCUMENT.CONTENTOBJECT = ODM_CONTENTOBJECT.ID
ODM_CONTENTOBJECT.CONTENT = ODMM_CONTENTSTORE.ID

Similar Messages

  • Dimension Table and Fact Tables

    Hi,
      Is there any way to see the Dimension Table contents and Fact Table Contents.
    For eg:-  I should be able to see the DIM ID and the SID's of a Dimension.

    Well you can see them in SE11, by giving the table name.
    Go to list schema and give the cube name. It will display all the table for that cube. Give the table name in SE11 or SE16 and see the content there.

  • A partition tab is needed in the schema-table browser and it's missing

    After a first sight with the product, I couldn't find a partition tab in the schema-table browser.
    For those having partitions it is absolutely essential.

    It's easy to add,
    create a file that has the following content
    <?xml version="1.0" encoding="UTF-8"?>
    <items>
    <item type="sharedQuery" id="PartSubPartkeys">
    <query minversion="9">
         <sql>
         <![CDATA[ select 'PARTITION KEYS' PARTITION_LEVEL,substr(sys_connect_by_path(column_name,','),2) "PARTITION KEYS"
                   from (select column_name, column_position
                   from all_part_key_columns
                   where owner = :OBJECT_OWNER
                   and name = :OBJECT_NAME
                   and object_type='TABLE' )
                   start with column_position=1
                   connect by column_position=prior column_position+1
                   union all
                   select 'SUBPARTITION KEYS' ,substr(sys_connect_by_path(column_name,','),2)
                   from (select column_name, column_position
                   from all_subpart_key_columns
                   where owner = :OBJECT_OWNER
                   and name = :OBJECT_NAME
                   and object_type='TABLE' )
                   start with column_position=1
                   connect by column_position=prior column_position+1]]></sql>
         </query>
         </item>
    <item type="sharedQuery" id="PartSubPartkeysFI">
    <query minversion="9">
         <sql>
         <![CDATA[ select 'PARTITION KEYS' PARTITION_LEVEL,substr(sys_connect_by_path(column_name,','),2) "PARTITION KEYS"
                   from (select column_name, column_position
                   from all_part_key_columns
                   where owner = :OBJECT_OWNER
                   and name = (select table_name
                             from all_indexes
                             where index_name=:OBJECT_NAME
                             and owner=:OBJECT_OWNER)
                   and object_type='TABLE' )
                   start with column_position=1
                   connect by column_position=prior column_position+1
                   union all
                   select 'SUBPARTITION KEYS' ,substr(sys_connect_by_path(column_name,','),2)
                   from (select column_name, column_position
                   from all_subpart_key_columns
                   where owner = :OBJECT_OWNER
                   and name =(select table_name
                             from all_indexes
                             where index_name=:OBJECT_NAME
                             and owner=:OBJECT_OWNER)
                   and object_type='TABLE' )
                   start with column_position=1
                   connect by column_position=prior column_position+1]]></sql>
         </query>
         </item>
    <item type="sharedQuery" id="Partitions">
    <query minversion="9">
         <sql>
         <![CDATA[ select partition_name,  num_rows,AVG_ROW_LEN, blocks ,LAST_ANALYZED from all_tab_partitions where table_owner = :OBJECT_OWNER and table_name = :OBJECT_NAME order by partition_position]]></sql>
         </query>
         </item>
    <item type="sharedQuery" id="SubPartitions">
    <query minversion="9">
         <sql>
         <![CDATA[ select subpartition_name, partition_name,  num_rows,AVG_ROW_LEN, blocks ,LAST_ANALYZED from all_tab_subpartitions where table_owner = :OBJECT_OWNER and table_name = :OBJECT_NAME order by partition_name,subpartition_position]]></sql>
         </query>
         </item>
    <item type="editor" node="TableNode" >
    <title><![CDATA[Partitions/SubPartitions]]></title>
    <query id="PartSubPartkeys" />
    <subquery>
    <title>Partitions/SubPartition</title>
    <query>
    <sql><![CDATA[select partition_position, partition_name "Partition/Subpartition",  tablespace_name,high_value,compression,num_rows,AVG_ROW_LEN, blocks ,LAST_ANALYZED from all_tab_partitions where table_owner = :OBJECT_OWNER and table_name = :OBJECT_NAME and 'PARTITION KEYS'=:PARTITION_LEVEL
             union all
             select subpartition_position, partition_name||'/'||subpartition_name, tablespace_name,high_value,compression,num_rows,AVG_ROW_LEN, blocks ,LAST_ANALYZED from all_tab_subpartitions where table_owner = :OBJECT_OWNER and table_name = :OBJECT_NAME and 'SUBPARTITION KEYS' =:PARTITION_LEVEL
             order by 2]]></sql>
    </query>
    </subquery>
    </item>
    <item type="editor" node="MViewNode" >
    <title><![CDATA[Partitions/SubPartitions]]></title>
    <query id="PartSubPartkeys" />
    <subquery>
    <title>Partitions/SubPArtition</title>
    <query>
    <sql><![CDATA[select partition_position, partition_name "Partition/Subpartition",  tablespace_name,
             high_value,compression,num_rows,AVG_ROW_LEN, blocks ,LAST_ANALYZED
             from all_tab_partitions where table_owner = :OBJECT_OWNER and table_name = :OBJECT_NAME and 'PARTITION KEYS'=:PARTITION_LEVEL
             union all
             select subpartition_position, partition_name||'/'||subpartition_name, tablespace_name,high_value,
             compression,num_rows,AVG_ROW_LEN, blocks ,LAST_ANALYZED
             from all_tab_subpartitions where table_owner = :OBJECT_OWNER and table_name = :OBJECT_NAME and 'SUBPARTITION KEYS' =:PARTITION_LEVEL
             order by 2]]></sql>
    </query>
    </subquery>
    </item>
    <item type="editor" node="IndexNode" >
    <title><![CDATA[Partitions/SubPartitions]]></title>
    <query id="PartSubPartkeysFI" />
    <subquery>
    <title>Partitions/SubPArtition</title>
    <query>
    <sql><![CDATA[select partition_position, partition_name "Partition/Subpartition",  tablespace_name,high_value,compression,
             Leaf_Blocks, Distinct_Keys, clustering_factor ,LAST_ANALYZED
             from all_ind_partitions where index_owner = :OBJECT_OWNER and index_name = :OBJECT_NAME
             and 'PARTITION KEYS'=:PARTITION_LEVEL
             union all
             select subpartition_position, partition_name||'/'||subpartition_name, tablespace_name,high_value,compression,
             Leaf_Blocks, Distinct_Keys, clustering_factor ,LAST_ANALYZED
             from all_ind_subpartitions
             where index_owner = :OBJECT_OWNER
             and index_name = :OBJECT_NAME
             and 'SUBPARTITION KEYS'=:PARTITION_LEVEL
             order by 2]]></sql>
    </query>
    </subquery>
    </item>
    <item type="editor" node="TableNode">
    <title><![CDATA[Unabridged SQL]]></title>
    <query>
    <sql><![CDATA[select :OBJECT_OWNER OOWNER, :OBJECT_NAME ONAME, 'TABLE' OTYPE from dual union all select owner,index_name,'INDEX' from all_indexes where table_owner= :OBJECT_OWNER and table_name=:OBJECT_NAME ]]></sql>
    </query>
    <subquery type="code">
    <query>
    <sql><![CDATA[select dbms_metadata.get_ddl(:OTYPE,:ONAME, :OOWNER) "SQL Statements" from dual]]></sql>
    </query>
    </subquery>
    </item>
    <item type="editor" node="TableNode">
    <title><![CDATA[Partition Columns Statistics]]></title>
    <query id="Partitions" />
    <subquery>
    <query>
         <sql>
         <![CDATA[ select COLUMN_NAME, NUM_DISTINCT, LOW_VALUE, HIGH_VALUE, DENSITY, NUM_NULLS
             from all_part_col_statistics where owner = :OBJECT_OWNER
             and table_name = :OBJECT_NAME
             and partition_name= :PARTITION_NAME
             order by column_name]]></sql>
    </query>
    </subquery>
    </item>
    <item type="editor" node="TableNode">
    <title><![CDATA[SUBPartition Columns Statistics]]></title>
    <query id="SubPartitions" />
    <subquery>
    <query>
         <sql>
         <![CDATA[ select COLUMN_NAME, NUM_DISTINCT, LOW_VALUE, HIGH_VALUE, DENSITY, NUM_NULLS from all_subpart_col_statistics where owner = :OBJECT_OWNER and table_name = :OBJECT_NAME and subpartition_name=:SUBPARTITION_NAME order by column_name]]></sql>
         </query>
    </subquery>
    </item>
    <item type="editor" node="MViewNode">
    <title><![CDATA[Partition Columns Statistics]]></title>
    <query id="Partitions" />
    <subquery>
    <query>
         <sql>
         <![CDATA[ select COLUMN_NAME, NUM_DISTINCT, LOW_VALUE, HIGH_VALUE, DENSITY, NUM_NULLS
             from all_part_col_statistics where owner = :OBJECT_OWNER
             and table_name = :OBJECT_NAME
             and partition_name= :PARTITION_NAME
             order by column_name]]></sql>
    </query>
    </subquery>
    </item>
    <item type="editor" node="MViewNode">
    <title><![CDATA[SUBPartition Columns Statistics]]></title>
    <query id="SubPartitions" />
    <subquery>
    <query>
         <sql>
         <![CDATA[ select COLUMN_NAME, NUM_DISTINCT, LOW_VALUE, HIGH_VALUE, DENSITY, NUM_NULLS from all_subpart_col_statistics where owner = :OBJECT_OWNER and table_name = :OBJECT_NAME and subpartition_name=:SUBPARTITION_NAME order by column_name]]></sql>
         </query>
    </subquery>
    </item>
    <item type="editor" node="SchemaFolder" minversion="10.1">
    <title><![CDATA[Sessions]]></title>
    <query>
    <sql><![CDATA[select sid,serial#,program,last_call_et,machine, status, sql_hash_value shv,sql_child_number scn
             from v$session
             order by 1]]></sql>
    </query>
    <subquery>
    <query>
    <sql><![CDATA[select * from table(dbms_xplan.display_cursor(:SHV,:SCN))]]></sql>
    </query>
    </subquery>
    </item>
    </items>
    and add the following line to your ide.conf file (in jdev/bin directory in the sqldev install dir)
    AddVMOption -Draptor.user.editors=fullpathofthefile(dir and name)
    and restart, you'll get several additional tabs to the ones displayed for tables.
    enjoy

  • Deleting the contents of all tables in a schemas

    hi ,
    can someone tell me if there is a way of deleting the contents of all tables , without dropping any.because the schema is big and just want to empty all tables at the same time.
    thanks in advance.

    Hi,
    >>Will they be enabled after running the script?
    Well, of course they need to be re-enabled ... don't you think?
    SQL> create table a (id number primary key);
    Table created.
    SQL> create table b (id number constraint fk_b_a references a);
    Table created.
    SQL> select constraint_name,status from user_constraints where table_name='B';
    CONSTRAINT_NAME                STATUS
    FK_B_A                         ENABLED
    SQL> truncate table a;
    truncate table a
    ERROR at line 1:
    ORA-02266: unique/primary keys in table referenced by enabled foreign keys
    SQL> alter table b disable constraint fk_b_a;
    Table altered.
    SQL> truncate table a;
    Table truncated.
    SQL> select constraint_name,status from user_constraints where table_name='B';
    CONSTRAINT_NAME                STATUS
    FK_B_A                         DISABLED
    SQL> alter table b enable constraint fk_b_a;
    Table altered.
    SQL> select constraint_name,status from user_constraints where table_name='B';
    CONSTRAINT_NAME                STATUS
    FK_B_A                         ENABLEDCheers
    Legatti

  • Table of Contents and Section Numbering ??s

    Hi, we are using CS6 and have a couple questions about trying to use automated section numbering and table of contents in a single document. We don’t do this often (actually, never used auto-TOC before), so I just want to see if I’m missing something obvious.
    SECTION NUMBERING WITH SECTION INTRO PAGES
    Our document (a style guide) is divided into sections. Each section begins with a section intro title page, which is basically just a blank page with the new section’s title nicely styled. We are setting up our sections as 1, 2, 3, 4, etc. And we would REALLY prefer for the page numbering to be ’1.0, 1.1, 1.2, 1.3, etc.’, where X.0 is the section intro page.
    1) I can add the sections OK with a prefix of 1., 2., etc. But InDesign does not allow me to start the section numbering at ’0′, it must be ’1′. So my intro pages HAVE to be 1.1, 2.1, 3.1, etc. instead of 1.0, 2.0, 3.0 etc. Any creative workaround to solve this??? We really don’t want the intro pages to be X.1, as they have no content and we want the X.1 page to be the first with content on it, NOT X.2. How do people generally handle a section intro page?
    AUTO PAGE NUMBERS AND TOC
    We are trying to use the automated Table of Content feature and running into an odd issue. We have page titles on top of each page in a unique paragraph style (H1). We are adding the page number at the beginning of this paragraph using ‘Type > Marker > Current Page Number’ and a unique character style. It’s working fine on the pages, showing the appropriate section numbering we setup for the document (e.g., 2.1, 2.2, 2.3, 2.4, etc.).
    But when we make the table of contents, the ‘page numbers’ at the beginning of the titles are coming in as absolute numbers (e.g., 7, 8 , 9, 10, 11, etc.) instead of our section numbering. I checked the General Preferences, and it is set to ‘View: Section Numbering’. And when I exported an interactive PDF, the bookmarks also add the absolute page number at the beginning of the titles as in the TOC. But if I set the TOC to include page numbers automatically, those DO display correct section numbers (they just precede or follow our titles with the incorrect numbering).
    2) Any ideas why the TOC and PDF Bookmarks would be picking up absolute numbering while the actual titles on the pages show the proper section numbering?
    THANKS!

    Peter Spier wrote:
    I've never tried adding a second marker to a paragraph like that. Why not use a numbered list instead?
    Just checking in here. Not sure I understand what you mean about using a numbered list. Do you mean instead of the page numbers in the titles, or instead of the Table of Contents? Not sure how either could be automated to stay in sync with adding/removing pages and creating the TOC links and bookmarks in our PDFs.
    - Is there a bug when the TOC pulls the specified title paragraphs and they have page numbers in them?
    Thanks. Still trying to see if we're doing something wrong as this is the first we've played with TOC.

  • Sections and Automatic Table of Contents

    Hello there,
    I have encountered a problem with InDesign while trying to make an automatic TOC for a journal I am working on. It has something to do with Sections.
    So I have a book with several indd files. The very first indd file is called "frontpages" which includes the cover page, the inside cover, the leaf page, then two facing pages for the table of contents, then followed by the last page (Letter from the Editor).
    This is followed by my second indd file called "newsbeats" which has 5 pages.
    Now, what I wanted to do was mark the frontpages' page numbers using lower case roman numerals (i, ii, iii, etc.) Of course I do not want to include the cover page and the inside cover, so I want to start (i) with the leaf page, (ii) and (iii) marks the table of contents pages, and finally (iv) for the Editor's Letter. I did this by starting a section at the leaf page, START PAGE NUMBERNG AT: 1, and selecting the (i, ii, iii...) option. It worked, while leavingboth the cover page and and the inside cover with markers (a) and (b), which I previously set (because I do not know how to just get rid of the page number...)
    Now, my book pages actually starts page (1) in the first page of the "newsbeats" document. So to do that, I made another section on the newsbeats first page, START PAGE NUMBERING AT: 1, and selected (1, 2, 3...). That works, too.
    So at the moment, I have 3 sections to my page numbers: 1) the lower case letters (a, b) section for the cover page and inside cover, respectively; 2) the roman numerals section (i, ii, iii...) for the leafpage, table of contents, and Editor Letter; and lastly, 3) the arabic letters (1, 2, 3...) starting from the newsbeats document all the way to the last page of the last indd of my book.
    Hope it is clear enough. Now here comes the problem:
    When I try to create an automatic Table of Contents, it correctly finds my chapters (i used the style for each journal article's title) and lists them. The problem is, the page numbers do not appear correctly. Instead, it shows "a" on EACH AND EVERY table of contents ENTRY. I tried some trial and error, and found out that the pages shown (a bunch of "a") is actually the COVER PAGE'S (a) page number....
    I tried for hours searching on topics like "Sections and Automatic TOC" or "How to selectively choose which pages to include in a TOC".. But I found none.
    Your help would be really appreciated. I can easily manually type the page numbers (my journal only has 9 articles), but I wanted to do this in a very systematic way, so it would be a lot easier if in any case, there are more than 9 articles for next year's publication.
    THANK YOU SO MUCH!
    - Larry
    PS: I attached a file showing the generated table of contents (on the ii-iii page that I wanted it to appear on), with the frontpages page panel, which shows the page numbering as well. Also I included the Book Panel, so you see how the pages are set up.

    We definitely experienced the same issue. Seems like pages just get lost. This is the approach I took:
    On the groups main page we just added a link called 'View All Articles' wrapped in a h1 tag (to make it very big and visible to the user) using the following url:
    search/?q=%20
    The resulting page will search for every article with a space in it and return the results. Still not the most elegant solution but it works. I'd like to implement it right into the xsl file but haven't found very much documentation to aid in this.

  • Extract Title and specific table of content/pages in set of PDF's

    I need to extract the title of each PDF and a specific content and its pages. For example i have a folder full of PDF's and i need to find in the Table of Contents a heading called Enhancements if there. If Enhancement content is there copy the Title of the PDF usually on first page and copy the Enhancement section and place in another PDF as chronology of enhancements.I have AA Standard X
    What tool can do this?

    You could certainly use the SDK to write a custom plugin to Acrobat (in C/C++) that would do what you require.  It's not trivial, however.

  • I created a book in iBooks Author using the Photo Book template. When I rotate to portrait orientation, the photo or widget disappears and a table of contents appears with only the interactive media showing.

    I created a book in iBooks Author using the Photo Book template. When I rotate to portrait orientation, the photo or widget disappears and a table of contents appears with only the interactive media showing.

    Thanx for the prompt response, KT. I have indeed seen that thread, only just after I posted the question.
    I have spent hours on the phone with what I now know is a call center in Texas on this question.
    I think Apple could be a little more "hands on" with iBooks Author users, and it should also be pointed out that landscape photos will not display in portrait mode.
    In my case, I used gallery widgets to display vertical photos, since they look better in portrait mode.
    But instead of simply rotating, the page disappears and a TOC of interactive media appears. The gallery behaves as expected when tapped. This is not what I expected, but since the gallery works, I can live with it.
    Right now I have "tickets" telling me to "fix" this "problem or to disable portrait mode.
    I don't want to disable portrait mode.
    Will Apple accept the books if I tell them this is not an "error?"

  • Book with Table of Contents and Index

    I want to write a genealogical book over 100 pages long, including photos, charts, and lots of text. My last book was on a PC using Adobe PageMaker, and I liked its ability to create a Table of Contents and an Index, both of which adjusted automatically as you added pages in the middle. An index is essential to genealogy, as people are mentioned in different places. To put a name in the Index, you selected the name, entered different possible versions of the name, and from a menu picked "Place in Index". When ready, you selected "Create Index" and it went through and picked the words that you had marked, noted what page they were on, and created a neat index. I need something like that for the Mac.
    I tried Adobe InDesign on the PC, and found that it was mostly for graphics and fancy lettering and did not have a good Table of Contents or Index function. Mac's Pages program does not seem to have any indexing function at all, and gets very difficult to use as the document gets large.
    Is there any Mac program which can write a serious book?

    That is not a feature of iPhoto
    And iPhoto books are limited to 100 pages (50 sheets of paper)
    You can create custom pages in other software and print to PDF using the send PDF to iPhoto function to create an image in iPhoto to place in your book
    see Old Toads tutorial #19 for more details - http://web.me.com/toad.hall/NewTutorials/main19.html
    LN

  • Code and core tables in different schemas

    Hi,
    My db version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    I would like to understand, the pros and cons of the following situation:
    We have a single application.
    The db design for this application has 44 tables out of which 28 are core tables related by PK and FK relationships. The remaining 16 are look up and reference tables which are not related to any.
    The team decided to place the 28 core tables in one schema A and the remaining 16 in another schema B within same database. (The reason for this is..since it is done in other projects lets do it here too).
    Now comming to the code (stored procs, functions, packages etc). The teams wants to place most of the code in the schema B that has the 16 ref tables. (the reason again being the same).
    What are the pros and cons doing this???
    Please advice.
    PS:
    I have googled and found sth on these lines:
    cons: 
    o harder to manage
    o harder to upgrade
    o harder to patch
    o harder to maintain
    o causes your shared pool size to increase 1,000 times (shared sql goes down the tubes)
    o takes more space
    o queries against the dictionary will be impacted
    o latching on the shared pool goes WAY up (latching = locks = serialization device =
    slows you down)
    pros:
    o none that I can think of.

    >
    I would like to understand, the pros and cons of the following situation:
    Yes I am straining to find more points (was not good at it though).
    >
    You just want to understand? Are you sure? Your thread reads more like you just want to do things your way and are looking for support.
    >
    The team decided to place the 28 core tables in one schema A and the remaining 16 in another schema B within same database. (The reason for this is..since it is done in other projects lets do it here too).
    Now comming to the code (stored procs, functions, packages etc). The teams wants to place most of the code in the schema B that has the 16 ref tables. (the reason again being the same).
    >
    My question to you is: what PROBLEM are you trying to solve? If the 'team' already uses this approach and there haven't been any substantive problems then why try to change things now? Why have you chosen to fight this battle?
    Your 'team' has already decided and now, after that decision, you want to argue about it with them? The time to present arguments for/against a given plan is BEFORE the decisions are made, not after. Once a decision is made you need to be a team player and implement that decision to the best of your ability.
    One thing I'm certain of. If you try to support your argument using things like that 'AskTom' link you posted any credibility you had will go out the window. That link, as you already hinted yourself, is not your use case at all. All it takes is for one of your 'team' members to point that out and everyone will pretty much stop listening to any other arguments you make.
    People are generally not going to 'change their ways' unless you can show them:
    a) there is something seriously wrong with the way they are now doing things or
    b) a new way of doing things provides some substantial benefits
    Choice 'a' above is where you need to start but you haven't provided ANY information in this post that you have identified any serious issues with the status quo.
    The main task for Oracle is to be able to FIND the objects being referenced. So, in my opinion, that is what you should focus on when looking for PRO/CON arguments.
    That is: What issues are there if an object being referenced is in a different schema than the session that needs to use the object?
    1. objects may need to be prefixed with the schema name
    2. public or private synonyms may need to be created/maintained to avoid having to deal with item #1 above
    3. new grants may be needed to implement/maintain the proper security
    4. new roles may need to be created to maintain proper security (see item #3 above)
    5. additional work will be needed to maintain the new roles in item #4 above
    6. PL/SQL code may not be able to reference the object or may reference the wrong object
    7. Roles are disabled in PL/SQL (see item #6 above) - this means that the new grants (see item #3) may need to be granted directly to the schema users that need access instead of to roles. That can make it harder to create and maintain a role-base security schema.
    If I were you I would spend my time on other more important thingsd. But if I chose to fight this particular battle then I would make a list of problems that occured in the past with the current method of doing things and also problems related to the above list of items and then show how many of those problems will 'disappear' if the new method is used.

  • Program to upload and download table content

    Hi,
    I need to create a program which should upload and download table content from PC and to PC.
    How can i develop this program..Should i use BDC or any function module?
    Ezhil.

    The 2 program requested.....
    Program to Download
    REPORT ztable_download.
    PARAMETERS: table LIKE dd02d-tabname,
                                file(50) LOWER CASE.
    DATA: code(72) OCCURS 10,
                w_code(72),
                prog(8),
                msg(120),
                lin(3),
                wrd(10),
                off(3).
    DATA: BEGIN OF rectest,
          tprec(1) VALUE '0',
          nometab(16),
          utente(20),
          data(10),
          ora(8),
    END OF rectest.
    DATA: BEGIN OF recdett,
          tprec(1) VALUE '1',
          tab LIKE table,
    END OF recdett.
    DATA: BEGIN OF rectot,
        tprec(1) VALUE '2',
        tot(9),
    END OF rectot.
    OPEN DATASET file FOR OUTPUT IN TEXT MODE.
    rectest-nometab = table.
    rectest-utente = sy-uname.
    rectest-data = sy-datum.
    rectest-ora = sy-uzeit.
    TRANSFER rectest TO file.
    APPEND 'PROGRAM SUBPOOL.'  TO code.
    CONCATENATE 'TABLES ' table '.' INTO w_code SEPARATED BY space.
    APPEND w_code TO code.
    APPEND 'FORM DYN1 USING FILE.' TO code.
    CONCATENATE 'SELECT * FROM ' table '.'
    INTO w_code SEPARATED BY space.
    APPEND w_code TO code.
    CONCATENATE 'TRANSFER ' table ' TO FILE.'
    INTO w_code SEPARATED BY space.
    APPEND w_code TO code.
    APPEND 'ENDSELECT.' TO code.
    APPEND 'ENDFORM.' TO code.
    GENERATE SUBROUTINE POOL code NAME prog
    MESSAGE msg LINE lin WORD wrd OFFSET off.
    IF sy-subrc <> 0.
       WRITE: / 'Error during generation in line', lin,
                    / msg,
                    / 'Word:', wrd, 'at offset', off.
    ELSE.
       PERFORM dyn1 IN PROGRAM (prog) USING file.
       WRITE: / 'Esportati ',sy-dbcnt,' records.'.
    ENDIF.
    Program to upload
    REPORT Ztable_upload.
    PARAMETERS: FILE(50) lower case,
                               TEST AS CHECKBOX.
    DATA: CODE(72) OCCURS 10,
                W_CODE(72),
                PROG(8),
                MSG(120),
                LIN(3),
                WRD(10),
                OFF(3).
    DATA: BEGIN OF RECTEST,
          TPREC(1) VALUE '0',
          NOMETAB(16),
          UTENTE(20),
          DATA TYPE D,
          ORA TYPE T,
    END OF RECTEST.
    DATA: BEGIN OF RECTOT,
          TPREC(1) VALUE '2',
          TOT(9),
    END OF RECTOT.
    OPEN DATASET FILE FOR INPUT IN TEXT MODE.
    READ DATASET FILE INTO RECTEST.
    WRITE:/ 'Tabella..:',RECTEST-NOMETAB.
    WRITE:/ 'Utente...:',RECTEST-UTENTE.
    WRITE:/ 'Data.....:',RECTEST-DATA,RECTEST-ORA.
    IF TEST = 'X'.
        APPEND 'PROGRAM SUBPOOL.'  TO CODE.
       CONCATENATE 'TABLES ' RECTEST-NOMETAB '.'
       INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      APPEND 'FORM DYN1 USING FILE.' TO CODE.
      APPEND 'DATA W_COUNT TYPE P.' TO CODE.
      CONCATENATE 'SELECT * FROM' RECTEST-NOMETAB '.'
      INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      CONCATENATE 'DELETE' RECTEST-NOMETAB '.'
      INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      APPEND 'ENDSELECT.' TO CODE.
      APPEND ' DO.' TO CODE.
      CONCATENATE 'READ DATASET FILE INTO' RECTEST-NOMETAB '.'
      INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      APPEND ' IF SY-SUBRC NE 0.' TO CODE.
      APPEND ' EXIT.' TO CODE.
      APPEND ' ENDIF.' TO CODE.
      CONCATENATE ' INSERT ' RECTEST-NOMETAB '.'
      INTO W_CODE SEPARATED BY SPACE.
      APPEND W_CODE TO CODE.
      APPEND 'ADD 1 TO W_COUNT.' TO CODE.
      APPEND 'ENDDO.' TO CODE.
      APPEND ' write: / ''Importati'' ,W_COUNT, ''records''.' TO CODE.
      APPEND 'ENDFORM.' TO CODE.
      GENERATE SUBROUTINE POOL CODE NAME PROG
      MESSAGE MSG LINE LIN WORD WRD OFFSET OFF.
      IF SY-SUBRC <> 0.
         WRITE: / 'Error during generation in line', LIN,
         / MSG,
         / 'Word:', WRD, 'at offset', OFF.
      ELSE.
         PERFORM DYN1 IN PROGRAM (PROG) USING FILE.
      ENDIF.
    ENDIF.
    Edited by: robcom69 on Feb 23, 2010 2:35 PM

  • How to get emp and dept tables of scott schema if they acdientally deleted

    Hii I accedentally modifiled emp and dept tables in scott schema.... Can you please tell how to recreate fresh emp and dept tables ? is there any way to get emp and dept tables? please help regarding this

    If you are on Oracle 10g version...
    The demo tableds under scott schema can be created using oracle supplied script.
    http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
    Alternatively, this script exists in $ORACLE_HOME/sqlplus/demo directory.
    vr,
    Sudhakar B.

  • Execute query in background and write it's content in transparent table

    Hi,
    Is there an easy way to execute one query in background and write it's content in transparent table?
    Thanks,

    Hello,
    Yes you can do this in so mamy ways...
    GOTO RSCRM_REPORT -> select your query -> click on the extract button and set the parameters...table or file Execute.
    Create an APD in RSANWB select your query and you can store the result in ODS table...cube...
    Create a reporting agent and store the result.
    Regards,
    Pavan.

  • How to Use and Filter Table contents after execution of Bapi

    Can anybody guide me how to Use and Filter the table Contents which i got after successful execution of a Bapi
    I used Component Controller in my Project
    Ex: My table contains Redundant data for a single column but i want to display the column contents with out Redundancy
    Name
    Raghu
    Raghu
    Raghu
    Debasish
    Debasish
    I want to filter the table contents and i want to display the table with out Redundancy
    and Even when i am using a Dropdown i selected a Column  from a Table as the values for that Dropdown  but that table is having redundant data and the same data is getting displayed in that Dropdown i want the Dropdown to display data with out redundancy
    Thanks

    I also got that problem recently and after debuging for a while I figured out, that it was resulting from an error in my table's model: When the model received new items to display I
    1.) Fired an delete event for the old items
    2.) Fired an insert event for the new items
    Problem was that when firing the delete event I didn't already assigned the new items to the model. Therefore it had still the old row count.
    Maybe you have also a faulty table model?...

  • Upload excel file and display content in sapui5 table

    hi:all
       how to upload  excel files and display its contents in the view of sapui5  table ,then  'create ' these data into the abap database using odataservice.
         Do you have any solutions ? I appreciate for your help.

    Two possible way come to mind.
    1. ADF DI (desktop integration): sorry, don't know enough about it to give a how to :-(
    2. POI (http://poi.apache.org/) : open source project to read and write excel file with java. Using POI you can open the .xsl file, read it's contents and display it as af:table. For this you need to read the xsl into a data structure (this can be a temporary db table or a list of POJOs) and build a data control out of it. This you can drop on a page as table.
    Timo
    Edited by: Timo Hahn on 15.02.2010 13:59

Maybe you are looking for

  • How to Deploy a web Application

    Can Any one tell me the right procedure to Deploy A web Application on the server. I have made the application using Html,Servlets,JSP,Java beans,web.xml now I have lots of html,java class file At this moment I have put all the classes file in \WEB-I

  • How do you layer buttons/fields in forms

    I am using Adobe Pro 9 and need to layer some buttons.  I know how to size and ailign but I don't see where to layer them.

  • Reference a function in a different schema over a database link?

    I have a database link, DBL, that connects with user GENE/***. I want to select columns from table BOOKS in schema JOE using function UNIFIX, which is defined in schema BRAD. Can I do it? I can select without the function: SELECT TITLE FROM JOE.BOOKS

  • Macbook Air and Keynote performance

    I'm very happy with my Macbook Air so far (except for the trackpad button that seems to be unresponsive at times). BUT. I chose the Air to use it for Keynote presentations. I'm a little bit upset to see that some Keynote effects that I like such as c

  • How to use diskpart to format a drive to GPT

    Booting and partitioning of GPT for Windows 8:   1.Boot from the Windows 8 install media (You must initiate this boot from a device labeled as a UEFI device, or the installation of Windows 8 will produce an error that the OS cannot be installed to a