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

Similar Messages

  • How to print all lines in alv report?

    hi
    i am using the functions 'FP_JOB_OPEN'  and 'FP_JOB_CLOSE'  in order to print the form
    i want it to be printed without prompting me the 'PRINT' window and pushing the ok button .
    is there a way to do that ? i put reqimm = 'X' and nodialog = 'X' but it didnt fix it
    thanks

    Hi Ami,
       At START-OF-SELECTION event write your code between below statements.
    NEW-PAGE PRINT ON NO DIALOG.
    Your Code
    NEW-PAGE PRINT OFF.
    This statement NEW-PAGE PRINT ON with addition of NO DIALOG will not prompt you for Printer selection. It will directly create a spool.

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

  • Office 2010 Don't print blank lines when data fields are empty

    How do you do this in office 2010?  Where do we go now?
    This used to be under the Tools menu in previous versions:
    On the Tools menu, click Mail Merge.
    In the Mail Merge Helper dialog box, click Merge.
    NOTE: You must select the main document and data source for the merge before doing step 2.
    In the Merge dialog box, under When Merging Records, click either:
    Don't print blank lines when data fields are empty.
    -or-
    Print blank lines when data fields are empty.
    Click Close in the Merge dialog box, and then click
    Close in the Mail Merge Helper.
    NOTE: If you made no changes in the Merge dialog box, the
    Close button is not available. Click Cancel instead.
    Back to the top

    Hi,
    In Word 2007 or Word 2010, you can add
    Mail Merge Helper to the Quick Access bar, and perform the steps then.
    To add the
    Mail Merge Helper command in the Quick Access Toolbar in Word 2007, follow these steps:
    a.                 
    In Word 2007, click the
    Microsoft Office Button, and then click Word Options >
    Customize.
    In Word 2010, click File > Options > Customize Ribbon.
    b.                 
    Click
    All Commands in the Choose commands from, and then click
    Mail Merger Helper in the Choose commands from list.
    c.                  
    Click
    Add, and then OK.
    Best Regards,
    Sally Tang

  • Printing blank line

    Hi,
    I am developing one report, its having three repeating frame ie; Department, category and Item. First page its printing properly, in second page onwards after printing heading its printing two line gap ie; The space of tow group headings.
    The following are the details
    Frame properties (All the three frames)
    Vertical Elasticity - Variable
    Print object on - First Page
    Base printing on - Enclosing object
    Fields properties (All ithe items)
    Print object on - First Page
    Base printing on - Enclosing object
    Page 1
    Heading
    Group - A00001
    Category - A01
    Item1
    Page 2
    Heading
    **Blank line
    **Blank line
    Item2
    Please help me to sort out this.
    Regards,
    Jen.

    hello ,
    it might be happen that ur 2nd or 1st frame is repeat with no data
    that's why the two line will be blank
    another posibility is that u hve given two blank line in ur report section that effect on ur sencond page
    see carefully u will find
    bye

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

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

  • Printing Blank pages for SSRS Reports in Firefox browser

    I have created an SSRS Report that works well on chrome, but when I use the site in Firefox the SSRS Page prints blank pages though the report displays properly. I have tried every thing like reducing table width. I am using the report viewer control.
    Sanjeev Menon

    Hi Sanjeev,
    Generally, if the report display properly in the browser, it should be also work well when we print the report. And I can’t reproduce the scenario in my own environment. As to this issue, I recommend that you can try to run it in compatibility mode or use
    IE explorer to print the report.
    If this issue still exists, please try to update the report viewer control to latest release and check this issue again.
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Printing blank lines using plsql

    Hi,
    I am trying to print a blank line using plsql can anyone help me on this
    eg
    Employee Report
    (a blank line here)
    I am not able to print a blank line where I have written (a blank line).
    Chiranjib

    dbms_output is trimming blanks, therefore you need to use some other non-visible character, e.g.
    SQL> begin
      2  dbms_output.put_line('Employee Report');
      3  dbms_output.put_line('***************************');
      4  dbms_output.put_line(chr(255));
      5  dbms_output.put_line('*****************************');
      6  end;
      7  /
    Employee Report
    PL/SQL procedure successfully completed.
    SQL>

  • Printing blank lines in IE 8, 9, 10 and 11 differs

    We have Credit Reports that are put in Iframe (and hidden fields) and when the users checks which ones they want to print, we take the hidden fields an populate one Iframe to print them all from.
    Problem is, IE 8 prints fine, IE 9 removes many of the blank lines that used to be there and IE 10 pretty much removes all blank lines.  IE 11 seems to work ok though.
    While IE 8 is being deprecated, IE 9 & 10 are still our majority users and am I trying to find a solution for them.
    Is there something other than an iframe I should be using?
    Here is the code:
    for(count=0; count <= intCounter; count++)
    vartabChecked = $get(printTab[count]);
    if(tabChecked.checked ==
    true)
    varhdnPrintFieldName =
    "hdnPrintFieldName"+
    count;
    vardoc = document.getElementById(hdnPrintFieldName);
        appendReports = appendReports + doc.value;
    varprintDoc = appendReports;
        parent.iframeprint.document.open();
        parent.iframeprint.document.write(printDoc);
        parent.iframeprint.document.close();
        parent.iframeprint.focus();
        parent.iframeprint.print();
    The report even looks different in the presented iframe (tabbed) in the various IE versions, though sometimes not exactly the same as the printed version in the same IE.
    Cliff

    Hi,
    IE8 doesn't understand textNodes that are white space. the firstChild property is affected by any white space preceeding the Node.
    use
    &nbsp;<br/>
    instead of
    the above is a blank line.. (white space).
    ensure that your external stylesheet links have a media attribute. Normally one would use a print only stylesheet (media='print') to show/hide visual elements when printing.
    eg.
    @media='print'{
    #divCopyright{
    display:block;visibility:visible;}
    @media='screen'{
    #divCopyright{
    display:none;visibility:hidden;}
    Post questions about html, css and scripting for website development to the IE Web Development forum.
    http://social.msdn.microsoft.com/Forums/ie/en-US/home?forum=iewebdevelopment
    Include with your questions a link to your website or a mashup that shows the issue.
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com/en-us
    Rob^_^

  • 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

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

  • Need to print new line when "," in string

    Hi,
    I have a string having value 12,221,23,67...
    I need to print a new line after ", "
    i;e 12
    221
    23
    67....
    Please suggest.
    Thanks,
    Ajit

    Hi Team ,
    its done.
    I have used chr 13, chr10 and it print new lines for me
    v_serial_num:=v_serial_num||','||CHR(13) || CHR(10)||rec.SERIAL_NUMBER;
    Thanks,
    Ajit

  • How to print blank line on BIP template when the field has no value?

    I have a BIP template like below and all these CHILDREN, NAME, GRAND_CHILDREN, NAME are fields arranaged in the template as a row.Reps can enter values in each of these fields for a max upto 3 rows. The first 2 rows have the values and the last is blank.
    CHILDREN: NAME: GRAND_CHILDREN: NAME:
    Son     John Daughter     Smith
    Daughter Laura Son      Kevin
    In the third row since the fields have no values, the report print blank rows, but I want to delete that blank row and show only the rows(first 2 rows) that have values for the fields.
    Does any one know how to get around this? Please help me to resolve this.
    Thanks in advance,
    RV

    Thanks.Here is the sample XML. Fields that refer to are as follows:
    Children: DependentDD1, DependentDD2, DependentDD3
    Name: DependentFF1, DependentFF2, DependentFF3
    Grandchildren: GrandchildDD1, GrandchildDD2, GrandchildDD3
    Name: GrandchildFF1, GrandchildFF2, GrandchildFF3
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ListofIO>
    - <ListOfBipCustomerProfileReport>
    - <Contact>
    <FirstName>ROSCOE</FirstName>
    <LastName>CLOUGH</LastName>
    <LeadContactType />
    <PartyTypeCode>Person</PartyTypeCode>
    <PartyUId>XXXXXXXXX</PartyUId>
    <PersonUId>XXXXXXXXX</PersonUId>
    <PrivacyCode>Opt-Out: All Parties</PrivacyCode>
    <RelationtoHousehold />
    <SocialSecurityNumber>XXXXXXXXX</SocialSecurityNumber>
    <UserType>Prospect</UserType>
    - <ListOfA-FmrCustomerProfile>
    - <A-FmrCustomerProfile>
    <DependentDD1>Son</DependentDD1>
    <DependentDD2>Daughter</DependentDD2>
    <DependentDD3 />
    <DependentFF1>John</DependentFF1>
    <DependentFF2>Laura</DependentFF2>
    <DependentFF3 />
    <GrandchildDD1>Daughter</GrandchildDD1>
    <GrandchildDD2>Son</GrandchildDD2>
    <GrandchildDD3 />
    <GrandchildFF1>Smith</GrandchildFF1>
    <GrandchildFF2>Kevin</GrandchildFF2>
    <GrandchildFF3 />
    </A-FmrCustomerProfile>
    </ListOfA-FmrCustomerProfile>
    </Contact>
    <Login>A482003</Login>
    </ListOfBipCustomerProfileReport>
    </ListofIO>

  • Print program for large ALV Report

    I have an ALV report that has around 20 columns of data which I would approximate that it will take 3 pages to display the data.
    When I use the print button for this report, the layout is changed to the max possible columns 65x255 and yet many columns go missing in the hard copy.
    It seems I need to write some separate logic to print this document. How can I handle this?
    I am using CL_SALV_TABLE t o generate the report. I am already handling events ON_USER_COMMAND & TOP_OF_PAGE.
    Thank you.

    Hi,
      Because the standard format of ALV output setting is X_65_255, when you want to extend the column number, you have to choose other format type follow the steps below:
       1.ALV screen, press 'print.' button->properties->
       2.double click 'format  X_65_255'->
       3.In format field you can choose your setting with search help.
      In R/3 system, we have several format as default, we can also define our own format by t-code: spad.
       1.Spad->
       2.Full administration->
       3.Devices types->
       4.Click 'Display' of Format types->
       5.Now, you can find X_65_255 format type here, click modify button and create a new one.
       6.Input format type, 'L' format type for ABAP lists, fill Attribuetes... ...
       7.Spad->Full administration->Device types->Device Types-> choose the device type you alredy use and double click it
       8.Click 'formats' button in application bar
       9.Click 'Create' button in application bar.
      10.Add the format you just created.
      11.After above steps you added the format to your device type, double click the format you added.
      12.In the tab page of Formats we have to fill the following Actions:
                       a.Printer initialization
                       b.End of page
                       c.End of line.
           You can copy  the code of each action from other formats, they are exactly the same!
        You can find your own defined page format in the ALV print properity, now!
    Best regards!

