Classical Report display

Hi,
I need to display classical report with following layout
Material     Jan         Feb        march        april -
Total
ABC
       SD     10         20             30                               60
       SE     10         20                                               30
In my internal table I have month wise data.
How to display it in one line under respective months.
For e.g. in internal table I have two rows of SD with quantity is two different months. Now I need to display this in above format
Please help.

Hi Vanita,
Check the following code, this is similar to your requirement...
Row wise output:
     1.000     100.001
     1.000     100.002
     1.000     100.003
     1.000     100.003
     1.000     100.004
Column wise output:
     1.000       1.000       1.000       1.000       1.000
   100.001     100.002     100.003     100.003     100.004
TYPES: BEGIN OF ty_tab,
       a TYPE i,
       b TYPE i,
       END OF ty_tab.
TYPES: BEGIN OF ty_fields,
       field TYPE c,
       END OF ty_fields.
DATA: it_tab TYPE STANDARD TABLE OF ty_tab WITH HEADER LINE,
      it_fields TYPE STANDARD TABLE OF ty_fields, "Table which stores the field names
      wa_fields TYPE ty_fields,
      wa_tab TYPE ty_tab.
DATA: w_value TYPE ty_fields-field.
FIELD-SYMBOLS: <fs> TYPE ANY.
wa_tab-a = 1000.
wa_tab-b = 100001.
APPEND wa_tab TO it_tab.
wa_tab-a = 1000.
wa_tab-b = 100002.
APPEND wa_tab TO it_tab.
wa_tab-a = 1000.
wa_tab-b = 100003.
APPEND wa_tab TO it_tab.
wa_tab-a = 1000.
wa_tab-b = 100003.
APPEND wa_tab TO it_tab.
wa_tab-a = 1000.
wa_tab-b = 100004.
APPEND wa_tab TO it_tab.
wa_fields-field = 'A'. "In this example columns are A and B
APPEND wa_fields TO it_fields.
wa_fields-field = 'B'.
APPEND wa_fields TO it_fields.
WRITE:/ 'Row wise output:'.
LOOP AT it_tab.
  WRITE: / it_tab-a,
           it_tab-b.
ENDLOOP.
WRITE:/,/, 'Column wise output:',/.
LOOP AT it_fields INTO wa_fields. "Dispalying columnwise o/p
  w_value = wa_fields-field.
  LOOP AT it_tab INTO wa_tab.
    ASSIGN COMPONENT w_value OF STRUCTURE wa_tab TO <fs>.
    WRITE: <fs>.
    UNASSIGN <fs>.
  ENDLOOP.
  WRITE: /.
ENDLOOP.
Modify this example to ur requirement.
Revert incase of any issues.
Regards,
Manoj Kumar P

