About drawing rows in tables in smartforms

hi everyone,
I know how to draw row in smartforms ...but the thing is i dont know how to draw row in some particular columns...
Example: Suppose i have 5 columns and 3 rows...
Now i want to draw 4 th row from 1 st column to 3 column..
how can i draw it??
Can anybody help me out??
Regards,
Apoorv.

Hi
IF i understand ur question properly
Please see my answer.
If u r saying abt template it is possible.
if u r saying abt table it is not possible.
other wise revert bck
Regards

Similar Messages

  • Displaying multiple  rows of  a table using smartforms

    hi,
    how to get multiple  rows on a  form from a  table using smartforms.I succeded in getting only the first row of the table on the main window of the page .In order to display more than one record on the page what i have to do.

    You have to use LOOPS / TEMPLATES to achieve this
    Here is a very good code sample for using Template,Table,Loop in smartforms with screen shot
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
    Please do not post multiple threads. Kindly close them rewarding point for helpful answers,
    extracting multiple records
    to display multiple records in smart form
    Re: extracting multiple records
    Kindly reward point and close the duplicates.
    Regards
    Kathirvel

  • Columns in table of Smartform

    HI,
    It's rather a simple question for most of you but as I am new to Smartforms I am little confused ...
    I had created a table in the main window with two columns and had also created two text elements and assigned to the table but my problem is the text elements are displaying the values in two different rows rather then in two columns...In templates we have the option of assigning the columna dn row in the output options of a text element but I do not find in tables..Am I missing something .Please help me out..
    I had assigned the same default line type created with two columns to both the text elements.
    Regards
    Pavan

    Hi,
    1. In the Table Main area you have the assign the Line Type which will give you the Rows of the Table.
    [Table Layout|http://help.sap.com/saphelp_nw70/helpdata/EN/fa/0c1444d30111d3b568006094192fe3/content.htm]
    2. For every row inside it there are Cells which are columns that you have defined in the table. (In your case the cells will be two if you have designed the table with 2 columns)
    [How to draw columns in Tables|http://help.sap.com/saphelp_nw70/helpdata/EN/12/d4c6d62e9811d5b694006094192fe3/content.htm]
    3. Now in each cell you need to define the text window and give the text element over there.
    This is how we need to assign the text elements to the columns
    Regards
    Sarves

  • How to draw a complex table

    It is table with 5 rows and 4 colunms and forget about height and width.
    By using only single <table> tag is it possible to draw such a table.
    I tried but felt.
    I am inserting a link for that figure just visit it .
    Please reply
    Thank you
    http://sites.google.com/site/1024768images/Home
    Edited by: pankajjain15 on Oct 22, 2008 7:20 AM [http://sites.google.com/site/1024768images/Home]
    Edited by: pankajjain15 on Oct 22, 2008 7:26 AM

    i thought that in java forum there are genius guyes are looking for some challanges in any kind of language.
    They are having some good problem solving skills and helps those who can not solve the problem
    As you wasted time to teach me some thing , you should not be such egoistic person as you know every thing.
    One more thing nobody is perfect.
    Thanks for your cooperation

  • Table inside table in smartform for pay statement

    Hi friends,
                       Here is one requirement of PAY STATEMENT in which all details(includes personal, Attendance, Payroll details) of all employee's of particular month should print in smart form. Client demanding the format in their previous system which is like this
    1. In the first row, HEADING Part includes
           a. Ist column - Emp id, name, dept, desig, DOJ
           b. 2nd column splits in to  number of leave types and days worked and working days.
           c. 3rd column - Earnings
           d. 4th column - Deductions
    2. From the second row, Data from driver program
          a. Ist column - Corresponding to Ist rows Ist Column
          b. Vice versa....
    First row is static text, which should display in each page.this should be done for all the existing employees(Almost 300+) with all the details discussed in the 2nd point..
    3. Finally they are asking to display, the total earnings and total deductions spent for the salary from the management.
    According to my knowledge, what i understood is : We need to use TABLE for this requirement, because all the details are dynamic and nothing is static except Personal details heading. What i thought is in the Header of table, Keep the First row, and in the Body, keep another table so that all  the dynamic data will be uploads for all employee..and i will be passing all data of each employee in one 1 row of table.And in the footer print final total earnings and deductions using two tables...
    I think my idea i explained is very complex and also not sure. Please suggest me solution in detail regarding this requirement.
    Please give me a response ..
    Thanks in advance..
    Sai Kiran Rao..
    +919781404778

    Hi Daniel,
                      Thanks a lot for your quick response. Sorry as i am providing L3 training to core users,  i was busy with other requirements similar to this. But this is actual requirement...
                                                                         Company name
                                                                        Company Adress
                                                                         Form Title
    empid            |    Calendar Days | Days worked |                  Leaves                                                   | Earnings  | Deductions|  
    empname      |                             | Days Paid      |           EL         CL              SL               CO       LWP|basic        | Tax            |
    doj                 |                           |                         |OB                                                                            |others      |Others         |
    department   |                            |                         |AV                                                                            |               |                    |
    designation   |                           |                         |BAL                                                                           |               |                    |
    emp1             |    31                    |  26                | -
    similar to others----
    value2
    value3
    value4
    value5
    emp2
    similarly for all the existing employees with all the details. And the header details should print in all pages. and finally they want me to display net calculation of all the earnings and deductions components like net of basic etc.
    They need in the exact format of what i have shown above.... I hope you understand the above requirement and please suggest me how to proceed in designing since go live date is near..
    please draw it in your paper with gaps between pipes and each column so that alignment will be done properly which will show you a actual designing.
    Thanks in advance..
    Sai kiran rao.

  • How to restrict height of table  in smartform without using template

    Hi Gurus,
    I am facing a problem with table in smartform.I have 5 records in my table.If i print all 5 then table is fine.But if i get only one record in table then size of the table reduces to one row.Is there any way that i can keep my table height same as for 5 records,though i pass 1 record.I cannot use template here,because  page-breaks are used in the form .
    Your solutions are highly appreciated.
    Thanks and regards,
    Meenakshi

    Hi,
    As far my knowledge goes, If there is one record then table lines will take the height of only one row. You cannot Restrict it to take height of 5 rows.
    A temporary solution could be to add empty records in your internal table so that the table uses all the 5 rows in the table while printing in the smartform. Since they are empty records your smartform will not display any data but will only use the height.
    If you have 1 record add 4 empty records, Similarly if you have 2 records add 3 empty records...
    This way all time the table will take the height of 5 rows.
    As i said earlier this could be a temporary solution.
    Thanks,
    Hari Prasad.

  • How to display table in smartforms

    hai
    I want to display the output in table.. how to set table.. I tried with the display framed framed patterns but its not working.. is that right method?? pls give suggestion

    Hi
    Yes,you can display the contents of the output using tables.
    Refer these links:
    Tables in Smartforms
    drawing a table in smartforms.
    passing tables in smartforms
    Drawing table in smartforms
    Creating Tables in Smartforms
    Regards,
    Sravanthi

  • Applying table scroll bar for only table rows with table columns fixed.

    hi oa gurus,
    i had implemented table scroll bars using oarawtextbean , there is no problem in vertical and horizontal scroll bar working its working fine. but the requirement is i need to scroll only the table rows with table columns fixed. so , how to achieve the table scroll for only table datas neglecting table headers.
    the code for vertical and horizontal bars scroll is like this,
    OARawTextBean ors = (OARawTextBean)webBean.findChildRecursive("raw1");
    ors.setText(div id=tabledivid style=height:500px;width:100%; overflow:auto>);
    OARawTextBean ore = (OARawTextBean)webBean.findChildRecursive("raw2");
    ore.setText("</div>");
    where raw1 and raw2 are rawtextbean created above and below of the table . but i dont know hoow to apply this only for table rows neglecting table columns , can anybody give any ideas.
    pelase this is very urgent , can u help me in this regards
    thanks
    Edited by: user630121 on Sep 29, 2008 5:17 AM
    Edited by: user630121 on Sep 29, 2008 5:18 AM

    hi,
    I have a similar task to do... Only to apply scrollbar at the table level.
    I tried using the above mentioned but I am facing Null Pointer Exception..
    Please explain about raw1 and raw2
    Rahul

  • Inserting rows in table while logging errors...Urgent

    Hi all,
    i want to insert rows from temp table to main table.
    if temp table contains 100 rows.then all rows must be inserted
    in main table.if their is any exception while insertion,
    insertion must nt stop and erroring rows along with error no must be inserted in
    error log table.
    How to do this ?
    i used forall save exceptions to achieve this .
    but ws able to save only error no. but not errroing rows in error log table.
    is there any efficient way to achieve this?
    can forall be modified in way that it inserts erroring rows also?????

    Hi,
    1.) does dbms_errorlog works fine in this case?If all of your 807 tables having same columns then i think it will work (NOT TESTED).
    By the way are you also trying to insert rows for all tese 807 tables in a single PL/SQL block?
    Please post how you are trying to insert then we can think about it,
    Oracle ERROR_LOG table allows us to have any number of columns.
    From the Oracle Docs:
    The number of columns in this part of the error logging table can be zero, one, or more, up to the number of columns in the DML table. If a column exists in the error logging table that has the same name as a column in the DML table, the corresponding data from the offending row being inserted is written to this error logging table column. If a DML table column does not have a corresponding column in the error logging table, the column is not logged. If the error logging table contains a column with a name that does not match a DML table column, the column is ignored.
    Regards

  • How do I deselect a row in table control on scrren?

    Hello All:
         How do I write the code to deselect a row in table control on a screen? This is in dialog programming.
    Thanks.
    Mithun

    I thought that the descriptions given in the Help are clear.
    The ADDRESS function constructs a cell address string from separate row, column, and table identifiers.
    ADDRESS(row, column, [type], [style], [table])
    row: The row number of the address.
    column: The column number of the address.
    I dropped the comments about type, style and table as I don't use them here.
    =IF(ISBLANK(INDIRECT(ADDRESS(ROW(),1))),"",INDIRECT(ADDRESS(ROW(),2))*INDIRECT(A DDRESS(ROW(),3)))
    INDIRECT(ADDRESS(ROW(),1))
    returns the contents of the cell whose row is the same than the one containing the formula \[the row number is given by ROW()] and whose column is the 1st one)
    INDIRECT(ADDRESS(ROW(),2))
    returns the contents of the cell whose row is the same than the one containing the formula \[the row number is given by ROW()] and whose column is the 2nd one)
    INDIRECT(ADDRESS(ROW(),3))
    returns the contents of the cell whose row is the same than the one containing the formula \[the row number is given by ROW()] and whose column is the 3rd one)
    In short, when the formula is applied in row 9 it behaves like:
    =IF(ISBLANK(A9),"",B9*C9)
    The long syntax is required to be able to enter it only once in the header cell as described in the Help and in the PDF User Guide in a chapter entitled "Applying a Formula Once to Cells in a Column or Row".
    As we want to use such a formula, it would be odd to destroy its ability using a different formula in a standard bottom row.
    More, in a footer row, we may use shorter formulas than in other rows.
    In a standard row 10 we would have to write =SUM(D2:D9)
    in a footer row we enter only =SUM(D) which add the contents of every standard cells of the column D.
    This feature is also described in the named resources.
    Yvan KOENIG (from FRANCE vendredi 3 octobre 2008 18:21:13)

  • How to merge cells in tables if SmartForms like colspan/rowspan in HTML

    Hi!
    Is it possible to merge cells in a tables in SmartForms like colspan/rowspan parameters in HTML?
    Both horisontal and vertical merging needed both in header and in body of the table.
    Thanks!

    No it is not possible.
    For merging purpose we have to create seperate windows for that col or rows.

  • How to select all the rows of table control in BDC

    Hi All,
    While I am doing BDC for Transaction Code MC88, After the first screen I will get another screen with tabble control, Here I need to select all the rows of table control, I am assignng the 'X' to the first field of Table Control which is the indicator for selection.
    Here I am getting message called Indicator field is not in program and screen.
    While doing Recording I am not able to record the indicator, Please any one let me know how to record the Entire table control selection.
    Thanks in advance..

    Sorry about that lakshmi. Here is my code.
        PERFORM dynpro USING : 'X'   'SAPMMCP6'          '0105',
                               ' '   'RMCP2-MATNR'       t_matnr,
                               ' '   'RMCP2-WERKS'       t_werks,
                               ' '   'BDC_OKCODE'        '=AKTV'.
        PERFORM dynpro USING : 'X'   'SAPLMCPA'          '0707',
                               ' '   'BDC_OKCODE'        '=MRKE'.
        PERFORM dynpro USING : 'X'   'SAPLMCPA'          '0707',
                               ' '   'BDC_OKCODE'        '=GRAO

  • Adding a Row to Table, ComboBox as a  TableCellRenderer Problem !!

    Hell All:
    I have a JTable with one of the Cell as ComboBox. Initially I draw the JTable with Three Rows and the
    the ComboBox in the Second Column works fine. I see each comboBox has different Items. The ComboBox also has a Renderer (as I am customizing the Item's Text )
    Here is the snippet from my Code.
    ==========================
    // UIEditSubAllocation.ALT_ACCOUNT = 2;
    // Get the Viewindex.... to get the correct column
    int viewIndex = this.m_suballocTable.convertColumnIndexToView(UIEditSubAllocation.ALT_ACCOUNT);
    // get the Table Column...
    TableColumn altActColumn = this.m_suballocTable.getColumnModel().getColumn(UIEditSubAllocation.ALT_ACCOUNT);
    // Create Three ComboBox..
    JComboBox[] altActCell = new JComboBox[3];
    for (int i =0;i< 3;++i) // adding Three Rows of Table Data...
    String [] alternateAccounts = new String[4];
    for(int j = 0; j < alternateAccounts.length; j++) // Each Alternate Accounts i.e combobox has 4 items..
    alternateAccounts[0] = "Tom";
    alternateAccounts[0] = "Vic";
    alternateAccounts[0] = "Tracy";
    alternateAccounts[0] = "Andy";
    altActCell[i] = new AltAccountComboBox(alternateAccounts,this.m_suballocTable);
    } // End of adding Three Rows
    altActColumn.setCellRenderer(new AltAccountTableCellRenderer());
    if (viewIndex >= 0)
    ComboBoxEditor altActCellEditor = new ComboBoxEditor(altActCell);
    altActColumn.setCellEditor(altActCellEditor);
    The CombBoxEditor code is...
    ublic class ComboBoxEditor extends DefaultCellEditor
    * Constructs a ComboBoxEditor that uses an array of items of type object.
    * @param items - an array of items of type object
    public JComboBox[] m_comboBox;
    public ComboBoxEditor(JComboBox[] box)
    super(box[0]);
    m_comboBox = box;
    for(int i = 0; i < box.length; i++)
    m_comboBox.setEditable(false);
    public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column)
    if(row >= this.m_comboBox.length)
    return super.getTableCellEditorComponent(table, value, isSelected, row, column);
    return m_comboBox[row];
    But when I click a Button (in a Panel) which adds a Row (with No values for the ComboBox ).. to the Jtable .. The Row Gets added fine.. but the JComboBox comes with Values from the First Row's ComboBox. I Don't want any Values in the JComboBox for the new added Row. Can someone tell me
    how do I remove the Items from the ComboBox.
    I will really appreciate for any help...
    Thanks
    -Pankaj

    Hi ,
    as per my opinion one approach would be that ,
    you create a custom table region same as standard one using Jdeveloper and create other required fields also using jeveloper ,and then put this region in extend property of existing standard table region .
    thanks
    Pratap

  • Tables with smartforms

    Hi, I have a table in smartforms for the remittance portion of a check.  The table consists of 2 lines, one for the headers, and the other for the remittance data.  The request is to frame the table, with a line across to separate the header information from the data being displayed underneath, but when selecting to frame the table, each of the individual rows is separated by a line, when the line is only need at the end of the table, how is this fixed?

    hi daniel,
    continue with creating line types.
    shade the header line item from push button having shaded portion at bottom.
    and for line item of items just put one more line item having shaded portion again at botttom.
    i worked on similar requirement .hope this clear ask me if still issue continues.

  • Line height of table in smartforms

    Hi,
    I have created a table in smartform. I want to set row height in the table as it is available in template. Is there any option available to set height for the table row???
    Thanks in advance.
    -SA

    In table node it is not possible to define the height of a table line. Please find the bold paragraphs in the following text(SAP library)...
    Table tab properties minimum height is set the total table height.
    The line height depends on the font height used in Paragraph format for your text element.
    Line Types for Tables
    The height of a table depends of the amount of data to be displayed or printed in a table. Therefore, you cannot use the line types in the Table Painter alone to describe the table layout, as you do it with line types for templates:
    With templates the view in the Table Painter directly maps the output on the form. This is possible because the structure of a template does not change at runtime.
    With tables the view in the Table Painter is an overview of all existing line types. However, it does not indicate which line types are used when for table output.
    Dynamic Cell Height
    The height of a table depends on the number of table lines and on the height of all table lines included in the output. The height of each table line depends on the highest cell, which again depends on the contents to be displayed in this cell. When filling table cells with contents, nothing is truncated, instead, the cell height is increased.
    In the Table Painter, the height of the line types is displayed as a constant because it has no meaning for the output.
    Unlike with line types for tables, for templates you specify a fixed line height for the line type. Any output that does not fit into a cell is truncated.

Maybe you are looking for