Multiple table data displayed on 1 form

Hi,
i have search the forum for a solution but cannot find anything relevent. please help.
I am trying to display fields from two tables on 1 form. I have currently an interactive report using a query of 2 tables and this works fine. When i click on a record to view details on the report it shows data from 1 table and not both.
I have created 2 After Header process 'Automated Row Fetch     Conditional' ; 1 for each table but only 1 seems to work at a time.
Hope this makes sense.
Aisha

Hi Aisha,
A VIEW is a SQL object that you would need to create through SQL Workshop. You can create it manually in SQL Commands or go to Object Browser and click the Create button then follow the prompts.
As well as the VIEW you will also need an INSTEAD OF trigger as SQL can not directly update a VIEW's underlying tables.
Have a look at: Re: How to update view resp. table (search for my post that starts "I've detailed a few INSTEAD OF triggers over time" as this explains what you should do)
Once you have a VIEW and a TRIGGER created, using the VIEW for a form is exactly the same as if you were using a simple table.
Andy

Similar Messages

  • How to handle multiple tables data in Entity Beans?

    How to handle multiple tables data in Entity Beans?
    i mean, my bean (non trivial) is responsible for frequent
    insertion in one table and some deletion on another table.
    Can anyone of you...please..?

    Is your data model right? If you are adding in one and deleting in another it sounds to me more like a process that an entity, in which case you may revisit your data model and simplify it, add in a session bean with the process method to co-ordinate between the two.
    However, if you want to map multiple different tables within a single entity bean it is possible and just part of the mapping. How you actualyl specify it depends on which implementation you are working with.
    Cheers,
    Peter.

  • Extracting Multiple Table Data Dynamically..Table is an Input parameter

    Hi All
    Can any one update the Program/design of extracting multiple table data as a list or to an excel sheet
    For eg:- Mutliple Tables are entered in selection screen and upon executing the output should be to an excel sheet sequenctially according to the table names entered in the selection screen
    Awaiting for your update
    Regards
    Shiva
    Edited by: shivakumar bandari on May 29, 2009 9:35 PM

    HI Naimes
    Thanks for youe reply
    your second step says to select data from 'table' here tables are dynamic in nature I mean they are an input parameters..how can I write select on a table..
    I can get the table existence from DD02L table and pass the retrieved tables to FM Get_Component_List to get the fields existing for the particular table,
    But I cannot pass the dynamic table value to select query to retrieve the data..Please update me if you have anything on retrieving data from dynamically inputted value
    Can I do this
    Select * from <dyntable>
    Any suggestions will be appreciated
    thank you

  • Show alert after data display from the form

    After query, if date of birth is NULL then display message, but this message must pop up after data displays on the form.
    I try different post triggers, when-new-item-instance, when-validiate-item trigges, they all display message BEFORE the data. Any suggestion?
    Thanks

    hi kathy,
    What you have to do is after the commands to display the data, you give the builtin SYNCHRONIZE; then give message statement. It should work.
    Murthy

  • Multiple Language  : Data Display Problem

    Hi ,
    I have one problem regarding NLS_LANG, please advice.
    I have a table on source machine which stores the data in different language (German, Danish, Russian Cyrillic) but these data shows as "???????" on command prompt as well as on Toad when access it from client machine.
    I know that displaying any kind of data depends on local NLS_LANG but what NLS_LANG I have to set so that it can display different language together. I am able to display data separately for German, Danish and Russian Cyrillic when I change NLS_LANG and location in client accordingly but unable to display all language together.
    Default setting for NLS_LANG on client machine is AMERICAN_AMERICA.WE8MSWIN1252.
    Please advise common NLS_LANG for all three language (German, Danish, Russian Cyrillic).
    Thanking You

    Pl continue the discussion in your original thread for continuity purposes.
    Multiple data display problem

  • Regarding Table data display

    Hi experts,
    I have one ztable having some fields, the end user will not have authorize for (SE11 and SE16) . I want to make program for display that table data. And also want put filter options( Select-options) for all fields, User wants select some fields based on that fields want display all data from that table.  How can i do this?
    Please help me? Any coding?
    Thanks and Regards,
    Linganathan.K
    Moderator message : Not enough re-search  before posting, discussion locked.
    Message was edited by: Vinod Kumar

    Dear Linganathan,
    It is purely based on your requirement.
    1. If the users are strictly restricted for SE11 and SE16 then  table generator would be a probable option
    2. However, when you restrict SE11 and Se16 I do not think so you will give SM30 also...
    3. Are you allow user to maintain/edit the table?
    3. Do you want to provide selection parameter...
    Based on this, probably you should go for a small report program that displays data in the ALV format accepting the input parameters as selection range.
    Regards,
    Venkat

  • Download multiple table data using RTTI

    Hi,
    Using RTTI, I am trying to download database table data dynamically. I have code that works fine for one table at a time. If I need to download data from multiple tables in one go. How can I  do this using RTTI?
    Thanks in advance,
    VG
    My code is...
    DATA: go_struct TYPE REF TO cl_abap_structdescr,
                go_table TYPE REF TO cl_abap_tabledescr,
                gi_data type ref to data.
          FIELD-SYMBOLS: <gi_data> TYPE STANDARD TABLE.
    * Dynamically getting the line type of the specified table
          go_struct ?= cl_abap_typedescr=>describe_by_name( v_tabname ) .
          TRY.
              CALL METHOD cl_abap_tabledescr=>create
                EXPORTING
                  p_line_type  = go_struct
                  p_table_kind = 'S'
                RECEIVING
                  p_result     = go_table.
            CATCH cx_sy_table_creation .
    *MESSAGE e000 WITH text-004.
          ENDTRY.
    * creating internal table of table type just created
          CREATE DATA gi_data TYPE HANDLE go_table.
    * Assigning the internal table to field symbol
          ASSIGN gi_data->* TO <gi_data>.
    ** get the data into the internal table from db table
          SELECT * INTO TABLE <gi_data> FROM (v_tabname).
    download....
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
    *      filename                = 'C:\test.txt'
          filename                = p_file1
          write_field_separator   = 'X'
        TABLES
            data_tab               = <gi_data>
        EXCEPTIONS
          file_write_error        = 1
          no_batch                = 2
          gui_refuse_filetransfer = 3
          invalid_type            = 4
          no_authority            = 5
          unknown_error           = 6
          header_not_allowed      = 7
          separator_not_allowed   = 8
          filesize_not_allowed    = 9
          header_too_long         = 10
          dp_error_create         = 11
          dp_error_send           = 12
          dp_error_write          = 13
          unknown_dp_error        = 14
          access_denied           = 15
          dp_out_of_memory        = 16
          disk_full               = 17
          dp_timeout              = 18
          file_not_found          = 19
          dataprovider_exception  = 20
          control_flush_error     = 21
          OTHERS                  = 22.
      IF sy-subrc = 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Edited by: Thomas Zloch on Nov 5, 2010 9:42 AM - please use code tags

    Hi,
    DATA: go_struct TYPE REF TO cl_abap_structdescr,
    go_table TYPE REF TO cl_abap_tabledescr,
    gi_data type ref to data.
    FIELD-SYMBOLS: <gi_data> TYPE STANDARD TABLE.
    LOOP AT GT_TAB_LIST INTO GS_TAB_LIST.
    * Dynamically getting the line type of the specified table
    go_struct ?= cl_abap_typedescr=>describe_by_name( GS_TAB_LIST-tabname ) .
    TRY.
    CALL METHOD cl_abap_tabledescr=>create
    EXPORTING
    p_line_type = go_struct
    p_table_kind = 'S'
    RECEIVING
    p_result = go_table.
    CATCH cx_sy_table_creation .
    *MESSAGE e000 WITH text-004.
    ENDTRY.
    * creating internal table of table type just created
    CREATE DATA gi_data TYPE HANDLE go_table.
    * Assigning the internal table to field symbol
    ASSIGN gi_data->* TO <gi_data>.
    ** get the data into the internal table from db table
    SELECT * INTO TABLE <gi_data> FROM ( GS_TAB_LIST-tabname ).
    download....
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    * filename = 'C:\test.txt'
    filename = p_file1
    write_field_separator = 'X'
    TABLES
    data_tab = <gi_data>
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    no_authority = 5
    unknown_error = 6
    header_not_allowed = 7
    separator_not_allowed = 8
    filesize_not_allowed = 9
    header_too_long = 10
    dp_error_create = 11
    dp_error_send = 12
    dp_error_write = 13
    unknown_dp_error = 14
    access_denied = 15
    dp_out_of_memory = 16
    disk_full = 17
    dp_timeout = 18
    file_not_found = 19
    dataprovider_exception = 20
    control_flush_error = 21
    OTHERS = 22.
    IF sy-subrc = 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    endloop.

  • Table Data Display

    Hi Friends,
    I am executing an RFC and getting data. I am displaying the data on table  as below shown.  but I do not want to show this way:
    Employee     Value
    Name1          23
    Name1          21
    Name1          20
    Total          64
    Name2          10
    Name2          11
    Name2           9
    Total          30  
    Name3          11
    Name3          10
    Total          21
    I would like to show as below , Basically I do not want to display multiple times as it is common Name for that chunck or block , example I have 3 Name1 , i do not want to show three times , I want to show only once for that chunck How would I achieve this, Please help. I am expecting to see the OUTPUT as below:
    Employee      Value
    Name1          23
                   21
                   20
    Total          64
    Name2          10
                   11
                    9
    Total          30  
    Name3          11
                   10
    Total          21

    HI Friend,
    As i think there is no such standard feature for this. But in our case we have used the following approach.
    First you can filter the values and store it in a different node. for this purpose you can use following code
    ArrayList uniqueVals = new ArrayList();
           for (Object x : myList)
               if (!uniqueVals.contains(x))
                   uniqueVals.add(x);
           for(int i =0;i<uniqueVals.size();i++){
           wdContext.currentContextElement().setValue(uniqueVals.get(i).toString());
    After that you can use the table column's grouping value property to avoid the duplicate column values.
    You can use table cell variant feature to enhance the appearance.
    Hope it will help.
    Regards
    Jeetendra

  • SAP R/3 table data display

    Hello All,
    In SAP R/3 in tcode SE11 when I display data for table EKBE, for few currencies amount is different in tabular layout and display mode of individual record. Let me expalin it in detail.
    In table EKBE when I display data for any particular purchase order then following values are displayed in tabular layout.
    DMBTR 100.05
    WRBTR 100.05
    But when I select this record and click on display button(F2 function key)
    DMBTR 100.05
    WRBTR 10005
    When I extract this data in BW I get
    DMBTR 100.05
    WRBTR 100.05
    Can anybody please help me to understand
    which value is correct ?
    why is there a difference in amount in tabular layout and display mode ?
    why only WRBTR is different as both are of CURR datatype and created using same Domain.
    In ME80FN Amount is displayed as 10005 and user is expecting this in BW output, when I checked in R/3 table I found discrepancy. Your help is greatly appreciated.
    Thanks for your help.
    Regards
    Shilpa

    Hi Simon,
    Thanks for your inputs.
    Why the amount is changed in display mode only for WRBTR and not for DMBTR as both are of CURR datatype and created using same domain. I fail to understand any logic behind this.
    I have even created a ABAP report on this table which displys fields DMBTR and WRBTR, and in the report output following values are displayed.
    DMBTR 100.05
    WRBTR 100.05
    If anybody else has come across this before and has any clue please help.
    Thanks and Regards
    Shilpa

  • Table data display hangs app

    When navigating to a table with a lot of data, it appears no screen refresh is being done when I switch to another app and then back to sql developer. I switched to this table like 10 minutes ago and sql developer is still not responding. The app is not taking up any cpu time, fortunately, it's just taking forever to show me some data.
    Perhaps something can be done to refresh the app while it's retrieving data so I don't get a blank sql developer screen when I switch back from another app. Also, I hope this data retrieval hang doesn't prevent me from being able to browse other tabs in the IDE. I'll have to try that one out.

    I added the plugin but am still seeing the problem I described. I can't make it happen when displaying the particular table's data anymore, but it happens when I execute a count on a large table.
    Also, somehow I managed to lose the popup window where you click to apply the query to get the count of rows.

  • R4 EA - Table Data Display bug

    In version 3.2, when opening a table (via the right click menu option from the Connections Navigator), one of the tabs is Data. When clicked on for a large table, the grid displays after a short wait.
    In R4 EA, the same functionality exists, but the user must wait a long time for the "Select * From XXX"  to complete. The limit on number of rows returned seems to be either missing or set very high.

    Hi Steve
    Still no response?
    I am having same issue when querying a table with XMLTYPE.
    How is your XMLTYPE stored in the DB, as a CLOB or as a BINARY XML?
    Regards,
    Shaun

  • Offline adobe forms using webservices-how to print table data

    HI,
    i have created offline adobe form using webservices which call rfc to pull the data ...to get inspection lot details ...
    iam getting header data....but iam not able to get multiple line items of the table data ..here in scenario there are 4 line items but only 1 line item is getting displayed in the form...
    is there any need to handle seperately to display  tables data in offline adobe forms if we call from webservices
    Tousif
    Moderator message: please have a look in the dedicated forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on Jan 18, 2011 3:08 PM
    << Moderator message - New question asked, so this is locked >>
    Edited by: Rob Burbank on Jan 18, 2011 10:19 AM

    This is oofline adobe form which is created throgh webservices
    Edited by: tousif_ig on Jan 18, 2011 3:19 PM

  • Reg: Data getting repeated in the table and displayed in the Smartorm.

    Hello Experts,
    Requirement is to display header data from kna1table and item data from two tables faglflexa and bsid.
    Layout is something like this.
    Name and Address is capture from KNA1.
    Item Details from faglflexa and BSID based on one condition, UMSKZ ne 'X' and 'Y' for the respective KUNNR from KNA1.       First Item table.I have taken a separate internal table from print program
    Item Details from BSID only based on one condition, UMSKZ eq 'X' and 'Y' for the respective KUNNR from KNA1. Second Item table. I have taken a separate internal table from print program
    Calculation based on faglflexa and BSID table on one condition,UMSKZ ne 'X' and 'Y' for the respective KUNNR from KNA1.       Third t Item table. Data from the first internal table
    The complete thing should be displayed on Smartform for one Customer (kunnr). Then should go to the next customer.
    I have a written a code like this, For Example.
    loop at kna1 into w_kna1.
    Used Table1 in smartform and give a loop to display the item details based on first internal table.
    display itemdetails
    Used Table2 in smartform and give a loop to display the item details based on second internal table.
    display itemdetails.
    Used Template to display the item details to display the item details based on first internal table.
    endloop.
    Now my problem is table 1 is coming fine. table 2 data is getting repeated for all the customers based on 1st customer data, how should i clear the workarea after every customer.
    Similar pbm for the template which i'm using.
    Please help me on this.
    Thanks in advance.
    Abdur Rafique

    Hi Vishnu,
    Thanks for replying. I cant use one single table to display the output. There are several conditions in two tables.
    I have corrected the error of repetition data. Logic i will mention it below.
    loop at kna1 into wa_kna1.
    for header data " this is main table
    loop at item_1  into wa_item_1. " for first item table
    Data displayed.
    loop at item_2 into wa_item_2. " for 2nd item table
    Data displayed.
    endloop. " for 2nd item table
    data calculation based on first item table.
    endloop. " this is for first item table
    endloop." this is for 2nd item table.
    The data which is there in the 2nd item table should display data based on the kna1 loop. Data is displaying properly but not in 1 table, say for example.
    kunnr- 1000010
    there are 9 items.
    All the 9 items should be in 1 table. But here it is displaying 1 item in 1 table till 9 items in 9 tables.
    I need to club all the 9 items in 1 table.
    One more doubt is 2 items have same belnr (document number) i need to club this and add the wmbtr field and then display as 1 record.
    So final records in 2nd item table should be 8 not 9.
    Can you please help me on this.
    Thanks in advance.
    Abdur Rafique

  • Data display in Readable way.

    Hi,
    I am newbie to Oracle. I want to know a method by which we can see the table table in easy to read form.
    Suppose a table has 20 columns and 50 row. If we fire a query to display all rows, then we are getting info, but very tuff to read and relate with column.
    Can you suggest a better method to read data or any tool (freeware) that can be used to check complete data table in human readable form.
    Edited by: user1133562 on Dec 23, 2012 11:04 AM

    cooluniquesunny wrote:
    Hi,
    I have tried Toad. Buts its a very heavy Tool.
    I need perfection on command line. Since it is fast and helps you to have better hands on Oracle. So I need a way to get each table data in easy readable form.
    The command line really isn't the place to get "perfection" as regards to report formatting. If for no other reason, you are going to be stuck with the width of the comand line window, and the resulting line wrap. As stated, you can control it to some degree in sqlplus by using the FORMAT command to limit the width of individual columns. LINESIZE will control where SQLPLUS puts a line break, but if that is wider than your command line window, you'll still get line wrap.
    A kludge method I've used a lot is to use a sqlscript like this:
    set linesize 512 pagesize 80
    column first_name formant a12
    column last_name format a12
    column emp_salary format 999,999.99
    spool myreport.txt
    select
      first_name
    , last_name
    , emp_salary
    from
      emp
    spool off
    edit myreport.txtThe key to the above is the SPOOL and EDIT commands. When I use this on a Windows client, the EDIT command opens the spooled output file in Notepad, where I can scroll the window left and right if need be. Not so useful in an ssh session to one of my linux boxes, as the EDIT opens the spool file in vi, and I'm still limited by the width of the ssh window.
    But again, the above is just a hack for my personal use as a dba. Wanting "perfection" in your report format and wanting to use the command line are fundamentally mutually exclusive requirements.
    I have tried using setting page size, line size, col, But have to reset everytime for each new table, and has also to restrict my selection to few columns.
    Here as per my requirement, there can be 2 solutions. correct me if I am wrong and suggest a way forward.
    1. By Setting Spool on, redirecting SQL output to some file, and check that file for full Table data output. But also in that file, not getting all column data in single line.What are you using to open the file? As I said above, you have to make sure you are not getting line wrap as an inherent limitation of the tool you are using to view the output. If that tool doesn't have a built-in limitation, then you are not setting LINESIZE to a large enough value. And/or you are not limiting the width of your columns by use of the COLUMN directive.
    >
    2. Looking for some script, in which we can pass the table name, after that it displays all columns with serial no, and prompt for Sr.No from user, to display a single or multiple columns data.Now you are talking about a much MUCH more complex requirement than simply getting your report in a 'readable' format. Now you are talking about selecting indeterminate columns from an indeterminate table, with user input to boot. This goes far beyond the scope of your original question and suggests you need to step back and separate your business requirement from your immediate technical question.

  • Allow multiple records from this table to be displayed in the form is greyed out.

    I'm trying to add a second table to my main data source in an InfoPath 2010 form (database template), but the option to allow multiple records from this table to be displayed in the form is greyed out and I can't select it.
    Can someone please tell me how to correct this? I'm guessing that there might have to be something change in MS SQL because on other occasions I've have not encountered this problem when adding a second table.
    Any help would be greatly appreciated.
    Thanks.

    So I've found a work around, but I still don't know why I'm having the problem in the first place.
    I've been trying to relate the two tables by using the primary key in the parent table to a view of the child table that also includes primary key in the parent, e.g. the ORDER ID in the order table relating to the ORDER ID in the view of the order detail
    table. For whatever reason whenever I did that InfoPath prohibited the data source from returning multiple order details.
    My work around is to use views of both the order table and order details table that include the customer ID and to relate the two table in InfoPath using the customer ID. Now I get a data source that allows multiple order detail records. In order to get
    just the order details that I want that relate to a particular order, I use a rule that sets the order id in both the order and order details query data sets before executing the query (as opposed to just the order data set).
    Hope that's a clear explanation.

Maybe you are looking for

  • Pdf form imported to be Interactive in WDA?

    Hello WDA Group,    I have a .pdf file that was created in Netweaver Dev Studio. The XML file is also available. Is it possible to somehow put this somewhere.... possibly in a MIME folder for a specific WDA, then import and use it as an Adobe Interac

  • Loading this xml data into tables

    Hello, I am having a problem loading this XML file into tables. The xml file structure is <FILE> <ACCESSION> some ids <INSTANCE> some data <VARIATION </VARIATION> <VARIATION> </VARIATION> variation gets repeated a number of times <ASSEMBLY> </ASSEMBL

  • Is it possible to create java standalone programs with java ME 8

    Hi, Comparing java ME to java SE, I have the impression that midlets are similar to applets. When working with java SE, I usually make standalone programs. Now, I wonder if it is also possible to create also standalone programs for java ME, if the cl

  • Procurement document type in DBM

    Hi In parts tab of dbm order we have Procurement subscreen. By default document type of PR is defined as NB. How to change this document type to some other ...I want to make , say ZNB as my default document type. Regards, AB

  • Content Holder Module code shows in autoresponder email

    Hi there, We have sent out a campaign, and it appears that at least one customer has received the autoresponder without any styling/images. All that is showing is the text and the code for the various contentholder modules e.g.: Having trouble viewin