How to add blank line below the table/row whenever there is no data

Hello Everyone,
I have a table in my report template like below:-
Children / Dependents: Name / Comments: Grandchildren: Name / Comments:
Son John Daughter Smith
Daughter Laura Son Kevin
Son Bill None NA
When i run the report I need to achieve the following conditions:-
Condition 1: Loop through all rows and whenever there is data in any row in the table...I need to Populate and print it.
Condition 2: When Loop is ended, when you see there is no data in any row in the table... add a dash line at the end of the table.
Condition 3: Total no of populated rows + blank dash line <= Max no of rows in DB. And when max no of populated rows in report = max no of rows in DB/UI ... don’t print dash line.
I want to achieve these conditions. Can you please help me.
Thanks..Rithesh

Hello Everyone,
I have a table in my report template like below:-
Children / Dependents: Name / Comments: Grandchildren: Name / Comments:
Son John Daughter Smith
Daughter Laura Son Kevin
Son Bill None NA
When i run the report I need to achieve the following conditions:-
Condition 1: Loop through all rows and whenever there is data in any row in the table...I need to Populate and print it.
Condition 2: When Loop is ended, when you see there is no data in any row in the table... add a dash line at the end of the table.
Condition 3: Total no of populated rows + blank dash line <= Max no of rows in DB. And when max no of populated rows in report = max no of rows in DB/UI ... don’t print dash line.
I want to achieve these conditions. Can you please help me.
Thanks..Rithesh

