Blank line in ALV

Hello,
I want to group the report by Vendor and subtotal at the end of each vendor and then have a blank line after.
Can someone tell me how to do that?
All the help is appreciated.
Thanks,
Sneha Singh.

After ALV report generation, are you  grouping  according to Vendor and getting the subtotal ? , If so according to me you can not put the blank line after every vendor
As you are generating your ALV report from some internal Table, first Internal table should have blank record, but such blank record will not get inserted in your internal table, for some filed you have yo populate some values and remaing values as blank filed,
You can try like this, but still getting balnk line is a difficult task,
Rani

Similar Messages

  • Displaying blank line in ALV header

    How do I display a blank line in ALV header
    For eg i want if i want the ALV header to display as follows
    Document Datewise Report  as of 31/10/2009 
                                                     <-- BLANK LINE
    Run On : 01/12/2009

    Hi,
      Are you using 'REUSE_ALV_COMMENTARY_WRITE' for displaying the header?
    If yes, then I think it is not possible. Instead, use the events table to achieve it.
    Use the 'REUSE_ALV_EVENTS_GET' FM to get all possible events and then modify
    the events internal table to specify the form name to handle top-of-page event.
    eg.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         I_LIST_TYPE           = 0
       IMPORTING
         ET_EVENTS             = V_EVENTS
    *  EXCEPTIONS
    *    LIST_TYPE_WRONG       = 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.
    READ TABLE V_EVENTS INTO WA_EVENT WITH KEY NAME = 'TOP_OF_PAGE'.
      IF SY-SUBRC EQ 0.
        WA_EVENT-FORM = 'TOP_OF_PAGE'.
        MODIFY V_EVENTS FROM WA_EVENT TRANSPORTING FORM WHERE NAME =
    WA_EVENT-FORM.
      ENDIF.
    FORM TOP_OF_PAGE.
    * Use write statements to display the header data.
    ENDFORM.
    In write statement use '/' to go to new line. So to insert an empty line you can use something like
    write : 'some text' / / 'some text' .
    Hope this helps.
    Regards,
    Bhavesh.

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

  • Blank Line in an ALV Grid on screen

    Hello,
    I have added one ALV grid on a custom screen and appended it to the Opportunity Management transaction in CRM. The issue is that as soon as i toggle from display to change mode in the transaction, a blank line is itself appended to the ALV grid. I dont want this blank line. How do i suppress it? Can anyone help me with this.
    Rgds
    Priyanka

    Yes you are correct But then how do i take care of the toggle and the blank line that is appended on the ALV screen table at the time of toggle ... coz toggle is called as a standard method in the standard code and i dont wanna change that.
    Rgds
    Priyanka

  • 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

  • Inserting Blank Line after subtotal in ALV

    Hi,
    I am using REUSE_ALV_GRID_DISPLAY for my report output and I am displaying the following fields :
    Company Code Comp Name  Bank Name Amount Data
    I am sorting my output based on the company code and displaying the subtotal for each company code.
    My requirement is that I need to insert a Blank line after every subtotaled value in the report output. like after the subtotaled value of company code say XXX a blank line should be inserted and then I should start displaying data for company code YYY.
    Please let me know if this is possible and if yes how to do that.
    In case I am not clear with my question please let me know.
    Regards,
    Lalit Kabra

    Hi,
    Following is my code ::
      wa_sort-fieldname = 'BUKRS'.
      wa_sort-tabname = 'WT_OUTPUT'.
      wa_sort-spos = '1'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      wa_sort-group = 'UL'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
      wa_sort-fieldname = 'WRBTR'.
      wa_sort-tabname = 'WT_OUTPUT'.
      wa_sort-spos = '4'.
      wa_sort-up = 'X'.
      wa_sort-group = 'UL'.
      APPEND wa_sort TO it_sort.
      CLEAR wa_sort.
    I have put the wa_sort-Group = 'UL' but could not get the desired results.
    What my need is that say for one company code there are five line items, and I need to sort the output by company code then after displaying the 5 line items, I need to display the subtotal of amount for that company code , then a blank line and then the data for the next company code should start.
    Please suggest how this can be achieved.
    regards,
    Lalit

  • Blank spaces in alv report

    hi experts,
    i have a requirement that i need to develop a report which is same as t-code cs11,
    but in cs11 we are getting the report for a single material and its bom components  .
    in my require ment  i need to develop a report for range of materials, i almost did that but the problem i am facing
    is how to obtain a blank space in alv report, after completion of single material  and its components r displayed.
    can any body pls suggest me.
    thanks&regards
    maheshlap

    hi srihari,
    i tried that but the blank lines r appending at the end of internal table.
    the following is the table ( t_main ) i am passing to the function module
    LOOP AT T_STKO INTO W_STKO.
        W_MAIN-STLNR = W_STKO-STLNR.
        W_MAIN-STLAL = W_STKO-STLAL.
        W_MAIN-STLST = W_STKO-STLST.
        W_MAIN-BMENG = W_STKO-BMENG.
        W_MAIN-BMEIN = W_STKO-BMEIN.
        READ TABLE T_MAST INTO W_MAST WITH KEY STLNR = W_STKO-STLNR .
        W_MAIN-MATNR = W_MAST-MATNR.
        W_MAIN-WERKS = W_MAST-WERKS.
        W_MAIN-STLAN = W_MAST-STLAN.
        READ TABLE T_MAKT INTO W_MAKT WITH KEY MATNR = W_MAST-MATNR .
        W_MAIN-MAKTX = W_MAKT-MAKTX.
        APPEND W_MAIN TO T_MAIN.
        CLEAR W_MAIN.
      ENDLOOP.
    can u pls send me some sampe code.
    thanks.

  • Add new line in ALV report on click of button...

    Dear All,
    How to add a new line for input in ALV report at runtime, on click of a button.
    Waiting for early and favorable reply.
    Regards,
    Dharmesh Vyas

    Hi,
    First of all u have to Create ur own PF-status and Assign Fcode e.g 'INSERTROW'.
    So, whenevr you will click Insertrow button it will be triggered in your User Command and then just Append the blank line in your Final Internal Table.
    And Refresh Icon will be there by default...
    To Trigger it You have to write rs_selfield-refresh = 'X'
    You can also follow the below link...
    Try it.
    Link:[http://wiki.sdn.sap.com/wiki/display/ABAP/ALVeasytutorial].
    Regards
    Arbind

  • Add new line in ALV report and Refresh button

    How to add a new line in a ALV report?
    How to add a refresh button in a report?

    Hi,
    First of all u have to Create ur own PF-status and Assign Fcode e.g 'INSERTROW'.
    So, whenevr you will click Insertrow button it will be triggered in your User Command and then just Append the blank line in your Final Internal Table.
    And Refresh Icon will be there by default...
    To Trigger it You have to write rs_selfield-refresh = 'X'
    You can also follow the below link...
    Try it.
    Link:[http://wiki.sdn.sap.com/wiki/display/ABAP/ALVeasytutorial].
    Regards
    Arbind

  • GETTING BLANK COLUMN IN ALV

    Hi friends,
    I want to get few columns blank in GRID display ALV.Pls suggest how can I get it.

    Hi, Anand
    Please don't use all caps in subject line
    Regarding your question you better to append blank lines to your internal table before calling ALV.
    Best Regards,
    Faisal

  • Grid using - GL_GUI_ALV_GRID inserting blank line

    Hi experts ...
    I am creating report using grid instance of class GL_GUI_ALV_GRID  ...
    its displaying results output table say itab[] ... I want to insert one blank line in display ...
    if i append work area of type itab to itab ... in that case the column which showing amount displays 0.0
    instead i want complete blank row ...
    Thanks & Regards  ...
      Ashish

    Hi,
    check this link;[Blank Row in ALV Grid Display;
    hope u'll get some idea.
    Regards,
    Sneha.

  • Skip 1 Line in ALV report.....

    Hi Experts,
    I have made ALV report in which user wants one blank line after each row.
    How to skip one line after each row in ALV ?
    Yusuf

    Hi Yusuf,
    It is really a typical requirement.
    There is a solution to that.
    In the internal table that you are passing to the function module, append a blank line to that itself.
    Like:
    LOOP AT itab INTO wa.
      APPEND wa TO itab3.
      CLEAR wa.
      APPEND wa TO itab3.
    ENDLOOP.
    REFRESH itab.
    itab[] = itab3[].
    But remember not to do sorting after that or not to pass the sorting table parameters.
    If you have an extra line at the bottom you can delete that by reading the number of lines through the describe statement and delete  the last row of the table.
    Try this hiope this will work.
    Reward points if found useful.
    Thanks & regards
    Abhijit

  • Suppress embedded field blank lines in Crystal Reports XI is not working

    Hi,
    We have a text box in a Crytal Reports XI report which has address information in it as follows:
    These are individual fields from the database. We check the  "suppress embedded field blank lines" option for the text box and preview it in the designer and the suppression works as expected in that when the unit field is blank the whole address line isn't suppressed. However when we run this report using the Report Viewer control in a VB.NET 2005 application the whole address line is suppressed when the unit field is blank.
    This appears to be a bug in the suppression logic when the Report Viewer is used to view a report. While yes we can embed a formula into the address line this adds extra maintenance and confusion which is not necessary as it works as expected in the report designer.
    I have seen others which are having a similiar issue and the only suggestions are to create your own suppression using formulas, etc. which is only a bandaid and is not the best solution as the suppression works as stated in the designer but not in the viewer embedded in an application. Please indicate if this is a known bug and if this issue has been addressed and fixed in a new merge module.
    We are running Crystal XI 11.5.0.313 for the report designer and have deployed the needed dlls to run the reports with our application using the CrystalReports11_5_NET_2005.msm merge module.
    Thanks in advance for any assistance in resolving this issue!

    Hello,
    Moved to .NET SDK forum.
    Upgrade to XI R2 SP 6, you are using the original release:
    https://smpdl.sap-ag.de/~sapidp/012002523100011802732008E/crxir2_sp4_full_build.exe
    https://smpdl.sap-ag.de/~sapidp/012002523100015859952009E/crxir2win_sp6.exe
    And the distribution files are for Visual Studio version of Cr, not R2 build.
    https://smpdl.sap-ag.de/~sapidp/012002523100013451312010E/crxir2_fp64_server_ins.zip
    Or
    https://smpdl.sap-ag.de/~sapidp/012002523100013451332010E/crxir2_fp64_net_mm.zip
    Don

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

Maybe you are looking for

  • Miro line item indicator

    Dear Forum, In miro line item, there is a drop down list on indicator. There are 3 item to choose from but I would just like to ask on 1 planned delivery costs 2 goods/service items + planned delivery costs What is the implication of choosing 1)plann

  • App Organization...

    Hello, I am very new to this discussion forum, so please bare with me. I already use iTunes 9, and I have the newest iPhone OS. So, I am well aware of how easy it is to drag and drop icons to the desired pages in order to easily organize your apps. I

  • ISE 1.1.1 login not working after install on VMWare on ESX 5.0

                       I did an ISE 1.1.1 installation on a VMWare with ESX 5.0. After installation I am not able to login with my credentials(username admin, password XXXX) I can ping my ISE server after initial installation but  I can not ping my ISE s

  • Which side will come on balance sheet this GL Accounts

    hi which side will come on balance sheet this accounts PLA ON HOLD CENVAT REVERSAL help

  • Need help in activate logging feature

    Hello SDN! I'm working with NW 7.0 I've tried to setup logging for my WD application according to /people/sap.user72/blog/2004/11/10/log-configuration-for-a-web-dynpro-application I've created Log Formatter, Log Destination and Log Controller. Contro