Maybe you are looking for

  • List View Filter - I want to create List View based on a specific user

    I want to create a List View Filter based on specified user ID. I dont want to specify the [Me] for filtering the view based in current logged in User. I want the view to be based on specific user ID for Ex: "AD\JohnDoe" Thanks Nate

  • SQL Developer not accepting certain characters from the keyboard

    Hello, I have been using SQL Developer for 5 or 6 months now, with minor issues and great satisfaction. A few days ago, just out of the blue, in the middle of the day, SQL developer started not accepting the following characters: Ctrlv, Ctrl + c, F5,

  • MACBOOK PRO TYPE 14=PAGE FAULT KERNEL PANICS

    Hi, I have a MACBBOK PRO that has Type 14=Page Fault kernel panics: Tue May 13 11:53:17 2014 panic(cpu 2 caller 0xffffff80002c4794): Kernel trap at 0xffffff7f816f75fb, type 14=page fault, registers: CR0: 0x000000008001003b, CR2: 0xffffff806a543628, C

  • TS4006 How  do I find my iPhone using my Mac.

    I have the findmyihone app on my iphone, no problem. But what if I want to find the location of my iphone using my MacBook Pro? Any help would be appreciated!

  • Packet loss during ARP

    During a competitive pilot against another vendor, it has been observed that a ping packet is lost each time the MSFC router has to re-ARP the next hop. With the other vendor, there is no ping lost. beside the fact that this is not a real problem, th