Similar Messages

  • How  2 increase line size of  classical report displayed thru  modular prog

    Hi guys,
    I have displayed a classical report through a modular program using LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 130.
    But now i want to increase the line-size of my classical report as only half of the report is getting displayed.
    I tried the following thing:-
    SY-LINSZ = 125.
    perform f_report_pass.
    *Print repost showing records which were not saved
    perform f_report_fail.
    LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 130.
    but that did not work.
    Please help me increase the line size.
    Regards
    Rahul Gambhir

    Hi Vasanth
    I am using a modular program hence there isnt any statement :-
    REPORT ZXXX NO STANDARD PAGEHEADING LINE-SIZE 255
    This is the code that I am using :-
    SY-LINSZ = 200.
    perform f_report_pass.
    *Print repost showing records which were not saved
    perform f_report_fail.
    LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 130.
    Regards
    Rahul

  • Classical report display from an alv list

    Hi, 
    I have an alv report displayed, and for this alv report have a user defined menu. Now when the Save button is clicked on the application bar then in the background we have a set of invoices which are generated for all the values selected from the alv list.
    Now after this a list is to be displayed listing all the items which were selected from the alv(ie the check boxes for the alv selected and not a particular field for selection)  for which the invoices were created. how do we display the list in a classical report format considering that the write statement will not work....???

    Hi
    Try thsi......
    You write the code in some Zreport of your own and from your ALV program pass the values to this ZReport program. You can pass via 2 ways
    a) Pass via  Export to Memory and Import from Memory ID
    b) Call Submit via Selection Screen and return
    Hope thsi Helps
    Anirban

  • Classical Report Display Problem

    Dear Experts,
    I hv created a report for service order detail which contains lot of columns. To display i hv written following code:
    format color 3 intensified off.
       WRITE: /1(880) sy-uline.
       WRITE:  /1 sy-vline,2 'Sl.No.' color 3,8 sy-vline,
                9 'Maintenance Plan' color 3,25 sy-vline,
               26 'Notification No.' color 3, 42 sy-vline,
               43 'Order No.' color 3, 54 sy-vline.
          *bold* SET LEFT SCROLL-BOUNDARY.
        WRITE: 55 'Order Description' color 3, 96 sy-vline,
    But when i run the report and  scroll horizontally, it scroll to left but also display the first character of column of order description like 'O' and and all rows of the same column.
    Can anyone help me in this.
    Regards,
    Maverick

    Hi
    Try
    SET LEFT SCROLL-BOUNDARY COLUMN 54.
    Pushpraj

  • How to set the number of rows displayed in a classical report at runtime?

    Hi,
    Our customer has several standard client hardware configuration and would like to enable end users to choose their 'display profile' at login time. This 'display profile' would contain predefined values for these hardware configurations and supposed to set various paramters that should define the number of rows displayed in a classical report region.
    I tried to provide parameters on the report region but it refused to accept anything but numerical values. Is it possible to do this?
    Regards, Tamas

    The link is to the closest linkable point in the documentation to the description of the Number of Rows (Item) attribute.
    It sounds like you have been trying to enter&mdash;unsuccessfully&mdash;an item name or substitution string into the Number of Rows attribute. The Number of Rows (Item) attribute is the one that actually allows you to do this. Click on the flashlight icon beside it to get a list of items from the application.

  • END-OF-PAGE not displayed in the last page of the classical report.

    Hi all..
    The END-OF-PAGE is not displayed in the last page of the classical report.
    SY-LINCT value is 30.
    Lines displayed in the report per page is 24.
    [3 for TOP-OF-PAGE and 3 for END-OF-PAGE]
    My Internal table has 6942 records.
    It comes 289 pages with 24 records in a page and 290 th page with 6 records.
    The END-OF-PAGE is not coming for the 290 th page.
    Please help.
    Thank You.
    Karthi M R.

    There are multiple links in SDN on this subject; Please search,
    end-of-page

  • Display image in classical report

    Experts,
    Please share how to display image stored in SO10 in to a  classical report??

    Hi
    check this
    In the transaction OAOR, you should be able to insert your company Logo.
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    FORM TOP-OF-PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEADING[]
    I_LOGO = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
    ENDFORM. "TOP-OF-PAGE
    Here 'ENJOYSAP_LOGO' will replace by ur created logo.
    Refer this link
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
    http://www.sap-img.com/abap/alv-logo.htm
    http://www.sap-img.com/fu002.htm
    Re: Logo on Login screen
    Re: To change image into main menu of sap
    Regards
    Anji

  • First group heading below displays below column headings using Template 23 Classic Report using Repeat Headings on Break

    Hello,
    I am migrating an application from APEX 3 to APEX 4.2 on one thing I notice with the classic reports when I bring them into Template 23 is that the first break section has the break row display below the column headers for that section while the remaining rows correctly have it display above the headers on subsequent group sections.
    When I look a the code in firebug I can seen that the all tables but the first, the break row is being included as the last row of the previous table so I can see how this would not work for the break since.
    I have tow questions.
    1. Is this really intentional because it doesn't seem  terribly elegant and my users zeroed in on it right away as a perceived bug.
    2. Is there a reasonable work around that still uses Repeat Headings on Break? I have multiple reports on the same page in places so changing over to interactive reports is not a silver bullet for me in this case.
    Example of issue can be seen at apex.oracle.com at  Home
    Thanks,
    Brad

    Roadling wrote:
    Hello,
    I am migrating an application from APEX 3 to APEX 4.2 on one thing I notice with the classic reports when I bring them into Template 23 is that the first break section has the break row display below the column headers for that section while the remaining rows correctly have it display above the headers on subsequent group sections.
    1. Is this really intentional because it doesn't seem  terribly elegant and my users zeroed in on it right away as a perceived bug.
    The Standard report template definition in theme 23 contains thead and tbody elements:
    Before Column Heading
    <thead>
    Column Heading Template
    <th #ALIGNMENT# id="#COLUMN_HEADER_NAME#">#COLUMN_HEADER#</th>
    After Column Heading
    </thead>
    <tbody>
    After Rows
    </tbody>
    </table>
    </td>
    </tr>
    </tbody>
    <tbody class="uReportPagination">
    #PAGINATION#
    </tbody>
    </table>
    <div class="uReportDownloadLinks">#EXTERNAL_LINK##CSV_LINK#</div>
    This is intentional, following best practice for marking up HTML tables. What is not intended is the problem that arises when this template is used with the Repeat Headings on Break break formatting option. The repeated headings result in the table consisting of tag soup containing multiple incorrectly constructed tbody and thead elements, which is invalid.
    2. Is there a reasonable work around that still uses Repeat Headings on Break? I have multiple reports on the same page in places so changing over to interactive reports is not a silver bullet for me in this case.
    Create a copy of the Standard report template as Standard (break formatting) for use with break reports, remove the thead and tbody tags from the template definitions, and change the break reports to use the new template. (Or, if you primarily have break reports using the Standard template, keep the tags in the copy and remove them from the original to minimize the number of reports you have to edit.)
    Personally I'd create a custom row report template for complex break reports in order to be able to have complete control over the structure and presentation.

  • OnMouseOver displays Tooltip from hidden column of classic report

    What: The Goal:
    Make easily available more information than fits on one line of the screen without using multiple fixed lines.
    Background:
    Classic report with 18 data items (columns) visible. Has Search box and user can choose number of rows displayed.
    A couple data items can be long (20-30 characters) compared to the screen width. The right-most data item might run 100 characters.
    Proposed Strategy:
    1) Display the first n characters of the long item(s) on the report.
    2) On onMouseOver display the entire item.
    Proposed Approach:
    1) For each column with long data, hold the entire value in a hidden item.
    2) Display long (hidden) value in tooltip (bubble?/balloon?) upon onMouseOver of that value.
    Note: This is not ToolTip/Help for a column but display of the long value for a specifc item in the row of a column.
    Sought After Feature:
    1) To reduce maintenance, would like to implement for multiple columns using a single common block of code.
    Question:
    Given other approaches you know, is this a good approach to achieve the goal? Alternative approaches?
    Howard

    Well it took a while and you really made me work for this. :)
    For the end result hover on the Job Ln Nm column.
    http://apex.oracle.com/pls/apex/f?p=991202:1
    I added some old code I had laying around. It adds a bubble that will stay up for 5 sec or until you click away or hover on another record.
    What I would do at this point is just truncate (with a substr) the length of the Long Nm to something short. Use whatever indicator you want for the hover. Like for example these glasses <img src="#IMAGE_PREFIX#Fndview1.gif"> It's really up to you.
    You'll see there's an AJAX Callback PLSQL where you can retreive and format the content of the popup to whatever you want. You could make it real pretty.
    Here's what I did:
    1. New ShowJob javascript procedure.
    function ShowJob(pThis,pId){
         this.dTimeout;
         clearTimeout(this.dTimeout);
         this.dGet = dGet;
         this.dShow = dShow;
         this.dCancel = dCancel;
         var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=FULL_LONG_NAME',$v('pFlowStepId'));
         this.dGet();
         return;
         function dGet(){
               this.dTimeout = setTimeout("this.dCancel()",6500);
              get.addParam('x01',pId);
               get.GetAsync(dShow);
         function dShow(){
               $x_Hide('rollover');
               if(p.readyState == 1){
               }else if(p.readyState == 2){
               }else if(p.readyState == 3){
               }else if(p.readyState == 4){
                     $x('rollover_content').innerHTML = p.responseText;
                     $x_Show('rollover');
                var l = findPosX(pThis)+pThis.offsetWidth+5;
                     var t = findPosY(pThis);
                $x_Style('rollover','left',l + 'px');
                     $x_Style('rollover','top',t + 'px');
    // This math would center on the vertical           
    //                 $x_Style('rollover','left',findPosX(pThis)+pThis.offsetWidth+5);
    //                 $x_Style('rollover','top',findPosY(pThis)-($x('rollover').offsetHeight/2)+($x(pThis).offsetHeight/2));
                   document.onclick = function(e){
                   dCheckClick(e);
               }else{return false;}
         function dCheckClick(e){
              var elem = html_GetTarget(e);
              try{
                        var lTable = $x_UpTill(elem,"DIV");
                        if(lTable.id!='rollover_content'){dCancel();}
                        else{}
              }catch(err){dCancel();}
         function dCancel(){
               $x_Hide('rollover');
              document.onclick = null;
               get = null;
    }2. Rollover div on the page footer (div id="rollover"...). Of course this could be a region also.
    &lt;div id="rollover" style="display:none;color:black;background:#FFF;border:2px solid #369;width:290px;position:absolute;padding:4px;">
    &lt;div id="rollover_content">&lt;/div>
    &lt;/div>
    3. PLSQL AJAX Callback. : FULL_LONG_NAME
    -- select your value with apex_application.g_x01
    htp.p('You hover over ' || apex_application.g_x01 || '<br>');
    htp.p('Here is the Full Long Name: XXXXXXX XXXXXXX XXXXXXX 1234565');4. Changed Long Nm column to be a link with the onmouseover call that calls the new procedure ShowJob. I made the assumption that with the NUM parameter you could fetch the full record of what you need.
    onmouseover="ShowJob(this,#NUM#)"
    That should be it.
    Let me know what you think.
    -Jorge
    Edited by: jrimblas on Apr 22, 2013 1:05 PM: Added code to post for completion

  • How to display the  text in a classical report before top-of-page?

    Hi all,
    I am developing a classical report with top-of-page because i want to display the texts of cloumns  even users scroll down the output.
    But here the problem is i have to display a text and selection screen values in the ouput ,Before this top-of-page. But i couldn't find the way to do it.
    Please help me on solving this problem?
    Thanks,
    Vamshi.

    Hi Vamsi,
    whenever there is write statement and you are going to display some thing the system checks for the TOP-OF-PAGE and we are helpless here
    so declare your heading in the TOP-OF-PAGE only
    THIS is SAP provided way of the SYSTEM bahaviour
    Regards
    ramchander Rao.k

  • Display a text as blinking in classical report

    Hi experts,
    I've to display a text as blinking in classical report output.
    Is this possible? If possible, how to do this? Need your help.
    With regards,
    Goutam

    hi goutam
    I am assuming that you want the text as Static and not data from some sap table
    For that
    what you can do is add a png image which is blinking through OAER and call that in your report ..
    Also did you try the Tcode DWDM .. ?
    OR you could use RSDEMO_HTML_VIEWER ...
    Hope this helps
    Regards
    Manthan.

  • Classic Report limit the number of rows displayed

    Hi All,
    In my application I have a classic Report which show the data of a simple query. For lay-out reasons I want to limit the number of display to 5 instead of the default 15. I've looked in several forums and they told me that I have to set the number of rows in the report attributes.
    But it did not what I want. I'm Using APEX 4.1.0 on a Oracle 11G database
    My question is: How can I limit the maximum number of rows in a classic SQL Report.

    Hamertje16 wrote:
    In my application I have a classic Report which show the data of a simple query. For lay-out reasons I want to limit the number of display to 5 instead of the default 15. I've looked in several forums and they told me that I have to set the number of rows in the report attributes.And did you do so?
    But it did not what I want. I'm Using APEX 4.1.0 on a Oracle 11G databaseHow did it not do what you want? Displayed an error? Displayed no rows? Displayed 15 rows? Displayed some other number of rows? We can only help if we fully understand the nature of the problem.
    My question is: How can I limit the maximum number of rows in a classic SQL Report.To display 5 rows per page set the report's Number of Rows attribute to *5*.
    However, pagination settings get cached for the duration of the session. For this change to be instantly visible, either log out, restart the brower, and log in again, or manually re-request the page from the browser address bar, adding 'RP' in the ClearCache position in the URL.

  • Displaying text in BOLD in classical report

    Hi all,
    I want to display a word as BOLD in classical report.. How to acieve the same in classical report
    Regards,
    Shanthi

    HI,
    I m working in ECC 6.0 system only. But still the followinf statement is not displaying the word in bold letters.
    Pls tell  me what is wrong in the below code.
    FORMAT INTENSIFIED on.
    write 'some text'.
    FORMAT intensified off.

  • Trouble displaying all rows in classic report

    Hi,
    I have a classic report which pulls out data based on item in bind variable (which is a select list). Some entries should have about 200 rows but the page only shows 15 rows.
    I have tried setting pagination to none still dont get to see all rows. Here is my setup for pagination for the table: http://i.imgur.com/iQoG0.png
    If I get my pagination back, then I get to see all rows by clicking next but I need to show all rows in the page. Is there anything else I need to be doing aside from setting pagination to none?
    Apex 4.1.1
    Cheers

    Hi,
    >
    I have a classic report which pulls out data based on item in bind variable (which is a select list). Some entries should have about 200 rows but the page only shows 15 rows.
    I have tried setting pagination to none still dont get to see all rows. Here is my setup for pagination for the table: http://i.imgur.com/iQoG0.png
    >
    The Number of Rows item determines the number of rows on page. You have set it to 999, so that looks ok.
    >
    If I get my pagination back, then I get to see all rows by clicking next but I need to show all rows in the page. Is there anything else I need to be doing aside from setting pagination to none?
    >
    Add a Reset Pagination Process at Processing point "Before Regions" (or anywhere before that) and you will be ok.
    The browser cache does not clear the pagination on its own at times.
    Cheers,

  • Need help in sorting a column in classic report

    Hi I am trying to create and classic report and I need to do sorting on the columns. Also I am using a select list to filter the records in the column. When I am not using the select list the sorting is working but when I am using the selcet list and select the sort option then it is showing error. Can anyone help...
    Thnaks,
    Rik

    Select lists prior to v4 will sort on the return value. In v4, it sorts on the display value (as you're probably expecting). There's nothing really for you to fix here except if it's really important, see if you can get upgraded to v4.

Maybe you are looking for