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.

Similar Messages

  • 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

  • How to insert the new row after current row in RowIterator - Steve Muench

    Hi,
    Our client wants the new row to be added after current row on the front end instead of before current row.
    we were using "new JUActionBinding(this,iterBinding,JUActionBinding.ACTION_CREATE_INSERT_ROW);" this code inserts the new row after current row.
    I tried a lot to insert the new row after current row. Used new JUActionBinding(this,iterBinding,JUActionBinding.ACTION_LAST to move the cursor to last row in rowiterator and the used .ACTION_CREATE_INSERT_ROW but this thing inserts the new row as the second last row.
    Could somebody plesae help ?
    Message was edited by:
    user556161

    I am using JDeveloper 9.0.4.2.0 (Build 1459)

  • Add a row after Total row in ALV report

    Hi Experts,
    I have a report is displayed by  ALV format(not use function module to display it but use Class cl_gui_custom_container),I want to add a row after the total row. for example,
    Customer   amount1    amount2    amount3 
    10000         1,234        1,000         2,000
    10001         4,000        2,000         1,000
    10002         1,300        1,000         3,000
    11000         1,200        4,000         3,000
         Total:     7,734        8,000         9,000
    Ratio%        31.27       32.34          36.39
    the row of 'Total' is calculated by fieldcat-do_sum = 'X' But after the Total row we need a Ratio row to display the ratio. Yes we can calculate the total amout and ratio and then append it into the output itab, but we don't like this solution.We want to keep the total function in the ALV report.Any experts can poit me a direction. Thanks in advance.
    Joe

    Djoe,
    First you need to handle the user command,in order to capture the button action. For this you need to implment a class, i  am attaching sample codes here
    In top include write the following code
    CLASS lcl_event_handler DEFINITION .
      PUBLIC SECTION .
        METHODS:
         handle_toolbar  FOR EVENT toolbar                   " To add new functional buttons to the ALV toolbar
                         OF        cl_gui_alv_grid
                         IMPORTING e_object,
         handle_user_command FOR EVENT user_command          " To implement user commands
                            OF cl_gui_alv_grid
                            IMPORTING e_ucomm .
      PRIVATE SECTION.
    ENDCLASS.                                               " Lcl_event_handler DEFINITION
    Now   <b>Class implementation</b>
    CLASS lcl_event_handler IMPLEMENTATION .
      METHOD handle_toolbar.                                " Handle Toolbar
        PERFORM f9500_handle_toolbar USING e_object.
    ENDMETHOD .                                            " Handle_toolbar
      METHOD handle_user_command .                          " Handle User Command
        PERFORM f9600_handle_user_command USING e_ucomm .
      ENDMETHOD.
    ENDCLASS .                                              " lcl_event_handler IMPLEMENTATION
    FORM f9600_handle_user_command USING p_e_ucomm TYPE sy-ucomm.
      CONSTANTS:c_newl(4) TYPE c
                          VALUE 'NEWL',               " New line
                c_copy(4) TYPE c
                          VALUE 'COPY',               " Copy
                c_corr(4) TYPE c
                          VALUE 'CORR'.               " Correction
      CASE p_e_ucomm .
        WHEN c_newl.
    Create a new line
          PERFORM f9610_insert_new_line.
    ENDFORM.                                          " f9600_handle_user_command
    FORM f9610_insert_new_line .
    *Data Declarations
      DATA: lt_rows     TYPE lvc_t_row,                 " Itab for row property
            ls_rows     TYPE lvc_s_row,                 " Work area for row
            lv_cntid    TYPE i.                         " Counter
      DATA: gv_index TYPE sy-index.
      CLEAR gs_last.
      CALL METHOD gr_alvgrid->get_selected_rows
        IMPORTING
          et_index_rows = lt_rows.
      READ TABLE lt_rows INTO ls_rows INDEX 1.
      IF sy-subrc EQ 0.
        gv_index = ls_rows-index + 1.
      ELSE.
        gv_index = 1.
      ENDIF.
      DESCRIBE TABLE gt_last LINES lv_cntid.
      lv_cntid = lv_cntid + 1.
      gs_last-cntid = lv_cntid.
      INSERT gs_last INTO gt_last INDEX gv_index.
      LOOP AT gt_last INTO gs_last FROM gv_index TO gv_index.
    Make the new line editable
        PERFORM f9611_style.
      ENDLOOP.
      CALL METHOD gr_alvgrid->refresh_table_display
        EXCEPTIONS
          finished = 1
          OTHERS   = 2.
    ENDFORM.                    " f9610_insert_new_line
    You can ask questions doubts if any!
    regards
    Antony Thomas

  • 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

  • Going back to same row after saving changes in classic report

    dear all,
    I have a long classic report .User is able to update different rows of this report using MR update process.Now user is asking for easier flow.What he wants is to be able to go back to same row after he saves the changes.How is it possible to do so
    Thank you so much,
    Zahra

    Hi,
    I have one sample
    https://apex.oracle.com/pls/apex/f?p=40323:40
    When you change Active column select list, page is submitted. After submit JavaScript scrolls report
    See this post about details
    HELP TABULAR FORM CURSOR FOCUS
    Regards,
    Jari

  • Inserting endline character after every 140 characters in an ascii file ?

    HI
    I have an input file in ASCII format , that has no end line characters in it(a single line file)
    And I want to insert, this end line character after every 140 characters..
    How it would be possible in ODI
    thanks

    If iam not wrong ,you are looking for this
    source file
    <140 character > < 140 characters >
    expected output
    <140 character >
    <140 character >
    Am i right ? Else can you please show an example .

  • 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

  • Save excel after every row

    Hi,
          I'm using labVIEW8.6. I'm saving data into an excel sheet.For this I'm using "excel save report.vi".But I want to save it after inserting values in each row.that is it has to be automatically saved sfter inserting values in each row.How can I go about it?
    Regards
    RobinHood

    Hi Matthew,
                      I've modified my code as per your instructions but I'm getting one error saying"ERROR 5 occured at open/create/replace file in NI_Excel lvclass:save repor to file.vi->excel save.vi.I've attached my code here. please find it.
    Regards
    RobinHood
    Attachments:
    excelsave.vi ‏24 KB

  • Add a row after every n records

    Hi
    I have a query that returns only one column
    Column1
    a
    b
    c
    d
    g
    e
    f
    g
    h
    I want to add 01 as the first row and then after 5 records i want to add 02 then 03 after another 5 records and so on i.e
    Column1
    01
    a
    b
    c
    d
    e
    02
    f
    g
    h
    How can this be done?

    Hi,
    Nice post.
    Regards salim.
    other solution.
    SELECT res
      FROM t
    model
    dimension by( row_number()over(partition by 1 order by rownum) rn)
    measures(col1,cast ( col1 as varchar2(20)) as res, count(1)over(partition by 1) cpt,trunc(rownum/5) diff)ignore nav
    (diff[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    case when diff[cv(rn)] is present then  diff[cv(rn)]
    else   case when mod(cv(rn),5)=0 then
           diff[cv(rn)-1]+1
           else diff[cv(rn)-1]end 
    end,
    res[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
      case when mod(cv(rn),5)=0 then 
           to_char((cv(rn)/5),'fm00')
      else  col1[cv(rn)-diff[cv(rn)]]end )
    SQL> WITH t AS
      2       (SELECT 'a' col1
      3          FROM DUAL
      4        UNION ALL
      5        SELECT 'b'
      6          FROM DUAL
      7        UNION ALL
      8        SELECT 'c'
      9          FROM DUAL
    10        UNION ALL
    11        SELECT 'd'
    12          FROM DUAL
    13        UNION ALL
    14        SELECT 'g'
    15          FROM DUAL
    16        UNION ALL
    17        SELECT 'e'
    18          FROM DUAL
    19        UNION ALL
    20        SELECT 'f'
    21          FROM DUAL
    22        UNION ALL
    23        SELECT 'g'
    24          FROM DUAL
    25        UNION ALL
    26        SELECT 'h'
    27          FROM DUAL
    28        UNION ALL
    29        SELECT 'i'
    30          FROM DUAL
    31        UNION ALL
    32        SELECT 'j'
    33          FROM DUAL
    34        UNION ALL
    35        SELECT 'k'
    36          FROM DUAL
    37          UNION ALL
    38        SELECT 'l'
    39          FROM DUAL
    40          UNION ALL
    41        SELECT 'm'
    42          FROM DUAL
    43          UNION ALL
    44        SELECT 'o'
    45          FROM DUAL
    46          UNION ALL
    47        SELECT 'p'
    48          FROM DUAL
    49          UNION ALL
    50        SELECT 'q'
    51          FROM DUAL
    52          UNION ALL
    53        SELECT 'z'
    54          FROM DUAL
    55          UNION ALL
    56        SELECT 'z'
    57          FROM DUAL
    58          UNION ALL
    59        SELECT 'z'
    60          FROM DUAL
    61          UNION ALL
    62        SELECT 'y'
    63          FROM DUAL)
    64  SELECT res
    65    FROM t
    66  model
    67  dimension by( row_number()over(partition by 1 order by rownum) rn)
    68  measures(col1,cast ( col1 as varchar2(20)) as res, count(1)over(partition by 1) cpt,trunc(rownu
    m/5) diff)ignore nav
    69  (diff[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    70  case when diff[cv(rn)] is present then  diff[cv(rn)]
    71  else   case when mod(cv(rn),5)=0 then
    72         diff[cv(rn)-1]+1
    73         else diff[cv(rn)-1]end 
    74  end,
    75   res[for rn from 1 to cpt[1]+trunc((cpt[1]+cpt[1]/5)/5) increment 1]=
    76    case when mod(cv(rn),5)=0 then 
    77         to_char((cv(rn)/5),'fm00')
    78    else  col1[cv(rn)-diff[cv(rn)]]end )
    79 
    SQL> /
    RES
    a
    b
    c
    d
    01
    g
    e
    f
    g
    02
    h
    i
    j
    k
    03
    l
    m
    o
    p
    04
    q
    z
    z
    z
    05
    y
    26 ligne(s) sélectionnée(s).
    SQL> Edited by: Salim Chelabi on 2009-04-15 13:35

  • Worklist table ponits to the first row after copy row

    Hi experts,
    We have installed ESS BP 1.41 into EP version 7.02. Now we found one issue in the ESS Working Time application screen.
    The screen has an option of copying rows from Worklist Table on top to the bottom table having Weekly/Daily view.
    The problem is if we choose recoreds from the top table and press the button 'Copy Rows' the table gets re-sorted and again points to the first row.
    When there are hundreds of entries in that table, it becomes difficult for the user to see the rows selected for copy immediately after pressing the Copy Rows button.
    Can anyone help to stop this sorting.
    Regards
    Arindam

    Hi Siddharth,
    many thanks for your reply. One doubt in BP 1.41, it is a WD java application, but the note you suggested, talks about the Ehp5 version which is in WD abap. Can you please re check and confirm.
    Regards
    Arindam

  • Printer dispenses a blank page after every printing!

    Suddenly my printer is dispensing a blank sheet of paper after almost every printing. Oddly, the only thing unusual I've done, relating to the hp printer,  is downloading the HP Printer Assistant and the HP Printer and Scan Doctor! I've checked all relative settings and nothing seems out of the ordinary or different.

    Hi @ibgb 
    Another user recently posted what he/she tried to resolve this same issue. Perhaps it might work for you too;
     I reset my top and bottom margins and test printed and scanned and it did not put out any blank sheets.  - Source
    If this doesn't resolve the issue, please try the following;
    1. Touch the Windows key on the keyboard to get to the start screen, then without clicking anything type Devices and Printers, and tap or click the Devices and Printers icon.
    2. Right click on the printer icon and click on printer properties.
    3. Then click on Advance Tab, and click on the Separator Page tab.
    4. A small windows open with the location of the file. Delete the path, click ok to save the settings.
    I hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Updating one row updates every row in the table

    I'm having a weird problem in which I insert a row into a table, select that row, and update its columns, and all the rows in the table end up with those columns all set to the new value. Like this:
    A B C
    1 4 7
    2 3 8
    9 6 7
    Statement s1 = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    s1.execute("INSERT INTO table (A) VALUES (5)");
    Statement s2 = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    RecordSet rs = s2.executeQuery("SELECT * FROM table WHERE A=5");
    if (rs.next()) {
      rs.updateInt("B", 4);
      rs.updateInt("C", 6);
      rs.updateRow();
    A B C
    1 4 6
    2 4 6
    9 4 6
    5 4 6I'm using Mac OS X 10.4.9, OpenBase Solo 10.0.5, and Java 1.5. I hope someone has experienced this before because it has me befuddled.
    Here is the actual code from my program:
    Statement st;
    ResultSet rs;
    st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    rs = st.executeQuery("SELECT * FROM characters WHERE UniqueID=\""+uid+"\"");
    if (rs.next()) {
         JOptionPane.showMessageDialog(this, "The Unique ID \""+uid+"\" is already taken by "+com.kreative.mccm.Character.flName(rs)+".", "", JOptionPane.ERROR_MESSAGE);
         return false;
    rs = st.executeQuery("SELECT * FROM characters WHERE CodePoint="+cp);
    if (rs.next()) {
         JOptionPane.showMessageDialog(this, "The code point "+h(cp,4)+" is already taken by "+com.kreative.mccm.Character.flName(rs)+".", "", JOptionPane.ERROR_MESSAGE);
         return false;
    st.close();
    st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    st.execute("INSERT INTO characters (UniqueID, CodePoint) VALUES (\""+uid+"\", "+cp+")");
    st.close();
    this.uid = uid;
    this.cp = cp;
    this.ch.setUniqueIDString(uid);
    this.ch.codePoint = cp;
    st = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    rs = st.executeQuery("SELECT * FROM characters WHERE UniqueID=\""+ch.getUniqueIDString()+"\"");
    if (rs.next()) {
         ch.writeResultSet(rs, false, false); /* (this does the updates) */
         rs.updateRow();
         charSaveChanges.setEnabled(false);
    } else {
         throw new SQLException();
    rs.close();
    st.close();

    OpenBase powers Apple's online store, so I wouldn't think that's the problem. I'm placing all the blame on the JDBC driver.
    Funnily, I started updating ResultSets that way because executing UPDATE statements directly gave me this problem before. Doing it this way made the problem go away, until now.
    I tried replacing the INSERT with two fields with one with all the fields, and now it throws a SQL error that is most definitely bogus:
    java.sql.SQLException: SQL ERROR - [position 569, near '' in ', 0, 0, 0, ''] insert error: comma expected but not found in data.
    SQL: INSERT INTO characters (UniqueID, CodePoint, NameFirst, NameMiddle, NameLast, NameMaiden, NameCommFirst,
    NameCommMiddle, NameCommLast, NameCommFull, Title, Classification, Subclassification, Considerable, SexString,
    TransitionString, GenderString, OrientationString, TitleString, PronounString, SGO, BirthDay, BirthMonth, BirthYear,
    Generation, FirstOfSet, ParentBio, Parent1, Parent2, Parent3, ParentBioType, Parent1Type, Parent2Type, Parent3Type)
    VALUES ('bomb', 123, 'Ziggy', 'Boogy', 'Doog', '', '', '', '', '', '', -1, -1, 1, '', '', '', '', '', '', 0, 0, 0, 0, 0, '', '', '', '', '', 0, 0, 0, 0)Bogus because there are the same number of data items as field names, and position 569 is a comma.
    At this point I have to ask myself why I ever chose OpenBase in the first place. (That's right, I had a RealBasic plugin for it. shudders) I'm sure OpenBase itself is fine, but its JDBC driver is trash. MySQL here I come.
    (Message was edited to prevent looooong horizontal scrolling)

  • Event getting trigger after hiding columns in alv report

    Hi All,
              I having requirement like after hiding columns,i have to control some of the hard coded data in report output. Is there any event to know what all are the columns are selected to hide?

    You can use FM REUSE_ALV_LIST_LAYOUT_INFO_GET to read the fieldcat again.
    Look at the parameter it_event_exit on the ALV FM to now  user has press on some of the Layout buttons.
    In the fieldcatalog, look for
    - no_out = 'X'.  " column is not displayed but can be choosen when changing the layout
    -tech    = 'X'.
      " column is neither displayed nor availabe in the layout

  • How to insert the new toolbar icons to a ALV report in custom container

    Hi,
    I found the exporting parameter for excluding the toolbar icons in the method "set_table_for_first_display" but I didn't find any parameter for including the new toolbar icons. I do not want to include the toolbar icons through the PF-Status, but want to include them with the method.  Please tell me is there any option of including toolbar icons with using the above method.
    Thanks,
    Srinivas.

    Hi Srinivas,
    Refer to the link
    Adding buttons to standard alv toolbar in OOALV
    Thanks

Maybe you are looking for

  • Link between

    i want link between schedule wise po qtys tables and lot number tables for example link between like tables eket and qals. common fields r there but i want links regarding deliveries, schedules. so plz give me tables related to above discussion. chai

  • ABAP program generation after tp import

    After a transport was imported successfully into production the program screen did not look the same as in non-production. To correct - the code was regenerated manually. I thought the tp import did this for you? Whan I look at the log I see: Generat

  • Some Flash content will not play.

    Hi all btw, here`s my problem, I play at many online casinos and there is a problem with a certain software (Vegas), here`s what happens, okay i`m playing a slot with no problems and then I hit a bonus round and the screen inside the casino window ju

  • Ipod mini cannot be synced-Please Help

    Hi, I can not sync music to my ipod from itunes because it keeps saying "The ipod cannot be synced. The required disk cannot be found." I have already tried reinstalling my USB drive and it is still not working. The ipod shows up in itunes and then o

  • I can't active imess on mac

    Can you help me active imess on my macbook??