Need Information on C$SYNC_HIS_PUB_ITEMS table.

Hi,
I would really appreciate if anyone can share any information on C$SYNC_HIS_PUB_ITEMS table.
1) What kind of information is stored in C$SYNC_HIS_PUB_ITEMS table.
2)Is there any underlying API that uses this table ?
3)Is there any way to Purge the data from this C$SYNC_HIS_PUB_ITEMS table.
any information on this would be a great help.
Thanks,
Praveen

Check this
MFS JTM Concurrent Program: Performance Issues When Run With The Parameter 'Purge' (Doc ID 985252.1)
regards
Pravin

Similar Messages

  • Need Information On R12 Error tables.

    Hi Friends,
    I need information on R12 Error Tables and Staging Error tables. Can you please send me any documention on this.
    Little bit urgent.
    Thanks

    Thanks for you Reply.
    Actually i am new to Apps. I am a OBIEE Developer. Here i will tell you the process. From Flat files to Staging area they are Loading the Data using some Scripts. After that they are using some concurrent programes for clensing the data and load them in to the Interface Tables. Then Those tables are loaded in to the Main oracle Tables.
    Mean while when they loading the data from staging to Interface they clensing the data. If Any errors occur they are moving those tables into some Built in Tables like (MTL_Interface_Errors). This is the process.
    And i don't know how to find the error tables..
    Thanks.
    Edited by: 806756 on Nov 9, 2011 1:34 AM

  • Need information on Dynamic internal table

    Hi All,
    I need some information on dynamic internal table.
    I want what are the field names and the values in dynamic internal table.
    Is there any function module, which tells us the field names and values of corresponding fields from a dynamic internal table ?
    Thank you very much in advance.

    Hi,
    Program to display/edit database tables dynamically.
    REPORT  zdyn_table_display.
    PARAMETERS: p_table TYPE tabname OBLIGATORY,
                p_rows  TYPE I.
    * Creation of dynamic internal table
    DATA: lv_dref             TYPE REF TO data.
    FIELD-SYMBOLS: <fs_table> TYPE STANDARD TABLE.
    DATA: lv_table  TYPE  string.
    START-OF-SELECTION.
    * Dynamic internal table.
      CREATE DATA lv_dref       TYPE TABLE OF (p_table).
      ASSIGN lv_dref->* TO <fs_table>.
      IF sy-subrc  EQ 0.
    *    EXIT.
      ENDIF.
    data i type i.
    * Get the data
      SELECT  *
            FROM (p_table)
            UP TO p_rows ROWS
            INTO TABLE <fs_table>.
      CONCATENATE 'Table contents : ' p_table INTO lv_table.
    * display the table control.
      CALL FUNCTION 'STC1_FULLSCREEN_TABLE_CONTROL'
        EXPORTING
          header            = lv_table
          tabname           = p_table
          no_button         = space
        TABLES
          table             = <fs_table>
        EXCEPTIONS
          no_more_tables    = 1
          too_many_fields   = 2
          nametab_not_valid = 3
          handle_not_valid  = 4
          OTHERS            = 5.
      IF sy-subrc  EQ 0.
        EXIT.
      ENDIF.
    Getting internal table definition 
    Try this...
    DATA : l_descr_ref TYPE REF TO cl_abap_structdescr.
    l_descr_ref ?= cl_abap_typedescr=>describe_by_data( itab ).
    Now l_descr_ref->components holds the entire list of fields in itab.
    Thanks & Regards,
    ShreeMohan

  • Need information on accessing database tables in small incremental chunks

    I've been building up a database of information for sometime now. I want to start moving some of the information from the database into other formats.
    The table is quite large and I want to use cached row sets with it rather than hold the connection to the database. So I want to learn what the best way would be to grab, for instance, the first 50 items in a cached row set, once they're complete, move onto the next 50 and so on.
    However I am fairly new at using Java to interact with databases. I'm not sure what the best way to go about this would be or if I'm even going down the right path by using cached row sets.
    Could anyone recommend some decent sites for achieving this or even good web sites for general database manipulation with Java?

    ToadWarrior wrote:
    I've been building up a database of information for sometime now. I want to start moving some of the information from the database into other formats.
    The table is quite large and I want to use cached row sets with it rather than hold the connection to the database. So I want to learn what the best way would be to grab, for instance, the first 50 items in a cached row set, once they're complete, move onto the next 50 and so on.
    However I am fairly new at using Java to interact with databases. I'm not sure what the best way to go about this would be or if I'm even going down the right path by using cached row sets.
    Could anyone recommend some decent sites for achieving this or even good web sites for general database manipulation with Java?I am working on a data mining project and I have been dealing with storing large data sets in to a data model, and then arrange those data sets in different formats. If you can live without the cached row set, I would recommend define methods of ResultsSet type and use that to retrieve data from the database and store it in csv file. In my data mining project I was dealing with 3.5+million large data set, chomp them into different chunks of data sets.
    Since you have mention that you want to import these data into other formats, I would recommend this option since CSV files can be used in any kind of software applications with out minimum effort.
    I am currently hosting the project on Google Code so let me know if you like to take a look at it.
    Good Luck,
    Anuradha Uduwage

  • Need info on Staging Error Tables ( Please Very urgent)

    Hi Friends,
    I am new to ERP. I need Information on Staging Error Tables in ERP. Please Let me know if anybody have an idea on this.
    Thanks

    I am new to ERP. I need Information on Staging Error Tables in ERP. Please Let me know if anybody have an idea on this.https://forums.oracle.com/forums/search.jspa?threadID=&q=Staging+AND+Tables&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How do I count specific, smaller groups of information in one large table?

    Hello all,
    I have a feeling the answer to this is right under my nose, but somehow, it is evading me.
    I would like to be able to count how many photos are in any specific gallery. Why? Well, on my TOC page, I thought it would be cool to show  the user how many photos were in any given gallery displayed on the screen as part of all the gallery data I'm presenting. It's not necessary, but I believe it adds a nice touch. My  thought was to have one massive table containing all the photo information and another massive table containing the gallery  information, and currently I do. I can pull various gallery information  based on user selections, but accurately counting the correct number of  images per gallery is evading me.
    In my DB, I have the table, 'galleries', which has several columns, but the two most relevant are g_id and g_spe. g_id is the primary key and is an AI column that represents also the gallery 'serial' number. g_spec is a value that will have one of 11 different values in it (not relevant for this topic.)
    Additionally, there is the table, 'photos', and in this table are three columns:  p_id, g_id and p_fname. p_id is the primary key, g_id is the foreign key (primary key of the 'galleries' table) and p_fname contains the filename of each photo in my ever-expanding gallery.
    Here's the abbreviated contents of the galleries table showing only the first 2 columns:
    (`g_id`, `g_spec`, etc...)
    (1, 11, etc...),
    (2, 11, etc...),
    (3, 11, etc...),
    (4, 11, etc...),
    (5, 12, etc...),
    (6, 13, etc...)
    Here's the contents of my photos table so far, populated with test images:
    (`p_id`, `g_id`, `p_fname`)
    (1, 1, '1_DSC1155.jpg'),
    (2, 1, '1_DSC1199.jpg'),
    (3, 1, '1_DSC1243.jpg'),
    (4, 1, '1_DSC1332.jpg'),
    (5, 1, '1_DSC1381.jpg'),
    (6, 1, '1_DSC1421.jpg'),
    (7, 1, '1_DSC2097.jpg'),
    (8, 1, '1_DSC2158a.jpg'),
    (9, 1, '1_DSC2204a.jpg'),
    (10, 1, '1_DSC2416.jpg'),
    (11, 1, '1_DSC2639.jpg'),
    (12, 1, '1_DSC3768.jpg'),
    (13, 1, '1_DSC3809.jpg'),
    (14, 1, '1_DSC4226.jpg'),
    (15, 1, '1_DSC4257.jpg'),
    (16, 1, '1_DSC4525.jpg'),
    (17, 1, '1_DSC4549.jpg'),
    (18, 2, '2_DSC1155.jpg'),
    (19, 2, '2_DSC1199.jpg'),
    (20, 2, '2_DSC1243.jpg'),
    (21, 2, '2_DSC1332.jpg'),
    (22, 2, '2_DSC1381.jpg'),
    (23, 2, '2_DSC1421.jpg'),
    (24, 2, '2_DSC2097.jpg'),
    (25, 2, '2_DSC2158a.jpg'),
    (26, 2, '2_DSC2204a.jpg'),
    (27, 2, '2_DSC2416.jpg'),
    (28, 2, '2_DSC2639.jpg'),
    (29, 2, '2_DSC3768.jpg'),
    (30, 2, '2_DSC3809.jpg'),
    (31, 2, '2_DSC4226.jpg'),
    (32, 2, '2_DSC4257.jpg'),
    (33, 2, '2_DSC4525.jpg'),
    (34, 2, '2_DSC4549.jpg'),
    (35, 3, '3_DSC1155.jpg'),
    (36, 3, '3_DSC1199.jpg'),
    (37, 3, '3_DSC1243.jpg'),
    (38, 3, '3_DSC1332.jpg'),
    (39, 3, '3_DSC1381.jpg'),
    (40, 3, '3_DSC1421.jpg'),
    (41, 3, '3_DSC2097.jpg'),
    (42, 3, '3_DSC2158a.jpg'),
    (43, 3, '3_DSC2204a.jpg'),
    (44, 3, '3_DSC2416.jpg'),
    (45, 3, '3_DSC2639.jpg'),
    (46, 3, '3_DSC3768.jpg'),
    (47, 3, '3_DSC3809.jpg'),
    (48, 3, '3_DSC4226.jpg'),
    (49, 3, '3_DSC4257.jpg'),
    (50, 3, '3_DSC4525.jpg'),
    (51, 3, '3_DSC4549.jpg');
    For now, each gallery has 17 images which was just some random number I chose.
    I need to be able to write a query that says, tell me how many photos are in a specific photoset (in the photos table) based on the number in galleries.g_id  and photos.g_id being equal.
    As you see in the photos table, the p_id column is an AI column (call it photo serial numbers), and the g_id column assigns each specific photo to a specific gallery number that is equal to some gallery ID in the galleries.g_id table. SPECIFICALLY, for example I would want to have the query count the number of rows in the photos table whose g_id = 2 when referenced to g_id = 2 in the galleries table.
    I have been messing with different DISTINCT and COUNT methods, but all seem to be limited to working with just one table, and here, I need to reference two tables to acheive my result.
    Would this be better if each gallery had its own table?
    It should be so bloody simple, but it's just not clear.
    Please let me know if I have left out any key information, and thank you all in advance for your kind and generous help.
    Sincerely,
    wordman

    bregent,
    I got it!
    Here's the deal: the query that picks the subset of records:
    $conn = dbConnect('query');
    $sql = "SELECT *
            FROM galleries
            WHERE g_spec = '$spec%'
            ORDER BY g_id DESC
            LIMIT $startRow,".SHOWMAX;
    $result = $conn->query($sql) or die(mysqli_error());
    $galSpec = $result->fetch_assoc();
    picks 3 at a time, and with each record is an individual gallery number (g_id). So, I went down into my code where a do...while loop runs through the data, displaying the info for each subset of records and I added another query:
    $conn = dbConnect('query');
    $getTotal = "SELECT COUNT(*)
                FROM photos
                WHERE g_id = {$galSpec['g_id']}
                GROUP BY g_id";
    $total = $conn->query($getTotal);
    $row = $total->fetch_row();
    $totalPix = $row[0];
    which uses the value in $galSpec['g_id']. I didn't know the proper syntax for including it, but when I tried the curly braces, it worked. I altered the number of photos in each gallery in the photos table so that each total is different, and the results display perfectly.
    And as you can see, I used some of the code you suggested in the second query and all is well.
    Again, thank you so much for being patient and lending me your advice and assistance!
    Sincerely,
    wordman

  • How do I pull information from a master table to another table?

    This may be quite simple, but I'm missing something.  I want to pull information from my master table into a secondary table.  In the Master Table in Column A, I have a list of teams ("Team 1" through "Team 12"), then in Columns B through D I have information for each assignment given to each team.  I want to have a secondary table for each team that lists all of their assignments.  So, this is what I want:   if Column A says 'Team 1', then I want the secondary table to have the info from Columns B through D.
    Again, I'm sure it's simple, but I just can't figure it out.
    Thanks for any help.
    Mark

    Hi Mark,
    1)  But does this work if in the Master Table (which will be over 300 rows long) each team will show up 10-15 times over the course of the 300 rows randomly (hence the need to have sub-tables for each team...so it's easier for them to see what their tasks are).
    Your fellow Numbers enthusiasts in this forum will need more information to help you with that. You are on the right track though with the idea of many tables. Therein lies the power of Numbers.
    2)  I'm a bit confused by the formula.  With the "$A2" do I select the first column in the Master Table?  And can you break down the second part of the formula?  The "$A$2:$D$4,2,0"  Why would you have A2 and D4 in the same formula?  They are not in the same row.  And what's the 2,0 at the end?
    Breaking this question down:
    With the "$A2" do I select the first column in the Master Table? 
    No. The $ keeps the reference to Column A absolute (it won't change to B then C as you Fill Right in the Team Task Table.
    And can you break down the second part of the formula?  The "$A$2:$D$4,2,0"  Why would you have A2 and D4 in the same formula?  They are not in the same row.
    $A$2:$D$4 is the range of cells (a rectangle) where VLOOKUP will search (in my example) but not in your 300 row table!
    And what's the 2,0 at the end?
    The syntax of VLOOKUP is VLOOKUP(search-for, columns-range, return-column, close-match)
    The 2,0 at the end means "return column" is 2 (the second column of the range) and 0 means "Exact Match" - it won't find a close match. After Fill Right you will need to edit the formula in each Column to change "return column" to 3, then 4, then ...
    With a table selected, click on the Function Button in the Toolbar and choose Function Browser. I find that much more useful than the Help Menu. However (there is always a however in life) the Help Menu will show Numbers User Guide, and Formulas and Functions Help. Download them and read at your leisure. The first four chapters of the User Guide are well worth a read. Use other chapters as a reference when you need them.
    Regards,
    Ian.

  • ERROR:  cannot find information from the FND_FORM_FUNCTIONS table

    Hi,
    I am in CU2, i have created my project, set the right responsibility in Project property panel of my Jdeveveoper.
    When i run the first page all is ok, but if i click on a h-grid link , i receive the following error:
    "Your system has not been properly set up. The system cannot find information from the FND_FORM_FUNCTIONS table which is needed for this process. Please consult your System Administrator for further assistance."
    This happens only if i launch the custom from jdeveloper. On the Applications, the custom works fine.
    Any idea about the error?
    Thanks in advance,
    Carlo

    Please check the calling logic which is written to invoke the custom form from the existing form.

  • External services po for resources need information till ML81N, MIRO etc.

    hi all,
    Looking for external services po for resources need information till ML81N, MIRO.
    Even  HR personnal number PA 30, CAT2, CATM  required for smooth flow.
    Internally for this HR tcodes WBS element Activity number is also involved.
    Thanks in advance for mm dudes for replys.
    Regards,
    Parameshwar.

    Hi,
    I hope as per your requirement , you have to develop some custom (Z) report or using SAP query. All the requested data are available in Std.SAP tables, you have to fetch it as per your requirement.
    You can check the std.report - ME2S for planned/actual Comparison
    Thanks & Regards,

  • Need Information About Java Platform Overview For Manager (WJTB-310)

    Hi, My name is Jeffry. I need information about Java Platform Overview For Manager (WJTB-310).
    I need Information about table of contents, how long it takes to study that training (approximately), how many chapters are in that training, minimum Internet connection speed to access that training, and everything you know about WJTB-310.
    Is there a synchronized audio in WJTB-310 ?
    Is there a video streaming in WJTB-310 ?
    Can I receive a certificate for any web-based training ? especially in WJTB-310 ?
    Is there a programming language material in WJTB-310 or just an overview ?
    Sorry for asking to many question
    Thanks
    Jeffry Kristianto Yanuar

    I thought I'd give you a response even if I can't answer your question completely. (I think we ought to start a separate thread entitled "How do you get any replies on this forum???") Here is what I have been forced to do. I introduced some JavaScript on the web page that contains the applet I want to be run. The sole purpose of the JavaScript is to detect which platform the client is on. If it's not MacIntosh, then I have JavaScript write the <object><embed> tag used by the Java plug-in. It it is MachIntosh, then I have JavaScript write the regular <applet> tag and let the Mac browsers do as best they can. With mixed and disappointing results. Netscape 6.2 crashes with a lot of applets. IE 5 brings up the applet okay but certain Swing components aren't displaying properly. The MacIntosh I've been testing on is version 9.1. I'm trying OS X tomorrow.
    Why don't you send a reply to my query under the Java Plug-in Forum--from aronsz, dated 06/11/02--if you have some more info by now. I sure would appreciate it.

  • Needed information on lock objects

    needed information regarding lock objects

    hi
    The lock mode controls whether several users can access data records at the same time. The
    lock mode can be assigned separately for each table in the lock object. When the lock is set, the
    corresponding lock entry is stored in the lock table of the system for each table.
    Access by more than one user can be synchronized in the following ways:
    <b> Exclusive lock</b>: The locked data can only be displayed or edited by a single user. A
    request for another exclusive lock or for a shared lock is rejected.
      <b>Shared lock</b>: More than one user can access the locked data at the same time in display
    mode. A request for another shared lock is accepted, even if it comes from another user.
    An exclusive lock is rejected.
      <b>Exclusive but not cumulative</b>: Exclusive locks can be requested several times from the
    same transaction and are processed successively. In contrast, exclusive but not
    cumulative locks can be called only once from the same transaction. All other lock
    requests are rejected.
    regards
    Nagesh.Paruchuri

  • Having trouble adding information to a join table

    I am building a Proof-of-concept HR application in Apex using the hosted site and having trouble entering information into a join table. There are three tables in my schema: Applicants, Postings, and ApplPostings
    "Applicants" fields: Applicant_ID (PK), Name, Address, City, State, Zip, Phone, Email
    "Postings" fields: Posting_ID(PK), Posting_Number, Item_Number, Posting_Date, Title, Description
    "ApplPostings" fields: Appp_ID (PK), Apply_Date, appl_appl_id (FK), post_post_id (FK)
    I have 5 pages in my application
    1. A Report that shows all Applicants
    2. A Form that shows Applicant details and allows editing
    Contains 3 regions: Applicant Detail, Associated Postings, Available Postings
    3. A Report that shows all Postings
    4. A Form that shows Posting details and allows editing
    5. A Form that allows creating an entry in ApplPostings
    On page #2 (from the list above, it's p3 in my app), the "Associated Postings" region shows data from the Postings table for selected applicant per the ApplPostings table. This is the SQL:
    select jp.posting_number,
    jp.posting_date, jp.title
    from applicants ja,
    applpostings jap,
    postings jp
    where ja.applicant_id = jap.appl_appl_id
    and jp.posting_id = jap.post_post_id
    and ja.applicant_id = (:p3_applicant_ID)
    The "Available Postings" region uses this SQL to show information on the remaining postings:
    select jp2.posting_id, jp2.posting_number, jp2.posting_date, jp2.title
    from postings jp2 where JP2.POSTING_ID
    not in
    (select jp.posting_id
    from applicants ja,
    applpostings jap,
    postings jp
    where ja.applicant_id = jap.appl_appl_id
    and jp.posting_id = jap.post_post_id
    and ja.applicant_id = :p3_applicant_id )
    The Posting ID column in "Available Postings" is set up as link to page #5 (from list above, p7 in my app)
    This page shows three fields: Apply_Date, appl_appl_id, post_post_id
    Source information for appl_appl_id:
    Source used: Always
    Source type: Item
    Source value or expression: p3_applicant_id
    Source information for post_post_id:
    Source used: Always
    Source type: Item
    Source value or expression: p3_posting_id
    Both ID fields populate with inherited values correctly.
    The problem is when I try to use the Apex generated "Apply Changes" button
    Nothing happens, there is not data added to that table.
    I get the "Action Processed" message, but the row is not created in the ApplPostings table.
    Any suggestions on what to do next will be helpful.
    Thanks,
    Jody
    Edited by: user10651585 on Dec 31, 2008 9:41 AM

    Hi,
    On the form, any items that represent database columns must use "Database Column" as the Source Type and the column names as the Source Value or Expression. The "Fetch Row..." and "Process Row..." processes refer to these to determine where to write the data. So your first step is to change the two page items to use these settings. Without these settings, there is nothing to write into the table - the "Action performed" message will be displayed because there is no SQL error.
    Now, on your report, your link should pass in the two values needed. In the Column Link settings for the column you are linking on, you have three pairs of fields headed Item 1, Item 2 and Item 3. Each item has a Name and Value setting. Into the Name setting enter in the page 7 item names. Into the corresponding Value setting enter in the column names that contain the values these items need to receive, surrounded by # symbols (for example, #POSTING_ID#).
    Then, when you click on the item in the report, you are passed to page 7 and the fields are correctly populated. As the form correctly identifies these fields as database columns, when you click Apply Changes, the insert can take place.
    Andy

  • Change search results tile with information from just client table...

    Hello all,
    I am quite new in MSA development area. Could you please answer one specific question?
    I would like to enchance search results tile. I want to add two additional columns, but with information from ONLYclient table. For exapmle table Zclient. I would like to store this table only in IDES DB on laptop and not transfer it to CRM server.
    This table Zclient will have relation to other information which is now in search result tile.
    Is it possible to create BDoc with combination of data...from server and only from client DB?
    And could you please provide me some cookbook for enchacing Mobile application?
    Thanks a lot!!
    Best regards,
    Vera

    Hi Vera,
    What you want to accomplish is possible. Santosh is correct, you have to create your Zclient (CDB table) and query Z_BDOC on CRM server. Then, generate this Zlcient table and new Z_BDOC with a Client Console on the laptop, and that will create CDB table in your ides db and update tps file with new Z_BDOC.
    Then, in MAS, create a Business Query, with relation to new Z_BDOC. Generate that BQuery. Model your tile, so that it's using your new Business Query. You may need to do some coding as well.
    P.S. Cince data from this table won't be replicated to CRM, you still need to initially populate that table on every client ( sql query ? ).
    Let me know if you have any questions or need help.
    Regards,
    Vadim.

  • Please I need some help with a table

    Hi All
    I need some help with a table.
    My table needs to hold prices that the user can update.
    Also has a total of the column.
    my question is if the user adds in a new price how can i pick up the value they have just entered and then add it to the total which will be the last row in the table?
    I have a loop that gets all the values of the column, so I can get the total but it is when the user adds in a new value that I need some help with.
    I have tried using but as I need to set the toal with something like total
        totalTable.setValueAt(total, totalTable.getRowCount()-1,1); I end up with an infinite loop.
    Can any one please advise on some way I can get this to work ?
    Thanks for reading
    Craig

    Hi there camickr
    thanks for the help the other day
    this is my full code....
    package printing;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import javax.swing.*;
    import javax.swing.table.*;
    import java.text.DecimalFormat;
    public class tablePanel
        extends JDialog  implements Printable {
      BorderLayout borderLayout1 = new BorderLayout();
      private boolean printing = false;
      private Dialog1 dialog;
      JPanel jPanel = new JPanel();
      JTable table;
      JScrollPane scrollPane1 = new JScrollPane();
      DefaultTableModel model;
      private String[] columnNames = {
      private Object[][] data;
      private String selectTotal;
      private double total;
      public tablePanel(Dialog1 dp) {
        dp = dialog;
        try {
          jbInit();
        catch (Exception exception) {
          exception.printStackTrace();
      public tablePanel() {
        try {
          jbInit();
        catch (Exception exception) {
          exception.printStackTrace();
      private void jbInit() throws Exception {
        jPanel.setLayout(borderLayout1);
        scrollPane1.setBounds(new Rectangle(260, 168, 0, 0));
        this.add(jPanel);
        jPanel.add(scrollPane1, java.awt.BorderLayout.CENTER);
        scrollPane1.getViewport().add(table);
        jPanel.setOpaque(true);
        newTable();
        addToModel();
        addRows();
        setTotal();
    public static void main(String[] args) {
      tablePanel tablePanel = new  tablePanel();
      tablePanel.pack();
      tablePanel.setVisible(true);
    public void setTotal() {
      total = 0;
      int i = table.getRowCount();
      for (i = 0; i < table.getRowCount(); i++) {
        String name = (String) table.getValueAt(i, 1);
        if (!"".equals(name)) {
          if (i != table.getRowCount() - 1) {
            double dt = Double.parseDouble(name);
            total = total + dt;
      String str = Double.toString(total);
      table.setValueAt(str, table.getRowCount() - 1, 1);
      super.repaint();
      public void newTable() {
        model = new DefaultTableModel(data, columnNames) {
        table = new JTable() {
          public Component prepareRenderer(TableCellRenderer renderer,
                                           int row, int col) {
            Component c = super.prepareRenderer(renderer, row, col);
            if (printing) {
              c.setBackground(getBackground());
            else {
              if (row % 2 == 1 && !isCellSelected(row, col)) {
                c.setBackground(getBackground());
              else {
                c.setBackground(new Color(227, 239, 250));
              if (isCellSelected(row, col)) {
                c.setBackground(new Color(190, 220, 250));
            return c;
        table.addMouseListener(new MouseAdapter() {
          public void mouseClicked(MouseEvent e) {
            if (e.getClickCount() == 2) {
            if (e.getClickCount() == 1) {
              if (table.getSelectedColumn() == 1) {
       table.setTableHeader(null);
        table.setModel(model);
        scrollPane1.getViewport().add(table);
        table.getColumnModel().getColumn(1).setCellRenderer(new TableRenderDollar());
      public void addToModel() {
        Object[] data = {
            "Price", "5800"};
        model.addRow(data);
      public void addRows() {
        int rows = 20;
        for (int i = 0; i < rows; i++) {
          Object[] data = {
          model.addRow(data);
      public void printOut() {
        PrinterJob pj = PrinterJob.getPrinterJob();
        pj.setPrintable(tablePanel.this);
        pj.printDialog();
        try {
          pj.print();
        catch (Exception PrintException) {}
      public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {
        Graphics2D g2 = (Graphics2D) g;
        g2.setColor(Color.black);
        int fontHeight = g2.getFontMetrics().getHeight();
        int fontDesent = g2.getFontMetrics().getDescent();
        //leave room for page number
        double pageHeight = pageFormat.getImageableHeight() - fontHeight;
        double pageWidth =  pageFormat.getImageableWidth();
        double tableWidth = (double) table.getColumnModel().getTotalColumnWidth();
        double scale = 1;
        if (tableWidth >= pageWidth) {
          scale = pageWidth / tableWidth;
        double headerHeightOnPage = 16.0;
        //double headerHeightOnPage = table.getTableHeader().getHeight() * scale;
        //System.out.println("this is the hedder heigth   " + headerHeightOnPage);
        double tableWidthOnPage = tableWidth * scale;
        double oneRowHeight = (table.getRowHeight() +  table.getRowMargin()) * scale;
        int numRowsOnAPage = (int) ( (pageHeight - headerHeightOnPage) / oneRowHeight);
        double pageHeightForTable = oneRowHeight *numRowsOnAPage;
        int totalNumPages = (int) Math.ceil( ( (double) table.getRowCount()) / numRowsOnAPage);
        if (pageIndex >= totalNumPages) {
          return NO_SUCH_PAGE;
        g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    //bottom center
        g2.drawString("Page: " + (pageIndex + 1 + " of " + totalNumPages),  (int) pageWidth / 2 - 35, (int) (pageHeight + fontHeight - fontDesent));
        g2.translate(0f, headerHeightOnPage);
        g2.translate(0f, -pageIndex * pageHeightForTable);
        //If this piece of the table is smaller
        //than the size available,
        //clip to the appropriate bounds.
        if (pageIndex + 1 == totalNumPages) {
          int lastRowPrinted =
              numRowsOnAPage * pageIndex;
          int numRowsLeft =
              table.getRowCount()
              - lastRowPrinted;
          g2.setClip(0,
                     (int) (pageHeightForTable * pageIndex),
                     (int) Math.ceil(tableWidthOnPage),
                     (int) Math.ceil(oneRowHeight *
                                     numRowsLeft));
        //else clip to the entire area available.
        else {
          g2.setClip(0,
                     (int) (pageHeightForTable * pageIndex),
                     (int) Math.ceil(tableWidthOnPage),
                     (int) Math.ceil(pageHeightForTable));
        g2.scale(scale, scale);
        printing = true;
        try {
        table.paint(g2);
        finally {
          printing = false;
        //tableView.paint(g2);
        g2.scale(1 / scale, 1 / scale);
        g2.translate(0f, pageIndex * pageHeightForTable);
        g2.translate(0f, -headerHeightOnPage);
        g2.setClip(0, 0,
                   (int) Math.ceil(tableWidthOnPage),
                   (int) Math.ceil(headerHeightOnPage));
        g2.scale(scale, scale);
        //table.getTableHeader().paint(g2);
        //paint header at top
        return Printable.PAGE_EXISTS;
    class TableRenderDollar extends DefaultTableCellRenderer{
        public Component getTableCellRendererComponent(
          JTable table,
          Object value,
          boolean isSelected,
          boolean isFocused,
          int row, int column) {
            setHorizontalAlignment(SwingConstants.RIGHT);
          Component component = super.getTableCellRendererComponent(
            table,
            value,
            isSelected,
            isFocused,
            row,
            column);
            if( value == null || value .equals("")){
              ( (JLabel) component).setText("");
            }else{
              double number = 0.0;
              number = new Double(value.toString()).doubleValue();
              DecimalFormat df = new DecimalFormat(",##0.00");
              ( (JLabel) component).setText(df.format(number));
          return component;
    }

  • Need some help with the Table Function Operator

    I'm on OWB 10gR2 for Sun/Solaris 10 going against some 10gR2 DB's...
    I've been searching up and down trying to figure out how to make OWB use a Table Function (TF) which will JOIN with another table; allowing a column of the joined table to be a parameter in to the TF. I can't seem to get it to work. I'm able to get this to work in regular SQL, though. Here's the setup:
    -- Source Table:
    DROP TABLE "ZZZ_ROOM_MASTER_EX";
    CREATE TABLE "ZZZ_ROOM_MASTER_EX"
    ( "ID" NUMBER(8,0),
    "ROOM_NUMBER" VARCHAR2(200),
    "FEATURES" VARCHAR2(4000)
    -- Example Data:
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (1,'Room 1',null);
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (2,'Room 2',null);
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (3,'Room 3','1,1;2,3;');
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (4,'Room 4','5,2;5,4;');
    Insert into ZZZ_ROOM_MASTER_EX (ID,ROOM_NUMBER,FEATURES) values (5,'Room 5',' ');
    -- Destination Table:
    DROP TABLE "ZZZ_ROOM_FEATURES_EX";
    CREATE TABLE "ZZZ_ROOM_FEATURES_EX"
    ( "ROOM_NUMBER" VARCHAR2(200),
    "FEATUREID" NUMBER(8,0),
    "QUANTITY" NUMBER(8,0)
    -- Types for output table:
    CREATE OR REPLACE TYPE FK_Row_EX AS OBJECT
    ID NUMBER(8,0),
    QUANTITY NUMBER(8,0)
    CREATE OR REPLACE TYPE FK_Table_EX AS TABLE OF FK_Row_EX;
    -- Package Dec:
    CREATE OR REPLACE
    PACKAGE ZZZ_SANDBOX_EX IS
    FUNCTION UNFK(inputString VARCHAR2) RETURN FK_Table_EX;
    END ZZZ_SANDBOX_EX;
    -- Package Body:
    CREATE OR REPLACE
    PACKAGE BODY ZZZ_SANDBOX_EX IS
    FUNCTION UNFK(inputString VARCHAR2) RETURN FK_Table_EX
    AS
    RETURN_VALUE FK_Table_EX := FK_Table_EX();
    i NUMBER(8,0) := 0;
    BEGIN
    -- TODO: Put some real code in here that will actually read the
    -- input string, parse it out, and put data in to RETURN_VALUE
    WHILE(i < 3) LOOP
    RETURN_VALUE.EXTEND;
    RETURN_VALUE(RETURN_VALUE.LAST) := FK_Row_EX(4, 5);
    i := i + 1;
    END LOOP;
    RETURN RETURN_VALUE;
    END UNFK;
    END ZZZ_SANDBOX_EX;
    I've got a source system built by lazy DBA's and app developers who decided to store foreign keys for many-to-many relationships as delimited structures in driving tables. I need to build a generic table function to parse this data and return it as an actual table. In my example code, I don't actually have the parsing part written yet (I need to see how many different formats the source system uses first) so I just threw in some stub code to generate a few rows of 4's and 5's to return.
    I can get the data from my source table to my destination table using the following SQL statement:
    -- from source table joined with table function
    INSERT INTO ZZZ_ROOM_FEATURES_EX(
    ROOM_NUMBER,
    FEATUREID,
    QUANTITY)
    SELECT
    ZZZ_ROOM_MASTER_EX.ROOM_NUMBER,
    UNFK.ID,
    UNFK.QUANTITY
    FROM
    ZZZ_ROOM_MASTER_EX,
    TABLE(ZZZ_SANDBOX_EX.UNFK(ZZZ_ROOM_MASTER_EX.FEATURES)) UNFK
    Now, the big question is--how do I do this from OWB? I've tried several different variations of my function and settings in OWB to see if I can build a single SELECT statement which joins a regular table with a table function--but none of them seem to work, I end up getting SQL generated that won't compile because it doesn't see the source table right:
    INSERT
    /*+ APPEND PARALLEL("ZZZ_ROOM_FEATURES_EX") */
    INTO
    "ZZZ_ROOM_FEATURES_EX"
    ("ROOM_NUMBER",
    "FEATUREID",
    "QUANTITY")
    (SELECT
    "ZZZ_ROOM_MASTER_EX"."ROOM_NUMBER" "ROOM_NUMBER",
    "INGRP2"."ID" "ID_1",
    "INGRP2"."QUANTITY" "QUANTITY"
    FROM
    (SELECT
    "UNFK"."ID" "ID",
    "UNFK"."QUANTITY" "QUANTITY"
    FROM
    TABLE ( "ZZZ_SANDBOX_EX"."UNFK2" ("ZZZ_ROOM_MASTER_EX"."FEATURES")) "UNFK") "INGRP2",
    "ZZZ_ROOM_MASTER_EX" "ZZZ_ROOM_MASTER_EX"
    As you can see, it's trying to create a sub-query in the FROM clause--causing it to just ask for "ZZZ_ROOM_MASTER_EX"."FEATURES" as an input--which isn't available because it's outside of the sub-query!
    Is this some kind of bug with the code generator or am I doing something seriously wrong here? Any help will be greatly appreciated!

    Hello Everybody!
    Thank you for all your response!
    I had changes this work area into Internal table and changed the select query. PLease let me know if this causes any performance issues?
    I had created a Z table with the following fields :
    ZADS :
    MANDT
    VKORG
    ABGRU.
    I had written a select query as below :
    I had removed the select single and insted of using the Structure it_rej, I had changed it into Internal table 
    select vkorg abgru from ZADS into it_rej.
    Earlier :
    IT_REJ is a Work area:
    DATA : BEGIN OF IT_REJ,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    Now :
    DATA : BEGIN OF IT_REJ occurs 0,
    VKORG TYPE VBAK-VKORG,
    ABGRU TYPE VBAP-ABGRU,
    END OF IT_REJ.
    I guess this will fix the issue correct?
    PLease suggest!
    Regards,
    Developer.

Maybe you are looking for

  • Error In WorkBook Bex Analyzer : Messages available

    Hello Experts, When i open a Workbook, I have this message in the status bar: "Messages available; double-click to display them" When I double click, I have a pop-up window with warning "there is a condition.., results row supress..." Our client don'

  • SCCP Transcoders and Conference doesn't register.

    Dear Friends, I having a strange issue, I have configured my 3945 GW with SCCP for Conferencing and Transcoding. Also on the CUCM Side, i have used the Cisco IOS Enhanced media termination Point for this setup but I see the transcoders are not gettin

  • InnerClass Code Question

    Hi, Just wondering if someone could explain the following: The following code generates the following output. 10 MyOuterClass$MyInnerClass 10 public class HelloWorld{      public static void main(String[] args) {           MyOuterClass outerClass = n

  • Only half my screens work - nouveau

    Hey all I am running arch with 6 screens (3 graphics cards). I have had my X working for ages but when I upgraded recently I now boot up/login and only have 3 of my screens working (one from each graphics card). General Background: I keep my /etc/ un

  • Missing Dependencies -- Newbie Question

    hello, i'm just getting started with the after effects sdk. some of the sample plug-ins are giving me the following error when i load aeps that already use them: "The following layer dependencies are missing: [plug-in name, e.g., Convolutrix]: Missin