Highlight the odd lines in the report

Hi Gurus,
How can I highlight the odd lines in the report, like I have 10 lines my report and I want to highlight line number 1,3,5 ……
Warm Regards
Bless

Hello,
Already discussed in this forum ... ;-)
For example :
Changing filling color on alternative rows
Regards

Similar Messages

  • View the actual sales order (VA03, Display Mode) by double clicking on the Document Number of any line item displayed in the report.

       CLASS LCL_HANDLE_EVENTS DEFINITION.
      PUBLIC SECTION.
        METHODS:ON_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_SALV_EVENTS_TABLE
        IMPORTING ROW COLUMN.
    ENDCLASS. "lcl_handle_events DEFINITION
    DATA: EVENT_HANDLER TYPE REF TO LCL_HANDLE_EVENTS.
    *       CLASS lcl_handle_events IMPLEMENTATION
    CLASS LCL_HANDLE_EVENTS IMPLEMENTATION.
      METHOD ON_DOUBLE_CLICK.
        CASE COLUMN.
          WHEN C_VBELN.
            READ TABLE T_FINAL INTO WA_FINAL INDEX ROW.
            IF SY-SUBRC = 0.
              SET PARAMETER ID: C_AUN FIELD WA_FINAL-VBELN.
              CALL TRANSACTION C_VA03 AND SKIP FIRST SCREEN. "#EC CI_CALLTA
            ENDIF.
        ENDCASE.
      ENDMETHOD. "on_double_click
    ENDCLASS. "lcl_handle_events IMPLEMENTATION
    Is Something Wrong With The Code?

    If you are using ABAP for the report this will fulfill your requirement.
    Take a close look at the ZUSEREXIT program.
    When you execute it you enter the t-code e.g. VA01.
    It will display the enhancements available in VA01.
    Now you can click on the user exit name and you will
    automatically be transferred to SMOD t-code with the
    selected enhancement as a parameter.
    You can see in the below code how simple it is to implement this.
    You will not call SMOD but VA03 t-code on click.
    You can use this code to execute it in SE38 and see how it works.
    CODE STARTS BELOW:
    report zuserexit no standard page heading.
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
              tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
        select single * from tadir where pgmid = 'R3TR'
                         and object = 'PROG'
                         and obj_name = tstc-pgmna.
        move : tadir-devclass to v_devclass.
           if sy-subrc ne 0.
              select single * from trdir where name = tstc-pgmna.
              if trdir-subc eq 'F'.
                 select single * from tfdir where pname = tstc-pgmna.
                 select single * from enlfdir where funcname =
                 tfdir-funcname.
                 select single * from tadir where pgmid = 'R3TR'
                                    and object = 'FUGR'
                                    and obj_name eq enlfdir-area.
                 move : tadir-devclass to v_devclass.
               endif.
            endif.
            select * from tadir into table jtab
                          where pgmid = 'R3TR'
                            and object = 'SMOD'
                            and devclass = v_devclass.
             select single * from tstct where sprsl eq sy-langu and
                                              tcode eq p_tcode.
             format color col_positive intensified off.
             write:/(19) 'Transakcija - ',
                  20(20) p_tcode,
                  45(50) tstct-ttext.
                         skip.
             if not jtab[] is initial.
                write:/(95) sy-uline.
                format color col_heading intensified on.
                write:/1 sy-vline,
                       2 'Naziv exita',
                      21 sy-vline ,
                      22 'Opis exita',
                      95 sy-vline.
                write:/(95) sy-uline.
                loop at jtab.
                   select single * from modsapt
                          where sprsl = sy-langu and
                                 name = jtab-obj_name.
                        format color col_normal intensified off.
                        write:/1 sy-vline,
                               2 jtab-obj_name hotspot on,
                              21 sy-vline ,
                              22 modsapt-modtext,
                              95 sy-vline.
                endloop.
                write:/(95) sy-uline.
                describe table jtab.
                skip.
                format color col_total intensified on.
                write:/ 'Broj exita:' , sy-tfill.
             else.
                format color col_negative intensified on.
                write:/(95) 'Nema user exita za ovu transakciju'.
             endif.
           else.
               format color col_negative intensified on.
               write:/(95) 'Transakcija ne postoji'.
           endif.
    at line-selection.
        get cursor field field1.
        check field1(4) eq 'JTAB'.
        set parameter id 'MON' field sy-lisel+1(10).
        call transaction 'SMOD' and skip first screen.

  • How to highlight the whole row of a particular line item of sale

    How to highlight the whole row of a particular line item of sales order depending on condition?
    Please help its urgent..
    Looking forward your reply.
    Moderator message: please do more research before asking, show what you have done yourself when asking, do not flag posts as "urgent".
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Aug 9, 2011 9:30 AM

    Any ideas on what would cause this NOT to work? I added this row right after the table is created and populated and it is still not highlighted when I enter the form. The snippet of code that does this is:
    MyTableModel modelS = (MyTableModel)dataModel.get("S");
    jTable1 = new JTable(modelS);
    jTable1.setRowSelectionInterval(0,0);MyTableModel is this:
    class MyTableModel extends DefaultTableModel {
      public MyTableModel(Object[] columnNames, int numRows) {
        super(columnNames, numRows);
      public boolean isCellEditable(int row, int column) {
        if (TableKey == 'S') {
          if (column == 6) {
            return false;
        if (TableKey == 'O') {
          if (column == 0 || column == 4 || column == 5) {
            return false;
        if (TableKey == 'P') {
          return false;
      return true;
    }Can anyone help? Thanks.
    Allyson

  • The report in FI which contains Quantity field with every line item

    Hi Gurus,
    What are the reports in Finance which contains Qty field with every Line Item reports & reports that contains user name & System Id in it along with other informations e.g. G/L, Ar, AP
    Thanks & Regds,
    Santosh Rothe

    Hi
    Using the line item display report you can get the required details by changing layout in the output:
    FBL1N: Vendor line item
    FBL3N: G/L line item
    FBL5N: Customer line item
    VVR

  • Line item PO should disply in the report

    Hi,
    As per the business requriement i need to display the line item PO discritpion into the  report.
    Currently we have one existing Z report and we are developing new Z reprot by copying that exisitng report by adding the line field.
    The PO number field is same for both header and line item ( the reason could be since header PO number header data which is copied to all the line items). the field name for both is VBKD-BSTKD
    Sales order:
    we have developed one new Z report as per the above requirement, below is the output of it. it is showing both line items are HEADER PO only. But our requriement it should display the 2nd line item as ITEM PO1 which was manually changed by the user in sales order.
    So what is the field and table i should give to the ABAP er so that it would display the line item PO details of Sales order into the report.
    Please let me know if you need any further details?
    thanks,

    Hi Lakshmipathi Sir,
    Thanks for your reply. Could you please let me know how exactly i need to mention the logic to ABAPer.
    I can see two fields are giving from VBKD table with line item wise it is displaying.
    1. BSTKD
    2. BSTKD_M
    thanks,

  • Toolbars in the report view take a lot of the screen space as each button takes a line

    I created a report which looks fine in the BIDs but as soon as I upload it to the Report server and open it with the IE the toolbars take much of the screen space as each button (Export, Refresh and save) take a line. how can I change the configuration so
    that all buttons will appear in one line (or will not appear at all)?
    I'm sure it is something to configure in the server side as in whichever IE I open the report, from different computers, I always get it the same

    Hi,
    I would ask the following questions to verify the issue:
    1. Does the issue happen on all the reports?
    2. Does the issue persist if you open it in the other web browsers?
    2. What’s the version of your Reporting Service and Internet Explorer?
    Please post the image of the issue, so we can understand the problem in more details.
    You can use &rc:Toolbar=false parameter to hide the toolbar in the Report Server.
    The following articles are helpful:
    URL Access (SSRS)
    http://msdn.microsoft.com/en-us/library/ms152835.aspx
    SSRS Remove Menu in Web-Page
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a6f2899b-a8bb-41a2-880c-0b302907161c/ssrs-remove-menu-in-webpage
    Thanks.
    Tracy Cai
    TechNet Community Support

  • How to Highlight the CURRENT RECORD in a Table with Report Form

    Hi,
    I have created a Table with Report Form....let suppose the table is - EMP
    Report page - 1
    Form page - 2
    Now, when I do Create / Update on Page 2,....the control is back on Page1.
    Suppose in the Report Page (Page1)..we have 10 records....NOW how should I highlight the CURRENT RECORD in Page 1 with some color to identify the record which I have updated/created just now...
    Thanks,
    Deepak

    Hi Deepak,
    You could do that with a custom report template. I've done that here: [http://apex.oracle.com/pls/otn/f?p=267:175]
    Go to Shared Components, Templates and create a new Report template as a copy of your existing one. Then edit your template. In the above example, the Column Template 1 setting was:
    <td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data">#COLUMN_VALUE#</td>I copied this into the Column Template 2 setting and updated the Column Template 1 setting to:
    <td #ALIGNMENT# headers="#COLUMN_HEADER#" class="t18data" style="background-color:red; color:yellow;">#COLUMN_VALUE#</td>I then set the Column Template 1 Condition to: Use Based on PL/SQL Expression
    and the Column Template 1 Expression to: '#EMPNO#' = '&P178_EMPNO.'
    (In my example, P178_EMPNO is the single item on the linked to page.
    Save those changes and go to your report and change its template to the new one. As long as a selection has been made and P178_EMPNO has a value, the condition will make sure that the report uses the first template for the row with the matching EMPNO value. All other rows get the template from Column Template 2.
    Andy

  • Blank lines showing in the report

    Hi,
    When i run MEIS report i get a blank line for the colomn - Special unit of measure (qty filed) where as for some PO's it shows the qty and for some Po's it does not show.
    Please tell what would be the problem with this colonm why is it not showing qty in that colonm
    Thanks

    Hi David,
    You need to maintain the Supplementary unit for the Commodity codes then it will display in the report.
    Thansk,John

  • How to highlight columns in the report

    Hi,
    I have two tables/views with same structure, one is with old data and one is with new data (there may be one or more changes in the column for a row). My application has to generate a report comparing these two tables/views and display only changed rows with older row first and then below that new one.
    Ok my query is how can i "Highlight" the columns in the report those have been changed from old values.
    I want to "Highlight" only new data columns.
    Also if you can guide me in query how to compare these two tables/views.
    Regards,
    Smith

    Hi,
    I think you can do this with a single SQL statement and a custom "Row Template" for the report. Something like: [http://apex.oracle.com/pls/otn/f?p=267:83] - if that is the sort of thing you mean?
    Andy

  • MM Drill down on any line on the report ME2N the line defaults to item 10

    We have recently upgraded to ECC 6.0 EHP5 .
    When you drill down in ME2N on any line on the report,  it takes you to the tab of line item 10 and not on the line
    where drill down was initiated .
    Thank you in advance .

    was this different in your older release?
    If you are sure it was, then you should open a call at SAP directly and ask for a fix.
    I am on EHP4 and I get as well to the first item in a PO, whatever item I click in ME2N.
    But I cannot remember that this was different in any release in the past.
    Edited by: Jürgen L. on Feb 7, 2012 8:29 PM

  • FBL5N: missing one line item while viewing the report in spool

    Hi Experts,
    I 've got a problem while viewing FBL5N report in spool. The report is missing one line item, but when I
    execute it in foreground, the report was ok.
    Can somebody explain?
    TQ.

    Hello,
    It seems you should implement notes 1100728 and  1166251 !
    Best Regards,
    Glayds xing

  • In the report getiing two lines per each service order

    Hi Experts,
    when I drill down callouts on back reporting level by Component code, Reason code, and action code. I see two lines per service order. I have two records in MP for the same service order. Is there any possibility that I get only one record in report without changing the data at multi provider level?
    Example:
    Report Output
    S. no     Equipment     Calender date  Order type       Service order        Action code             Order count
    1     30000074     18.02.2009              ysm1           62704142            004/#                      1
                                           004/#                      0
    2     30000275     03.08.2009              ysm3      9AHK40218030         004/#                      0
                                          004/20                      1
    3     30042305     02.07.2009              ysm4      9AAU70443928        002/70                     0
                                           002/80                     1
    Could you please see the below scenarios and suggest.
    Scenario 1
    For the S. no-1) for the action code 004/#  and the order count 1 should displayed in the report and action code 004/#  and order count 0 should not be displayed in the report.
    Scenario 2
    For the S. no-2) for the action code 004/20  and the order count 1 should displayed in the report and action code 004/#  and order count 0 should not be displayed in the report.
    Scenario 3
    For the S. no-3) for the action code 002/70  and the order count 0 should displayed in the report and action code 004/80  and order count 1 also should be displayed in the report.
    Regards,
    Sita

    Hello,
    THis can be achieved with foll two ammendments:
    1) Restrict Action Code in the filter to exclude # values.
    2) Create condition on Order Count to display where it is GT 0.
    Regards,
    Shashank

  • How to highlight the repeated records in a BO crystal report?

    Hi ,
    How to highlight the repeated records in a BO crystal report?
    we want to highlight the rows for which account number is same.
    thanks
    sriram

    You don't even need to create a group.  Just sort the records on the fields that define "duplicate".  Then you can just use
    if {field} = PreviousValue({field}) then crYellow else crNoColor
    in the format's Background Color formula.  This will cause the background to be yellow on duplicates.  (If you need to check more than one field in order to determine duplicates, just insert
    and {field2} = PreviousValue({field2}
    and so on for each field that needs to be checked.
    HTH,
    Carl

  • Hi ,Maximum line size in the report

    What is the maximum line size inthe report.Some are saying 1023.Some are saying 255 characters.I am full confusing this concept.
    And if the line size mentiones in less than the length of the data in the write statement ,what happened?
    Sometimes it is coming in the next line , sometimes it is coming in the next line
    Please anyone provide the solutin

    hi,
    The line width determines the number of characters in the line buffer as well as the number of columns in the list displayed. The value width must be a positive numeric literal. The maximum line width is 1,023 characters.
    When the LINE-SIZE is not specified, the line width of the basic list is set to a standard width based on the window width of the current Dynpro, but is at least as wide as a standard size SAP window. For the standard width, the contents of sy-linsz is 0. The LINE-SIZE overwrites the value of the like-named LINE-SIZE addition to the statement SUBMIT and can be overwritten during list creation with the like-named LINE-SIZE addition to the statement NEW-PAGE.
    For screen lists, you should use the standard value since, as a rule, page breaks defaulted through LINE-COUNT are not adjusted to the window size.
    You should also use the standard value for print lists, so that you can still select the page size on a printer-specific basis. A print list should be created in such a way so that it can handle every page size.
    Specifying a fixed line count is only useful for form-type lists with a fixed page layout. Here, however, you should always check whether such forms can be created by other means, such as SAPScript forms.
    when line size is more than your data... your ouput screen will be dragging after all your output display..So bettery ou should use the standard value .
    Regards,
    Muhammed Safel

  • Shift Lines on the report

    Hi,
    I have one requirement and I want to do it in a simpler way as my core is not ABAP.
    I have report which is done. I want to write a action on "AT LINE-SELECTION" and when I select a line, it should display something, like another small report. This will have around 3-6 lines.
    It is easy to display it on the next screen as it is done automatically when the even is triggered.
    I want to do it on the same screen by just shifting the lines below.
    So If dbl-click a line it should shift the lines to below and make space for this new report. This way it will displayed on the same page. My base report is huge that is why I am looking for simpler way.
    Is it possible? Please help me if possible.
    I will appreciate it.
    Best Regards,
    SC

    Hi Sume
    just as Rob and I have said: you've no chance.
    If you want to add a new part in the same screen (so list) in the event AT LINE-SELECTION: you need to write all again.
    Just as Rob has written, that doesn't mean you need to repeat all report, but the part for the output only.
    Sometimes the report is arranged in several parts, one for extraction of data and one for the output:
    START-OF-SELECTION.
      PERFORM GET_DATA.
      PERFORM WRITE_DATA.
    AT LINE-SELECTION.
      SY-LSIND = SY-LSIND - 1.
      PERFORM WRITE_DATA.
      PERFORM WRITE_NEW_DATA.
    I don't know how you report was developed, but if you can't do it, you can only write the new data in a new list (so screen)
    Max

Maybe you are looking for