Regarding Exceptions in Reporting!!!

Hi BI Experts,
Is there any way to get or change the available colors in Exceptions on a query.
I mean it gives three colors for exception reporting Green, Yellow and Red, but instead I want Green, <b>Blue</b> and Yellow.

Hi Arun,
You can change the color of exception at workbook level not query level.
Please go through this Bhanu Gupta Post,
Customizing color for defined exceptions
and
Re: regarding exceptions
if it is useful assign points
Regards,
Senthil

Similar Messages

  • Exception Messages Report / List

    I have been unable to locate an exception messages report, either for production orders, requisitions, or purchase orders. I am looking for a report that will contain all of the exception mesages.
    Ideally, the output would be something like:
    1.   WBS element (project)
    2.   Material number
    3.   Material Description
    4.   Make or buy code
    5.   Recd. / Reqd. Quantity (This would be the qty affected by the exception message)
    6.   Date (e.g. date on which the material is currently expected to be received)
    7.   Purchase order or work order #
    8.   Purchase order line #
    9.   Purchasing group
    10.  MRP Controller
    11. Exception message Number
    12. Exception message Description
    13. Re-Scheduling date
    14. Various additional MM fields
    I have requested the report, but I am told by my IT group that the exception messages do not reside in any table, so they cannot be retrieved, much less exported to excel, so a list of teh applicable tables/fields would also help.
    I assume that this issue has been raised and solved many times, since SAP is not new and my request not unique.
    I welcome any suggestions.
    Thank you.

    HI,
    Why dont you try to list the messages in SE91 and by giving the application area.
    Thanks & Regards,
    Kiran

  • Raising an exception in report

    Hi All,
    Consider the following scenario:
    a = b * c ( where a, b c are variables of type i)
    After multiplication, if the variable has reached it max limit of integers, then it would throw a short dump.
    My question: How do I catch this type of exceptions in reports.
    Thanks in Advance,
    Regards,
    Deepika
    Moderator Message: Very basic question. Please search before posting. Also, responders please do not encourage such behaviour.
    Edited by: kishan P on Sep 2, 2010 3:19 PM

    Hi,
    Try the below code
    DATA : a TYPE i VALUE '1000000001'
         , b TYPE i VALUE '1000000001'
    DATA l_oref TYPE REF TO cx_root.
    DATA p_text   TYPE string.
    TRY.
        a = a * b.
      CATCH cx_sy_arithmetic_overflow INTO l_oref.
        p_text = l_oref->get_text( ).
        WRITE / p_text.
    ENDTRY.

  • Free Report Writer for Oracle Database except Crystal Report and Data Vison

    Dear All,
    I want Free Report Writer for Oracle Database except Crystal Report and Data Vision software.
    Wr are working on Linux and windows both platform.
    Any one have direct link or website address for it ?
    Regards,
    Vipul Patel
    Ahmedabad

    Please check the following link -
    http://www.google.co.in/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=open+source+report+writer+for+oracle&meta=&btnG=Google+Search
    Regards.
    Satyaki De.

  • Issue with Exceptions in Reporting

    Hi BW Gurus,
                I am still new to BW, Like I have a issue with exceptions in reporting.
                Let me explain clearly, I created a report which gives me two MRP values they are for example V1 and PD(there other MRP types but I am focusing only this two). Here I can see in my report those two values and the overall result of all MRP types (they are 6 different types). My report looks like this for examply
       V1                  46,782,434(this are rough figures)
       PD                  56,232,453
       Overall Result      102,434,111
            Here my requirement is I need to find this overall result like accroding to thresold values this overall result shows RED,YELLOW,GREEN.
            I have given threshold values in exceptions. like
       0           -
    > 45,000,000(Red)
       45,000,001  -
    > 65,000,000 (Yellow)
       65,000,001  -
    > 500,000,000 (Green)
           But according to this values I should get Red( Overall Result), I cant see any change in the overall result.
           Please can some one give advice how to reflect this threshold values in my report.Or I have to select any other options in exceptions.
           Thanks in advance.
    Regds
    Sam

    Not really possible with BEx functions, but if you provide a workbook to users you can just type in this information in a non-Bex cell and save the workbook.
    Else you can try to name your exception such that it shows the value ranges. Then in the report, from the toolbar Layout > Display Exceptions.
    Hope this helps...

  • Exception in Report SQL

    Hi:
    How can I handle a "invalid_number" exception in reports 6i SQL Query.
    Thanks.
    Pradeep

    You could for example be using a function like 'TO_NUMBER' to convert 'alpha' characters to numbers. Make changes to your select statement.
    For example,
    SQL> select to_number(object_name) from user_objects;
    select to_number(object_name) from user_objects
    ERROR at line 1:
    ORA-01722: invalid number

  • *** Doubt regarding Exception Block ***

    Hi,
    I have a doubt regarding exception.
    My SP has 5-6 select queries that is used in" open <cursor name> for select ...."
    also a 'select count(id) into...' statement.
    Do I need to have an Exception block inside? I dont have any user defined execptions at all. So will there be any exceptions that gets generated in a select query?
    Also 'WHEN OTHERS THEN' is it OK to use where I dont know what all excaptions might occur?
    Regds,
    S

    Hi,
    Oracle will raise an error NO_DATA_FOUND , if any of your SELECT statement returns zero records, If you want your process to fail then you can have one common handler (either write to a error_log_table) do all the error_handling.
    If you want to continue for some SQL's to move to the next statement then you can do some thing like this.
    begin
    select statement
    when no_data_found then --not an issue, if no data is returned.
    NULL;
    Refere to this link for more information.
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96624/07_errs.htm#1079
    thanks

  • Query regarding 'EXCEPTION'.Please see.

    I have a question regarding Exception.
    Lets assume that I have a method that throws an 'ArithmeticException',but
    instead of catching this exception,I will catch the 'Exception' object.
    try {
        }catch(Exception e){
        } Now correct me if I am mistaken in my analysis :
    Normally having a 'superclass and subclass heirarchy' gives you polymorphism.
    The subclass will override the method defined in the superclass and gives it
    its own implementation.
    I can then use the 'superclass reference' as a argument to a method which can execute
    the overridden method dynamically.
    Because the subclass has overridden the base class method,polymorphism takes place.
    Am I right in the above analysis?
    Now look at the exception example on top.
    I am passing the Exception reference to the catch clause (which is an indirect parent
    of ArithmeticException).
    My Question is:
    1)Which method has ArithmeticException overridden for polymorphism to take place?
    (ie,I am passing the superclass of the exception,and the JVM knows which exception to
    generate)
    2)Am I right in my analysis?

    Lets assume that I have a method that throws an
    'ArithmeticException',butThen your app is buggy.
    instead of catching this exception,I will catch the
    'Exception' object.Don't do that. Better fix your code.
    Am I right in the above analysis?Yepp, I guess so.
    1)Which method has ArithmeticException overridden for
    polymorphism to take place?Look at its source. Probably none.
    (ie,I am passing the superclass of the exception,and
    the JVM knows which exception to
    generate)That doesn't make sense. You're not passing anything. The code or JVM knows which exception to generate, and you just tell it which one to catch.

  • Query regarding Exception and invocation.

    I have a query regarding Exception.
    In my code, which throws an ArithmeticException:
    <code>
    public class TestArithmeticException{
    public static void main(String[] args)
    int a,b ;
    try {
    b=0;
    a = 50/b;
    }catch(Exception ex) {
    ex.printStackTrace()
    </code>
    The above code is catching exception of type Exception(which is superclass of all RuntimeExceptions)
    and which inturn extends the Throwable class.
    ie. Throwable -
    Exception -
    RuntimeException
    ArithmeticException
    Am I correct in my assumption below:
    a Because ArithmeticException is an indirect subclass of Throwable and has access to its inherited methods,
    it overrides the methods defined in 'Throwable', and then via polymorphism(superclass reference 'ex' in the catch clause)
    invokes the method ex.printStackTrace() ?
    Does it mean that all runtime exception child classes override the methods defined in Throwable, and then via polymorphism execute overridden
    methods?

    Yes.

  • Regarding Downloading of Report[List] output into Excel Sheet

    Hi All,
    Hi i have written one Classical report. I got the output Correctly.
    Now i want to download that data into Excel Sheet in excatly the way it displayed in List[Report] output.
    I had followed the path <b>System->List->Save->LocalFile->Spread Sheet</b> and tried to download the same.
    Though it is downloaded it has not come in exact format.
    Now what i want is to add a button above that report & write a program in that to download that data into Excel Sheet.
    Can anybody tell me how can solve this issue. If i follow above procedure will the data[List Output] be downloaded into exact format into excel.
    If anybody knows other way please sujjest.
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi Prasad,
    I have done a program which downloads the output in the excel sheet in the correct format.
    Just check the program. The code given in bold is what you have to use.
    REPORT zexp MESSAGE-ID f4  LINE-SIZE 195.
        Tables Used    ***********************************
    TABLES : bseg, bkpf, bsak, lfa1, payr .
    Declaring Internal Tables  **************************
    DATA :
    Internal table to hold header data  *************
    BEGIN OF header OCCURS 0,
          ext_date(10) TYPE c,
          delimit(1)   TYPE c,
          ext_time(8)  TYPE c,
    END OF header,
    Internal table to hold detail info  **************
    BEGIN OF i_data OCCURS 0,
        belnr LIKE bsak-belnr,
        gjahr LIKE bsak-gjahr,
        bukrs LIKE bsak-bukrs,
        bldat LIKE bsak-bldat,
        xblnr LIKE bsak-xblnr,
        blart LIKE bsak-blart,
        augdt LIKE bsak-augdt,
        augbl LIKE bsak-augbl,
        wrbtr LIKE bsak-wrbtr,
        shkzg LIKE bsak-shkzg,
        lifnr LIKE bsak-lifnr,
        name1 LIKE lfa1-name1,
        chect LIKE payr-chect,
        status(1) TYPE c,
    END OF i_data,
    Internal table to to collect  *****************
    BEGIN OF i_data1 OCCURS 0,
         belnr LIKE bsak-belnr,
         gjahr LIKE bsak-gjahr,
         bukrs LIKE bsak-bukrs,
         bldat LIKE bsak-bldat,
         xblnr LIKE bsak-xblnr,
         blart LIKE bsak-blart,
         augdt LIKE bsak-augdt,
         augbl LIKE bsak-augbl,
         wrbtr LIKE bsak-wrbtr,
       shkzg LIKE bsak-shkzg,
         lifnr LIKE bsak-lifnr,
         name1 LIKE lfa1-name1,
         sortl LIKE lfa1-sortl,
         chect LIKE payr-chect,
         status(1) TYPE c,
    END OF i_data1,
    String variables for formatting file data *************
        fidoc_year   TYPE string,
        comp_code    TYPE string,
        check_numbr  TYPE string,
        vendor       TYPE string,
        inv_date     TYPE string,
        inv_nbr      TYPE string,
        paid_dat     TYPE string,
        inv_amt      TYPE string,
        status       TYPE string,
        ref_doc      TYPE string,
    ************Internal table to store the file contents **************
    BEGIN OF i_final_file OCCURS 0,
        record(300) TYPE c,
    END OF i_final_file,
    Internal table to store the list of allowed document types ****
      BEGIN OF i_doctype OCCURS 0,
             blart LIKE bsak-blart,
      END OF i_doctype,
    Internal table to hold vendor information ************
      BEGIN OF i_lfa1 OCCURS 0,
         lifnr LIKE lfa1-lifnr,
         name1 LIKE lfa1-name1,
         sortl LIKE lfa1-sortl,
      END OF i_lfa1,
    Internal table to hold check information *************
      BEGIN OF i_payr OCCURS 0,
         chect LIKE payr-chect,
         vblnr LIKE payr-vblnr,
         gjahr LIKE payr-gjahr,
         zbukr LIKE payr-zbukr,
      END OF i_payr.
      Data declarations  **************************
    DATA : ws_stblg     TYPE bkpf-stblg,
           todate       TYPE bsak-augdt,
           fromdate     TYPE bsak-augdt,
           w_day        LIKE dtresr-weekday,
           day          LIKE scal-indicator,
           d            TYPE n,
           e_date       LIKE sy-datum,
           e_time       LIKE sy-uzeit,
           dd(2)        TYPE c,
           mm(2)        TYPE c,
           yy(4)        TYPE c,
           hh(2)        TYPE c,
           min(2)       TYPE c,
           sec(2)       TYPE c.
    DATA : wa_filepath(50)    TYPE c,
           wa_filename(50)    TYPE c,
           wa_c_filename(100) TYPE c,
           arch_path(50)      TYPE c.
    <b>* Data for downloading to list
    DATA : list LIKE TABLE OF abaplist WITH HEADER LINE.
    DATA : BEGIN OF list_asc OCCURS 0,
    msg(300) TYPE c,
    END OF list_asc.
    DATA: BEGIN OF i_invoiceheader OCCURS 0,
    name(30) TYPE c,
    END OF i_invoiceheader.
    RANGES dates FOR bkpf-budat.</b>
      Selection Screen  ************************
    SELECTION-SCREEN SKIP 2.
    SELECT-OPTIONS:
             s_bukrs     FOR  bkpf-bukrs ,
             s_blart     FOR  bkpf-blart ,
             s_augdt     FOR  bsak-augdt. " memory id todat TO fromdat.
    PARAMETERS :submit  AS CHECKBOX DEFAULT ' '  .
    <b>* Download list to file.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'LIST'.
          PERFORM download.
        WHEN 'BACK'.
          EXIT.
      ENDCASE.</b>
    <b>----
          FORM download                                                 *
    FORM download.
    if s_augdt is initial.
    dates-sign = 'I'.
    dates-option = 'BT'.
    dates-low = '20050901'.
    dates-high = '20050920'.
    APPEND dates.
    else.
      dates = s_augdt.
      append dates.
    endif.
    /* Submit the same program .
      SUBMIT zexp WITH s_augdt IN dates
       EXPORTING LIST TO MEMORY
       AND RETURN.
      CALL FUNCTION 'LIST_FROM_MEMORY'
           TABLES
                listobject = list
           EXCEPTIONS
                not_found  = 1.
      CALL FUNCTION 'LIST_TO_ASCI'
    EXPORTING
    LIST_INDEX = -1 "LIST_INDEX SY-LSIND.
      TABLES
      listasci = list_asc
      listobject = list.
      PERFORM download_file.
    ENDFORM.
          FORM download_file                                            *
    FORM download_file.
      DATA fname TYPE rlgrap-filename VALUE 'c:\audit_report.xls'.
      DATA ftype TYPE rlgrap-filetype VALUE 'DAT'.
      DATA numeric_data(10) TYPE c VALUE '0123456789'.
    *Table structure should match with list output.
      DATA : BEGIN OF i_data1 OCCURS 0,
           belnr(12) TYPE c,
           gjahr(6) TYPE c,
           bukrs(8) TYPE c,
           chect(13) TYPE c,
           lifnr(12) TYPE c,
           name1(37) TYPE c,
           bldat(14) TYPE c,
           xblnr(18) TYPE c,
           augdt(14) TYPE c,
           wrbtr(17) TYPE c,
           status(4) TYPE c,
           augbl(18) TYPE c,
           sortl(17) TYPE c,
       END OF i_data1.
    Header record of the excel sheet.
      PERFORM fill_header.
      LOOP AT list_asc.
    Reads lines starting from the first record in the report. All informatory statements in the report are not read.
        IF list_asc+1(10) CO numeric_data.
          i_data1 = list_asc .
          APPEND i_data1.
        ENDIF.
      ENDLOOP.
    Call the download function.
    CALL FUNCTION 'DOWNLOAD'
           EXPORTING
                filename = fname
                filetype = ftype
           TABLES
                data_tab = i_data1
                FIELDNAMES = i_invoiceheader.
    ENDFORM.
          FORM fill_header                                              *
    FORM fill_header.
      i_invoiceheader-name = 'Doc Number'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Fsc Year'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Cmp Code'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Check No'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Vendor No'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Entered by'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Doc Date'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Ref Doc No'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Clearing Date'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Amount'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Status'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Clearing Doc No'.
      APPEND i_invoiceheader.
      i_invoiceheader-name = 'Sort field'.
      APPEND i_invoiceheader.
    ENDFORM.                    " fill_header</b>
       Initialization   *************************
    INITIALIZATION.
    To initialize the date parameter on the selection screen.
    The date by default ranges from previous Monday to Sunday.
      todate = sy-datum.
      CALL FUNCTION 'DATE_COMPUTE_DAY'
           EXPORTING
                date = todate
           IMPORTING
                day  = day.
      d = day.
      if d < 4.
        todate = sy-datum - d - 4 .
      else.
        todate = sy-datum - d + 3 .
      endif.
      fromdate = todate - 6.
      MOVE: 'BT'       TO s_augdt-option,
            fromdate   TO s_augdt-low,
            todate     TO s_augdt-high.
      APPEND s_augdt.
    Start of Selection  **************************
    START-OF-SELECTION.
    Checking the validity of the inputted dates ****************
      IF s_augdt-low > sy-datum OR s_augdt-high > sy-datum.
        MESSAGE i999 WITH 'You cannot input future date'.
        EXIT.
      ENDIF.
      IF NOT s_bukrs IS INITIAL.
    MESSAGE i999 WITH 'Program will run with input parameters in screen!!'.
      ENDIF.
    Initialize the header data ***********************
      e_time = sy-uzeit.
      MOVE e_time+0(2) TO hh.
      MOVE e_time+2(2) TO min.
      MOVE e_time+4(2) TO sec.
      CONCATENATE hh min sec INTO header-ext_time SEPARATED BY ':'.
      e_date = sy-datum.
      MOVE e_date+0(4) TO yy.
      MOVE e_date+4(2) TO mm.
      MOVE e_date+6(2) TO dd.
      CONCATENATE mm dd yy INTO header-ext_date SEPARATED BY '/'.
      header-delimit = '~'.
      APPEND header.
    List allowed document types **********************
      PERFORM fill_doc_types.
    **To select the documents within the range of week or as inputted **
      IF s_augdt IS INITIAL.
        MOVE: 'I' TO s_augdt-sign,
              'BT'       TO s_augdt-option,
              fromdate   TO s_augdt-low,
              todate     TO s_augdt-high.
        APPEND s_augdt.
      ENDIF.
    Selecting the records from the database ****************
      IF s_bukrs IS INITIAL AND s_blart IS INITIAL.
      Select all documents of company code 1000, *********
      4200 and 8000, and allowed document types  *********
        SELECT belnr gjahr augdt augbl bukrs
            blart bldat xblnr lifnr wrbtr shkzg
            FROM bsak INTO CORRESPONDING FIELDS OF TABLE i_data
            FOR ALL ENTRIES IN i_doctype
            WHERE blart EQ i_doctype-blart
            AND augdt IN s_augdt
            AND ( bukrs = '1000' OR bukrs ='4200'  OR
                ( bukrs = '8000' AND blart NE 'ZP' ) ).
       loop at i_data.
    Exclude reversed documents
          select single stblg into ws_stblg
                 from   bkpf
                 where  bukrs = i_data-bukrs
                   and  gjahr = i_data-gjahr
                   and  belnr = i_data-belnr.
          if not ws_stblg is initial.
             delete i_data.
          endif.
       endloop.
      ELSEIF s_blart IS INITIAL.
      Select all documents of allowed document types ******
           and inputted company code           ************
        SELECT belnr gjahr augdt augbl bukrs
           blart bldat xblnr lifnr wrbtr shkzg
           FROM bsak INTO CORRESPONDING FIELDS OF TABLE i_data
           FOR ALL ENTRIES IN i_doctype
           WHERE blart EQ i_doctype-blart
             AND augdt IN s_augdt
             AND bukrs IN s_bukrs .
        LOOP AT i_data.
    Exclude documents of type ZP
    for company code 8000.
          IF i_data-bukrs = '8000' AND i_data-blart = 'ZP'.
            DELETE i_data.
            continue.
          ENDIF.
      Exclude reversed documents
          select single stblg into ws_stblg
                 from   bkpf
                 where  bukrs = i_data-bukrs
                   and  gjahr = i_data-gjahr
                   and  belnr = i_data-belnr.
          if not ws_stblg is initial.
             delete i_data.
             continue.
          endif.
        ENDLOOP.
        READ TABLE i_data INDEX 1.
        IF sy-subrc NE 0.
          MESSAGE i999 WITH 'No records have been selected'.
          EXIT.
        ENDIF.
      ELSE.
      Select the documents matching the company codes  *****
    and document types inputted in the selection screen ****
        SELECT belnr gjahr augdt augbl bukrs bldat xblnr
           blart lifnr  wrbtr shkzg
           FROM bsak INTO CORRESPONDING FIELDS OF TABLE i_data
           WHERE bukrs IN s_bukrs AND blart IN s_blart
             AND augdt IN s_augdt.
        SORT i_data BY blart.
        LOOP AT i_data.
      Filtering the records selected
      based on the document type
          READ TABLE i_doctype WITH KEY blart = i_data-blart.
          IF sy-subrc NE 0.
            DELETE i_data.
            continue.
          ENDIF.
      Exclude documents of type ZP
      for company code 8000.
          IF i_data-bukrs = '8000' AND i_data-blart = 'ZP'.
            DELETE i_data.
            continue.
          ENDIF.
      Exclude reversed documents.
          select single stblg into ws_stblg
                 from   bkpf
                 where  bukrs = i_data-bukrs
                   and  gjahr = i_data-gjahr
                   and  belnr = i_data-belnr.
          if not ws_stblg is initial.
             delete i_data.
             continue.
          endif.
        ENDLOOP.
        READ TABLE i_data INDEX 1.
        IF sy-subrc NE 0.
          MESSAGE i999 WITH 'No records have been selected'.
          EXIT.
        ENDIF.
      ENDIF.
      IF sy-subrc NE 0.
        MESSAGE i999 WITH 'No records have been selected'.
        EXIT.
      ENDIF.
    credit/debit identification ***********************
      LOOP AT i_data.
        IF i_data-shkzg EQ 'H'.
          i_data-wrbtr = i_data-wrbtr * 1.
        ELSEIF i_data-shkzg EQ 'S'.
          i_data-wrbtr = i_data-wrbtr * -1.
        ENDIF.
        MODIFY i_data.
      ENDLOOP.
    for summarizing ******************************
      LOOP AT i_data.
        MOVE-CORRESPONDING  i_data TO i_data1.
        COLLECT i_data1.
      ENDLOOP.
    Vendor informations and Check Informations *****************
      SELECT lifnr name1 sortl
             FROM lfa1
             APPENDING CORRESPONDING FIELDS OF TABLE i_lfa1
             FOR ALL ENTRIES IN i_data1
             WHERE lifnr = i_data1-lifnr.
      SELECT chect vblnr gjahr zbukr FROM payr APPENDING CORRESPONDING
                                FIELDS OF TABLE i_payr FOR ALL ENTRIES
                                IN  i_data1   WHERE vblnr = i_data1-augbl
                                AND gjahr = i_data1-augdt(4)
                                AND zbukr = i_data1-bukrs.
      SORT i_data1 BY augbl gjahr bukrs lifnr.
      SORT i_payr  BY vblnr gjahr zbukr.
      SORT i_lfa1  BY lifnr.
      LOOP AT i_data1.
        READ TABLE i_payr WITH KEY vblnr = i_data1-augbl
                                   gjahr = i_data1-gjahr
                                   zbukr = i_data1-bukrs.
        IF sy-subrc EQ 0.
          i_data1-chect = i_payr-chect.
        ENDIF.
        READ TABLE i_lfa1 WITH KEY lifnr = i_data1-lifnr.
        IF sy-subrc EQ 0.
          i_data1-name1 = i_lfa1-name1.
          i_data1-sortl = i_lfa1-sortl.
        ENDIF.
        i_data1-status = 'X'.
        MODIFY i_data1.
      ENDLOOP.
    **The records are sorted by clearing date, check number and doc type**
      SORT i_data1 BY augdt chect blart.
    **********The header record is outputted on the screen****************
      PERFORM write_header.
    ********Data is moved to internal table in the file format *************
      PERFORM move_data.
    Line items are outputted on the screen *********************
      PERFORM write_output.
    *&                   Form  write_header                             &*
    *&        This outputs the header information to screen             &*
    FORM write_header.
      SKIP.
       SET PF-STATUS 'LIST'.
    Outputting the header information *********************
      WRITE : / 'Extraction Date : ' , header-ext_date.
      WRITE : / 'Extraction Time : ' , header-ext_time.
      FORMAT COLOR 1." INTENSIFIED.
      SKIP.
      ULINE AT 0(190) NO-GAP.
    Outputting line level information **********************
      WRITE:/  sy-vline NO-GAP,
            (10) 'DOC NUMBER',
              sy-vline NO-GAP,
             (4) 'F-YR',
               sy-vline NO-GAP,
             (6) 'C-CODE',
              sy-vline NO-GAP,
             (10) 'CHECK NUM',
              sy-vline NO-GAP,
             (10) 'VENDOR NUM',
              sy-vline NO-GAP,
             (35) 'VENDOR NAME',
               sy-vline NO-GAP,
             (12) 'INVOICE DATE',
              sy-vline NO-GAP,
             (16) 'INVOICE NUMBER',
              sy-vline NO-GAP,
             (12) 'PAID DATE',
               sy-vline NO-GAP,
             (15) 'INVOICE AMOUNT',
              sy-vline NO-GAP,
             (2) 'SC',
              sy-vline NO-GAP,
             (16) 'REFERENCE FI DOC',
               sy-vline NO-GAP,
             (15) 'SORT FIELD',
               sy-vline NO-GAP.
      ULINE AT 0(190) NO-GAP.
    ENDFORM.                    " write_header
    *&                      FORM  MOVE_DATA                             &*
    *&    Formats data in internal table as is required in the file     &*
    FORM move_data.
      LOOP AT i_data1.
    Document number and fiscal year should be separted by '|' *****
        CONCATENATE i_data1-belnr i_data1-gjahr INTO fidoc_year
                    SEPARATED BY '|'.
        MOVE i_data1-bukrs TO comp_code.
        MOVE i_data1-chect TO check_numbr.
    Vendor number and vendor name should be separted by '|' *****
        CONCATENATE i_data1-lifnr i_data1-name1 INTO vendor
          SEPARATED BY '|'.
        SHIFT vendor LEFT DELETING LEADING '0'.
        SHIFT vendor RIGHT DELETING TRAILING space.
    Date fields converted to MM/DD/YYYY format ****************
        MOVE i_data1-bldat+0(4) TO yy.
        MOVE i_data1-bldat+4(2) TO mm.
        MOVE i_data1-bldat+6(2) TO dd.
        CONCATENATE mm dd yy INTO inv_date SEPARATED BY '/'.
        MOVE i_data1-xblnr TO inv_nbr.
        SHIFT inv_nbr RIGHT DELETING TRAILING space.
        MOVE i_data1-augdt+0(4) TO yy.
        MOVE i_data1-augdt+4(2) TO mm.
        MOVE i_data1-augdt+6(2) TO dd.
        CONCATENATE mm dd yy INTO paid_dat SEPARATED BY '/'.
        MOVE i_data1-wrbtr TO inv_amt.
        CONDENSE inv_amt.
       SHIFT inv_amt RIGHT DELETING TRAILING space.
        MOVE i_data1-status TO status.
        MOVE i_data1-augbl TO ref_doc.
        CONCATENATE fidoc_year
                    comp_code
                    check_numbr
                    vendor
                    inv_date
                    inv_nbr
                    paid_dat
                    inv_amt
                    status
                    ref_doc
           INTO i_final_file-record SEPARATED BY '~'.
        APPEND i_final_file.
      ENDLOOP.
    ENDFORM.                    " MOVE_DATA
    *&                      Form  write_output                          &*
    *&                  Outputs all data to screen                      &*
    FORM write_output.
      LOOP AT i_data1.
        FORMAT COLOR 2 INTENSIFIED.
    Outputting line level information *******************
        WRITE :  /  sy-vline NO-GAP,
                 (10) i_data1-belnr,
                   sy-vline NO-GAP,
                (4) i_data1-gjahr,
                   sy-vline NO-GAP,
                 (6) i_data1-bukrs,
                   sy-vline NO-GAP,
                (10) i_data1-chect,
                  sy-vline NO-GAP,
                  (10) i_data1-lifnr,
                 sy-vline NO-GAP,
                 (35) i_data1-name1,
                   sy-vline NO-GAP,
                 (12) i_data1-bldat MM/DD/YYYY,
                   sy-vline NO-GAP,
                 (16)  i_data1-xblnr,
                   sy-vline NO-GAP,
                 (12) i_data1-augdt MM/DD/YYYY,
                   sy-vline NO-GAP,
                 (15) i_data1-wrbtr,
                   sy-vline NO-GAP,
                 (2) i_data1-status,
                   sy-vline NO-GAP,
                 (16) i_data1-augbl,
                   sy-vline NO-GAP,
                 (15) i_data1-sortl,
                 sy-vline NO-GAP.
      ENDLOOP.
      ULINE AT 0(190) NO-GAP.
    ENDFORM.                    " write_output
    In the program, I am downloading only the list.. The description of report outputted in the beginning of the report is not downloaded to excel.
    What has to be taken into consideration is that, the structure of the table i_data1 which contains the data to be downloaded to the table.
    I hope that this will help you.
    Regards,
    Susmitha

  • Regarding SavIng of reports output into appl. or presentation server

    Hello Everyone I am working on ALE IDoc I am getting my output in forms of XML. I want to save my reports output directly to presentation server or application server (i have neither any flat file on desktop nor any file on application server).
    I have following codes which convert my Idoc into XML:
    *& Report ZIDOC_XML_CONVERSION
    report ZIDOC_XML_CONVERSION.
    types: TRESLIN(4096) type X,
    TRESTAB type standard table of TRESLIN.
    data: RESSTR type ref to IF_IXML_OSTREAM.
    data: RESTAB type TRESTAB.
    data: XSLTP type ref to CL_XSLT_PROCESSOR.
    data: G_IXML type ref to IF_IXML,
    G_STREAM_FACTORY type ref to IF_IXML_STREAM_FACTORY,
    DIR type STRING.
    data: IDOC type ref to CL_IDOC_XML1.
    data: PROGNAME type CXSLTDESC.
    data: STR type STRING.
    data: XSTR type XSTRING.
    data: RESSIZE type I.
    data: ID type EDI_STYLE.
    data GLOBAL_DOCNUM type EDI_DOCNUM.
    data GLOBAL_STYLEID type EDI_STYLE.
    data: GLOBAL_OK_CODE(30).
    data: HTML_CONTROL type ref to CL_GUI_HTML_VIEWER.
    data: FCODE_WA(30).
    data: FCODE_TAB type standard table of CHAR30.
    data: MS_DEFAULT_STYLE type EDI_STYLE.
    data: SAP_DEFAULT_STYLE type EDI_STYLE.
    data: SAP_TEXT_STYLE type EDI_STYLE.
    data: SAP_CONTEXT_STYLE type EDI_STYLE.
    data: TEXT_MS_DEFAULT_STYLE(30).
    data: TEXT_SAP_DEFAULT_STYLE(30).
    data: TEXT_SAP_TEXT_STYLE(30).
    data: TEXT_SAP_CONTEXT_STYLE(30).
    data ACTION like SY-UCOMM.
    parameters: IDOCNUM like EDIDC-DOCNUM,
    IDSTYLE type EDI_STYLE,
    ACTIONS type EDI_STFLAG.
    class CL_IXML definition load.
    class CL_ABAP_CHAR_UTILITIES definition load.
    class CL_GUI_FRONTEND_SERVICES definition load.
    class CL_GUI_HTML_VIEWER definition load.
    data: CONTAINER type ref to CL_GUI_CUSTOM_CONTAINER.
    data: REPID like SY-REPID, DYNNR like SY-DYNNR.
    data: WA_OBJ_LOCATION type IDOCSTYLE.
    data: LOCAL_XSLID type EDI_STYLE.
    data: BASE_URL(30).
    data: DATA_TABLE type TAB_RAW512.
    data: LEN type I.
    data: UI_FLAG type I.
    data: MYEVENT_TAB type CNTL_SIMPLE_EVENTS,
    MYEVENT type CNTL_SIMPLE_EVENT.
    data: LOCAL_STYLEID type EDI_STYLE.
    data: PARENT type ref to CL_GUI_CONTAINER.
    data: LINE type I.
    data: WA_SRC type STRUCT_SRC.
    data: LOCAL_EDIDC type EDIDC.
    data: TAB_OBJ_LOCATION type standard table of IDOCSTYLE .
    data: GEN_EX type ref to CX_XSLT_EXCEPTION.
    data: SRCSTR type ref to IF_IXML_ISTREAM.
    *load-of-program.
    try.
    create object XSLTP.
    catch CX_XSLT_EXCEPTION.
    write / TEXT-E01. exit. " XSLT not supported
    endtry.
    G_IXML = CL_IXML=>CREATE( ).
    G_STREAM_FACTORY = G_IXML->CREATE_STREAM_FACTORY( ).
    DIR = ''.
    call method CL_GUI_FRONTEND_SERVICES=>GET_TEMP_DIRECTORY
    changing
    TEMP_DIR = DIR.
    *start-of-selection.
    GLOBAL_DOCNUM = IDOCNUM.
    GLOBAL_STYLEID = IDSTYLE.
    get parameter id 'IDOC_STYLEID' field GLOBAL_STYLEID.
    if GLOBAL_STYLEID is initial.
    GLOBAL_STYLEID = 'IE5'.
    endif.
    clear FCODE_TAB.
    clear GLOBAL_OK_CODE.
    clear ACTION.
    we only support action "deletemark" + "closeproce"
    if ACTIONS ' X X '.
    FCODE_WA = 'DELM'.
    append FCODE_WA to FCODE_TAB.
    FCODE_WA = 'CLPR'.
    append FCODE_WA to FCODE_TAB.
    endif.
    Create Object and create IDOC_XML
    create object IDOC
    exporting
    DOCNUM = IDOCNUM
    exceptions
    ERROR_LOADING_IDOC = 1
    ERROR_BUILDING_XML = 2
    others = 3.
    if SY-SUBRC 0.
    message id SY-MSGID type 'E' number SY-MSGNO
    with SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4
    raising NO_IDOC_XML_LOADED.
    endif.
    Determine transformation program.
    clear TAB_OBJ_LOCATION.
    select * from IDOCSTYLE into table TAB_OBJ_LOCATION
    where ( STYLEID = GLOBAL_STYLEID or STYLEID = '' )
    and ( MESTYP = LOCAL_EDIDC-MESTYP or MESTYP = '')
    and ( DIRECT = LOCAL_EDIDC-DIRECT or DIRECT = '')
    and OBJNR = 0.
    describe table TAB_OBJ_LOCATION lines LINE.
    if LINE > 0.
    loop at TAB_OBJ_LOCATION into WA_OBJ_LOCATION.
    move WA_OBJ_LOCATION-URL to PROGNAME.
    clear WA_OBJ_LOCATION.
    exit.
    endloop.
    else.
    message E110(IDOC_XML1) with LOCAL_XSLID WA_OBJ_LOCATION-URL
    raising ERROR_LOADING_OBJECT.
    endif.
    Transformation
    call method IDOC->GET_XMLDATA_AS_STRING
    importing
    DATA_STRING = STR.
    RESSTR = G_STREAM_FACTORY->CREATE_OSTREAM_ITABLE( TABLE = RESTAB )
    RUN
    try.
    call transformation (PROGNAME)
    source xml STR
    result xml RESSTR.
    catch CX_XSLT_EXCEPTION into GEN_EX.
    message E110(IDOC_XML1) with LOCAL_XSLID WA_OBJ_LOCATION-URL
    raising ERROR_LOADING_OBJECT.
    exit.
    endtry.
    write : / STR.
    I am getting following output:
    <?xml version="1.0"?><RSREQUST><IDOC BEGIN = "1"><EDI_DC40 SEGMENT="1"><TABNAM><![CDATAEDI_DC40]></TABNAM><M
    i want to save this output on my application server or presentation server, my data is not on presentation server or in application server, its on form of output and i want to save my output directly to application server or presentation server.hope that you people will help me out please reply me for this query.
    Thanks & Regards
    Vimarsh B.

    Hello Subhash,
    Try this
    data: sheet TYPE ole2_object.
    data: lv_file(512) default 'C:tst.xls'.
    * Save excel speadsheet to particular filename
      GET PROPERTY OF h_excel 'ActiveSheet' = sheet.
      CALL METHOD OF sheet 'SaveAs'
        EXPORTING
          #1 = lv_file     "filename
          #2 = 1.                      "fileFormat

  • Regarding Exception Messages in MD04

    Hi Gurus,
    Can any body explain what's the main scenario where we get 'Exception message 30' i.e. Plan the process according to Schedule?
    Is there any standard report which will display all the firmed planned/prod.ord based on MRP controller?
    Helpful answers will be rewarded with points,
    Thanks,
    Sekhar

    Hi,
      If your order start date  of the planned order lies in past and the order start date in past indicator  is not allowed in OPPQ the system automatically switches to forward scheduling taking todays date starting date of the planned order. In this case the system issues a exception message 30 Plan process according to schedule.
    System Current Date : 14.07.2007
    Reqmts date             : 01.07.2007
    Planned order start date : 14.07.2007 with exception message 30 .
    If order start date in the past indicator is not allowed during MRP Run the system creates planned order on 14.07.2007 with exception message 30 plan process according to schedule since your reqmt date is 01.07.2007.
    If the order start date in the past indicator is allowed in OPPQ during MRP run
    the system creates planned orders on 01.07.2007since the reqmts date is 01.07.2007.
    Regards,
    nandha

  • Exception ( in Reporting Agent ) background job runs indefinitely

    Hi
    I created an Exception setting under reporting agent (to send out a mail in the SAP Office inbox, on a specific exception) and assigned it under a scheduling package.
    I have assigned a proper query variant to the exception setting also.
    When I exeucte the job, it goes indefinitely.
    I highly appreciate if somebody can help what needs to be done to fix this.
    Thanks
    KC

    Hi,
    If you choose the Precalculate by User option, all the data and HTML pages for the Reporting Agent setting are precalculated for each of the selected users in a single job. This applies in both the cases: Roles or users. When you specify a role after selecting the option 'Precalculate by User', the precalculation will be done for all the users assigned to that role and not the role.
    Roles/Users is just 2 different ways of giving the user restriction. If you specify the roles, the system will precalculate for all the users assigned to the role. If you have few users for whom you want the precalculation to be done, then you can specify the user IDs. If you have many users assigned to a particular role for whom you want the precalculation to be done, then you can specify the role.
    Regards,
    Shilpa

  • Not able to see negative exception in reporting agent setting.

    Hello Gurus,
    I created a query with exceptions on top of a multi-provider. This multi-provider is built on top of a DSO and a remote cube.
    Exceptions is the query
    1. range from -1,00,00,000 to -0.1
    2. range from 1 to 1,00,00,000.
    When I created a reporting agent setting for this query, i was able to see the positive exception but not negative. Please help me regarding this.
    thanks,
    Aarthi.

    Hello Aarthi,
    Have you checked the dataprovider contains the negative values.
    Do a list Cube on the multiprovider and confirm it.
    Have you defined single exception for both or seperate exception. If 2 then check whether exception is active?
    Thanks
    Chandran

  • Regarding exception aggregation based on 2 infobjects

    Hi All,
    I have a report in which I have to use Exception aggregation based on two Infoobjects.
    How we can do it ?
    I have tried using nested aggregation but its not working.
    Example:
    I have three Infoobject :
    0Material
    0Sold_To
    ZSalesRep (Sales representative of Sold to)
    In Report:
    Rows section, I will have only ZSalesRep Infoobject.
    Column Section (i.e. the Keyfigures) I will have one keyfigure which should be calculated based on 0Sold_to and 0Material.
    Any inputs will be helpful.
    Thank you.
    Vamsi.

    Hi,
    I think exception aggregation should work in your scenario, first you get the total with reference to material and then put that key figure in reference to sold to party.
    Just check the below article for more information,
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d08b56a8-daf5-2e10-2397-904d6aeb55c2?QuickLink=index&overridelayout=true]
    Regards,
    Durgesh.

Maybe you are looking for

  • $10 for answer: using Pattern - regular expressions and Scanner

    I'm trying to read input messages using Scanner. The messages are in format: word1 word2 number. the "number" is followed by "C null terminator" i.e. '\u0000' character. I tried this: Scanner input;           Pattern pat = Pattern.compile("(\\w+) (\\

  • The Adobe Forms was created with Disable Fields!

    Hi All, I am new in Adode Interactive Forms ABAP.  I am trying to implement a simple scenario using Web Services published by RFC on ABAP side and simple form with one field  MATNR to bring a Description MARKT, and button to call the Web Services.  I

  • Is VideoCamera recording speed going to effect playback?

    I just got a new FS-100 Canon Videocamera which records on SD and SDHC cards. It has the abilty to record in LP (3 mb/sec); SP (6 mb/sec) and XP (9 mb/sec). So I'm thinking best to record in the highest quality - since I'm taking a major vacation tri

  • I can not open the account settings, I can not open the account settings

    ارجوا من احد الأخوة مساعدتي اواجة مشكلة في حسب الخاص بي لا أستطيع فتحة كيف العمل وايش الحل

  • AMD Radeon HD5770 with official AMD driver

    Hi all, I just installed Windows 7 64 bit Home Premium on my new 6-core Mac Pro with Boot Camp. So far no problems, except that I can't install the official Catalyst drivers from AMD/ATI's homepage - the installation goes through, however it fails wi