Cols in smartforms

hai abapers,
     i have a requirement in which i have to supress the whole column in the table. is it possible in smartforms. plz respond quickly. its urgent

Hi Hasmath,
Please follow these steps to supress a column in smartforms. I assume that you are using TABLES.
In TABLE node you might have created line types for columns. When you supress columns using the condition tab, you may get error or formatting problem. This is because the new cell is determined using the 'NEW CELL' checkbox in the output condition of the table child node (such as text node). When you supress one column, the data that is to be displayed in the next column will come in the previous one. This is fine if you want to disable a particular column completely and move the other columns to the left.
But if you want to only supress the column value then use the 'Alternate condtion' node.
Now let me tell you how to do both.
Condition tab - In the text node you can find a tab for giving condition. Enter the condition there. The node will be displayed only when the condition is true.
Alternate condition - This is similar to condition but we have True as well as False. So you can have two text nodes, one for true and another for false. You can copy the existing text node under 'True' and a text node with blank in 'False'.
Hope this will help you.
Thanks
Vinod

Similar Messages

  • Select query in smartforms

    hi everyone,
    iam new to smartforms and have a  query regarding select st  in smartforms,
    i have created a table in the main window, in that i have 7 cols,in which the 5th and 6th cols are Quantity(VBRP-FKIMG) and Condition Value (KONV-KWERT) respectively.Now i want the product of these 5th and 6th cols and want the result to be displayed in 7th col. How can i do this and where i have to write the code?
    if i want more than 1 row then how can i use the loop for this.
    i have written the code to display the 1st  6 cols in the program lines of main window,,,but iam unable to  write the code for the product of FKIMG and KWERT.
    Plz help me if anyone knows the answer,,its urgent
    <b>Points will be rewarded</b>,
    u can also mail the answer to this id [email protected]
    thnx in adv
    Zia

    Hi,
       you can calculate the your 7th column in the program lines.
    After creating a table right click > create>program lines.
    in this you need to pass the 5th , 6th and 7th column as input parameters and 7th column  in the out put parameters.
    make the calculation in the program lines as necessary.
    Now in the Main area display the 7th coulmn value which is calculated in the program lines.
    Another alternative is before the table . create a program lines.
    modify the internal table accordingly and then call the table with the modified internal table.
    For eg:
    Program lines  -- zprog
    input paramers : itab and output parameters : itab.
    loop at itab.
    it_tab-colum 7 = it_tab-column 6 * it_tab - column 6.
    modify it_tab.
    endloop.
    In the table under data table pass your modified internal table with workarea.
    in the 7th column give &it_tab-column7&. that's it.
    Br,
    Laxmi

  • Problem with dynamic columns in smartforms.

    Dear SDN Experts,
    I have a requirement in smartforms for dynamic columns.
    i have used template with 10 columns, So from these 10 columns,Columns may vary monthly MIN 2 to MAX 10 depending on
    readings with them  for that month.
    i cannot fix column headings also,Because headings also changes dynamically.
    So Problem is if there is no data in columns,Columns is displayng empty.
    For EX: In this month i have 2 columns data remaining all columns is displaying empty boxes.
    Please suggest me a solution  is this posible in smartforms if i use table also.
    <removed by moderator>
    Regrds,
    MNR
    Edited by: Thomas Zloch on Sep 11, 2011 3:50 PM

    Hi friend,
    See the link below it is having the solution of hiding the columns in smart forms
    Hide table columns in smart form?
    Create a table to display your values with 12 col and hide the columns based on the idea provided in the link above.
    I think this will solve your issue if you still have queries please revert back to me i will help you.
    Thanks,
    Sri Hari

  • Use of table and template in Smartform

    Hi,
    I need an output in the smartform as shown below in the form of a table. I have tried doing this only with the use of template(create->Template) but I am not able to print the heading using text elements one after another. Only the first cell is getting populated with the heading.
    I assume this can be accomplished with a template as well as a table.
    Can anyone please let me know how this can be done?
    Any help would be appreciated.
    heading 1          <data>
    heading2           <data>
    heading3           <data>
    Thanks
    SR

    template is 4 , when u know , how many rows u want , u can use.
    If u dnt know then use Table .
    Now when u creat text element u have to assign row number ,
    and colomn number .
    for that click on text element go to ouput option.
    then only it will display in perticular row/col.
    if u didnt assign , default it will come in 1st row nd col.

  • Smartform Dynamic colour in the item table

    Hi Experts,
    I have a requirement wherein we need different colours for each item in the table according to a particular condition.
    If the value in the  column two is 1 ,first item should have a colour blue in the last column
    If the col2 is 2, second item should have red colour in the last column.
    and accordingly.
                          Col 1       Col2       Col3      Col4
    Row1                                1                   Blue colour
    Row2                                2                   Red colour
    Row3                                3                   Green colour
    Is this possible in smartforms.
    Already tried giving condition in the condition tab and choosing the colour for different text elements,which is not possible.
    Tried writing the below code in initialisation which is also not helping.
    * Color
    *DATA: l_tabdef  TYPE ssftabdef,     " Work Area for the Table
    *     t_ltypes  TYPE tsfltype,      " Table - Line types
    *     l_ltypes  TYPE ssfltype,      " Work Area for the table
    *     t_colinfo TYPE tsfcolinfo,    " Table - Columns
    *     l_colinfo TYPE ssfcolinfo,    " Work area for the table
    *     t_border  TYPE tsfctaba,      " Tables - Borders
    *     l_border  TYPE ssfctaba.      " Work Area for the borde
    * FIELD-SYMBOLS : <f_tab> type tsftabdef.
    *ASSIGN ('(SAPLSTXBC)TABDEFS') TO <f_tab>.
    *bREAK-POINT .
    *LOOP AT <f_tab> INTO l_tabdef  where name = 'ITEM_VALUES'.  "  only for one template
    ** Table line Types
    **  Line type TYPE1 from the table MAIN_TABLE
    *  LOOP AT l_tabdef-tltype INTO l_ltypes where linetype = 'L2'.  " only for one line type is required
    ** Coloum information
    **   Column1 (cell) of the TYPE1
    *    LOOP AT l_ltypes-tcolinfo INTO l_colinfo." where widthv = '1.31'. .
    ** Borders
    **   Background color and borders for that cell
    *      LOOP AT l_colinfo-borders INTO l_border.
    ** Clearing the color parameters for the cell
    *        CLEAR: l_border-intensity,              " Intensity
    *        l_border-fillcolor-red,          " Red
    *        l_border-fillcolor-used,         " Color Used
    *        l_border-cfillcolor-color,       " Red color in Hexa
    *        l_border-cfillcolor-xred.        " Color used in Hexa
    *        l_border-fillcolor-red = '255'.
    *        l_border-fillcolor-green = '000'.
    *        l_border-fillcolor-blue = '000'.
    *        l_border-fillcolor-used = 'X'.
    *        l_border-cfillcolor-color  = 'X'.
    *        l_border-cfillcolor-xred = 'FF'.
    *        l_border-cfillcolor-xgreen = '00'.
    *        l_border-cfillcolor-xblue = '00'.
    *        MODIFY l_colinfo-borders FROM l_border.
    *      ENDLOOP.
    *      MODIFY l_ltypes-tcolinfo FROM l_colinfo.
    *    ENDLOOP.
    *    MODIFY l_tabdef-tltype FROM l_ltypes.
    *  ENDLOOP.
    *  MODIFY <f_tab> FROM l_tabdef.
    *ENDLOOP.
    Please suggest and help on how to proceed.
    Thanks in advance.
    Jojy

    Can you try creating 3 identical line types in Smartform with just 3 different colors. Add a field to the internal table to specify the color. Add a condition to the line types to output based on the color field.
    Thanks,
    Juwin

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

  • Page protection in smartform not working

    Dear All,
    I have a smartform with one page. For a range of order numbers multiple pages would come in output. Example : 5 order numbers , 5 page output. There is a header part, that has to come on each page which is hard coded i.e company name .
    when we give small range of order number ,output comes perfect. But when range is over ten. the header part  moves for some pages into previous page...........

    Hi Shiva,
    I am using only one page. In it I am using  loop to display all content.
    Pattern of each page is:
                                                                    Company Name
    doc no.      123456                                       code:456                                  city:nnnnnnnnnnnnnnn
    table  with 4 cols.
    footer part. of table
    pm sign                                     authority sign                                                  reviewer sign
    So, when there are more then three pages, the last line in smartform goes in to next pages .Due to which other pages indentation also goes wrong.  This is happening when table size is increasing more then it is in first page.
    Please Help.........

  • Smartforms - Performance Issue

    Hi,
    I am developing a report related to customer ageing details which involves high volume of transactional data.
    Initially the report was displayed using ALV , but the client was not satisfied when they print the alv report in 130 col printer with sort and sub-total features.So I developed a smartform according to the required design.
    Since the report involves page break and totals inbetween...i have used the event and At new command in the loop within the smartform..
    The issue here is...when the report was tested with actuall data(high volume)..it took almost 5 times of the time when the report was executed using ALV..this is due to the design of the smartform involving the loops...
    Is there any way to check out the performance of smartforms.Kindly suggest.
    Regards,
    Thyagu,

    Hi Thyagu,
    As ALV, smart forms are just ABAP, so you can use the runtime analysis (SE30, or ST12, or SAT) to see what makes it slow.
    See SDN and official documentation for more information about runtime analysis
    BR
    Sandra

  • How to handle 6 X 16 matrix in smartform

    Hello Experts,
    I've a requirement where on TEXT FIELD I need to display 16 X 16 values. For example here is my matrix
    Header 1
    Header 2
    Header 3
    Header 4
    Header 5
    Header 6
    Header 7
    Header 8
    Header 9
    Header 10
    Header 11
    Header 12
    Header 13
    Header 14
    Header 15
    Header 16
    DG
    COS
    ECQ
    SDL
    SPU
    SPH
    COL
    TPY
    DEC
    MUL
    RDL
    BYO
    BYD
    ACC
    RPU
    SIG
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    X
    Above I've only show 1 possibility where DG can have value with any other column. Now you can think off the same for COS, ECQ and so on. Then as next step any two can have values let say DG and COS and any other can have value and then three can have value and so on. 
    When I tried to add conditions for all 16 X 16 possibilities then at some point of time I get short dump and here is the description.
    A jump distance is too large and cannot be generated.
    A control structure or a routine with "CHECK" or "EXIT" contains
    too many ABAP statements.
    Can somebody please help me to find a solution of this requirement.
    Many thanks in advance.

    Many thanks for both of your input. Actually I'm new to smartform and don't understand the idea. So here is how I've my smartform looks like.
    Service cell has a bunch of text objects to display details and TOTAL_V cell has so many text objects which hold total values to display and here is the output of the form.
    So based on my form and output what change I should make to achieve 16 * 16 matrix on 'Service and Total column'.
    Many thanks in advance.

  • How to upright center the data of the smartforms' table content?

    Hello,experts,
    I find that  smartforms 's format can make the table 's data level-centered ,how to make it upright centered?
    pls help me out.thanks

    in fact ,I have such a problem:I write a print program  with smartforms ,and use A4 paper to print ,the result is good ,but when changed to stylus printer ,some line can not display.
    I changed the width of the table from CM to MM.,1CM=10MM.
    the col line that can not printed at fist now can be printed .so I wonder if I make the data of the table content upright centered ,whether it will be ok:I hope this measure can make  the row line that can not printed out previously can be printed out .
    so can you give me some  solution .I will be appreciate.

  • INTERNAL_ERROR when testing Smartforms FM

    Hi Experts,
    after modification of a SmartForm, I tried to execute the associated FM and I got this message:
    Exception       INTERNAL_ERROR
    Message ID:          SSFCOMPOSER                Message number:           178
    Message:
    Line 3 column 1 do not exist.
    I've deleted this Line 3 Col 1 in the SmartForm because I don't need it, how can I re-generate the FM ?
    Regards,
    David

    May be that deleted line number is being used by some text elements. So check if any texts are using that line and modify accordingly.
    To find out where the problem is before running the smartform , just use Tcode SMARTFORM_TRACE and press Switch On button.
    Then after getting the error go to the SMARTFORM_TRACE tcode and see the log under Traces in Database.
    That will pin point where the problem.
    Do remember to switch of the trace once you are done with this problem.
    Regards
    Karthik D

  • Error in smartform ( Points will be awarded )

    hi....
    i get the following error when i paste the code mentioned below... i have a similar code in the else part for plant 1500 but that does not give this error.....
    Field "IS_BIL_INVOICE-HD_GEN-BIL_NUMBER06" is unknown. It is neither in one of the specified tables nor defined by a "DATA" stat
    the code.....
    ELSEIF
    ZWERKS = '1200'.
    footertext11 = 'GST TIN - 08122608574 dt 15.06.06 '.
    footertext12 = 'CST TIN - 08122608574 dt 15.06.06'.
    footertext21 = 'I/We hereby certify that our registration certificate under the Rajasthan Value Added'.
    footertext22 = 'Tax Act, 2003 is in force on the date on which the sale of the goods specified in this'.
    footertext23 = 'Invoice is made by me/us and that the transaction of sale covered by this Invoice'.
    footertext24 = 'has been effected by me/us in the regular course of my/our business.'.
    footertext25 = '  '.
    footertext26 = '                                      E. & O.E.'.
    FOOT30 = 'Range: Pali II'.
    *foot31 = 'Division: Jodhpur, Add: C-1-A, Panchwati Col Ratanda, Jodhpur HO'.
    foot31 = f_31.
    FOOT32 = 'Commissionerate: Jaipur II'.
    Foot33 = 'PAN : AAACS5473J'.
    FOOT34 = 'C.EX.REGD.NO: AAACS5473JXM001'.
    FOOT35 = 'ECC NO: AAACS5473JXM001'.
    *foot41 = 'AT Post Vavdi National Highway '.
    *foot42 = 'Rajkot 360004'.

    thnx for ur reply guys .....
    i have defined IS_BIL_INVOICE-HD_GEN-BIL_NUMBER in the global decalaration .... the prob is i have a similar code in the else part for a different plant which runs fine.... since we have a new plant now we had to add it to the existing smartforms with just few words changed...but this gives an error
    from the above code if i comment the following....
    footertext11 = 'GST TIN - 08122608574 dt 15.06.06 '.
    footertext12 = 'CST TIN - 08122608574 dt 15.06.06'.
    then i get an error.. The text literal is longer than 255
    characters. Check whether it ends correctly.
    i have checked if the strings ends correctly n they do....can the error be because there are too many elseif part for diffetent plant.....

  • Smartform, no.of.prints

    1.i am having 2 clumns in a smartform run report.
    after SF is called, how can i know wether user takes preview option or print option.
    bcoz i need to update cols: USER ID & no.of.pages printed.
    2. is spool created for preview also.
    any clues, most appreciated.
    thanks
    kiran

    Hi,
    Refer this code.
    Spool in Smartform

  • Table and template in smartforms

    what r the diff.s between TABLE AND TEMPLATE in smartforms..
    ALso.. the diff. between LOOP and TABLE.. in smartforms..

    Hi,
    Template :
    1. No of rows & coloumns are fixed.
    2. u can directly mention, which data has to be fill in which row & coloumn.
    3. Templates are used, where u r having static no of data.
    ( ex : Name, rollno, age, ***)
    4. No header & footer
    Table :
    1. No of cols are fixed, u can have 'n' no of rows.
    2. it has header & footer concept
    A table is meant to be used to display dynamic number of lines (eg. invoice line items), whereas a template is for fixed number of column and lines (labels).
    Please reward points if it helps
    Thanks
    Vikranth

  • Filename in Webdynpro for a PDF created with Smartform

    Hi,
    I created a PDF with Smartform in my Webdynpro-Application.
    When I click the save button there is a default filename f.pdf .
    How can I change the filename?
    Regards
    Marcus Schug

    Hi Experts,
    any update on this?
    I am facing the same problem with ESS payslip (smartform/Hrform): my customer wants to have custom file name for download salery statements from the portal. Do you know how to change the default form name unknown.pdf to e.g.. "payslip_month_year"?
    I spent a lot of time to find any possibility to get and change the file name but without success till now.
    Please respond.
    Regards,
    Zdzislaw Kaczmarczyk
    Edited by: Zdzislaw Kaczmarczyk on Jun 14, 2010 4:41 PM

Maybe you are looking for