Keeping Blank line in Table

I have a simple rtf layout with a table on it. Sometimes my value in 'LINE2' will be blank. When it's blank, it moves LINE3 directly under LINE1. How can preserve the space so it would print a blank line in LINE2 and have LINE3 underneath it?
<for each>
<?LINE1?>
<?LINE2?>
<?LINE3?>
<end for each>

got it. Add blank space after form field

Similar Messages

  • Extra blank lines in table

    I am getting an extra blank line in my table rows using the following statement:
    <?for-each-group@column:TC_CELL;ITEM_DATE?>
    <?for-each-group:current-group();PAY_TYPE?>
    <?if: PAY_TYPE = ‘R’?>
    <?if: sum(current-group()//HOURS)!= ‘0’?>
    <?sum(current-group()//HOURS)?>
    <?end if?>
    <?end if?>
    <?end for-each-group?>
    <?end for-each-group?
    When PAY_TYPE is equal to 'R' it will print the sum, but then there is a blank line under it.
    Ex:
    | 20.00
    |
    But I want:
    | 20.00
    Any ideas?

    Sure - you need to specify the correct "context" how we call it.
    When your document contains XSL - the RTF converter has to make assumption
    where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
    You can the context directive @inlines behind your if statement to correct your problem.
    <?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
    This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
    Hope that helps,
    Klaus

  • Inserting blank line in internal table

    Hi
    I am inserting a report  from a internal table for eg the content of my internal table is
    data : abc
    event initialization.
    perform read_data.
    Now I want  1 blank line after every line in the internal table for eg
    data:abc
    event initialization
    perform read_data.
    How to insert a blank line in an internal table?
    Edited by: priya singh on Feb 4, 2009 9:37 AM

    hi,
    DATA: BEGIN OF i_pernr OCCURS 1 ,
    pernr TYPE pa0002-pernr,
    vorna TYPE pa0002-vorna,
    nachn TYPE pa0002-nachn,
    END OF i_pernr.
    TYPES : BEGIN OF string1  ,
         a TYPE char100,
        END OF string1.
    DATA : wa_string TYPE string1,
           it_stirng TYPE TABLE OF string1.
    START-OF-SELECTION.
      SELECT pernr vorna nachn FROM pa0002 INTO TABLE i_pernr UP TO 20 ROWS.
      LOOP AT i_pernr.
        CONCATENATE i_pernr-pernr i_pernr-vorna i_pernr-nachn INTO wa_string-a SEPARATED BY '|'.
        APPEND wa_string TO it_stirng.
        APPEND INITIAL LINE TO it_stirng.
      ENDLOOP.
      BREAK-POINT.
    Thanks

  • Table of Texts results in extra blank lines

    I have a table of texts in a flowed subform that expands for each line of text. The text and font is a chinese font (Adobe Song Std L). I also have autowrapping turn on so it autowraps when the line is too long.
    I would like each new line in the table to have the carriage return as if it is wrapping, but not add an additional blank line like it's a new paragraph.
    So instead of using a table I thought I'd concatenate all the lines together and separate them with a control character for carriage return when I want a line break (still allowing Adobe to autowrap when a particular line is too long).
    I am preparing this string in SAP which gets sent to Adobe. I've tried concatenating '\u000D' but it just shows those characters rather than performing a carriage return.
    Any ideas how I can accomplish this without ending up with a new paragraph (extra blank line) between my lines of text?
    Thanks,
    Scott

    Sure - you need to specify the correct "context" how we call it.
    When your document contains XSL - the RTF converter has to make assumption
    where to put your code - for if statement the assumption is on fo:block (=paragraph) level.
    You can the context directive @inlines behind your if statement to correct your problem.
    <?if@inlines:sum(current-group()//HOURS != '0'?> should correct the problem
    This example is described on page 2-56 "" in the 5.6.1 User Guide. You may also want to read on the context in general in the section "Using the Context Command" (2-107 in the 5.6.1 user guide).
    Hope that helps,
    Klaus

  • 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

  • Insert a blank line between records

    Hi,
    I am creating a sqlplus report and want to insert a blank line or some seperator to seperate the records between the start and end points of the loop to make it more readable.
    ex : The output currently look like this.
    ColumnA       ColumnB
    1                  2
    2                  3
    3                  1
    4                  5
    5                  6
    6                  4I want the output to look like this
    ColumnA       ColumnB
    1                  2
    2                  3
    3                  1
    4                  5
    5                  6
    6                  4Thanks for the help in advance!

    Hi,
    You probably work with this table every day, and you probably struggled with this particular query for a while before posting a question, so you're very familiar with the table, the data, and the application.
    Perhaps no one else in the world is in that position. Don't assume we know what your data is, or where it came from.
    Are you getting the data from a query like this?
    SELECT     columna
    ,     columnb
    FROM     table_x
    START WITH          columna     IN (1, 4)
    CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    ;If so, that's the kind of thing you should say clearly in your first message, rather than hint at in your third.
    As Ow said, you should manufacture a column for use in the BREAK command, and use COLUMN ... NOPRINT if you don't want to see it in the results?
    The question here is, what is an appropriate column? CONNECT_BY_ROOT seems to work perfectly for your example
    BREAK     ON my_break_column     SKIP 1
    COLUMN     my_break_column     NOPRINT
    SELECT     columna
    ,     columnb
    ,     CONNECT_BY_ROOT     columna     AS my_break_column
    FROM     table_x
    START WITH          columna     IN (1, 4)
    CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    ;The rest of this message is an merely a tangent. I find it interesting, but feel free to skip it.
    You might think CONNECT_BY_ISCYCLE was an obvious choice for a BREAK oclumn: you want to skip a line after every output row where CONNECT_BY_ISCYCLE = 1.
    Unfortunately, BREAK always works when a column value changes. That is, you can't tell it "Please skip one line after rows where columnz = 1"; all you can say is "Please skip a row before rows where columnz is different than it was on the previous row". (At least that's what I think: I would love it if someone proved me wrong!)
    So we have to manufacture some column that keeps its value for an entire loop. The SUM of CONNECT_BY_ISCYCLE (in DESCending order, as returned by the CONNECT BY query) would work. Analytic ORDER BY clauses seem to destroy the order imposed by CONNECT BY, so you'd have to do the CONNECT BY in a sub-query, capture the ROWNUM to preserve the order, and use the analytic SUM function in the main query:
    WITH     oq     AS
         SELECT     columna
         ,     columnb
         ,     ROWNUM               AS r_num
         ,     CONNECT_BY_ISCYCLE     AS cycle_val
         FROM     table_x
         START WITH          columna     IN (1, 4)
         CONNECT BY NOCYCLE     columna     = PRIOR (columnb)
    SELECT     columna
    ,     columnb
    ,     root
    ,     SUM (cycle_val) OVER (ORDER BY ROWNUM DESC)
    --               AS my_break_column
    FROM     oq
    ORDER BY     r_num
    ;The only reason for actually doing this is to learn about CONNECT BY queries. CONNECT_BY_ROOT, as shown above, works much better for your requirements.

  • Suppress Blank Lines in RTF Template

    We are using <?if:count(current-group()[FIELD=$VARIABLE])?> in order to restrict data in a pivot table cell.
    The pivot table cell uses @cell:top XML level to produce fixed number of columns.
    There are two for-each-groups in the cell under the @cell tag.
    Using <?if:count(current-group()[FIELD=$VARIABLE])?> works fine to restrict data but there are many extra blank lines creating bad formatting. This is because the two for-each-groups under the @cell tag. Those groups get the correct data but since @cell is at the top node of the XML the for-each-groups are repeating too many times and creating the blank lines.
    Is there a way to suppress blank lines in an RTF template?

    I've already tried that and the results are the same. The blank spaces still exist. I even tried using that right after the for-each-groups that are under the @cell tag. No difference.
    Can I please send you the RTF template and XML? And two PDF files, one that shows the empty line spaces and one that shows correct formatting (without fixed number of columns).
    Thank you very much.

  • Blank line in text file after download

    Hi  all,
    i am using the below code to get the 254 blank spaces at the end of the text file & it's comming correctly.
    generally i am downloading 2 lines in the original program  & i am getting one blank line in between these two lines.
    The main thing is that i am getting this blank line when i run this program in my office computer. But i am not getting this blank line when i run this same program in my home laptop. Please suggest why this blank line is appearing & any solution ?
    DATA: BEGIN OF OUTTAB OCCURS 100,
            PROD_CODE(3),
            LINE_DETL(2043),
          END OF OUTTAB.
    DATA:V_OUTPUT(2043).
    DATA: space_character type c.
    space_character  = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
            DO 254 times.
               CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
               ENDDO.
               OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    call function 'GUI_DOWNLOAD'
       EXPORTING
          filename = OUTFILE1
          filetype = 'ASC'
          TABLES
          data_tab = OUTTAB

    I don't think this is issue of ABAP. Any way just to check download the file on laptop and open same file and office computer
    if file looks ok then it is OS or text editor issue.
    Thanks,
    AK.

  • Logic needed to print blank line in alv report

    hi experts,
    can anyone please tell me the logic for this
    i want to logic one is
    1) in alv report contains
    a set of data contains 100 (5 datas)
    and a set of data contain 200(5 datas)
    i want to have one coloum containing serial no
    ex for 100 i want to move no '5' to one coloumn ,but it should display only ones not for all 5 records.
    same for 200 also i want to move 7 to this ,it should b displayed ones
    i used for at new command alos its not working
    2)suppose for particular date, 200 related records is not there
    it should conatin blank line,displaying 'NIL'.
    SO THE OPT FROMAT MUST BE
    MATNR            DOCNO
    100                  1000
    100                  1000
    100                    "
    100                     "
    100                    "
    200                   2000
    200                      "
    200                     "
    200                    "
    200                    "
    SUPPOSE 200 RECORD IS NOT THERE THE OPT SHLD B
    100           1000
    100            1000
    200           NIL

    Arun,
    1)
    If you are using the  function module REUSE_ALV_GRID_DISPLAY, then use the internal table it_sort with a row for the column where you want the suppression of repeated values.
    2)
    If you are using the  function module REUSE_ALV_GRID_DISPLAY, then simply ensure that your internal table t_outtab has the rows that you need containing 'NIL'.
    John

  • How to suppress blank line in top and end of portlet

    I created one small report (portlet) however when i execute this one; i remarked there is one blank line in the top
    and another one at the end of the report. How can i eliminate these lines. I need this space to be able to see
    a lot of information in the same page.
    I use portal 3.0.9.2

    After developping a lot of portlet and read a lot of TAR on metalink and a lot of message on OTN i discovered the solution.
    Wnen you create one report with the wizard there is no way to erase the first line ( header ) in the result.
    Second for the last line of the results ( blank line ) ; the problem is with netsacpe 4.75 ( no problem with internet explorer )
    with Netscape you will see one blank line and not with internet explorer ( confirm with Oracle support )
    Anyway in the place of developping one report with the wizard ; you can copy and paste your sql statement of your report
    inside one dynamic page and control all you want.
    I will give you one example than i created; i hope it will help other persons like me
    ( we need to read a lot of thing to do something really simple with portal )
    <HTML>
    <HEAD>
    <style type="text/css">
    <!--
    .TabFontText {
    font-family: Arial, Helvetica;
    font-size: 9pt;
    -->
    </style>
    </HEAD>
    <BODY>
    <ORACLE>
    begin
    htp.p('<table cellspacing=0>');
    for c in ( select '<a TARGET="_blank" HREF="http://'||ssdw_portal.pkg_globl.
    fnc_get_server_port||'/pls/portal30/docs/FOLDER/SSDW_AIDE/'||replace(item.name,
    ' ','+')||'">'||item.display_name||'</a>' filename , to_char(item.updatedate,'dd/mm/yyyy hh24:mi') last_updated
    FROM portal30.wwsbr_all_items item ,
    portal30.wwsbr_all_folders folder
    WHERE folder.name = 'SSDW_AIDE'
    and folder.caid = item.caid
    and folder.id = item.folder_id
    and item.language = 'us'
    and item.name like 'GUIDE%ANG%'
    order by item.name ) loop
    htp.p('<tr>');
    htp.p('<td bgcolor=#CCCCCC width=325>');
    htp.p('<font class="TabFontText" >');
    htp.p(c.filename);
    htp.p('</td>');
    htp.p('</font>');
    htp.p('<td bgcolor=#CCCCCC width=125>');
    htp.p('<font class="TabFontText">');
    htp.p(c.last_updated);
    htp.p('</td>');
    htp.p('</font>');
    htp.p('</tr>');
    end loop;
    htp.p('</table>');
    end;
    </ORACLE>
    </BODY>
    </HTML>
    Marc Fortin
    [email protected]

  • "clear recent history" is not lit up, can't activate; I have an extra blank line under all these editing icons which I do not want?????Yahoo says it is your issue; also when I copy for instance a screenshot (see below)

    1)trying to clear cache: when I click tools,options, "clear recent history" is not lit, I do not know what else to say. I tried to copy the screenshot sample, but it wouldn't let me.<br />
    2) On a page: the items appear in this order -<br />
    a)Header line:Firefox symbol Ask question or whatever I am seeking<br />
    b)2nd line: the words: File, Edit, View, etc. <br />
    c) 3rd line:arrows then 7 icons for editing which appeared one day, a small window that tells where I am with a star and then a window with
    google's symbol and a small window with a magnifying glass.<br />
    d)4th line: a wide empty line<br />
    e)5th line: a small window telling what I am doing ie Ask a Question etc. then a plus sign in a gray box and then nothing follows. <br />
    Yahoo says that the blank line and the icons are Firefox's issue. <br />
    I never chose to have icons for editing instead of the words. I do not know how they got there. I had some problems for a number of weeks (1/4/11 to 2/5/11 because all of the 2nd line had disappeared and I had no bookmarks. Yahoo was completely ineffective and I got disparate yesterday and started click all over the screen and suddenly the words of that line appeared again as well as all my bookmarks were back.?????odd. So all this maybe related. I just would rather not have that blank line as it lowers my screen.
    3) cont'd: to my desktop I cannot retrieve from my desktop. I click to open it and the page opens, but it keeps opening and opening and on and on and won't stop, so I have to close the tab and sign in again. This has happened about ten times recently. I guess that is it.

    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • GUI_DOWNLOAD blank lines in the middle

    Hi All,
    I am using 'GUI_DOWNLOAD' FM to create excel file of my internal table data; Internal table is having 220 fields and expects to create 220 columns in excel file;
    In the middle of the excel file I get several blank lines on and off with only very few column values are filled;
    I checked the ITAB in debug before calling the FM it has no issues and has the correct data;
    My code is as below;
    CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_filename
          filetype                = 'ASC'
          write_field_separator   = 'X'
        TABLES
          data_tab                = i_compare
          fieldnames              = i_excel_head
        EXCEPTIONS
          file_write_error        = 1
    Appreciate your expert ideas please;
    Thank you
    Iver

    Hi,
    GUI_DOWNLOAD blank lines in the middle
    In your GUI_DOWNLOAD code, There is no mistake.
    I think, In your program, have you written any SET BLANK LINES ON.
    It is one case.
    Follow this link,
    http://wiki.sdn.sap.com/wiki/display/ABAP/DownloadinginternaltablestoExcel
    It may helps to you.
    Regards,
    Sekhar

  • Blank line is appearing in the file in GUI_DOWNLOAD

    Hi all,
    i am downloading two lines into the text file. i am getting one blank line in between this two line if i use the 'GUI_DOWNLOAD' FM. This blank line is not appearing if i use 'WS_DOWNLOAD' FM.  Please advise why the blank line is comming between this two downloaded line. Thanks
    DATA: BEGIN OF OUTTAB OCCURS 100,
    PROD_CODE(3),
    LINE_DETL(2043),
    END OF OUTTAB.
    DATA:V_OUTPUT(2043).
    DATA: space_character type c.
    space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
    DO 254 times.
    CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
    ENDDO.
    OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    call function 'GUI_DOWNLOAD'
    EXPORTING
    filename = OUTFILE1
    filetype = 'ASC'
    TABLES
    data_tab = OUTTAB

    Hi Pabitra,
         My unerstanding of your requirement is " you are trying to download a file to local drive using GUI_DOWNLOAD and it give a blank line between 2 data and the same using WS_DOWNLOAD is not giving any line in between the data".
       I have tried the code piece you have provide with both the FM's and both downloaded the similar file i mean both downloaded the data similarly. Please see the code below
    DATA: BEGIN OF OUTTAB OCCURS 100,
    PROD_CODE(3),
    LINE_DETL(2043),
    END OF OUTTAB.
    DATA:V_OUTPUT(2043).
    DATA: space_character type c.
    space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
    V_OUTPUT = 'Please print it'.
    DO 254 times.
    CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
    ENDDO.
    CONCATENATE V_OUTPUT 'testing' INTO V_OUTPUT.
    OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    CLEAR OUTTAB.
    OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    CLEAR OUTTAB.
    *call function 'GUI_DOWNLOAD'
    *EXPORTING
    *filename = 'C:\test2.txt'
    *filetype = 'ASC'
    *TABLES
    *data_tab = OUTTAB.
    CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
       FILENAME                      = 'C:\test1.txt'
       FILETYPE                      = 'ASC'
      TABLES
        data_tab                      = OUTTAB.
    I think the Blank line which you got would be a result of Word wrap property of the notepad.
    If i did not get your question correctly can you please elaborate me.
    Thanks & Regards!
    Praveenkumar T.

  • Blank line in the smartforms

    Hi all,
             I am getting a blank line in a table display in smartforms. In print preview it looks good, but when it is printed it displays a blank line.But there is no data loss.
    I am using a dotmatrix printer.
    Thanks in advance,
    sethu

    hi wher u r getting the blank lin..
    at the starting  or ending?
    how u r ptrinin it using TABLE node ot LOOP node?
    1.once check whether the ITAB contains any extra blenk line
    2.if u r using the LOOP node then may be u r looping extra iterations
    check once

  • Delete blank lines when downloading to excel from CL_GUI_ALV_TREE

    Hi Experts
    I have developed a report using the class CL_GUI_ALV_TREE. If the user wants to download it into local machine in the excel format, he is going to the print preview and downloadn through Syste --> LIst --> Save --> Local File.
    But in the excel file there are few blank lines after each node. Now my client wants to excluding of those blank lines while downloading the file into excel. Is there any method to achieve this.
    Please advice me if there is any solution.
    Thanks in advance
    Praveen

    Hi Praveen,
    We cannot do any thing if the user download the file by that selection,
    Disable the download option from the toolbar and you provide a download button on the toolbar. as the user clicks the button the delete the black entries from the table and download it using  CL_GUI_FRONTEND_SERVICES.
    Regards,
    Kumar M.

Maybe you are looking for