Code plz for classical report

The report take input as range of materials and shows subtotal of the stock for each storage location and grand total of the stock at the end of the plant.

Hi,
i can give one classical example,it prints the totals and subtotals.
change this to as ur requirement by adding the input fields and where condition in select statement.
DATA: BEGIN OF ITAB OCCURS 0,
      BUKRS LIKE LFC1-BUKRS,
      UM01H LIKE LFC1-UM01H,
      UM01U LIKE LFC1-UM01U,
      END OF ITAB.
SELECT BUKRS UM01H UM01U INTO TABLE ITAB FROM LFC1.
SORT ITAB BY BUKRS.
LOOP AT ITAB.
WRITE:/ ITAB-BUKRS,7 ITAB-UM01H,ITAB-UM01U.
AT END OF BUKRS.
  SUM.
  WRITE:/ ITAB-BUKRS COLOR 7,7 ITAB-UM01H COLOR 7,ITAB-UM01U COLOR 7.
ENDAT.
AT LAST.
  SUM.
  WRITE:/ ‘TOTAL’ COLOR 3,ITAB-UM01H COLOR 1,ITAB-UM01U COLOR 1.
ENDAT.
ENDLOOP.    
reward points,if it is useful.
Thanks,
chandu.

Similar Messages

  • Transaction code creation for a report group

    Hi all,
    I created a transaction code ZF17 for a report group FI02 with the following parametrs.
    Transaction: START_REPORT
    checked the skip initial screen check box.    
    D_SREPOVARI-REPORTTYPE = RW
    D_SREPOVARI-REPORT = FI02
    When i tried to run the T-code ZF17, it gives me
    a message : PROGRAM FI02 doesn't exist
    Any ideas why this message comes up?
    Thanks,
    Sobhan.

    I would think that its looking for a program name in the D_SREPOVARI-REPORT  field,   FI02 is not a program name.
    Regards,
    Rich Heilman

  • Highligh current row not working for classic report in 4.1

    Hello experts,
    One of our customers is migrating applications from APEX 3.0 to 4.1.
    All their applications use classic reports because interactive reports didn't exist in 3.0.
    The end users of the applications like the row color changing when they hover there mouse over the rows (highlight current row) and they insist on keeping this "functionality" in the applications.
    For some reason, this "functionality" doesn't work anymore after the migration to APEX 4.1.
    I thought it was something theme related so I created a new application with a classic report, tried some APEX built-in themes, and with none of them, I manage to get the highlight current row working.
    For interactive reports it is not an issue.
    Is this an undocumented no-longer-available feature of APEX 4.x or has there changed something which caused this functionality to stop working??
    Regards,
    Bart

    Hi,
    I created a service request for this issue, and the support analyst that helped me confirmed that this is a bug:
    "I have created the bug :
    Bug 13584762 - ROW HIGHLIGHTING NO MORE WORKS IN CLASSIC REPORT IN APEX 4.1
    While working on the problem , I have found the following solution in order to make the Row HighLightng work in APEX 4.1
    In the apex_4_1.min.js (file located in images\javascript ) , Search for :
    function setRowHighlight(a){apex.jQuery("#report_"+a+" .highlight-row").live("hover",function(b)
    and replace "hover" by "mouseover mouseout" :
    After the modification :
    function setRowHighlight(a){apex.jQuery("#report_"+a+" .highlight-row").live("mouseover mouseout",function(b)
    A refresh in the browser may be necessary in order to "reload" the file apex_4_1.min.js"
    I implemented the suggested workaround and this solved the problem!
    HTH,
    Matthias Hoys

  • Help for classic report?

    Hi.
    I want to create a classic report which have some editable columns (text fields etc.). So after editing, with the help of a save button, user could save new values to db.
    I made a search in web but can't find anything like this.

    79b57e45-d497-4042-a537-ff0cf7490939 wrote:
    Please update your forum profile with a real handle instead of "79b57e45-d497-4042-a537-ff0cf7490939".
    I want to create a classic report which have some editable columns (text fields etc.). So after editing, with the help of a save button, user could save new values to db.
    I made a search in web but can't find anything like this.
    This is covered in the APEX documentation under the subject of tabular forms.They are a bad idea, especially for new APEX users.

  • Interactive report functionality for classic report

    Hi ,
    I have to implement IR report search functionality (*when ever we click on column header it will display all the values in that particular column , once we click on particular value , the report will filter based on that particular value * ) in classic report ... is that possible
    please help me
    Thanks
    Sagar

    sag wrote:
    I have to implement IR report search functionality (*when ever we click on column header it will display all the values in that particular column , once we click on particular value , the report will filter based on that particular value * ) in classic report ... is that possiblePossible? Yes. A lot of work? Yes. Reinventing IRs? Yes.
    Why not use an IR?

  • Column Headings/Subheadings for Classic Report

    We are trying to have heading/subheadings for a report. Currently, the report displays it in this fashion:
    Category| 1       |Category|2       |Category| 3    
    SubCat1 | SubCat2 |SubCat3 |SubCat4 |SubCat5 |SubCat6
        X         X        XXX     XXX       XX       XX
        X         X        XXX     XXX       XX       XX
        X         X        XXX     XXX        XX      XXWe would like it to look like this
    ....Category 1....|....Category 2...|....Category 3....    
    SubCat1 | SubCat2 |SubCat3 |SubCat4 |SubCat5 |SubCat6
        X         X          XXX    XXX      XX       XX
        X         X          XXX    XXX      XX       XX
        X         X          XXX    XXX      XX       XXHow can this be accomplished?
    Apex 4.0, Database 10g
    Robert
    http://apexjscss.blogspot.com

    Hi,
    See this post
    Column heading grouping with Apex Reports
    I have once create solution where report column and group names was store to custom table.
    I did add heading group row using JavaScript. Quite similar what Martin have done for IR
    http://www.talkapex.com/2009/03/column-groups-in-apex-interactive.html
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • CSV Output for Classic Reports 100 columns.

    Hi,
    After hours of research and several attempts, I still haven't been able to figure out a way to export a report in CSV format. I can't use an Interactive Report as the view I am displaying on the report is larger than 100 columns. Although all the columns are displayed on the report,the CSV Output link doesn't export all the columns. Can anyone help me out? I would really appreciate it.
    Thanks a lot.
    Werot.

    Were we looking at the same page?  That page shows an ORACLE PACKAGE that you can modify if need be to get what you want.  It's NOT a plugin with wrapped code..
    (You need to look for this line in the blob: The source code for the package: as_xlsx)
    Thank you,
    Tony Miller
    LuvMuffin Software

  • Code Break for WEBI report

    Could someone help me in the following code which is in Custom SQL. In the code in the From Clause there is a code which acts as Table. How can I achieve this in WEBI as a single code.
    SELECT DISTINCT
      PENDETAIL.TRADE,
      PENDETAIL.PRODUCT,
      PENTRANSACT.ACCTDATE,
      PENDETAIL.PENTRANSACT,
      PENTRANSACT.SAP_DOCUMENT_NO,
      PENDETAIL.ACCOUNT,
      Iowa.SAPAccountCode(PENDETAIL.ACCOUNT) sapact,
      PENDETAIL.COUNTERPARTY,
      PENDETAIL.QUANTITY,   
      PENDETAIL.CREDIT,
      PENDETAIL.DEBIT,
      SHIPMENTPENDTL.VESSEL,
      PENDETAIL.DESCRIPTION,
      (( PENDETAIL.CREDIT ) - ( PENDETAIL.DEBIT )) amt,
      COUNTERPARTY_PENCP.SIC,
      Iowa.SAPProfitCenter(PENDETAIL.ACCOUNT) a,
      PENTRANSACT.COMPANY,
      PENDETAIL.SHIPMENT,
      PENDETAIL.SUBLEDGER,
      NVL(PENDETAIL.CONTRACT,DEV_GROSS_LENGTH_DETAIL.CONTRACT),
      PENDETAIL.PENDETAIL,
      PENDETAIL.QUANTITYSTATUS,
      PENDETAIL.QUALITY
    FROM
      PENDETAIL,
      PENTRANSACT,
      SHIPMENT  SHIPMENTPENDTL,
      COUNTERPARTY  COUNTERPARTY_PENCP,
      (Select distinct shipment, contract from PENdetail where contract is not null) DEV_GROSS_LENGTH_DETAIL
    WHERE
      ( PENTRANSACT.PENTRANSACT=PENDETAIL.PENTRANSACT  )
      AND  ( SHIPMENTPENDTL.SHIPMENT(+)=PENDETAIL.SHIPMENT  )
      AND  ( PENDETAIL.SHIPMENT = DEV_GROSS_LENGTH_DETAIL.SHIPMENT)
      AND  ( COUNTERPARTY_PENCP.COUNTERPARTY=PENTRANSACT.COMPANY  )
      AND  (
      PENTRANSACT.ACCTDATE  BETWEEN  @variable('Enter the Beginning Date (MM/DD/YYYY)') AND @variable('Enter the Ending Date (MM/DD/YYYY)')
      AND  Iowa.SAPAccountCode(PENDETAIL.ACCOUNT)  IN  ('30110075', '30115075', '40110075', '40115075')
      AND  PENTRANSACT.COMPANY  IN  @variable('Enter Company Name')
    In the code the difference is in the FROM Clause which acts a table:
    (Select distinct shipment, contract from PENdetail where contract is not null) DEV_GROSS_LENGTH_DETAIL
    In Where clause:
    AND  ( PENDETAIL.SHIPMENT = DEV_GROSS_LENGTH_DETAIL.SHIPMENT)
    Select Clause:
    NVL(PENDETAIL.CONTRACT,DEV_GROSS_LENGTH_DETAIL.CONTRACT),
    For the little code which acts as table ,I think there is no need of derived table I guess.

    Hi ,
    Two options in my opinion.
    1.Remove the derived table and bring in an alias table to same SQL.Refer Query1
    2.Remove the derive table and perform everything with One instance of the PENDETAIL.I am not clear why you need to query the table again for the below field as query is displaying the same CONTRACT field irrespective of the fact it is has null or non null value .Did i miss anything here?
    NVL(PENDETAIL.CONTRACT,DEV_GROSS_LENGTH_DETAIL.CONTRACT),
    Second option is better as my opinion .
    Query 1
    SELECT DISTINCT PENDETAIL.TRADE,
      PENDETAIL.PRODUCT,
      PENTRANSACT.ACCTDATE,
      PENDETAIL.PENTRANSACT,
      PENTRANSACT.SAP_DOCUMENT_NO,
      PENDETAIL.ACCOUNT,
      Iowa.SAPAccountCode(PENDETAIL.ACCOUNT) sapact,
      PENDETAIL.COUNTERPARTY,
      PENDETAIL.QUANTITY,
      PENDETAIL.CREDIT,
      PENDETAIL.DEBIT,
      SHIPMENTPENDTL.VESSEL,
      PENDETAIL.DESCRIPTION,
      (( PENDETAIL.CREDIT ) - ( PENDETAIL.DEBIT )) amt,
      COUNTERPARTY_PENCP.SIC,
      Iowa.SAPProfitCenter(PENDETAIL.ACCOUNT) a,
      PENTRANSACT.COMPANY,
      PENDETAIL.SHIPMENT,
      PENDETAIL.SUBLEDGER,
      NVL(PENDETAIL.CONTRACT,PENDETAIL_NOTNULL.CONTRACT),
      PENDETAIL.PENDETAIL,
      PENDETAIL.QUANTITYSTATUS,
      PENDETAIL.QUALITY
    FROM PENDETAIL,
      PENTRANSACT,
      SHIPMENT SHIPMENTPENDTL,
      COUNTERPARTY COUNTERPARTY_PENCP,
      PENDETAIL PENDETAIL_NOTNULL
    WHERE ( PENTRANSACT.PENTRANSACT      =PENDETAIL.PENTRANSACT )
    AND ( SHIPMENTPENDTL.SHIPMENT(+)     =PENDETAIL.SHIPMENT )
    AND ( PENDETAIL.SHIPMENT             = PENDETAIL_NOTNULL.SHIPMENT)
    AND ( COUNTERPARTY_PENCP.COUNTERPARTY=PENTRANSACT.COMPANY )
    AND ( PENTRANSACT.ACCTDATE BETWEEN @variable('Enter the Beginning Date (MM/DD/YYYY)') AND @variable('Enter the Ending Date (MM/DD/YYYY)')
    AND Iowa.SAPAccountCode(PENDETAIL.ACCOUNT) IN ('30110075', '30115075', '40110075', '40115075')
    AND PENTRANSACT.COMPANY                    IN @variable('Enter Company Name') )
    AND PENDETAIL_NOTNULL.contract             IS NOT NULL
    Regards,
    Bilahari

  • To find a code file for a report on servicemarket place.

    Hi,
    I need to find out a corrected text file ZFSEPA02.txt  for Report  PFSEPA02 from -->  SAPSERV3 under path /dist/support/     .
    Where to find this path as i am unbale to find this path on servicemarketplace??
    Regards,
    Sharad

    search in tr. AL11

  • Report Painter library for Classic GL for creating cost center report

    Hi,
    I am sure everyone knows what my query is.
    I have tried using library GLTO, GLT1, GLT2, CCSS, GLFUNCT but when i am trying to create/execute report using report painter for cost center but no records are selected. I have checked the settings they all are correct as i have run it for another company code, secondly for GL reports using report painter there is no such error.
    Regards,
    Mohammed Ali Khan.

    Hi Christian,
    So for the late reply... I already check the Scenario FIN_PCA in assigned to our Ledger...
    Are there other ways to generate my report on the report painter? ( Profit center as Column, And GL account and cost center on the row)
    Thanks,
    JM

  • Sign for Quantity field in classical Report

    Dear All,
    As we know, in SAP, by default negative sign ('-') gets displayed after value. I want to display the negative sign before the value.
    i.e. I want to display '1000-' as '-1000'.
    I want this for classical report unsing WRITE statement.
    Please suggest the syntax or formating option available or the way-out.
    Thanks a lot in advance.
    Best Regards,
    Prasad

    Hi,
    here is the format option:
    report ztest.
    Data: number type p decimals 2.
    number = -12.
    Write number using edit mask 'V__.__'.
    Impüortant is the "V" at the beginning.
    hope it helps.
    Regards,
    SDCrack
    Edited by: SD-Crack on Dec 29, 2009 2:45 PM

  • Authorization-check in company code for GR55 reports

    Hi to all!
    Created User: ZTESTUSER
    The scenario is this.
    We created a report in GR55(Report Painter) and we want users (ex. ZTESTUSER) to access only company codes 7000 to 7999. How will I be able to do that?
    I am thinking of creating a role or profile then assign it to the user, but I was not be able to locate an authorization object for GR55 reports.
    The authorization object in GR51 is not doing what we want. It only control the create/change/display and execution transactions.
    I tried using validation in GGB0 but I can't find a parameters where the GR55 reports will be checked so the users will be limited by company code.
    Can somebody help me?
    Thanks a lot.

    I programmed a company code check for a report like this.
    ===========================================================
    data: lv_text(4) type c.
      if p_bukrs is not initial.
        select single * from T001
                      where bukrs = p_bukrs.
        if sy-subrc <> 0.
          message e321(FR) with p_bukrs.
        endif.
        AUTHORITY-CHECK OBJECT 'F_SKA1_BUK'
        ID 'BUKRS' field T001-BUKRS
        ID 'ACTVT' field '03'.
        if sy-subrc <> 0.
          clear lv_text.
          lv_text = p_bukrs.
          message e800(FR) with p_bukrs.
        endif.
      endif.
    ============================================================
    but I was not able to do that in GR55 reports because the program is automatically generated by SAP named GPXXXXXXXXXXXXXXXXXXXXXXXXXXXX.

  • How to fix Width of column in classic report.

    Dear Friends
    i am using Apex 3.2.
    i have created Clasic Report and i have summary column in my report that column have description of issue so i want to fix width of that column nn Classic report .
    i have try some code in html expression
    <span>style="width: 480px; display: block; white-space: normal; font-size: 11px;">#ACTIVITY_SUMMARY#</span>
    {code
    after apply abovemention code that display me in my summary like this and not manage width of column.
    style="width: 480px; display: block; white-space: normal; font-size: 11px;">Dear Cherryl, Greetings !! Thank you very much for the new query and we are pleased to confirm the availability of one single cabin in all the three categories of cabin on M.V. Mahabaahu. We would like to inform you that both the departures 15th Oct 2013 & 29th Oct 2013 (Golden triangle with Cruise) are operational and attached are the prices for your kind consideration. As a special promotion for the 15th Oct 2013 departure only, we are offering USD 100 per person reduction on the Golden triangle portion combined with the cruise. Kindly review and advise us to block the accommodation accordingly. Regards...pankaj
    How to fix Width of column in classic report.
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Hi,
    I'm working an example in APEX 4.2 so YMMV (your milage may vary!).
    For Classic Reports, where the Column Attributes "Display As" is set to Display as Text (escape special characters ...:
    1) I find that Column width and Element Width setting have no effect to make the column smaller or larger.
    2) Here is one way that works:
    - In the Region's Region Definition, under Attributes give the Static ID a name (no spaces), say, class-report.
    - In the columns you want to affect, place "&#60;div>#ENAME#</div&#62;" in the columns Column Formatting "HTML Expression". Where "ENAME" here is the actual column name.
    I'm using the EMP table as an example.
    - Finally, in the page's HTML Header put, for example
    <style>
    #classic-report td.data[headers="ENAME"] div {
      width: 200px;
      color: blue;
    #classic-report td.data[headers="JOB"] div {
      width: 50px;
      white-space: nowrap;
      word-wrap: break-word;
    </style>This makes the ENAME column wider and the JOB column smaller and wraps it.
    Much more could be said. If you tweak you will find you can also affect spacing above, below and right/left of the data.
    #classic-report .report-standard th.header {
      border-left: #9fa0a0 1px solid;
      padding: 2px 3px 4px 5px;   /* top right bottom left margins */
      font-size: 11px;
      font-weight: bold;
      vertical-align: bottom;
    #classic-report .report-standard td.data {
      border-left: #9fa0a0 1px solid;
      padding: 3px 4px 5px 6px;
      font-size: 9px;
    }Does this help?
    Howard

  • Classical report coding

    can anybody send coding for classical report?

    hi,
    check the code below
    *& Report  ZWK12346
    REPORT  zwk12346 LINE-SIZE 160 LINE-COUNT 35(3) NO STANDARD PAGE HEADING.
    ...............DECLARATION OF TABLES..................................
    TABLES: mkpf,
            mseg,
            makt.
    .............AT SELECTION SCREEN.....................................*
    SELECT-OPTIONS b FOR mkpf-mblnr. "Document no.
    PARAMETERS: a TYPE mkpf-mjahr. "Document year.
    DATA: am TYPE mseg-dmbtr VALUE 0.
    .................DECLARATION OF WORK AREA.............................
    DATA: BEGIN OF wa,
          mblnr TYPE mkpf-mblnr,
          mjahr TYPE mkpf-mjahr,
          budat TYPE mkpf-budat,
          matnr TYPE mseg-matnr,
          maktx TYPE makt-maktx,
          werks TYPE mseg-werks,
          dmbtr TYPE mseg-dmbtr,
          END OF wa.
    ..............INTERNAL TABLE DELARATION..............................*
    DATA: itab LIKE STANDARD TABLE OF wa.
    ...............CONSTANT...............................................
    ...............GLOBAL VARIABLES.......................................
    ..............TOP-OF-PAGE.............................................
    TOP-OF-PAGE.
      FORMAT COLOR COL_HEADING.
      WRITE: / sy-uline(150).
      WRITE:/ sy-vline,
             3 'Document No.',
             17 sy-vline,
             20 'Document Year',
             37 sy-vline,
             38 'Posting Date',
             54 sy-vline,
             56 'Material No.',
             72 sy-vline,
             74 'Description',
             118 sy-vline,
             120 'Plant',
             130 sy-vline,
             132 'Amount',
             150 sy-vline.
      WRITE: / sy-uline(150).
      FORMAT RESET.
    .............END-OF-PAGE.............................................
    END-OF-PAGE.
      WRITE: / sy-uline(150).
      FORMAT COLOR COL_TOTAL.
      WRITE: /128 'Total', am.
    ......................START OF SELECTION.............................
    START-OF-SELECTION.
      SELECT mmblnr mmjahr mbudat qmatnr pmaktx qwerks q~dmbtr INTO CORRESPONDING FIELDS OF TABLE itab
             FROM ( ( mkpf AS m INNER JOIN mseg AS q ON mmblnr = qmblnr )
                      INNER JOIN makt AS p ON pmatnr = qmatnr )
                       WHERE m~mjahr = a.
    ..............Exit if Data is not fetched............................
      IF sy-subrc NE 0.
        WRITE: / 'No data selected'.
        EXIT.
      ENDIF.
    .....................END OF SELECTION................................
      LOOP AT itab INTO wa.
        WRITE:/ sy-vline,
               3 wa-mblnr COLOR COL_KEY,
               17 sy-vline COLOR COL_KEY,
                20 wa-mjahr COLOR COL_KEY,
                37 sy-vline,
                 38 wa-budat,54 sy-vline,
                 56 wa-matnr COLOR COL_KEY,
                 72 sy-vline,
                 74 wa-maktx,
                118 sy-vline,
                 120 wa-werks,
                 130 sy-vline,
                 132 wa-dmbtr,
                 150 sy-vline.
      ENDLOOP.
      WRITE: / sy-uline(150).
    regards,
    Navneeth.K

  • Does Classic report provide facility to make report total to be hyperlink

    Hi ,
    Does Classic report in apex provide provision to make the report-total row editable(hyperlinked) ? if so how to implement that.
    Acq     WIP     Closed
    Abc     1     3
    Def     2     5
    report total :     3     8
    Also is it possible to provide more than 2 downloadable options for classic report :
    For eg: now i have provided options to export a report to csv and excel format, along with these two can i provide pdf option!!!!
    Thanks in advance

    You didn't mention what version of Apex you are using. If you are on 4.0, this can be done easily using dynamic actions.
    Here is an example http://apex.oracle.com/pls/apex/f?p=24317:92
    One DA that looks like this http://screencast.com/t/djyAG6F4WFM
    The first TRUE action (fire on page load) changes the cursor style to indicate that the row is clickable http://screencast.com/t/Z3YIXo6c
    The second one actually does the redirect http://screencast.com/t/jHMtyDwK8lM in the example it just shows an alert message but you can modify it to pass in whatever parameters you need and construct the location.href to redirect to.

Maybe you are looking for