Two Tables Contol in One Dynpro.

Hi to all!!! This time i'm needing to put two tables Controls in one Dynpro. When i created the second table with the wizard i go trough all the steps but finally, no table control is created. A warning appeared on the first step. It says something about the loop of the TControls at the PBO.
what I am making bad? any suggestion?
If i can´t use two table controls i would need an alv in my dynpro...then it would be : a Table Control and an ALV in the same Dynpro.
is this posible with the custom control? how can i do this?
well, as usual, rewards pòints for Help.if there are example codes, please send me!!
Thanks in advanced to all!!!!

here it is...
<b>Note: the commentaries and the names of the variables are in Spanish because I must do them of that form.</b>
<b>PROCESS BEFORE OUTPUT.</b>
  MODULE status_1001.
  MODULE grisado_campos.
*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TC_ITEM'
  MODULE tc_item_change_tc_attr.
*&SPWIZARD: MODULE TC_ITEM_CHANGE_COL_ATTR.
  LOOP AT   t_item
       WITH CONTROL tc_item
       CURSOR tc_item-current_line.
    MODULE tc_item_get_lines.
*&SPWIZARD:   MODULE TC_ITEM_CHANGE_FIELD_ATTR
  ENDLOOP.
<b>PROCESS AFTER INPUT.</b>
*&SPWIZARD: PAI FLOW LOGIC FOR TABLECONTROL 'TC_ITEM'
  LOOP AT t_item.
    CHAIN.
      FIELD t_item-pos.
      FIELD T_ITEM-TIPO_ANIMAL.
      FIELD T_ITEM-CANT_CAB.
      FIELD T_ITEM-PRECIO_VIVO.
      FIELD T_ITEM-DESCRIPCION.
      FIELD t_item-kilos_lmp.
      FIELD t_item-kilos_cmp.
      FIELD t_item-kilos_fab.
      FIELD t_item-pr_rinde.
      FIELD t_item-imp_rinde.
    ENDCHAIN.
  ENDLOOP.
  MODULE tc_item_user_command.
*&SPWIZARD: MODULE TC_ITEM_CHANGE_TC_ATTR.
*&SPWIZARD: MODULE TC_ITEM_CHANGE_COL_ATTR.
  FIELD e_1001-zterm   MODULE buscar_descr_cpago.
  FIELD e_1001-mwskz MODULE buscar_descr_indic_imp    ON INPUT.
  FIELD e_1001-tarnr     MODULE buscar_descr_tarifa_flete   ON REQUEST.
  FIELD e_1001-lifint      MODULE buscar_descr_comprador   ON REQUEST.
  FIELD e_1001-liftra      MODULE buscar_descr_transport     ON REQUEST.
  FIELD e_1001-PSERVICE .
  FIELD e_1001-PRECUP .
  MODULE user_command.

