Table reference

hello i have an isue with ADS. My problem is: i want to create a reference to my table (for example tables name is TAB1) which i am passing via report to PDF form. For example i want to increase index each time when "Top of next content Area" is triggered and i would like to retrieve TAB1[1], TAB[2] and so on, i want to do via FormCalc or Javascript is it possible. thanks in addition.

hello i have an isue with ADS. My problem is: i want to create a reference to my table (for example tables name is TAB1) which i am passing via report to PDF form. For example i want to increase index each time when "Top of next content Area" is triggered and i would like to retrieve TAB1[1], TAB[2] and so on, i want to do via FormCalc or Javascript is it possible. thanks in addition.

Similar Messages

  • How to get selection screen elements and its table reference of a report ?

    halo experts
    How can I get selection screen elements and its table reference of a report ? . I tried rs_refresh_from_select_options. But I am unable to get the table and field it is referring to
    For eg if my selection screen 1000 is
    parameters: p_carrid type spfli-carrid,
    select-options :s-_connid type sflight-connid.
    is there any Fm or method which gives me what are the screen elements( p_carrid and s_connid ) and what table( splfi and sflight ) and field ( carrid and conid )it is referring to ?

    The following code is an example of how you might dynamically determine all your PARAMETERS and SELECT-OPTIONS variables at run time.  The PARAMETERS and SELECT-OPTIONS only point to a dictionary element--not a specific table.  Even though you may say "spfli-carrid" or "sflight-connid", the data type really references the dictionary type and not a specific table/structure.
    REPORT  ZTEST_PROG.
    TABLES sflight.
    DATA:
           screen_tab TYPE STANDARD TABLE OF screen,
           wa_screen TYPE screen,
           scrn_nm TYPE string,
           scrn_leftover TYPE string,
           l_type TYPE REF TO cl_abap_typedescr,
           typ_nm TYPE string,
           typ_pre TYPE string.
    FIELD-SYMBOLS <fs_data> TYPE ANY.
    PARAMETERS p_carrid TYPE spfli-carrid.
    SELECT-OPTIONS s_connid FOR sflight-connid.
    INITIALIZATION.
      LOOP AT SCREEN.
        IF screen-group3 = 'PAR'
          OR screen-group3 = 'LOW'.
            APPEND screen TO screen_tab.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION.
      LOOP AT screen_tab INTO wa_screen.
        ASSIGN (wa_screen-name) TO <fs_data>.
        l_type = cl_abap_typedescr=>describe_by_data( <fs_data> ).
        IF wa_screen-group3 = 'LOW'.
          SPLIT wa_screen-name AT '-' INTO scrn_nm scrn_leftover.
          TRANSLATE scrn_nm TO UPPER CASE.
        ELSE.
          scrn_nm = wa_screen-name.
        ENDIF.
        SPLIT l_type->absolute_name AT '=' INTO typ_pre typ_nm.
        WRITE:
                 / 'Screen Name:  ', scrn_nm,
                 / 'DDIC Type:    ', typ_nm.
      ENDLOOP.
    When you get into defining internal tables you can determine those at run time with cl_abap_structdescr.  The following is an example of how you might do that.  You can loop through the "components_table" and evaluate each field of the structure in this way.
    DATA: structure_reference TYPE REF TO cl_abap_structdescr,
          components_table TYPE abap_compdescr_tab,
          components_structure LIKE LINE OF components_table.
    structure_reference ?= cl_abap_structdescr=>describe_by_data( any_structure ).
    components_table = structure_reference->components.
    I don't know if this answers any of your questions but I hope that some of it is useful.

  • FOREIGN KEY CONSTRAINT의 MASTER TABLE을 REFERENCE하는 TABLE 찾기

    제품 : SQL*PLUS
    작성날짜 : 2003-12-17
    FOREIGN KEY CONSTRAINT의 MASTER TABLE을 REFERENCE하는 TABLE 찾기
    ================================================================
    Master table 이 dept2일 때, 이 테이블을 참조하는 table들을 찾는 SQL
    select x.table_name "reference table"
    from
    (select distinct r_constraint_name,table_name
    from all_constraints
    where constraint_type='R' ) x, all_constraints a
    where a.table_name = 'DEPT2'
    and x.r_constraint_name = a.constraint_name;

  • JDeveloper Mapping Workbench - Create Table References?

    How can I create a Table Reference in JDeveloper's Mapping Workbench?
    For example, I have ITEM and ITEM_DETAILS tables. The DB does not have a FK defined from ITEM_DETAILS and ITEM. So I need to create the Toplink Table Reference myself.
    In the standalone Toplink Workbench I see how to do this.
    In JDeveloper 10.1.3.1 mapper UI I don't see how this is done.

    You can edit the offline DB objects stored in your JDeveloper project to add the FK constraints not on the database.
    If you also use these table definitions to re-generate the schema there is a check-box in the lower left of the FK panel that allows you to specify that a FK constraint is for offline purposes only. You can still select it in TopLink but it will not be re-generated onto the database.
    Doug

  • Problems setting "table reference" for TopLink relationships

    I'm trying to use TopLink to create Java objects over two tables that are linked in a many-to-many relationship. I followed the instructions on the 10g tutorial page (drag all three tables into a database diagram), then created a new field (of type Collection) in each of the tables that I'm joining. I then set them both to be many-to-many, and tried to configure the first one. On the general tab, I've set the 'Reference Descriptor' to point to the other table. I've set the 'Relation Table' to point to the associative entity, and disabled indirection.
    When I go to the 'Source Reference' tab, there's nothing in the 'Table Reference' dropdown, and there's no button to create anywhere I can find on that screen. From what I've found looking at old TopLink documentation online, there were new, add, and remove buttons off to the right on older versions of TopLink.
    What do I have to do in this version to create a table reference I can use for the join?
    If I run the 'mapping status report' for the object I'm working with (persons), I get the following:
    Mapping persons -> Table reference is invalid because of the target table chosen.
    Mapping persons -> No table reference is selected.
    Mapping persons -> No source reference is selected.
    Mapping persons -> No target reference is selected.
    I don't really know enough about TopLink to know if these error messages are pointing at something other than the fact that I can't get a table reference to show up or not.
    I'm using the JDeveloper 10g preview (build 1375).
    Thanks in advance for any ideas you might have,
    Jonathan

    I'm trying to use TopLink to create Java objects over two tables that are linked in a many-to-many relationship. I followed the instructions on the 10g tutorial page (drag all three tables into a database diagram), then created a new field (of type Collection) in each of the tables that I'm joining. I then set them both to be many-to-many, and tried to configure the first one. On the general tab, I've set the 'Reference Descriptor' to point to the other table. I've set the 'Relation Table' to point to the associative entity, and disabled indirection.
    When I go to the 'Source Reference' tab, there's nothing in the 'Table Reference' dropdown, and there's no button to create anywhere I can find on that screen. From what I've found looking at old TopLink documentation online, there were new, add, and remove buttons off to the right on older versions of TopLink.
    What do I have to do in this version to create a table reference I can use for the join?
    If I run the 'mapping status report' for the object I'm working with (persons), I get the following:
    Mapping persons -> Table reference is invalid because of the target table chosen.
    Mapping persons -> No table reference is selected.
    Mapping persons -> No source reference is selected.
    Mapping persons -> No target reference is selected.
    I don't really know enough about TopLink to know if these error messages are pointing at something other than the fact that I can't get a table reference to show up or not.
    I'm using the JDeveloper 10g preview (build 1375).
    Thanks in advance for any ideas you might have,
    Jonathan

  • Oracle TopLink 10g Introductory Tutorial: No Table Reference available

    Hi,
    I'm trying to work through the Oracle TopLink 10g Introductory Tutorial (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm).
    At the point 'Map the Java Classes: Create One-to-One Mappings' (http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_tutorial/index.htm) I'm not able to select a table reference because there is no one available.
    As result i get the following message after generating 'Mapping Status Report':
    TopLink Map 'tut01Map' -> One of the packages is incomplete.
    Package example.model -> One of the descriptors in this package is incomplete.
    Descriptor Employee -> Some mappings are incomplete.
    Mapping address -> No table reference is selected.
    Mapping address -> Table reference is invalid because of the target table chosen.
    Mapping version -> Mapping references write lock field stored in cache, but is not read-only.
    Mapping phoneNumbers -> No table reference is selected.
    Mapping phoneNumbers -> Table reference is invalid because of the target table chosen.
    Descriptor PhoneNumber -> Some mappings are incomplete.
    Descriptor PhoneNumber -> The following primary key fields are unmapped: EMP_ID
    Descriptor PhoneNumber -> The following primary key fields have no writable mappings: EMP_ID
    Mapping owner -> No table reference is selected.
    Mapping owner -> Table reference is invalid because of the target table chosen.
    End TopLink Map 'tut01Map'
    Did I make a mistake or is there a wrong configuration? Please help.
    I'm using:
    JDeveloper 10.1.3.2.0
    MySQL 5.0.33 with Connector/J 5.0.5
    Windows XP
    Thanks, TGau
    Message was edited by:
    TGau
    Update

    Yes I did. But my database storage engine is set to MyISAM which don't support foreign keys. So this 'error' results from database configuration (Info: InnoDB do support foreign keys).
    I'm wondering why the queries didn't throw any errors. So the foreign key/reference part was just skipped.
    Thank you very much, rsapir.
    PS:
    How can I configure configure 'application side' references/associations? It is described in the TopLink Developers Guide on site 34-10 ... but I have no Add/New Buttons?

  • TableChanged() does not work with parrent table reference

    Hi,
    I used this example http://www.javalobby.org/articles/jtable/ where the cells refocus after updating, but I have rewrote it to my needs and the program throws nullpointerexception when I update any cell:(
    here is the tableChanged part of code:
        public class InteractiveTableModelListener implements TableModelListener {
            public void tableChanged(TableModelEvent evt) {
                if (evt.getType() == TableModelEvent.UPDATE) {
                    int column = evt.getColumn();
                    int row = evt.getFirstRow();
                    System.out.println("updated row: " + row + " column: " + column);
                   if((column + 1) >= model.getRowCount()){
                      table.removeColumnSelectionInterval(column,column);
                    }else{
                      table.setColumnSelectionInterval(column + 1, column + 1);
                    table.setRowSelectionInterval(row,row);
    }the table reference worked in the exaple but doesnt work in my program:(
    here is the init of the table in function initComponent:
            tableModel.addTableModelListener(new InteractiveTableModelListener());
            TableSorter sorter = new TableSorter(tableModel);
            JTable table = new JTable(sorter);the class is on the same level as the function
    i have searched all the internet for this with no results:(
    thank you for your advice!

    Yes, you are right, I wrote this post in a hurry and exhaused, that it does not work.
    I'm trying to write out a data file (now only a vector of data) in a JTable and I want to edit the rows and after I submit text in a cell, I want the caret to move one cell right, so the user can write another text, just like in MS Excel. At the end of the row the caret disapears but does not create another row.
    And I have problems with variable JTable table in the inner class that contains method tableChanged().
    Well After making an example I realized it worked and then I checked the example line by line and found out that I declare another JTable with the same name in the table initializing method,
    Then the variable couldnt work in tableChanged method... It was empty...
    I used your example from thread, you advised me:
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    public class TableProcessing extends JFrame implements TableModelListener
         // here I declare the table
            protected JTable table;
         public TableProcessing()
              String[] columnNames = {"Item", "Quantity", "Price", "Cost"};
              Object[][] data =
                   {"Bread", new Integer(1), new Double(1.11), new Double(1.11)},
                   {"Milk", new Integer(1), new Double(2.22), new Double(2.22)},
                   {"Tea", new Integer(1), new Double(3.33), new Double(3.33)},
                   {"Cofee", new Integer(1), new Double(4.44), new Double(4.44)}
              DefaultTableModel model = new DefaultTableModel(data, columnNames);
              model.addTableModelListener( this );
                    // here I declare it again, which is a MISTAKE
              JTable table = new JTable( model )
                   //  Returning the Class of each column will allow different
                   //  renderers to be used based on Class
                   public Class getColumnClass(int column)
                        return getValueAt(0, column).getClass();
                   //  The Cost is not editable
                   public boolean isCellEditable(int row, int column)
                        int modelColumn = convertColumnIndexToModel( column );
                        return (modelColumn == 3) ? false : true;
              table.setPreferredScrollableViewportSize(table.getPreferredSize());
              JScrollPane scrollPane = new JScrollPane( table );
              getContentPane().add( scrollPane );
          *  The cost is recalculated whenever the quantity or price is changed
         public void tableChanged(TableModelEvent e)
              System.out.println(e.getSource());
              if (e.getType() == TableModelEvent.UPDATE)
                   int row = e.getFirstRow();
                   int column = e.getColumn();
                   if (column == 1 || column == 2)
                                   // AND here is not initialised - throws NullPointerException
                        TableModel model = table.getModel();
                        int     quantity = ((Integer)model.getValueAt(row, 1)).intValue();
                        double price = ((Double)model.getValueAt(row, 2)).doubleValue();
                        Double value = new Double(quantity * price);
                        model.setValueAt(value, row, 3);
         public static void main(String[] args)
              TableProcessing frame = new TableProcessing();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }

  • SQL error msg - The DELETE statement conflicted with the SAME TABLE REFERENCE constraint

    Executed as user: ****. The DELETE statement
    conflicted with the SAME TABLE REFERENCE constraint "FK_PARENT_TASK_REF".
    The conflict occurred in database "****", table "****", column
    'PARENT_TASK_ID'. [SQLSTATE 23000] (Error 547) The statement has been
    terminated. [SQLSTATE 01000] (Error 3621). The step failed.
    Does this error msg indicate the whole script failed to execute or was it just a single step/task that failed ?
    What does error msg mean ?
    Anyway to prevent this error msg and ensure script runs successfully

    Hi mdavidh,
    This error occurs because the record  'PARENT_TASK_ID' was referenced by 'FK_PARENT_TASK_REF'.
    Please refer below codes:
    CREATE TABLE MyTable (
    ID INT, primary key(ID), -- primary key
    ID_Parent INT foreign key(ID_Parent) references MyTable(ID), -- foreign key reference the same table
    insert into MyTable(ID,ID_Parent)
    values(0,0);
    insert into MyTable(ID,ID_Parent)
    values(1,0);
    insert into MyTable(ID,ID_Parent)
    values(2,0);
    insert into MyTable(ID,ID_Parent)
    values(3,1);
    insert into MyTable(ID,ID_Parent)
    values(4,3);
    insert into MyTable(ID,ID_Parent)
    values(5,4);
    CREATE TRIGGER MyTrigger
    on MyTable
    instead of delete
    as
    set nocount on
    update MyTable set ID_Parent = null where ID_Parent in (select ID from deleted)
    delete from MyTable where ID in (select ID from deleted)
    Now we could delete records.
    delete from MyTable where ID_Parent=0
    Thanks,
    Candy Zhou

  • Can a subquery hosted within a table reference that hosting table?

    I have a large table that tracks Orders and Deliveries ("OrderAssign"). The OrderID column has a dropdown with a query that references some other tables that cover order details, like when each Order is due.
    I'd like the dropdown query to only display order details for Orders that haven't been filled ("OrderAssign.Filled = 0"). The problem, I think, is that this would mean the query would reference the table that hosts it. Is this possible? I tried
    to set up a test case, and got a generic syntax error I've seen many times before when the syntax is correct, but I'm using a SQL structure that Access doesn't like. 
    This table is linked to SQL, so I could also write a SQL view or function if that makes a difference.
    I'm using Access 2010. Thanks!
    EDIT: Huh, so I figured out a way, I think. I created a SQL view that filtered the records the way I wanted; then used the Linked Table Manager to create a linked view; then used that linked view in my dropdown subquery.
    So I guess my follow up question to this is: is there any reason I SHOULDN'T do this? Will there be any issues with existing records in the table whose values will no longer show up in the constraining dropdown subquery?
    EDIT 2: And I think I found the deal breaker. The field doesn't display the first column with the "real" info, the ID#. It displays the second. Once you add a query that doesn't display every row in the table, that query no longer has results to
    display for the filtered records. So some of the records display the "real" info, which the users don't want to see, and the open records show the second field. Messy.
    hydrogonium

    I might not be using the right terminology. I have a lot of experience with SQL Server, relatively little with Access. I am doing this for a client who is used to entering data directly into the table, and wants minimal changes. However, the dropdown literally
    has thousands of entries, which could be pruned by ~80% if filled orders are filtered out.
    The table has "dropdown subqueries" (probably not the right term), which were created like so:
    - Go to the Design tab.
    - Click on the field you want to modify.
    - Go to the lookup tab.
    - Change the Display Control to 'Combo Box'
    - Change the Row Source to a query, in my case, 'SELECT * FROM LinkedSQLView'
    - Format the list as you want it displayed; in my case, the actual ID# is hidden in the first column, and the other ten columns are displayed.
    The fields in question are:
    - OrderRequestID (Number on Access / Int on SQL Server) - has a dropdown.
    - OrderFillID (Number on Access / Int on SQL Server) - has a dropdown.
    - OrderFilled (Yes/No on Access / Bit on SQL Server).
    Purpose / Background: This table is basically a clearinghouse for entities making orders and other entities filling them. My client sits in the middle and matches everything up. It can get very complicated, because different products qualify for different
    orders, and the amount supplied can be smaller or greater than an individual order.
    hydrogonium

  • Table Reference Global Variable

    Hi,
    Inorder to update a table in One VI from another VI, i need a Global Variable Reference of that Particular Table. How  shall i create it.
    Anybody please comment on this.
    regards,
    mfp.

    You can use LV2G,
    an example is attached, you may work on same lines.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.
    Attachments:
    Another VI.vi ‏16 KB
    LV2G.vi ‏11 KB
    Table owning VI.vi ‏13 KB

  • Link table/References table

    Hi folks, looking for some advice, I have the same product supplied by many suppliers the only difference is the price.
    I have a Products table and a Suppliers table was thinking of adding a link table. This will allow the products to have many suppliers i.e. I would only need to enter the products once into the database.
    The problem is each supplier charges a different price for the same product; do I need a price table linked to the SupplierProduct link table?
    Open to ideas
    Ps what is the difference between a Link table and Reference table, to me they are just the same thing?

    Take a look at the AdventureWorks example:
    BusinessEntityID is actually VendorID.
    SQL Server uses the junction table terminology for link (bridge, crossref) table.
    The "Reference" terminology: FOREIGN KEY reference, parent-child tables.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Main Tables reference querry

    Hi,
    I am working on a respositry having two main tables. My question is:
    If a repository has 2 main tables, with the 2nd being referred to by the 1st with a u201CLookup Mainu201D, if data changes in the 2nd main table,  does that flag the record(s) in the 1st main table as having been u201Cchangedu201D?
    So u2026if a syndication was set up off of the 1st main table, will a record from there get syndicated automatically (if the import server and port has been configured to import on any change in the record) if the Lookup Main reference changed?
    Regards,
    Indraveer

    Hey,
    Any changes in Lookup table will not trigger syndication in Main table since the main table only refers to the lookup table via a pointer. A record is syndicated if this pointer is changed , in case of Main table looking into Look-up table, pointer is not changed, only the record in lookup table is changed (pointer of the lookup table is changed ofcourse, so it will trigger syndication of lookup table).
    So in your case, the answer would be No.
    Alternative approach would be to use Java API for this, you can read the event of lookup table syndication and trigger main table record for it.
    We had a similar requirement and had to follow this path.
    Thanks
    Aamir

  • Sheet/Table references

    I have two Sheets with one Table in each sheet, let's say
    Sheet 1 name is "ALL"
    Table 1 name is "ALL"
    Sheet 2 name is "TOTALS"
    Table 2 name is "TOTALS"
    When I delete and refresh the data in the ALL Table
    the formulas in TOTAL Table all have invalid references.
    I am sure I'm missing something trivial.

    Make sure you select the cells of data, not the rows of data. Deleting rows is removing the row it was looking at, which changes the formula to #ref, forgetting the original reference. Deleting the cells of data only empties the cells, leaving the references in place, just looking at empty cells.
    Jason

  • Reference table / reference field for currency/quantity field in tables.

    Hello Sap Experts ,
    Am a newbie and not able to make head or tail of what reference table and reference fields are when related to currency / quantity fields.Someone if could explain to me with a small example it would be great.

    Hi,
    The currency and quantity field always require a reference table and field so that they can be entered in correct format.
    Whenever you use currency and quantity field while creating the table you need to provide their respective reference field and table.
    whenever you use currency and quantity in scripts or smart forms you again have to receive their value using variables referring to their reference table and reference field.
    hope it must have cleared some of your doubts.
    Thanks,
    Abhi

  • Using a variable instead of a table reference

    I have a table that contains a dblink name. I would like to have a procedure that reads the link into a variable and uses that link in select statements.
    So far, I cannot get this to work. Any ideas?

    Jamie, you would use dynamic SQL (either EXECUTE IMMEDIATE or DBMS_SQL) to handle any situation where you have to dynamically swap out table or column names in a statement. Here are a couple of examples using native dynamic SQL (NDS):
    open x for 'select * from t@' || p_dblink || ' where ...';
    execute immediate 'select name from t@' || p_dblink || ' where ...' into v_name;

Maybe you are looking for

  • Serial number repeating in GFM report

    serial numbers assigned to fleet object of a equipment. STO is linked with planned order. when we create a global fleet management report same serial numbers are repeated. it happened for only one day. previous days report and current reports are acc

  • How to create delivery for return sales order?

    Hello I'd like to create a delivery for a return sales order, I used transaction VL01N to do that, but error message said no delivery-relevant item in this order. Can transaction VL01N be used for this step? Nicole

  • F-30 Posting the difference amount a Customer account

    Hi Experts, I am a Technincal Person looking for answer on transaction F-30 (Post with clearing for incoming payments). I have a requirement in BDC where I need to post the Difference amount to a Dummy/Default Customer. I have to post the items based

  • IWeb 3.0.4

    I just downloaded and installed iWeb 3.0.4 and it crashes upon opening. Shirley, I can't  be the only one. Anybody? Anybody? Ideas?

  • How to handle big number

    i am trying to implement wallet applet, there i want to credit 1000 , for this i am passing my apdu like cla ins p1 p2 lc=2 and 03 e8 1000=03 E8 when i am getting this by apdu.getBuffer(); its value are change , here e8=232 but here byte array shows