How to decrease line width in table in smartforms

hi i want to decrease line widht in tabel in smartforms.
how can i do.
thanks.

Hi
The width of the Line Type in a table is decided by table width itself. For example 20cm is the width of the table,then you can divide the table width into number of columns you want. If you want only 2 columns then,
next to the line type..one column width would be 10 and the other would be 10...so If you want to decrease the width of a column in the line type..then you would have to adjust that in the other one.
For example, If 10 and 10 cm each is what you have in your line type, then in the first column you can reduce the width to 5 cm and then increase the other column width to 15cm, in that way the total width of the line type will be equal to that of the table width.
Also, it is not necessary that the line type width should be equal to table width. It can be less also.
You can adjust the width at details tab..here you will have the table line type details like this:
Line Type                                      1.                         2.
LTYPE1%                                   10.00cm               10.00 cm "here you can reduce the table line width.
Hope I am clear.
Regards,
Vishwa.

Similar Messages

  • How to decrease the width of the border line of a table in smartform in 4.7

    hi all,
    i want to decrease the width of the border line of a table in smartform in 4.7 version. how can i do it? plz reply.

    Hi,
       When u r going to create a table in forms it will show the all details regarding the tables
    like  -> color
           -> width etc...
    From there u can do that .
    u can also select the table format as all ready defined formats i.e available in he same screen.

  • How to decrease the width of left column in the "2 column layout"?

    Hi all,
    I create two webdynpro based iViews in the EP, then I create a page use the "2 column layout(Narrow:Wide)".I put one iview in the left column and another iview in the right column. When I preview my page, I found the left column still too wide. So how to decrease the width of my page's left column?
    Thanks and Best regards
    Deyang

    Hi Deyang,
    You have to create your own layout:
    - Navigate to System Administration->Support
    - Choose Portal Runtime -> Browse Deployment
    - Navigate under pcd or under temp, and download the layouts par (com.sap.portal.layouts.default.par.bak if I recall correctly)
    - Import that par as a project to Developer Studio
    - Make your changes (create a new jsp acording to the existing examples, and update the portalapp.xml accordingly)
    - Export to par (in a different name!) and deploy
    - In the portal content: new from par -> Layout (don't forget to mark it as a template).
    - Your new layout template will now be available when you create new pages.
    good luck!

  • How to set line width using CoreGraphics ?

    Hi guys.
    I trying draw line with 2 pixels width.
    How to set line width on CoreGraphics ?
    AFAIK, OpenGLES.framework has method like this :
    glLineWidth(2.0);
    Is it possible for CoreGraphics ?
    Thanks in advance.

    See CGContextSetLineWidth in the CGContextReference.
    You might also want to look over Painting a Path in the +Quartz 2D Programming Guide+.
    \- Ray

  • How to show line feeds in table cell

    Dear Expert,
    Now we meet one question,we have a long text which include many line feeds,when show it in a cell of one table in smartform.we can only see the line feeds become to  some ##. not do the ENTER or TAB..
        For example, the show like below:
        ABECDEF#MNIOPHN
       not
       ABECDEF
       MNIOPHN
    So, Would you like to tell me how to do?
    Thanks&Regards,
    Kerry

    Hi Kerry,
    You can use the attributes of class: cl_abap_char_utilities
    If it_longtext is the table which contains your longtext data.
    DATA:  c_new value cl_abap_char_utilities=>newline,
                v_ltxt type string.
    loop at it_longtexts into wa_longtexts.
      concatenate v_ltxt wa_longtexts-text_line  into v_ltxt.
    endloop.
    refresh it_longtexts[].
    split v_ltxt at c_new into it_lontexts.
    Regards,
    Swarna Munukoti
    Edited by: Swarna Munukoti on Dec 4, 2009 11:44 AM

  • How to change line width runtime?

    Hi,
    I want to change line width dynamically or runtime depending on certain conditions.
    I had written format trigger on line and used SRW.SET_BORDER_WIDTH but it does not work. so what is other possible solution for this?
    Thanks in advance.

    In your variable vertical elasticity frame put several fixed vertical elesticity objects (lines, frames, etc.) of different heights. In the runtime, suppress all the objects in their format triggers, but one with the height you need. The objects need to be made invisible by setting their color to white.

  • How to remove space below the table in smartforms

    how to remove space below the table in smartforms

    maintain a loop counter for item say count
    and in text editer write
    if count > 6
      new-page.
    endif.

  • 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.

  • Blank Lines in a table in Smartforms

    Hey fellas,
    Why m i getting 2 blank lines after each table line...?
    My Line Spacing Setting in Smartstyle is exactly 1 LN...if changed to less output is jumbled...
    And my internal table doesn't contain any blank line too...
    Plzz HELP !

    HI,
    Check the number of rows in main area of table.
    only one is required.
    Regards
    Sreekanth

  • How to determine line number on Table control in BDC

    Hi,
    I am uploading changes for CG02 using BDC. I have to change data to specification type which are listed in a table control having some of the fields as IDCAT, IDTYPE, LANG, ORD, IDENT etc.
    For a particular substance number, there can be variable number of idtypes. Since there were 8 Idtypes already created for the substance number I was working with while recording and I created 9th Idtyep(Z_SARADOT#) while recording (Using SHBD), I am getting the code like ...'ESTRI-IDTYPE(09)....ESTRI-IDCAT(09).....'RCGRIIOT-IDENT(09)' which indicate that while recording, the values were added on 9th line of table control.
    Now this line number can vary for other substance number. How can I know
    (1) The last line of table control
    (2) Line number based on Value of field
        Example - here I want to know line number corresponding to IDTYPE Z_SARADOT# if it was created so that I can change the value of field IDENT of the table control.
    The piece of code I got after recording is:
              perform bdc_field       using 'ESTRI-IDTYPE(09)'
                                            'NUM'.
              perform bdc_field       using 'ESTRI-IDCAT(09)'
                                            'Z_SARADOT#'.
              perform bdc_field       using 'RCGRIIOT-IDENT(09)'
                                            '1175'.     
    Please help friends.
    Thanks & Regards,
    Surya

    There are around 800 Substance numbers and for each substance number there are around 10 IDtype. So It would be a costly processing.
    If there no other way doing it?
    I think, I need to follow this way as We can not determine the line number untill BDC is running.

  • How to control column width in table?

    I have a table with four columns, and they are all with same width.
    But I want to make one of them wider.
    How should I do?
    public void loadTable(){
    Vector infoList = myObj.getInfoList();
    Info info;
    DefaultTableModel dtm = (DefaultTableModel)myPanel.tblList.getModel();
    String[] columnNames = {
    "wider column",
    "Column B",
    "Column C",
    "Column D"};
    dtm.setColumnIdentifiers(columnNames);
    for(int i=0;i< infoList.size();i++){
    // add stuff to "data"
    dtm.addRow(data);
    myPanel.tblList.setModel(dtm);
    myPanel.tblList.getColumnModel().getColumn(1).setWidth(100);
    I also tried setPreferedWidth(), not working for me either.
    What should I do?
    Thank you

    Try setting all the column widths. Define values for normal and width columns:
            DefaultTableColumnModel tcModel = (DefaultTableColumnModel) myTable.getColumnModel();
            Enumeration columnEnum = tcModel.getColumns();
            while (columnEnum.hasMoreElements()) {
                TableColumn column = (TableColumn) columnEnum.nextElement();
                if (column.getModelIndex()  != 1) {
                    column.setPreferredWidth(narrowWidth);
                } else {
                    column.setPreferredWidth(wideWidth);
    Cheers
    DB

  • How to set column widths in tables for selected table only, not globally throughout document?

    I've been utilizing the below script (thank you so much Ramkumar. P!) to set column widths throughout a sizable InDesign book with tables on every page and it is truly a time saver. At this point in time, I have three versions of it because there are different column widths throughout the book. Is it possible to augment the script to run only on a selected text frame (containing a table)? If so, would someone be kind enough to share the augmented script with me? I've been trying to figure out this seemingly simple change through trial and error with no success as yet. I realize this is a totally newbie request and I'm entirely at the mercy of the kindness of the Javascript gods that contribute within this forum. Seeing that in a different post related to this script, one such guru responded to a request as simple as "Where do I put the scripts in InDesign" gave me enough courage to ask for some help! Thank you in advance to anyone willing to provide a solution.
      var myDoc = app.activeDocument;
         var myWidths = [100, 100, 150, 150];
         for(var T=0; T < myDoc.textFrames.length; T++){
             for(var i=0; i < myDoc.textFrames[T].tables.length; i++){
                 for(var j=0; j < myWidths.length; j++){
                     myDoc.textFrames[T].tables[i].columns[j].width = myWidths[j];
         alert("Table width updated successfully...");

    Hello all
    I have the same problem in that I'm not a scripting person, but was able to get the above script working without problem, and it does set irregular table column widths perfectly, so thanks to Ramkumar. P for that.
    BUT, it changes the column width for ALL tables in the document, whereas I would like to just target the selected table.
    Any ideas as to how I might amend this script to achieve this?
    Thx, Christian

  • How to increase column width in Table Maintanance (SE56)

    Hi,
    Can somebody tell me how I can adjust the column width permanently in SE56, so that when I use SM30 to enter data, the columns
    correctly adjusted.
    Thanks,
    mini

    Go to SE80 > Select Function Group > Enter your FG... select your Screen..
    Open the Screen Painter.. change the width of the required column.
    Regards,
    Naimesh Patel

  • How to decrease the width of bookmarks sidebar?

    I would like bookmarks sidebar to be narrower than allowed by default range for width.
    I tried many advices, no success. I tried to create something like userChrome.css with recommended code snippet inside but it did not work. Others were recommending Stylish add on but i do not know what to do with it. The only tool which had been working was ChromEdit Plus add on. But after I reinstalled my sWindows ystem on Sunday, this extension does not seem to be working anymore.
    OS: Windows 7 64 bit
    Firefox version: 26

    ChromEdit Plus needs the correct code to do anything, the extension alone does nothing! And that specific code is exactly the same as one would use in a manually creates userChrome.css file. The only real difference is that CEP automatically creates the userChrome.css file ''(and a userContent,css file)'', in the '''/chrome/''' folder which doesn't exist until the user or CEP creates that folder.
    That said, the width of the sidebar should be the same as the last time Firefox was closed. IOW, the user set's the size ''(width)'' of the Sidebar they prefer, they close Firefox after using it, and when they open Firefox the next time the width of the Sidebar should be the same as when they last closed Firefox. If it isn't the same, the localstore.rdf might be slightly corrupt, or "something" is messing with the localstore.rdf by changing preferences.

  • Control Line Items of table in Smartforms

    Hi,
    Please help me out for following problem which  I am facing in smartforms.
    Scenario u2013 I am trying to print Bank Payment voucher, In this I am passing two internal  tables from my driver program, One internal table is for header details and other internal table for Line item details.
    I am Looping for header details and under the templates, I am populating header data into itu2019s appropriate places, for line item details, I am using Table and able to populate line item details, Now say my line item should print only 5 line items in one  page and if there are more than 5 line items , it should print next line items on next page.   when new page will start it should print header details  and footer details also,
    In last last row, I have put the program code where I am counting the number of line items, and below that i have put 'Command' and in command condition, I have stated that if linecnt > 5 , go to next page%2 and in page 2, I have again copied the header details but , it is not working,
    In short the Flow of Smartforms is given below.
    Loop    (For Header details)
    Template
    Template
    Template
    Table   (For Printing Line Item Details)
      (row 1
       row 2
      program line (Whre I am counting Number of Line items
      Command (Go to next page is activated )
    Template ( For Printing the footer details
    Page%2
    Template
    Template
    Template
    Looking out for your valuable help .
    Thanks and Regards
    Rani

    And one thing more that line count may not be increasing. ..... so try to send the flag of page triggring from ur driver program.
    as i have done here.
    *  Page Break after 21 Records means
      count_rec = 1.
      loop at it2_all_outlet_sale into wa_it2_all_outlet_sale.
        count_loop = sy-tabix.
        if count_rec = 21.
          wa_it2_all_outlet_sale-zyear = '9998'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index count_loop.
          clear: count_rec.
        endif.
        add: 1 to count_rec.
      endloop.
      describe table it2_all_outlet_sale lines count_rec.
    " This part of code for not page triggering after last 21 records
      read table it2_all_outlet_sale into wa_it2_all_outlet_sale index count_rec.
      if sy-subrc = 0.
        count_loop = sy-tabix.
        if wa_it2_all_outlet_sale-zyear = '9998'.
          wa_it2_all_outlet_sale-zyear = '9999'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index sy-tabix.
        endif.
      endif.

Maybe you are looking for

  • How to start the ServiceRegistery and AccessManager

    I have downloaded the Java Identity Management Suite.(java_es-5-identsuite-ga-windows-x86.zip) I used a Configure Now installation on my WindowsXP. Everything went fine and after installation I was able to go to http://localhost:6480/soar/index.jsp a

  • Charts - More then 15 value in X axis

    Hi guys, I couldn't find how to show more then 15 value in X axis in 2D column chart. It only shows 15 values in default. I searched Chart xml but i couldnt find that which code block i need to change.. Could you pls help me.? Thanks

  • Securing DMVPN Headend

    Hi everyone, Our DMVPN scenario is we're a managed IT provider and as such require constant access to our customer networks.  Presently our deployment has a DMVPN head end our side, and each customer is a spoke on the DMVPN. To stop one customer seei

  • Adobe reader XI Issue

    Since downloading the new Adobe Reader XI it will not open. I have reloaded it multiple time. I'm running Windows 7. Since it will not open I also can not open any pdf files.

  • Documentation for Javascript Functions

    Where do I find documentation for APEX provided javascript functions such as addRow();?