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

Similar Messages

  • How to insert new line in the copied schema with transaction code PE01?

    Dear Experts,
             I have copied HKT0 to ZKT0 , i want to insert new line between  line 150 and line 160 in ZKT0, I don't know how to insert new line 160, who can tell me ?
             Looking forward to your reply.
    Best Regards,
    Merry

    Hi,
    1. Open your schema,
    2. In first colume "Line" select line where you want to add new line,
    3. Replace first value in the column field (that indicates number of line) with character I (means insert),
    4. Press enter
    The line will be added. The same way you can add lines to PCR.
    To delete use character D.
    Cheers

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

  • 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 print blank records after the detail records in a masterdetail report

    Hi,
    Developing a report for time and attendance record. In this report I am printing all the employees in a department, limiting the no. of records per page to 10.
    I need to insert blank lines at the end of all of the detail records in a page that has less than 10 employee records so that the no. of records displayed on a page can always be 10(these blank lines will facilitate the management to note down the temporary employees who worked for the department but are not part of the department).
    I am using a tabular form with group above layout.
    The report layout is as follows:
    Department : FINANCE & ADMINISTRATION
    Employee Name | Employee Number |
    1 Jim | 1234 | _________________
    2 John | 5678 |__________________
    3 blank
    4 blank
    5
    6
    7
    8
    9
    10 balnk
    Supervisor's Sign:______________________
    Note: the no. of blank lines should be inserted dynamically based on the no. of emp. records being printed on the page.
    Any help is greatly appreciated.
    Thanks in advance.
    Kavita.

    Your solution works when I am not limiting the no. of records per page for a department to 10 records and when I want to print blanks lines for the depts that has fewer than 10 employees in it.
    Exactly in my report I have several dept's that has more than 10 emp's. In such cases I'll be printing first 10 in one page and the rest in the next page. Now I want to dynamically print the blank lines in the second page depending on the no. of emp's on that page. I tried to acheive this by using a CS column that reset's at page level but, REPORTS is not letting me use CS column that reset's at page level in a format trigger. I also tried to copy the CS value into a parameter and or to a Place holder column and did not help.
    Any more work around ideas to acheive this?? please help.
    Thanks alot
    Kavita.
    Hi
    Create a column called Serial_No in ur emloyee query like this
    select 1 , empno ,ename from emp;
    Create a summary column on the serial column with the function SUM
    and resetting it to Page
    Display the column in the report by using the text color as white
    so it doesn't display in the report
    I think this should help u i believe
    Sri
    Hi,
    Developing a report for time and attendance record. In this report I am printing all the employees in a department, limiting the no. of records per page to 10.
    I need to insert blank lines at the end of all of the detail records in a page that has less than 10 employee records so that the no. of records displayed on a page can always be 10(these blank lines will facilitate the management to note down the temporary employees who worked for the department but are not part of the department).
    I am using a tabular form with group above layout.
    The report layout is as follows:
    Department : FINANCE & ADMINISTRATION
    Employee Name | Employee Number |
    1 Jim | 1234 | _________________
    2 John | 5678 |__________________
    3 blank
    4 blank
    5
    6
    7
    8
    9
    10 balnk
    Supervisor's Sign:______________________
    Note: the no. of blank lines should be inserted dynamically based on the no. of emp. records being printed on the page.
    Any help is greatly appreciated.
    Thanks in advance.
    Kavita.

  • How to insert horizontal lines in alv report?

    hi,
        i have to insert horizontal lines in alv report.( RM07MLBB )
            actually my requirement is:
                               basis list = RM07MLBB.
    first secondary list = another report is called here ( RM07DOCS )
                      i want to insert horizontal lines in the first secondary list, when i execute individually RM07DOCS , i can get horizontal lines, but when i dounle click in the basic list --> in the first secondary list , i am not getting the horizontal lnes.
    functional modules used are REUSE_ALV_HIERSEQ_LIST_DISPLAY & REUSE_ALV_GRID_DISPLAY.
        here in this program,
                        is_layout = alv_layout.
    hence i tried to give     
                  alv_layout-no_hline = ' '. 
    but not effecting.
              can some one please tell me , how to insert lines in the alv report.
    thanks in advance,
    Dastagir.

    hello,
         so i cannot insert horizontal lines in the first secondary list according to my sorting condition, i.e., in a single block there should be :
           if same delivery challan number is repeating they should come in the same block,
    for the corresponding delivery challen number, if have po number, is repeating , they also should come in the same block.
                       in this way i have to seperate the blocks containing EXNUM , EBELN CONDITIONED.

  • How can I remove the preceding blank lines in the downloaded text file?

    I have created a jsp that writes to a file and then prompts a dialog box to have an option to view or save the file. However when i view the file, there are blank lines before the actual content of the file. How can i remove these lines?
    Below is part of my code:
         response.setContentType("application/x-download");
         response.setHeader("Content-Disposition","attachment; filename=\""+ fileName + "\"");

    Hi,
    Those blank lines are normally because of the scriptlet code at the start of your jsp page.
    Remove any new lines between page directives or any include directives that you have at the top of your page.
    Look at the generated servlet code to see what exactly is causing the newline to be inserted (look for out.println("\n");)

  • Insert a blank line at the start of a text file

    I'd like to insert a blank line at the start of a text file.
    I presume SED would be the best to use? Any help on code would be greatly appreciated?

    Hi David,
       That is a little more difficult in sed and awk than it seems like it should be. I'll assume that you know how to handle the redirection and I'll just post the actual sed and awk commands. If you're comfortable with multiline statements in sed it could be done with the following:
    sed '1s/./\
    Programmatically more complicated but easier to type would be:
    sed '1{x;p;g;}'
       I think that it's conceptually simpler in awk using the BEGIN address like so:
    awk 'BEGIN{ print }//'
       You'll probably get other responses using other tools. I'm certainly curious to see what develops.
    Gary
    ~~~~
       "And I don't like doing silly things (except on purpose)."
          -- Larry Wall in <[email protected]>

  • How to remove the blank lines at the end of the JTextArea .

    Hi,
    I need to remove the blank lines in the JTextArea at the end. Suppose i am giving 'A' in the first line and press the enter key two times, after i am giving the 'B' in the third line and press enter key for two times. I need to remove, the last two lines of JTextAreae, . How i can remove these lines?

    String#trim() removes all whitespace from both ends of the String.
    The requirement was to remove line breaks from the end of the String only.
    String#replaceAll with a suitable regex would do the trick. Untested regex for this:text.replaceAll("[\\n\\r]+$", "")db

  • How to create blank line in alv output

    Hi all,
    Iam getting alv output with currency values like below
    text1    20.0  10.0  30.0
    text2    25.0  11.0  30.0
    text3    27.0  19.0  30.0
    text1    24.0  18.0  30.0
    text2    27.0  16.0  30.0
    text3    29.0  15.0  30.0
    text1    23.0  17.0  30.0
    text2    22.0  13.0  30.0
    text3    21.0  14.0  30.0
    and so on...
    My requirement is to create blank line after text3. Since its currency field even i claer work area iam able to get 0.0.
    If i use no-zero in field catalog i will be able to get blank values for all 0.0, but thats not required.
    Can u help me out how to crate blank line after one set of values(text1, text2, text3) in alv display
    Thanks

    Hi,
    If i use no-zero, then all 0.0 will be replaced by blank, but that is not required.
    I want only blank line to be displayed after set of line items.
    Skip doesn't help in alv. Secondly if i append blank work area i will be getting 0.0 as it is a currency field.

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

  • How to insert new line break in XSLT mapping

    Hi experts,
    I am doing file to mail scenario, i am sending the text file as an attachment using reciever mail adapter.
    I did everything, i can able to send the mail with text file attachment, but with in the file i got multiple rows, i need to put line break in XSLT mapping.
    I did use following statement but it is inserting small rectangle between the records, the records are not separating with new lines, all are in one line.
    <xsl:text>*#xA;</xsl:text>   
    note: in real coding replace * with &
    Can anyone suggest me how to insert new line in XSLT mapping.
    My XSLT mapping as look like:
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:ns0="http://www.Coj.co.za/SapIsuToABSA/DirectDebitFile">
    <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:variable name="break">&lt;br/&gt;</xsl:variable>
    <xsl:variable name="space"> </xsl:variable>
    <xsl:variable name="newline"><xsl:text></xsl:text></xsl:variable>
    <xsl:template match="/">
    <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
    <Subject>Please Check Attached Direct Debit File</Subject>
    <From>S@za</From>
    <To>P@za</To>
    <Content_Type>text/plain</Content_Type>
    <Content>
    <xsl:for-each select="MT_SapIsuToABSA_DirectDebitFile/DirectDebitRec/Body">
    <xsl:value-of select="Space1"/>
    <xsl:value-of select="Cust_AccNo"/>
    <xsl:value-of select="Reserve_1"/>
    <xsl:value-of select="Cust_Name"/>
    <xsl:value-of select="Cust_Name1"/>
    <xsl:value-of select="Cust_Bank_AccNo"/>
    <xsl:value-of select="Space2"/>
    <xsl:value-of select="Cust_Bank_BranchNo"/>
    <xsl:value-of select="Reserve_2"/>
    <xsl:value-of select="Space3"/>
    <xsl:value-of select="Cust_AccNo_1"/>
    <xsl:value-of select="Space4"/>
    <xsl:value-of select="Reserve_3"/>
    <xsl:value-of select="Deduction_Amnt"/>
    <xsl:value-of select="Space5"/>
    <xsl:value-of select="Reserve_4"/>
    <xsl:value-of select="Space6"/>
    <xsl:value-of select="Action_Date"/>
    <xsl:value-of select="Space7"/>
    <xsl:value-of select="Reserve_5"/>
    <xsl:text>*#xA;</xsl:text>   
    note: in real coding replace * with &
    </xsl:for-each>
    </Content>
      </ns1:Mail>
      </xsl:template>
      </xsl:stylesheet>
    Kind regards,
    Praveen

    Hi,
    I think <xsl:text>#xa;</xsl:text> should do the trick, but depending on which OS (ux or win), the "new line" chars sequence is different (win would require a CRLF like <xsl:text>#xd;*#xa;</xsl:text>)
    Chris
    -> &
    Edited by: Christophe PFERTZEL on Apr 14, 2010 2:16 PM

  • Report Painter insert blank line after report header

    Hi Expert,
    I have a problem to insert a blank line (a spacing) after the report header of my customized report painter.
    For example, in standard cost center report, S_ALR_87013611, there is a small box listed information like cost center/group ... and reporting period.
    Right after reporting period, the report header box ends, and there is a space line between it and the cost element data ...
    For my customized report painter, I cannot make this space line.
    I tried edit > row > insert blank line ... but not successful ... kindly advise.
    Thanks and regards,
    -CK

    Hi
    In KKO2 go to output tab, here under layout, tick header and then press pencil symbol and in the editor you write your header. I think this will give you desired result.
    Regards
    Rajneesh Saxena

  • How to insert new line character?

    Hi all,
    I have two lines to print.
    out.println("Available number of columns="+cols);
    out.println("Number of columns must be present=10");My problem is:
    i want both the lines to be printed one below the other. But, it is displayed in one single line.....
    Can anyone please tell me how to insert new line character?
    I tried with \n, '\n' and \r\n but, in vain......
    Thanks for your time.
    Regards,
    Ashvini

    You should never use "\n" directly.
    The line separator character is different on different operating systems.
    And putting quotes around it in your string will make absolutely no difference in the JSP.
    To find out what the line separator is you should use System.getProperty("line.separator");
    The JSPWriter and PrintWriter classes will automatically use this property with a println statement, so a println will always finish with a line separator.
    The issue here was that HTML by default ignores all whitespace.
    The solutions provided
    - use a <br> tag instead of a carriage return
    - use <pre> tags, which tells the browser not to ignore whitespace. That can be troublesome in JSP which generates a lot of extraneous carriage returns into the code.
    Cheers,
    evnafets

Maybe you are looking for