Similar Messages

  • Questions on handling two table controls on one screen.

    Can some people  please share some technology  tips on handling two table controls on one screen . 
    Thanks
    Moderator message - You'll find some cool tips if you search the forum or use Google first - post locked
    Edited by: Rob Burbank on Dec 7, 2009 11:20 AM

    hi
    other Table is in Disable mode.
    check that u have unticked the READ ONLY property of ur UI
    also check if u have binded the ENABLE property of ur table UI to WDY_BOOLEAN in some method
    and u r setting it to 'X'
    in the OnToggle event of ur Checkbox , set this attribute to 'X to make the checkbox ticked
    in the OnToggle event of ur Checkbox , set this attribute to ' ' to make the checkbox un ticked
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr.
    *   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   set single attribute
        lo_el_cn_node->set_attribute(
          EXPORTING
            name =  `CA_ATTR`
            value = ' ' ).
    // set attribute CA_ATTR under CN_NODE to ' '
    // this will make the table UI control disabled
    // this is a code generated thru code wizard ( control +f7) , read context node/attribute
    // use SET_ATTRIBUTE method
    regards,
    amit

  • Reg:Using Two Table controls in one screen

    Dear All,
         I created two tables in a screen such that both the table fields are of Input fields type .I created first table which will
    accept the inputs and below it I created another Table which is also of Input field type.But when  I execute the component I am getting only first Table in Input mode and the other Table is in Disable mode.
    What can be the problem??

    hi
    other Table is in Disable mode.
    check that u have unticked the READ ONLY property of ur UI
    also check if u have binded the ENABLE property of ur table UI to WDY_BOOLEAN in some method
    and u r setting it to 'X'
    in the OnToggle event of ur Checkbox , set this attribute to 'X to make the checkbox ticked
    in the OnToggle event of ur Checkbox , set this attribute to ' ' to make the checkbox un ticked
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
        DATA ls_cn_node TYPE wd_this->element_cn_node .
        DATA lv_attr  LIKE ls_city-ca_attr.
    *   navigate from <CONTEXT> to <CN_VISIBLE> via lead selection
        lo_nd_node = wd_context->get_child_node( name = wd_this->wdctx_ca_attr).
    *   get element via lead selection
        lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    *   set single attribute
        lo_el_cn_node->set_attribute(
          EXPORTING
            name =  `CA_ATTR`
            value = ' ' ).
    // set attribute CA_ATTR under CN_NODE to ' '
    // this will make the table UI control disabled
    // this is a code generated thru code wizard ( control +f7) , read context node/attribute
    // use SET_ATTRIBUTE method
    regards,
    amit

  • Urgent:how to add two table regions to one query region

    hello
    In my page a serach region is there and for that region i need to add two tables and two are based on two different view objects.how can i implemnet this thing please let me know.
    advance thanks

    Hi Wei Fang,
    You can try by creating a 2 line template (1 Template, 2 linetype) under a loop note.
    So your smartform tree structure will be shown like this:
    LOOP
        TEMPLATE1.
    On the LOOP part, pass the internal table of your data to the working areas.
    On the template put all the data of the summary on your first linetype, and put
    the detail data on your second linetype.
    Good luck and hopefully this will solve the problem
    Edited by: Prawira Fadjar on Oct 22, 2008 10:04 AM

  • Append two tables data into one in MSAccess

    Hi All,
    I have huge data which is imported through excel sheet in to MS Access database in 2 separate tables.I want to append the 2nd tables data to the first one...how can i do that...thanks in advance

    hey....i got the solution for this problem....i followed the same procedure of getting external data to MS ACCESS.After migrating all teh 6 sheets data into 6 different tables,I used the same technique to append the data into 1 single table..it worked....Thank you......

  • SLT - Splitting one source table into two tables in the destination

    Hi,
    I am wondering if we can split content of one source table into two different tables in the destination (HANA DB in my case) with SLT based on the codified mapping rules?
    We have the VBAK table in ERP which has the header information about various business objects (quote, sales order, invoice, outbound delivery to name a few). I want this to be replicated into tables specific to business object (like VBAK_QUOT, VBAK_SO, VBAK_INV, etc) based on document type column.
    There is one way to do it as far as i know - have multiple configurations and replicate to different schema. But we might have to be content with 4 different config at the max.
    Any help here will be highly appreciated
    Regards,
    Sesh

    Please take a look at these links related to your query.
    http://stackoverflow.com/questions/5145637/querying-data-by-joining-two-tables-in-two-database-on-different-servers
    http://stackoverflow.com/questions/7037228/joining-two-tables-together-in-one-database

  • How do I join two tables in the same database and load the result into a destination table in a SSIS package

    Hi,
    I have a query that joins two tables in the same database, the result needs to be loaded in a destination DB table.  How do I do this in SSIS package?
    thank you !
    Thank You Warmest Fanny Pied

    Please take a look at these links related to your query.
    http://stackoverflow.com/questions/5145637/querying-data-by-joining-two-tables-in-two-database-on-different-servers
    http://stackoverflow.com/questions/7037228/joining-two-tables-together-in-one-database

  • Joining two tables using PL/SQL

    here i am trying to join two tables can any one tell me what is wrong with this syntex
    CREATE OR REPLACE PROCEDURE test IS
    CURSOR c1 IS SELECT seq,fname,lname from t1;
    CURSOR c2 IS SELECT seq1,q,a from t2;
    userjob number;
    BEGIN
         OPEN c1;
    insert into t3 values(c1.seq,c1.fname,c1.lname);
         FETCH c1.seq INTO userjob;
    FOR c1rec IN c2 LOOP
    IF (c1rec.seq=c1.seq and c1rec.q1='why') THEN
    insert into t3 values(c1rec.q1,c1rec.a1);
    elsif (c1rec.seq=c1.seq and c1rec.q1='what') then
    insert into t3 values(c1rec.q2,c1rec.a2);
    elsif (c1rec.seq=c1.seq and c1rec.q1='when') then
    insert into t3 values(c1rec.q3,c1rec.a3);
    elsif (c1rec.seq=c1.seq and c1rec.q1='where') then
    insert into t3 values(c1rec.q4,c1rec.a4);
         END IF;
         END LOOP;
         END;
    /

    You should always fetch a cursor before using it's values. All columns in the select should be fetched into variables or a record-variable. You can't refer to the cursor-columns values with c1.seq etc.
    r1 c1%rowtype;
    l_found boolean;
    BEGIN
    OPEN c1;
    FETCH c1 INTO r1;
    insert into t3 values(r1.seq,r1.fname,r1.lname);
    l_found := c1%found;
    close c1;
    if l_found
    then
    It is also better to close the cursor and check if the select resulted in a row. With this code you will only retrieve one row even if the select will result in multiple rows.
    But I agree with all the others that this can probably be done more efficiently with one SQL statement.

  • Two table views in single screen

    Hi,
    are we able to put two Table views in one UI window?
    My requirement is if i click on one cell on 1st table view then 2nd table view cell's in the same UI window has to be updated with required values.
    is that possible?
    Please let me know the solution if anyone know.
    Thanks in advance.

    Just go to interface builder and drop two table views in.
    Presto! You're done.

  • How to print two tables adjacent to each other?

    Hi,
    Scenario
    I have a form with a body page and two tables. The property of the body page is set to 'Flowed', 'top to bottom' as flow direction and the check box for page break is set.
    Requirement
    The two tables need to be printed adjacent to each other.
    Approach followed until now
    1. Since the body page is 'Flowed' type, the two tables are placed one below the other (Tab1 & Tab2). So I tried to set the Flow direction of the Body page to 'Western text'. But this did not solve the issue as since it is set to 'western text', only after Tab1 is rendered, table Tab2 starts printing itself, which is not desired. Both the tables should be printed at the same time.
    2. I wrapped both the tables in one sub form with 'Type' set to 'Positioned' and set the check box for page break. Now I arranged the tables adjacent to each other. But the check box for page break for both the tables were disabled and because of this if there is not enough space to print the total records of both the tables, the complete tables is shifted to another page leaving the previous page blank.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

    Dear Andres,
    I tried as per you suggestion and it works fine. Thanks a lot.
    Now adding to this, I am trying to print the 'formatted text'. The tables have two columns. the first column is a normal field and the second column is table having the 'formatted text'.
    As per your suggestion, I concatenated the two tables in one table. So the final table has 2 normal fields and 2 tables.
    Final table structure:
    Column1      Column2(Table)             Blank             Column3          Column4(Table)
    Settings maintained:
    I have set the 'Body' row of the table to 'Flowed' with direction as 'Western text' (Top to bottom does not help ).
    The settings for Column 2 & 4 (tables) are maintained as:
    1. The Table is set to 'Flowed' with direction 'Top to Bottom'.
    2. The body row is 'Flowed' with direction 'Western Text'
    (The Border 'Edges' for the tables, columns is maintained as 'None')
    Issue:
    The sample data has around 10 entries in the (final)  table. When I try to print the form, if column2(table) is initial, the data in Column3 and 4 are shifted towards Left hand side.
    Kindly suggest how to resolve this issue.
    Regards
    s@k

  • Error joining two tables in graph pane

    While trying to join two tables by draging one column onto a column of another table in a graph pane, an error dialog with the following message appears:
    "Drag and drop failed. Please drag a column from one table in the graph onto a column of another table in the graph pane. If you are trying to create a self join, please create another instance of the table and adding same table to the graph pane."
    How do join two tables in the query editor graphically?

    I also have the same problem. I use MySQL. I do not have any foreign keys in my tables. If I try to create table joins graphically myself I get the following error:
    "Drag and drop failed. Please drag a column from one table in the graph onto a column of another table in the graph pane. If you are trying to create a self join, please create another instance of the table and adding same table to the graph pane."
    When I type SQL query(similar to the following) in the in the query editor it dosent work: (As a result same row is appearing more than one time when I test the application)
    WHERE login.USERNAME=me.NAME
    In the above Mayagiri suggested a turorial using Pointbase and tables with foreign keys which is not directly connected with problem.(Beacuse it seems no problems in Pointbase tables with foreign keys)
    Any further is very much appreciated. Thanks in advance.

  • How to avoid Duplicate Records  while joining two tables

    Hi,
    I am trying to join three tables, basically two tables are same one is like history table, so I wrote a query like
    select
    e.id,
    e.seqNo,
    e.name,
    d.resDate,
    d.details
    from employees e,
    ((select * from dept)union(select * from dept_hist)) d
    join on d.id=e.id and e.seqno=d.seqno
    but this returing duplicate records.
    Could anyone please tell me how to avoid duplicate records of this query.

    Actually it is like if the record is processed it will be moved to hist table, so both table will not have same records and I need the record from both the tables so i have done the union of both the tables, so d will have the union of both records.
    But I am getting duplicate records if even I am distinct.

  • To check whether there is any format mismatch between two tables

    Hi,
    I have got a table 'T' (Source table) with columns
    T_Lat Varchar2(50);
    T_Amt Varchar2(50);
    T_Cat Varchar2(50);
    Actually, Here I have taken all the columns from table 'T' having numeric data.
    Now I have another table 'M'(Destination Table) with columns
    M_Lat number;
    M_AMt number;
    M_Cat number;
    Now my task is I have to do a prevalidation of the data in 'T' that whether all the data in those columns will suit for the destination table columns respectively (to check whether there is any format mismatch). This check should be done dynamically.
    Note:- There is no unique mapping column for these two tables
    Can any one help in this regard.

    Why dont you Just [url http://docs.oracle.com/cd/B19306_01/server.102/b14231/tables.htm#sthref2223] Insert Data With DML Error Logging 

  • Join Two tables in UI So that it look like one table.

    Can anyone provide me how to join table in viewing..
    Rite now i am reteiving fields in one table and other field in another table. But while viewing i want to join on UI.
    I am getting gap between these 2 tables.
    How to do that?
    Thanks

    Hi Nitin,
    why you want to join two tables.? if you want to display the data from more then one data source (Node ) then you can use table variant in that case. See the following Links for reference hope it will help.
    [Using Table Cell Variants in NW 2004s|http://wiki.sdn.sap.com/wiki/display/WDJava/UsingTableCellVariantsinNW2004s]
    [Play Sudoku: Using Table Cell Variants in Web Dynpro Java|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c0310fd2-f40d-2a10-b288-bcbe0810a961]
    Regards
    Jeetendra

  • Need help to join two tables using three joins, one of which is a (between) date range.

    I am trying to develop a query in MS Access 2010 to join two tables using three joins, one of which is a (between) date range. The tables are contained in Access. The reason
    the tables are contained in access because they are imported from different ODBC warehouses and the data is formatted for uniformity. I believe this cannot be developed using MS Visual Query Designer. I think writing a query in SQL would be suiting this project.
    ABCPART links to XYZPART. ABCSERIAL links to XYZSERIAL. ABCDATE links to (between) XYZDATE1 and ZYZDATE2.
    [ABCTABLE]
    ABCORDER
    ABCPART
    ABCSERIAL
    ABCDATE
    [ZYXTABLE]
    XYZORDER
    XYZPART
    XYZSERIAL
    XYZDATE1
    XYZDATE2

    Thank you for the looking at the post. The actual table names are rather ambiguous. I renamed them so it would make more sense. I will explain more and give the actual names. What I do not have is the actual data in the table. That is something I don't have
    on this computer. There are no "Null" fields in either of the tables. 
    This table has many orders (MSORDER) that need to match one order (GLORDER) in GLORDR. This is based on MSPART joined to GLPART, MSSERIAL joined to GLSERIAL, and MSOPNDATE joined if it falls between GLSTARTDATE and GLENDDATE.
    [MSORDR]
    MSORDER
    MSPART
    MSSERIAL
    MSOPNDATE
    11111111
    4444444
    55555
    2/4/2015
    22222222
    6666666
    11111
    1/6/2015
    33333333
    6666666
    11111
    3/5/2015
    This table has one order for every part number and every serial number.
    [GLORDR]
    GLORDER
    GLPART
    GLSERIAL
    GLSTARTDATE
    GLENDDATE
    ABC11111
    444444
    55555
    1/2/2015
    4/4/2015
    ABC22222
    666666
    11111
    1/5/2015
    4/10/2015
    AAA11111
    555555
    22222
    3/2/2015
    4/10/2015
    Post Query table
    GLORDER
    MSORDER
    GLSTARTDATE
    GLENDDATE
    MSOPNDATE
    ABC11111
    11111111
    1/2/2015
    4/4/2015
    2/4/2015
    ABC22222
    22222222
    1/5/2015
    4/10/2015
    1/6/2015
    ABC22222
    33333333
    1/5/2015
    4/10/2015
    3/5/2015
    This is the SQL minus the between date join.
    SELECT GLORDR.GLORDER, MSORDR.MSORDER, GLORDR.GLSTARTDATE, GLORDR.GLENDDATE, MSORDR.MSOPNDATE
    FROM GLORDR INNER JOIN MSORDR ON (GLORDR.GLSERIAL = MSORDR.MSSERIAL) AND (GLORDR.GLPART = MSORDR.MSPART);

Maybe you are looking for

  • Dropping in a shot

    Hi, I've searched the manual pages (honest!) and couldn't find this feature: After laying a timeline off to tape, I often find I need to go back, adjust a shot and drop it in to the tape at the right place. So, how do I edit just that shot to tape wi

  • Segmentation fault while updateing [SOLVED]

    Hello all, I got this probem a few days ago, trying to run 'pacman -syu' ends in a segmentation fault. I have no clue what to do abou it.. I first tryed to update zlib manual as it was last in the list, worked fine. So i tryed wine and trying to upda

  • How do I use Family shared calendar in outlook?

    I'd like to use the Family calendar (created automatically when you set up family share) in Outlook but there is no option to share.

  • ItemListener doesn't work

    Code initialization Sequence: 1. Init components creates an empty JComboBox and adds an ItemListener. 2. JComboBox gets loaded with a ComboBoxModel which contains the display data and Primary Keys. When I run the application, and click on an item in

  • Access iPhoto library in time capsule

    Hello, I have my iPhoto library in time capsule. Everything is ok with my mac, view, edit, stream, etc. But some times I dont bring my Mac home, and I would like access my library from my iPad and if possible stream to apple tv, like i do it from Mac