Similar Messages

  • How to insert blank lines in the ALV output.

    Hi Friends,
    Could any body help me out How to insert blank lines in the ALV output.?? Any Code pls...
    Thank you,
    Vikram.C

    hi vikram
    do like this
    In the fieldcatalog table all the fields should be in editable mode
    ie lw_fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    is_layout = lv_layout
    it_fieldcat = lt_fcat[]
    i_save = 'A'
    is_variant = lv_variant
    TABLES
    t_outtab = lt_license[]
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM. " display_data
    *& Form user_command
    FORM user_command USING r_ucomm TYPE sy-ucomm
    rs_selfield TYPE slis_selfield.
    CASE r_ucomm.
    WHEN 'ADD'. "
    data: lv_ind type i.
    data: lv_line type i.
    describe table lt_license lines lv_line.
    loop at lt_license into lw_license.
    lv_ind = sy-tabix.
    if lv_ind = lv_line.
    append initial line to lt_license.
    endif.
    endloop.
    ENDCASE.
    ENDFORM. "user_command
    reward points if useful
    Rohan

  • How to add additional lines to the Order Form template?

    I purchased and installed Acrobat Pro 9 because of its ability to create forms and found the Order Form template is just perfect for what I need, why reinvent the wheel, right?   Except I found I can't figure out how to add additional object that duplicate what is already there.  I highlighted an entire row and tried to just copy and paste but the past function put the copied objects at the bottom of the form in what looks like a group, all out of order.  I tried looking in the online help for a possible key combination that would inset an additional row of objects but couldn't find any.
    Also the form doesn't move down and create a new page keeping all the other elements in line, it moves to the bottom of the current page and stops.   Thought the template was based on a table so I was going to insert additional rows thinking once it reached the bottom of the current page it would automatically break to a new page and continue, but it's not a table.  So my question is, how can I add duplicate object that match the Order Form templates Item, Description, etc. objects?  I've come to realize learning to use this product is not going to be as simple a proposition as I was lead to believe.  O well, live and learn!
    If someone can point me in the right direction, any help is greatly appreciated.
    Tony Rodriguez

    Thanks, Barney! It's even easier than the solution I came to: copying and pasting into the field. 

  • How to add blank lines (in column) in SQLplus

    I get error when doing below insert, how do I add blank lines in column (via SQLplus)?
    insert into a values(1, '78 ABC house,
    Some Road
    London E34');
    Thanks

    Just set "SQLBLANKLINES" to ON:
    SQL> set sqlblanklines on
    SQL>
    SQL> insert into dept values (50, 'This department
      2
      3  has several
      4
      5  blank lines','This
      6
      7  Loc') ;
    1 row created.
    SQL> select * from dept where deptno = 50 ;
        DEPTNO DNAME                          LOC
            50 This department                This
               has several                    Loc
               blank lines
    1 row selected.
    SQL>

  • How to add extra lines in the address field?

    How, if possible, to add extra lines in the address field? For example, the street address might require two lines:
    Bob Smith
    Newport A  Unit 32
    Century Village
    Aventura, FL 

    Thanks, Barney! It's even easier than the solution I came to: copying and pasting into the field. 

  • How to remove blank lines in the end of list .

    hi,
    in a complex report ,when there are only 20 pages,and linecount is 65(2) ,in the last page only 27 lines are filled and data is completed.then blank lines are printing from 27th line to 63 line.then end of page is triggering.
    so plz help me how to remove the blank lines here and immediately print the endof page.

    Hi,
    will this work for you.
    SET BLANK LINES OFF.
    These statements allow you to specify whether you want to output blank lines or not. Use SET BLANK LINES ON to output blank lines or SET BLANK LINES OFF to suppress them.
    Regards
    Viswanath Babu

  • How to add a line between the two text fields  in JTabbed Pane

    Hi Friends,
    I would like to add a Line between some text fields to seperate them.. I added those text Fields to a tabbed Pane.. Please help me to create a line between the TextFields......

    http://java.sun.com/docs/books/tutorial/uiswing/components/separator.html

  • How to add many lines in the Text View in Web Dynpro

    Hi friends,
    I have one Text Edit in Web Dynpro. I need to show the result of FM READ_TEXT in Text Edit View element, without lose the text format.
    Cardinality of my node is 0:n and attribute datatype is string_table. after assigning the values using bind_table method, I am getting only the first row of the read_text returns...
    By
    deva

    Hi Deva,
    Text View is not meant to be bound to string_table. Create a string instead and convert that string table into that string with
    <br>
    between each row of string table. TextView component will make <br> into new lines. Code will be similar to following.
    DATA: ROWS TYPE string_table,
          top type string,
          result type string.
          loop at rows into top.
            concatenate result top into result separated by '<br>'.
          endloop.
    Now bind this result string to the text view component. It ll work. Hope it will be helpful for you.
    Regards,
    Fareez

  • How to add round image inside the table column? with different background color, column value should appear in the middle of the round portion.

    Hi
    This question is related to table component implementation.
    I want to display the column values inside the small round image with different colors and value should appear in the middle.

    Hi,
    >>1. how can i align Title(DCS Clinical Report-Technician wise) center of pdf report with image named:logo5.png immediately coming to it's right?.
    2. how do i add the given below row and it's data to my top my table in pdf report from c# windows forms using itextsharp?
    3.how to make my column headers in bold?<<
    I’m sorry for the issue that you are hitting now.
    This itextsharp is third party control, for this issue, I recommended to consult the control provider directly, I think they can give more precise troubleshooting.
    http://sourceforge.net/projects/itextsharp/
    Thanks for your understanding.
    Regards,
    Marvin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to add new line to the file?

    Hello,
    I will like to print 2 line of string in the following format to the
    file:- file.txt
    String1
    String2
    How to print a new line after String1 so that String2 can be written after String1?
    - Eugene -

    Do you mean...
    PrintWriter pw=new PrintWriter(new FileOutputStream("file"));
    pw.println(string1);
    pw.println(string2);
    pw.close();
    the println puts a new line after string1.

  • How to add virticle line in the final output

    Dear Fiends,
                    Iam facind problem while getting final output,
    i have to get the output as  below
    __________________________________________________  |                               |_____Volunatary___________________
    | Function | Customer |_______________________________
    can i get output as above please , if any body could let meknow
    regards
    madhuri

    Use WRITE statements and you can get that output.
    REPORT  ztest_output no standard page heading line-size 60.
    *__________________________________________________ |
    *|_____Volunatary___________________
    *| Function | Customer |_______________________________
    write:  sy-uline.
    write:/  sy-vline,
           2  '_________________',
             'Voluntary',
           60  sy-vline.
    write:/  sy-vline,
          15 'Function' ,
          24 sy-vline ,
          26  'Customer',
          36 sy-vline,
          60 sy-vline.
    write:/ sy-uline.
    Edited by: Vijay Babu Dudla on Aug 16, 2008 12:04 PM

  • How to add a symbol in the table control

    Hi Experts,
    I have  created a Table control and want to insert a Symbol in a column and also want it to be interactive. That means when that symbol is being clicked it should perform some action.
    Your help is appreciated. This is a little urgent.
    ~Sid
    "Max points are guarenteed"

    Hi,
    Create a pushbutton in table control by dragging it from tool and place it in table control.And then set the name for that pushbutton.Make that push button field as output only field by check/mark -ing  a check box of output field in program tab of screen attributes .Now the icon check box for that field will be active .Mark/check that <b>icon</b> check box as well.Once you done this ,then in Loop endloop of table control in PBO do the code like this.
    Process Before Output.
      LOOP AT   it_t001l INTO x_t001l WITH CONTROL tc CURSOR tc-current_line.
        MODULE tc_get_lines.
      ENDLOOP.
    MODULE tc_get_lines OUTPUT.
    IF x_t001l-status  = 'X'.
        CALL FUNCTION 'ICON_CREATE'
        EXPORTING
          name                         = 'ICON_OKAY'
         info                             = 'Completed'
       IMPORTING
         RESULT                      =  x_t001l-change .  
    *----- x_t001l-change -
    > name of the push button in table control
      ELSE.
        CALL FUNCTION 'ICON_CREATE'
       EXPORTING
         name                        = 'ICON_MASS_CHANGE'
          info                        = 'Partial'
      IMPORTING
        RESULT                      =  x_t001l-change .
      ENDIF.
      g_tc_lines = sy-loopc.
    ENDMODULE.                    "TC_GET_LINES OUTPUT
    In top include
    DATA:BEGIN OF x_t001l.
            INCLUDE STRUCTURE t001l.
    DATA:sel,
    <b>change(60),   "</b>  ---> name of push button
         END OF x_t001l.

  • How to add One Button to the Table Header.

    Hi,
    I would like to have few Table Header columns as Button and Other Table Header Columns as String. And each Button should have separate action. Please let me know, how can i implement this one.
    Thanks
    Mohan

    do not cross post, this is a bad habit. now do you know about www.google.com. well this is a search engine, learn how to use it before you post. i got this link with this keyword search.
    http://www.exampledepot.com/egs/javax.swing.table/pkg.html
    http://forum.java.sun.com/thread.jspa?threadID=560605&tstart=15
    hope this helps you
    regards
    Aniruddha

  • How to add a Button to the Table header

    Hi,
    I would like to have few Table Header columns as Button and Other Table Header Columns as String. And each Button should have separate action. Please let me know, how can i implement this one.
    Thanks
    Mohan

    cross post
    http://forum.java.sun.com/thread.jspa?threadID=5195296

  • Read the first line of the table.

    Hi,
    Can you pls let me know as to how I read the first line of the table.
    Thx.

    hi check this.
    data: begin of itab occurs 0,
            matnr like mara-matnr ,
            meins like mara-meins,
            end of itab.
    select-options: s_matnr for mara-matnr .
    select matnr
             meins
             from mara
             into table itab
             where matnr in s_matnr .
    read table itab index 1 .
    loop at itab .
    write:/ itab-matnr .
    endloop .
    regards,
    venkat.

Maybe you are looking for