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

Similar Messages

  • 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

  • Insert  Blank row  After every Row  in alv report

    How to insert blank  row After every row  in Alv report

    what do you mean by a 'blank row'? ALV displays tabular data with 'any' number of columns. Now if you actually want a blank row (no columns at all, just a row), then that is just not possible. If I'm not mistaken, this question was posted before, so try to do a search on SCN. See what is says.

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

  • Introduce blank line after every sub-total

    I want to add a blank line after each sub-total to improve readability. I thought CHAR(13) would do the trick. Do you have any ideas on how to accomplish this?
    Thanks,
    Dinesh.

    In Pivot Table, you can do duplicate layer on the column that you are subtotalling on. Then in the sum property of the duplicate column, specify label only. Hide the duplicate column.
    hth
    -Prakash

  • Sharepoint Designer 2010 inserting blank lines

    Sharepoint Designer (SP1) is intermittently inserting hundreds of thousands of rows as I am working with an .aspx document. This bug, which was first present in 2007, has been reported by many people over the years; it seems to remain in 2010.
    Does anyone have a solution for this issue? Is there something in my page, which contains a bunch of xsltlistviews, that could be blowing up this file?
    Thanks.

    All -- 
    FYI, here is a decent workaround to the problem of SPD 2013 (SharePoint Designer 2013) inserting blank lines into pages.
    Here are the steps.
    - Get CodeMaid (free) or similar coding-tool plugin/extension for Visual Studio 2013 (VS 2013) that can remove blank lines.
    - Check out the file in SPD.
    - From SPD, right click the file and choose open with, then choose VS.
    - Run CodeMaid clean processing in VS, which will remove multiple consecutive blank lines.
    - Save file in VS.
    - Close file in VS.
    - Check in file with SPD.
    - Done.
    It may seem like a lot of steps, and it is, and it odd the MS does not simply use the same code editor base for both VS and SPD, but using this workaround is actually pretty quick and easy, and easier still if you use the VS editor to code the files (instead
    of the SPD editor) because the VS has way better code-folding and code-completion and code-digging anyway.
    Just thought I would mention a (fairly) quick and easy way to workaround this SPD shortcoming.
    HTH.
    Thanks.
    -- Mark Kamoski

  • Insert Blank Row after writing record to .csv

    J Developer 11.1.1.6.0
    Oracle SOA 11g - BPEL
    I am currently performing 3 separate transformations in a bpel process.
    In the first transformation I extract header level information (only 1 record line) and write this to a csv file together with HEADERS.
    In the second transformation I extract Detail level information (1 or more record lines) and APPEND this to the same csv file mentioned above together with HEADERS.
    In the third transformation I extract Footer level information (only 1 record line) and APPEND this to the same csv file mentioned above together with HEADERS.
    an example of the resulting csv file (opened in Excel)
    =========================================
    |FILENAME     |DATE          |NUMBEROFRECORDS|     <-------------- 1st Transform HEADER
    |Dummy File    |08082013   |3                                     |     <-------------- 1st Transform RECORD DATA
    |DOCREF        |VAT            |AMOUNT                       |     <-------------- 2nd Transform HEADER
    |1                     |30               |100                                 |     <-------------- 2nd Transform RECORD DATA
    |2                     |20               |200                                 |     <-------------- 2nd Transform RECORD DATA
    |3                     |10               |300                                 |     <-------------- 2nd Transform RECORD DATA
    |TOTALDOCS |TOTALVAT|TOTALAMOUNT            |     <-------------- 3rd Transform HEADER
    |3                     |60               |600                                 |     <-------------- 3rd Transform RECORD DATA
    ========================================
    REQUIREMENT : I NEED TO INSERT A BLANK LINE/ROW BEFORE THE DETAIL HEADER AND ANOTHER BLANK LINE/ROW AFTER THE LAST DETAIL RECORD.
    i.e. . The resulting file should look as follows :-
    =========================================
    |FILENAME     |DATE          |NUMBEROFRECORDS|     <-------------- 1st Transform HEADER
    |Dummy File    |08082013   |3                                     |     <-------------- 1st Transform RECORD DATA
    |                       |                   |                                       | <----------------------------------------------------------------- INSERT FIRST BLANK LINE/ROW
    |DOCREF        |VAT            |AMOUNT                       |     <-------------- 2nd Transform HEADER
    |1                     |30               |100                                 |     <-------------- 2nd Transform RECORD DATA
    |2                     |20               |200                                 |     <-------------- 2nd Transform RECORD DATA
    |3                     |10               |300                                 |     <-------------- 2nd Transform RECORD DATA
    |                       |                   |                                       |<----------------------------------------------------------------- INSERT SECOND BLANK LINE/ROW
    |TOTALDOCS |TOTALVAT|TOTALAMOUNT            |     <-------------- 3rd Transform HEADER
    |3                     |60               |600                                 |     <-------------- 3rd Transform RECORD DATA
    ========================================
    This is straight forward to perform in Excel once the file is opened, but my requirement is to have the file opened in the format displayed above without Human intervention.
    Is it possible to accomplish this?
    Any advise/guidance will be highly appreciated.
    Thanking you in advance

    Hi Vlad
    Sorry for this late response, I will attempt what you have suggested.
    Its just that the project that this query is related to was put on the back burner...
    I will provide feedback regarding the outcome soon...
    Regards

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

  • Adding row after subtotal in ALV

    Hi Guys,
    can we add one row after the subtotal in ALV.
    Like the below...
    field1 field2 field3 field4
    Sub total. 120 121 125 130
    Test 150
    can you help me about the above...
    Thanks,
    Lingesh

    Hi
    If you use GROUPLEVEL_CHANGE you have to creare a form like this:
    FORM GROUPLEVEL_CHANGE
                   USING P_LINEINFO TYPE SLIS_LINEINFO
                         LS_GROUPS   TYPE KKBLO_GROUPLEVELS.
    ENDFORM.                    "GROUPLEVEL_CHANGE
    In the P_LINEINFO you have details of row and in the LS_GROUPS details of level of sorting.
    For example I used it to re-write subtotal:
    FORM GROUPLEVEL_CHANGE USING P_LINEINFO TYPE SLIS_LINEINFO
                                LS_GROUPS   TYPE KKBLO_GROUPLEVELS.
      PERFORM WRITE_SUB_TOTAL USING LS_GROUPS.
    ENDFORM.                    "GROUPLEVEL_CHANGE
    FORM WRITE_SUB_TOTAL  USING    P_GROUPS TYPE KKBLO_GROUPLEVELS.
      DATA: TOT_SALDO_A     LIKE BSID-DMBTR,
            TOT_FATTURATO_A LIKE BSID-DMBTR,
            TOT_DSO_A       LIKE BSID-DMBTR.
      DATA: WA_GROUP        TYPE KKBLO_GROUPLEVELS.
      DATA: RUN_LEVEL       TYPE I.
      DATA: BEGIN OF T_LEVEL OCCURS 1,
              LEVEL       TYPE I,
              INDEX_FROM  TYPE I,
              INDEX_TO    TYPE I,
            END   OF T_LEVEL.
      T_LEVEL-LEVEL      = P_GROUPS-LEVEL.
      T_LEVEL-INDEX_FROM = P_GROUPS-INDEX_FROM.
      T_LEVEL-INDEX_TO   = P_GROUPS-INDEX_TO.
      APPEND T_LEVEL.
    Check livel:
      CALL FUNCTION 'ALV_GROUPLEVELS_GET'
       IMPORTING
         ET_GROUPS                 = GT_GROUP
        TABLES
          T_OUTTAB                  = <FS_OUTPUT>.
      RUN_LEVEL = P_GROUPS-LEVEL + 1.
      IF RUN_LEVEL <= LEVEL.
        DO.
          LOOP AT GT_GROUP INTO WA_GROUP
                    WHERE INDEX_FROM => P_GROUPS-INDEX_FROM
                      AND INDEX_TO   <= P_GROUPS-INDEX_TO
                      AND LEVEL      = RUN_LEVEL.
            T_LEVEL-LEVEL      = RUN_LEVEL.
            T_LEVEL-INDEX_FROM = WA_GROUP-INDEX_FROM.
            T_LEVEL-INDEX_TO   = WA_GROUP-INDEX_TO.
          ENDLOOP.
          IF SY-SUBRC = 0.
            APPEND T_LEVEL.
          ENDIF.
          RUN_LEVEL = RUN_LEVEL + 1.
          IF RUN_LEVEL > LEVEL. EXIT. ENDIF.
        ENDDO.
      ENDIF.
      SORT T_LEVEL BY LEVEL DESCENDING.
      LOOP AT T_LEVEL.
        TOT_SALDO_A = TOT_FATTURATO_A = 0.
        LOOP AT <FS_OUTPUT> INTO <FS_WA_OUT>
                            FROM T_LEVEL-INDEX_FROM
                              TO   T_LEVEL-INDEX_TO.
          ASSIGN COMPONENT 'ZSALDO'
              OF STRUCTURE <FS_WA_OUT> TO <FS_SALDO>.
          ASSIGN COMPONENT 'ZFATTURATO'
              OF STRUCTURE <FS_WA_OUT> TO <FS_FATTURATO>.
          TOT_SALDO_A     = TOT_SALDO_A     + <FS_SALDO>.
          TOT_FATTURATO_A = TOT_FATTURATO_A + <FS_FATTURATO>.
        ENDLOOP.
        TOT_SALDO     = TOT_SALDO     + TOT_SALDO_A .
        TOT_FATTURATO = TOT_FATTURATO + TOT_FATTURATO_A.
        PERFORM CALCULATE_DSO USING TOT_FATTURATO_A
                                    TOT_SALDO_A TOT_DSO_A.
        PERFORM WRITE_TOT_DSO
                      USING TOT_SALDO_A
                            TOT_FATTURATO_A TOT_DSO_A
                            T_LEVEL-LEVEL T_LEVEL-INDEX_FROM.
      ENDLOOP.
    ENDFORM.                    " WRITE_SUB_TOTAL
    Max

  • Inserting blank line

    Hi All,
    How can I insert a blank line at output, for example my output is:
    3 rows extracted.
    8 row extracted.
    but the result should be has below,
    3 rows extracted.
    8 row extracted.
    Thanking u,
    mahe

    The easiest solution is to use the "format wrapped" option of the SQL*Plus command "set serveroutput".
    Example:
    SQL> set serveroutput on size 10000 format wrapped
    SQL> begin
      2     dbms_output.put_line ('line 1') ;
      3     dbms_output.put_line (' ') ;
      4     dbms_output.put_line ('line 2') ;
      5  end ;
      6  /
    line 1
    line 2
    Proc&eacute;dure PL/SQL termin&eacute;e avec succ&egrave;s.
    SP2-0158: option SET inconnue "format"
    SQL> set serveroutput on size 10000 format word_wrapped
    SQL> begin
      2     dbms_output.put_line ('line 1') ;
      3     dbms_output.put_line ('') ;
      4     dbms_output.put_line ('line 2') ;
      5  end ;
      6  /
    line 1
    line 2

  • Inserting blank lines in script output of a single variable

    Dear All,
    I have a requirement where i am printing amounnt in words. It is stored in a variable ITAB-RBETR.
    I want to insert a blank line when the amount field exceeds the line limit and start printing in second line.
    Normally we use '/' command to insert line in between 2 variables in script output. but here it is
    a single variable(ITAB-RBETR).
    Currrently the output is like this -
    Eighty nine crore eighty four lakh twenty
    three thousand seven hundred fifty only
    My requirement is -
    Eighty nine crore eighty four lakh twenty
    (Blank line)
    three thousand seven hundred fifty only

    Hi,
    May be you can use the offset value for displaying the text in the variable ITAB-REBTR.
    Let's say the total allowed length is 50 chars, then use ITAB-REBTR0(50) in the first line and blank line and then ITAB-REBTR51 in the third line.
    I hope this is what you required.
    Regards,
    Santhosh.

  • Remove blank line after File Content Conversion

    I have a File>Conversion on PI7.0 (SP10).
    It seems to add a blank line. The XML is:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:EPIWCountFile xmlns:ns0="urn:com.somewhere.overthere.nothere">
      <Personal_Area>LU</Personal_Area>
    - <detail>
      <recordCount>17</recordCount>
      </detail>
      </ns0:EPIWCountFile>
    The conversion is done:
    recordset Structure=detail,
    name=detail.fieldseparator    ,
    The output file is
    17
    Hopefully you can see the blank line before the number!???
    I have changed the contexts while processing, and played with other options, but it always adds a blank line at the begin.
    All this file is a count of the number of records processed.  (The personal_area is for a variable name for file/folder creation)
    How can I remove the blank line, as the target system fails due to this anomaly?

    If you are in a development environment, try this
    Make your target structure
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:EPIWCountFile xmlns:ns0="urn:com.somewhere.overthere.nothere">
    - <detail>
    <b><Personal_Area>LU</Personal_Area></b>
    <recordCount>17</recordCount>
    </detail>
    </ns0:EPIWCountFile>
    Content conversion parameter
    detail.fieldFixedLengths 0,2
    detail.fixedLengthTooShortHandling Cut
    P.S: If you need <Pesonal_Area> tag only for File/Folder Name, then why dont you use Adapter specific Identifiers to achieve the same.
    Regards,
    Jai Shankar

  • Blank Line After Blank Line aka Mozolla Composer

    Every time I make changes in Creator 2.1 it appears to add a blank link between every data line in the associated java file..
    This was (and still is even in Sea Monkey) a problem with Mozilla Composer every since Netscape (Composer) 4.x.. way back when....
    I did not notice (see) this with Creator 2.. How can I resolve this (the hundreds of blank lines??
    Thanks

    just downlod latest patch

  • Acrobat 9 inserting vertical lines after Optimize - Deskew

    Hi,
    Acrobat 9 Standard, Vista x64, 4gb ram.
    Creating a PDF from a series of Tiff images.  All is fine so far.
    I run the "Optimized Scanned PDF", choose only option as Deskew (all others off), highest-quality setting.  Then, I see several pages where there is a vertical black line on the right hand side.  This is not visible when printing or viewing on non-Adobe PDF viewers.
    Is there a reason this line is here, and can I get rid of it?  Thanks.

    Remember that as of PDF 1.4, the version number in the PDF header can be overridden via a /Version key in the /Catalog dictionary.  In addition, the presence of an /Extension dictionary (ISO 32000-1) will also override the header version. 
    The header version is JUST A HINT - it is NOT a guarantee of any sort.
    Based on both of the above, neither of your "bugs" are bugs. 
    Acrobat 9 (and I assume X as well) are reporting correctly. If you have a PDF that you believe IS being reported incorrectly, please post! 
    If the Extensions dict is present, the Save command will NOT override it since it takes precedence.

Maybe you are looking for

  • T60p Blue Screen

    Hi, I am running a t60p that I downgraded to XP SP3. If I do demanding tasks the crash Blue Screen IRQL_DRIVER_NOT_LESS_OR_EQUAL appears regularly. Technical Information : 0x000000A (0x01000110, 0x00000002, 0x00000001, 0x80517902) sometimes (but not

  • Adding of new field in dynamic selection for financial statements

    Hi ALL, I want to add Trading partner in dynamic selection fields of financial statement report at document level not yet GL master level: S_ALR_87012284 - Balance Sheet / Profit and Loss Statement . Can any one tell how to proceed? I have referred n

  • % of project completed by month (during Planning)

    Hello, I want to know the percentage of tasks concluded by month during the planning using MS Project. For example: I'm planning this month (May-2104) a project that begins in Jun-2104 and will last 7 months (from Jun to Dec-2104). When I conclude th

  • Checking the Dunning process

    Hi all, I have configured the dunning process in my company. I have also assigned the dunning process in the customer master. Now I have created customer invoices. The payment terms in the customer master is within 15 days. I have created a dunning r

  • How To traverse files under subfolder using Traverse folder option

    My files are stored as Newborn.txt under each year's subfolder, How to implement this. Eg: C:\Ravi\N90\Newborn.txt   C:\Ravi\N91\Newborn.txt C:\Ravi\N92\Newborn.txt C:\Ravi\N93\Newborn.txt Pl help me to read the files using the for each loop containe