Modifying existing reports

Suppose, I have two query in my report like :
first query -
select code,a,b,c,d from abc where some condition
second query -
select code code1,e,f,g from xyz where some condition
Now I change a column in abc table and want to calculate differently.
whenever I change this new column to first query like -
select code,a,b,c, DECODE(score,-1,0,score) as d from abc where some condition
and go to compile the query, I get following error message :
REP-0730: The following bind variable is not defined: d
Oracle Reports is rearranging all of the groups, page breaks and renaming fields from query. Now d is d1, even though d is the name I defined.

Seriously? No one can help me? I don't believe it!
Please, give it a shot and tell me what you think I can do here!

Similar Messages

  • How to modify existing code of SQVI report?

    Hi Expert,
       There is a SQVI report which has already been created but we need to change the one for new requirement.
    is there any way to modify existing code for new requirement?
    Can we edit in abap workbench?
    Thanks & Regards
    Savita

    Savita,
    You can not modify SQVI system generated code. You need to go to SAVI change mode and make modifications. If your requirement is a sort of additional fields or inserting come code into the program , then SQVI is not the choice. You need to use Infoset Queries (SQ03, SQ02, Sq01).
    KJogeswaraRao

  • Adding a new Field to an existing report

    Hi all,
    Can anybody tell me, how to add an extra field in existing
    report, without changing the basic calulation, which i made
    in the same report.
    Regards
    Hema

    okay... that is not a standard program.
    sombody developed it.following is my existing code, here in last column i want to add BOM(mast-stlnr) and Component(stpo-idnrk). remaining things are okay.
    REPORT ZPOTREND NO STANDARD PAGE HEADING
                      LINE-SIZE 195
                      LINE-COUNT 60(3)
                      MESSAGE-ID Z1.
    TABLES: EKBE,
            MARA,
            TCURR.
    SELECT-OPTIONS: S_GJAHR FOR EKBE-GJAHR,
                    S_BUDAT FOR EKBE-BUDAT DEFAULT SY-DATUM NO-EXTENSION,
                    S_MATNR FOR EKBE-MATNR,
                    S_WERKS FOR EKBE-WERKS DEFAULT 'CE',
                    S_MTART FOR MARA-MTART.
    PARAMETERS: X_APP_L TYPE P DECIMALS 2 NO-DISPLAY,
                X_APP_H TYPE P DECIMALS 2 NO-DISPLAY,
                X_DTL   AS CHECKBOX.
    DATA: BEGIN OF I_EKBE OCCURS 0,
          BUDAT LIKE EKBE-BUDAT,
          MENGE LIKE EKBE-MENGE,
          DMBTR LIKE EKBE-DMBTR,
          SHKZG LIKE EKBE-SHKZG,
          EBELN LIKE EKBE-EBELN,
          MATNR LIKE EKBE-MATNR,
          WERKS LIKE EKBE-WERKS,
          MTART LIKE MARA-MTART,
          MEINS LIKE MARA-MEINS,
    END OF I_EKBE.
    DATA: P_EBELN LIKE EKBE-EBELN,
          P_MATNR LIKE EKBE-MATNR,
          P_WERKS LIKE EKBE-WERKS,
          P_MTART LIKE MARA-MTART,
          P_MEINS LIKE MARA-MEINS.
    DATA: BEGIN OF YMTH OCCURS 10,
          YYMM(6),
          MTH(3),
          COL TYPE I,
          MENGE LIKE EKBE-MENGE,
          DMBTR LIKE EKBE-DMBTR,
    END OF YMTH.
    DATA: S_YMTH LIKE YMTH OCCURS 10 WITH HEADER LINE.
    DATA: W_YMTH LIKE YMTH OCCURS 10 WITH HEADER LINE.
    DATA: G_YMTH LIKE YMTH OCCURS 10 WITH HEADER LINE.
    DATA: S_FLAG.                                               "MTART FLAG
    DATA: BEGIN OF CDATE,
          YYMM(6),
          DD(2) VALUE '01',
    END OF CDATE.
    DATA: SDATE LIKE SY-DATUM.
    DATA: CMTH(6),
          PMTH(6),
          LMTH1(6),
          LMTH2(6),
          MTH(2).
    DATA: W_MENGE LIKE EKBE-MENGE,
          W_DMBTR LIKE EKBE-DMBTR,
          W_MENGE1 LIKE EKBE-MENGE,
          W_DMBTR1 LIKE EKBE-DMBTR,
          W_TOTAL TYPE P DECIMALS 2,
          W_COL TYPE I,
          WTEXT(18),
          APP TYPE P DECIMALS 4,
          APP1 TYPE P DECIMALS 4,
          APP2 TYPE P DECIMALS 4.
    PERFORM GET_YMTH.
    SELECT P~BUDAT P~MENGE P~DMBTR P~SHKZG P~EBELN P~MATNR P~WERKS
           Q~MTART Q~MEINS
           INTO TABLE I_EKBE
             FROM EKBE AS P INNER JOIN MARA AS Q
           ON P~MATNR = Q~MATNR
           WHERE P~GJAHR IN S_GJAHR
             AND P~BUDAT IN S_BUDAT
             AND P~MATNR IN S_MATNR
             AND P~WERKS IN S_WERKS
             AND P~BEWTP = 'E'
             AND Q~MTART IN S_MTART.
    FORMAT INTENSIFIED OFF.
    IF X_DTL <> 'X'.
       LOOP AT I_EKBE.
          I_EKBE-EBELN = SPACE.
          MODIFY I_EKBE.
       ENDLOOP.
    ENDIF.
    SORT I_EKBE BY WERKS MTART MATNR EBELN BUDAT.
    LOOP AT I_EKBE.
      CMTH = I_EKBE-BUDAT(6).
      IF P_WERKS IS INITIAL.
        P_WERKS = I_EKBE-WERKS.
        P_MTART = I_EKBE-MTART.
        P_MATNR = I_EKBE-MATNR.
        P_EBELN = I_EKBE-EBELN.
        P_MEINS = I_EKBE-MEINS.
        PMTH = CMTH.
      ENDIF.
      IF P_WERKS NE I_EKBE-WERKS.
        PERFORM CHG_MTH.
        PERFORM CHG_MATNR.
        PERFORM CHG_MTART.
        PERFORM CHG_WERKS.
      ENDIF.
      IF P_MTART NE I_EKBE-MTART.
        PERFORM CHG_MTH.
        PERFORM CHG_MATNR.
        PERFORM CHG_MTART.
      ENDIF.
      IF P_MATNR NE I_EKBE-MATNR.
        PERFORM CHG_MTH.
        PERFORM CHG_MATNR.
      ENDIF.
      IF P_EBELN NE I_EKBE-EBELN.
        PERFORM CHG_MTH.
        PERFORM CHG_MATNR.
      ENDIF.
      IF PMTH NE CMTH.
        PERFORM CHG_MTH.
      ENDIF.
      IF I_EKBE-SHKZG = 'H'.
        I_EKBE-MENGE = I_EKBE-MENGE * -1.
        I_EKBE-DMBTR = I_EKBE-DMBTR * -1.
      ENDIF.
      IF I_EKBE-DMBTR NE 0.
        W_MENGE = W_MENGE + I_EKBE-MENGE.
        W_DMBTR = W_DMBTR + I_EKBE-DMBTR.
      ENDIF.
    ENDLOOP.
    PERFORM CHG_MTH.
    PERFORM CHG_MATNR.
    PERFORM CHG_MTART.
    PERFORM CHG_WERKS.
    TOP-OF-PAGE.
      WRITE:/ SY-DATUM,SY-UZEIT,
              77 'A M T E K   E N G I N E E R I N G   L T D',
              180 'Page', (4) SY-PAGNO.
      WRITE: / SY-REPID,
              77 '     Purchase Price Trending Report      ',
              180 SY-UNAME.
      write: /78 'From Date', S_BUDAT-LOW, 'To Date', S_BUDAT-HIGH.
      SKIP.
      WRITE: / 'SBU :', I_EKBE-WERKS,
               '     Material Type :', I_EKBE-MTART.
      SKIP.
      READ TABLE YMTH WITH KEY YYMM = '999901'.
      IF SY-SUBRC EQ 0.
        WRITE AT YMTH-COL ' APP Change'.
      ENDIF.
      WRITE: /01 'Part No',
              19 'PO No',
              31 'Curr'.
      LOOP AT YMTH.
        YMTH-COL = YMTH-COL + 3.
        IF YMTH-YYMM NE '999901'.
          WRITE AT YMTH-COL YMTH-YYMM(4).
          WRITE YMTH-MTH.
        ELSE.
          WRITE AT YMTH-COL '       %'.
        ENDIF.
      ENDLOOP.
      ULINE.
    *&      Form  get_ymth
          text
    -->  p1        text
    <--  p2        text
    FORM GET_YMTH.
      CMTH = S_BUDAT-HIGH(6).
      PMTH = S_BUDAT-LOW(6).
      IF S_BUDAT-HIGH IS INITIAL.
        CMTH = PMTH.
      ELSEIF S_BUDAT-LOW IS INITIAL.
        PMTH = CMTH.
      ENDIF.
      LMTH1 = CMTH.
      CDATE-YYMM = CMTH.
      SDATE = CDATE.
      SDATE = SDATE - 1.
      LMTH2 = SDATE(6).
      WHILE PMTH <= CMTH.
        MTH = CMTH+4(2).
        CDATE-YYMM = CMTH.
        YMTH-YYMM = CMTH.
        PERFORM GET_MTH.
        APPEND YMTH.
        SDATE = CDATE.
        SDATE = SDATE - 1.
        CMTH = sdate(6).
      ENDWHILE.
      YMTH-YYMM = '999901'.
      YMTH-MTH = ' % '.
      APPEND YMTH.
      SORT YMTH BY YYMM.
      W_COL = 21.
      LOOP AT YMTH.
        W_COL = W_COL + 15.
        YMTH-COL = W_COL.
        MODIFY YMTH.
      ENDLOOP.
      APPEND LINES OF YMTH TO S_YMTH.
      APPEND LINES OF YMTH TO W_YMTH.
      APPEND LINES OF YMTH TO G_YMTH.
      REFRESH YMTH.
      APPEND LINES OF S_YMTH TO YMTH.
    ENDFORM.                                                    " get_ymth
    *&      Form  get_mth
          text
    -->  p1        text
    <--  p2        text
    FORM GET_MTH.
      CASE MTH.
        WHEN '01'.
          YMTH-MTH = 'Jan'.
        WHEN '02'.
          YMTH-MTH = 'Feb'.
        WHEN '03'.
          YMTH-MTH = 'Mar'.
        WHEN '04'.
          YMTH-MTH = 'Apr'.
        WHEN '05'.
          YMTH-MTH = 'May'.
        WHEN '06'.
          YMTH-MTH = 'Jun'.
        WHEN '07'.
          YMTH-MTH = 'Jul'.
        WHEN '08'.
          YMTH-MTH = 'Aug'.
        WHEN '09'.
          YMTH-MTH = 'Sep'.
        WHEN '10'.
          YMTH-MTH = 'Oct'.
        WHEN '11'.
          YMTH-MTH = 'Nov'.
        WHEN '12'.
          YMTH-MTH = 'Dec'.
      ENDCASE.
    ENDFORM.                                                    " get_mth
    *&      Form  chg_matnr
          text
    -->  p1        text
    <--  p2        text
    FORM CHG_MATNR.
      CLEAR W_TOTAL.
      LOOP AT YMTH.
        W_TOTAL = W_TOTAL + YMTH-DMBTR.
      ENDLOOP.
      IF W_TOTAL = 0.
        EXIT.
      ENDIF.
      CLEAR: W_DMBTR, W_MENGE, W_DMBTR1, W_MENGE1, APP, APP1, APP2.
      READ TABLE YMTH WITH KEY YYMM = LMTH2.
      IF SY-SUBRC EQ 0 AND
         YMTH-MENGE NE 0.
        W_DMBTR = YMTH-DMBTR.
        W_MENGE = YMTH-MENGE.
        READ TABLE YMTH WITH KEY YYMM = LMTH1.
        IF SY-SUBRC EQ 0.
          APP = W_DMBTR / W_MENGE.
          APP1 = YMTH-DMBTR / YMTH-MENGE.
          APP2 = ( APP1 - APP ) / APP * 100.
        ENDIF.
      ENDIF.
      IF X_APP_L IS INITIAL AND
         X_APP_H IS INITIAL.
      ELSE.
        IF APP2 < X_APP_L OR
           APP2 > X_APP_H.
          EXIT.
          CLEAR: W_DMBTR, W_MENGE, APP.
          P_MATNR = I_EKBE-MATNR.
          P_EBELN = I_EKBE-EBELN.
          PERFORM CLR_YMTH.
        ENDIF.
      ENDIF.
      SKIP.
    WRITE:/ P_MATNR, ' Amount  ',
             'USD'.
    LOOP AT YMTH.
       WRITE AT YMTH-COL(12) YMTH-DMBTR NO-ZERO.
    ENDLOOP.
    WRITE:/(18) ' ', ' Quantity',
            P_MEINS.
    LOOP AT YMTH.
       WRITE AT YMTH-COL(12) YMTH-MENGE NO-ZERO.
    ENDLOOP.
      WRITE:/ P_MATNR(18), P_EBELN, 'USD' UNDER 'Curr'.
      LOOP AT YMTH.
        IF YMTH-YYMM NE '999901'.
          CLEAR APP.
          IF Ymth-menge ne 0.
            APP = YMTH-DMBTR / YMTH-MENGE.
          ENDIF.
          WRITE AT YMTH-COL(12) APP.
          READ TABLE S_YMTH WITH KEY YYMM = YMTH-YYMM.
          IF SY-SUBRC EQ 0.
            S_YMTH-MENGE = S_YMTH-MENGE + YMTH-MENGE.
            S_YMTH-DMBTR = S_YMTH-DMBTR + YMTH-DMBTR.
            MODIFY S_YMTH INDEX SY-TABIX.
          ENDIF.
          READ TABLE W_YMTH WITH KEY YYMM = YMTH-YYMM.
          IF SY-SUBRC EQ 0.
            W_YMTH-MENGE = W_YMTH-MENGE + YMTH-MENGE.
            W_YMTH-DMBTR = W_YMTH-DMBTR + YMTH-DMBTR.
            MODIFY W_YMTH INDEX SY-TABIX.
          ENDIF.
        ELSE.
          WRITE AT YMTH-COL(12) APP2.
        ENDIF.
      ENDLOOP.
      CLEAR: W_DMBTR, W_MENGE, APP.
      P_MATNR = I_EKBE-MATNR.
      P_EBELN = I_EKBE-EBELN.
      PERFORM CLR_YMTH.
    ENDFORM.                                                    " chg_matnr
    *&      Form  chg_mtart
          text
    -->  p1        text
    <--  p2        text
    FORM CHG_MTART.
      SKIP.
      ULINE.
      CONCATENATE P_MTART 'Total' INTO WTEXT SEPARATED BY SPACE.
      PERFORM PRN_TOT TABLES S_YMTH.
      P_MTART = I_EKBE-MTART.
      LOOP AT S_YMTH.
        CLEAR: S_YMTH-DMBTR, S_YMTH-MENGE.
        MODIFY S_YMTH.
      ENDLOOP.
    ENDFORM.                                                    " chg_mtart
    *&      Form  chg_werks
          text
    -->  p1        text
    <--  p2        text
    FORM CHG_WERKS.
      CONCATENATE P_WERKS 'Total' INTO WTEXT SEPARATED BY SPACE.
      PERFORM PRN_TOT TABLES W_YMTH.
      CLEAR: W_DMBTR, W_MENGE, APP.
      P_WERKS = I_EKBE-WERKS.
      LOOP AT W_YMTH.
        CLEAR: W_YMTH-DMBTR, W_YMTH-MENGE.
        MODIFY W_YMTH.
      ENDLOOP.
      NEW-PAGE.
    ENDFORM.                                                    " chg_werks
    *&      Form  chg_mth
          text
    -->  p1        text
    <--  p2        text
    FORM CHG_MTH.
      READ TABLE YMTH WITH KEY YYMM = PMTH.
      IF SY-SUBRC EQ 0.
        YMTH-MENGE = W_MENGE.
        YMTH-DMBTR = W_DMBTR.
        MODIFY YMTH INDEX SY-TABIX.
      ENDIF.
      CLEAR: W_MENGE, W_DMBTR.
      PMTH = CMTH.
    ENDFORM.                                                    " chg_mth
    *&      Form  clr_ymth
          text
    -->  p1        text
    <--  p2        text
    FORM CLR_YMTH.
      LOOP AT YMTH.
        CLEAR: YMTH-DMBTR, YMTH-MENGE.
        MODIFY YMTH.
      ENDLOOP.
    ENDFORM.                                                    " clr_ymth
    *&      Form  prn_tot
          text
    -->  p1        text
    <--  p2        text
    FORM PRN_TOT TABLES I_YMTH STRUCTURE YMTH.
      CLEAR: W_DMBTR, W_MENGE, W_DMBTR1, W_MENGE1, APP, APP1, APP2.
      READ TABLE I_YMTH WITH KEY YYMM = LMTH2.
      IF SY-SUBRC EQ 0 AND
         I_YMTH-MENGE NE 0.
        W_DMBTR = I_YMTH-DMBTR.
        W_MENGE = I_YMTH-MENGE.
        READ TABLE I_YMTH WITH KEY YYMM = LMTH1.
        IF SY-SUBRC EQ 0.
          APP  = W_DMBTR / W_MENGE.
          APP1 = I_YMTH-DMBTR / I_YMTH-MENGE.
          APP2 = ( APP1 - APP ) / APP * 100.
        ENDIF.
      ENDIF.
    WRITE:/ WTEXT, ' Amount  ',
             'USD'.
      LOOP AT I_YMTH.
        SELECT SINGLE * FROM TCURR
          WHERE FCURR = 'SGD'
          AND   TCURR = 'USD'.
          I_YMTH-DMBTR = I_YMTH-DMBTR * TCURR-UKURS.
       WRITE AT I_YMTH-COL(12) I_YMTH-DMBTR NO-ZERO.
      ENDLOOP.
    WRITE:/(18) ' ', ' Quantity'.
    LOOP AT I_YMTH.
       WRITE AT I_YMTH-COL(12) I_YMTH-MENGE NO-ZERO.
    ENDLOOP.
      WRITE:/(18) ' ', ' APP     ', 'USD'.
      LOOP AT I_YMTH.
        IF I_YMTH-YYMM NE '999901'.
          CLEAR APP.
          IF I_YMTH-MENGE NE 0.
            APP = I_YMTH-DMBTR / I_YMTH-MENGE.
          ENDIF.
          WRITE AT I_YMTH-COL(12) APP.
        ELSE.
          WRITE AT I_YMTH-COL(12) APP2.
        ENDIF.
      ENDLOOP.
      ULINE.
      CLEAR: W_DMBTR, W_MENGE, APP.
    ENDFORM.                    " prn_tot

  • Replace Report Model with another Report Model for existing reports

    Hi All,
    I have a report model on which few reports depends and for some reasons I want create a similar report model and repoint all existing reports to new report model. When I am trying to this I get below error. Please help.
    An error has occurred during report processing. (rsProcessingAborted)
    Semantic query compilation failed: e EmptySemanticQuery The SemanticQuery does not contain any Groupings or MeasureGroups. SemanticQuery must contain at least one of these elements. This typically occurs because the user does not have permission to the items
    referenced by the query or the items referenced by the query have been deleted in the underlying model. (SemanticQuery ''). (rsSemanticQueryEngineError) 
    Thanks,
    Jithender

    The reports that do work do not use an alias for the table/view name and the ones that do NOT work do use an alias.<br/>
    <br/>
    I went into the "Database Expert..." screen and modified the alias to the actual name of the view.  This resets all the fields as well so they are no longer using the alias either.  The data now gets returned properly.<br/>
    <br/>
    I still need to go into each report and modify them but at least I do not have to recreated all the reports.

  • Problem in modifying existing records in dbtab

    Hi Experts,
    I am doing a report where I have created two dbtab's , one for data getting saved and
    other for fetching data and modifying exsiting records..
    For eg - let ZABC be the table where I need to insert or update records and ZXYZ is the table where
    I need to fetch and modify existing records.
    Now my probelm is :
    In case of inserting new records (multiple records ) into my dbtab ( ZABC ) its working ,
    but modifying existing records in another dbtab (ZXYZ ) its not wroking !! plz advice !!
    If my select querry for modifying exsiting records is:
    SELECT *  FROM ZXYZ  INTO TABLE ITAB WHERE MATNR EQ S_MATNR.
    *****then its inserting a newline along with the existing records.
    but when my querry is,
    SELECT single *  FROM ZXYZ  WHERE MATNR EQ S_MATNR.
    then its modifying the existing records, but only the first record.
    Loop at itab.
    if sy-tabix  = 1.
    zabc-matnr = matnr.
    zabc-idnrk  = idnrk.
    zabc-budat = s_budat.
    zabc-menge = menge1.
    ZXYZ-menge = ZABC-Menge + MENGE1.
    ZXYZ-BALC  = ZXYZ-Menge   -   MENGE1.
    ELSEIF sy-tabix  = 2.
    zabc-matnr = matnr.
    zabc-idnrk  = idnrk.
    zabc-budat = s_budat.
    zabc-menge = menge2.
    ZXYZ-menge = ZABC-Menge + MENGE2.
    ZXYZ-BALC  = ZXYZ-Menge  -  MENGE2.
    ELSEIF sy-tabix  = 3.
    zabc-matnr = matnr.
    zabc-idnrk  = idnrk.
    zabc-budat = s_budat.
    zabc-menge = menge3.
    ZXYZ-menge = ZABC-Menge + MENGE3.
    ZXYZ-BALC  = ZXYZ-Menge   -  MENGE3.
    ENDIF.
    INSERT ZABC.
    IF SY-SUBRC EQ 0.
    MODIFY ZXYZ.
            IF SY-SUBRC = 0.
              MESSAGE : I002 WITH 'RECORD CREATED'.
                ENDIF.
    ENDIF.
    Please advice
    Karthik
    Edited by: Karthik R on Aug 24, 2009 9:42 PM

    Hi,
    This is because in the second case you are not selecting records into an internal table.
    As a result only the first record which satisfies the where condition is fetched.
    Check if the program goes into the loop when you write second select query.
    KR Jaideep,

  • How Do I add new fields to Repeating Frames in existing Report

    Hi,
    How do I add new fields to Repeating Frames in existing Report. The Report has 2 GRPFR, 1 HDR and 2 Repeating Frames. I would like to add a new field(column) to inner most repeating frame. I added the new golumn to QUERY and GROUPs in Data Model. After adding the new column to inner most Repeating Frame in Layout Model, the Layout model is losing all other frame and it is showing only the modified one.
    How do I add new column to repeating frames without disturbeing other frames.
    Any hellp will be appreciated!!!!!!!!!!!.
    I am using Oracle Reports 6i.
    Thanks,
    Ravi.

    you must work in your layour editor
    expand your repeating frames do it more big
    for add your new items or field. after you inserted or add, can you put more little your repeating.
    too can you to do one copy of one field in your repeating frame and assign it in his source your new item in your data model.
    normally i begin with the principal frame and go one by one internally.

  • Modifying a report

    How to modify an existing report?

    Turning confine mode off is very dangerous, but if you keep confine mode on you should be able to use flex mode to move things around, yet keep the integrity of the report structure.
    Other tips:
    1) When adding fields, review changes in the object navigator to make sure that changes have gone into the correct frame.
    2) Use colour coding (i.e., set the fill colours in the frames that you're working on so that it's clear in the layout where the frame boundaries are).
    3) Test often.
    Hope this helps,
    Danny

  • How to apply template, existing reports

    Post Author: satheesh
    CA Forum: WebIntelligence Reporting
    i have 100 reports in webintelligence documents,
    then i have to add company log for that all 100 existing repots.
    how this possible in one time .
    cleary my query is i have to apply template for existed webintelligence report at time for 100 repotrs
    this is possible in BO xi r2 webi....

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    satheesh:
    Your original posting was:
    i have 100 reports in webintelligence documents, then i have to add company log for that all 100 existing repots.  how this possible in one time .  cleary my query is i have to apply template for existed webintelligence report at time for 100 repotrs   this is possible in BO xi r2 webi....
    If you have 100 reports and each report needs a company logo on it, then you will have to modify each report, create a blank cell, populate that blank cell with an http://<yourserver>/images/my_co_logo.gif verbiage, mark that cell as "read as HTML", save the report, and then go to the next report and do it again (99 more times).  I think what you are asking is if it is possible to make BOE assemble an "automatic header" (one that you've re-optioned") so that as each report runs it gets "branded".  The answer, unfortunately, is that you can't make it work that way, each report must be individually endowed.  Good Luck!

  • Error after migration to Crystal Reports 12 for existing reports

    Hi,
    We had reports written using Crystal Reports Version 8.5. These reports were not modified for a long time. Recently, we had migrated to Crystal Reports 12 (2008). Some of the these existing reports were modified using the Crystal Reports 2008 designer. After installing our application (we ship Merge Module of Crystal Reports 12 i.e. 2008 which gets installed in GAC)
    1)  If we create new reports in 2008 designer and try to view these reports, it works as expected without any issue(s).
    2 ) However, if these modified reports are tried to be viewed, there is an error which states "Database Logon Failed".
    Details:
    CrystalDecisions.CrystalReports.Engine.LogOnException     {"Database logon failed."}
    ErrorID     CrystalDecisions.CrystalReports.Engine.EngineExceptionErrorID.LogOnFailed
    InnerException     {"Database logon failed."}
    Message      "Database logon failed."
    Source     "CrystalDecisions.ReportAppServer.DataSetConversion"
    Stack Trace        at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToDisk(ExportFormatType formatType, String fileName)
    TargetSite     {Boolean ThrowDotNetException(System.Exception)}
    Also, it is worth to note that if we try to view these modified reports from any environment which has both Crystal Reports 10 and Crystal Reports 12 in GAC, then these reports work as expected.
    P.S.  We have mechanism in application's code to reset the database connections when any report is being viewed using ReportDocument class' method.
    From the above scenario I believe issue is specific to migration to Crystal Reports 12 (2008).  Any help /workaround to solve this problem will be highly appreciated.

    Make sure you have the latest SP for CR 2008  installed;
    https://smpdl.sap-ag.de/~sapidp/012002523100009038092009E/cr2008win_sp2.exe
    Ensure you are deploying SP 2 runtime;
    MSM
    https://smpdl.sap-ag.de/~sapidp/012002523100009159092009E/cr2008sp2_mm.zip
    MSI
    https://smpdl.sap-ag.de/~sapidp/012002523100009159002009E/cr2008sp2_redistinstall.zip
    If that does not help;
    1) Do these reports work in the designer?
    2) What database are you using and what is the connection type?
    3) Compare the dlls loading on the systems where this app works (environment which has both Crystal Reports 10 and Crystal Reports 12 in GAC) and a system that is giving you the error. Use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility.
    4) Open the reports in the designer and look at the properties in the Database menu -> Set Datasource Location. Check to see if there are any differences between the two reports.
    5) If there is a subreport in the report that causes the issue, remove it and see if the report works without the subreport.
    Ludek

  • Process/stpes to modify the report painter reports...

    Hi,
        I want to modify the report painter report. Could anybody tell me how can we do this. Where can we do this and it would be helpful if any body advise with the steps.
    The requirement is to add one line in the current report painter report and remove one line from it.
    Regards....

    Hi,
    Modifying a report painter report is very similar to creating the report itself. Below mentioned are the steps in general, please use them as per your requirement.
    From the relevant application, choose Tools->Report Painter->Report->Create.
    The Report Painter: Create Report screen appears.
    You can also create Report Painter reports from any Report Writer screen. To do so, choose Report Writer->Report Painter-> Create report.
    Enter the name of the library the report is to use, and a name and description for the report. The report name can be a maximum of eight characters long. If you want to create your report using an existing Report Painter report as a basis, enter the name of the report that you want to copy under Copy from. Both reports must use the same library.
    Choose Create.The next screen displays an empty report containing four rows and four columns (this is the basic structure for a report). You define your report on this screen.
    Enter or change the description for the report by double-clicking the report description field.
    A dialog box appears in which you can enter a short, medium, and long text for the report description.
    Define the rows of your report.Rows contain a combination of characteristic values or formulas. Note the lead column at the first position of the rows. The Report Painter uses the lead column to access the rows. You can replace the description Lead column with a different term.
    Define the columns of your report. Columns contain a combination of a basic key figure and optional restricting characteristic values. You can also use predefined key figures to present key figures and characteristics that make business sense. For example, a number of predefined key figures are delivered for the libraries in Overhead Cost Controlling that can be copied directly into the reports, where they can be modified as required.
    Define general data selection criteria. The general data selection criteria restrict data selection for the report.
    Choose Save and then Execute to create the report. Assign the report to a report group.
    You have to display the report before you execute it, so that you can later change the report layout directly from the report list. Once you have defined a report, you can display and print out a table of contents with Extras->Overview.
    The overview contains the characteristics and characteristic values used in the individual sections, column blocks, and general data selection criteria. It also provides general information such as the user who last changed the report, the report name, and the standard layout assigned to the report, as well as details on the report formats.
    If you double-click an individual characteristic, you can see where this characteristic is used in the report definition.
    Hope this helps you. Let me know if you need an specific information.
    Rgds
    Manish

  • How to find already existing report

    Hi all,
    i am working with Support project.
    I have requirement to find already existing requirement.
    I went RRMX and i checked in WORKBOOKS AND QUEREIS AND VIEWS.
    but i did not get that report .
    is there any way to find already existing reports in system.
    Thanks in advance,
    Regards,
    Bhaskar

    If you know the name of the query/view and workbook in Bex you could also search with user ID, Date the report is modified and so on.
    Also check these tables RSRREPDIR RSZCOMPDIR
    thanks.
    Wond

  • How to use ZMATERIAL info object attribute in existing report

    Hi all,
             Using generic extraction we have created data source related that data source we have created navigational attribute for
    info object ZMATERIAL. Data available for ZMATERIAL info objects. Now ZMATERIAL info object related navigational attribute
    want to use in existing report.
    For eg. Already sales report developed in that 0MATERIAL only using now i required to use ZMATERIAL also in that report
    My requirment is ZMATERIAL  related navigational attribute want to use in exisiting report, how to do that? kindly guide me.
    Thanks

    Goto CMOD
    Enter the projname
    select component
    click on display
    --seelct the Fm EXIT_SAPLRSAP_002
    -- double click on include program to insert your code double click on ZXRSAU02
    Enter your code below
    CASE i_datasource.
    Sample code ...
    WHEN '0MATERIAL_ATTR'.
        LOOP AT i_t_data INTO lt_mara.
          l_tabix = sy-tabix.
          SELECT SINGLE ZCOMP ZSUPP ZPUBL ZIMPR ZFORM ZSUBJ ZSDET ZAUTH ZREDT ZPUDT ZADAT
                  INTO (lt_mara-zcomp, lt_mara-zsupp, lt_mara-zpubl,
                        lt_mara-zimpr, lt_mara-zsubj, lt_mara-zsdet,
                        lt_mara-zauth, lt_mara-zpudt, lt_mara-zADAT)
                 FROM mara
                 WHERE matnr = lt_mara-matnr.
    Endloop.
    Regards
    KP

  • Adding new column in an existing report which was build using Union

    While working in OBIEE 11g I encounter an issue.
    My existing report was build using UNION at Criteria Tab in Analysis. Now I have a requirement to add a new column into the same report. For each criteria I have added the new column but when I go back to the "Result Columns". I see a new field added but it is not allowing me to open or edit column properties for that new column & at the same time it is not allowing me to navigate to other tabs like Results, Promts, and Advanced.
    I don’t want to build this report from scratch. Is there any workaround to get it resolved?

    Hi,
    Just check it once the new added column data types are mismatched or not?
    and the new added column should be navigated into excluded section, so u should edit the report and dragged into the table column section.
    Thanks..

  • Open a subreport from an existing report  without hitting the database

    Hello Experts,
                           I want to open a webi subreport with the data  from an exisiting webi report directly not from database.currently i am using hyperlink on some measure values and in theses hyperlink, i am using  opendocument query and passing the values in the filters created at subreport side,but  every time i clicked on hyperlink its opening the subreport but taking data from data base instead of existing report.
    i also tried in this way by passing a context from parent report  :
    I am having country column in my report which is having many countries, i want that when i click on england it should open the subreport with the data only for england from parent report not from database.
    ="<a href=\"http://server:port/OpenDocument/opendoc/openDocument.jsp?sType=wid&sDocName="URLEncode("aaa")"&sReportName="URLEncode("aaa")"&sReportPart=table name at subreprt""&sPartContext=/country[england]""&sWindow=New""&sRefresh=N""\" title=\"click\" target=\"_new\" nav=\"web\">"[country]"</a>"
    Thanks in Advance:)

    Hi, Harry.
    Have you tried editing your subreport query properties? uncheck Refreshable and Editable checkboxes.

  • How can i modify my report to print in duplex mode ?

    Hello, I have a report to print orders (i use vb6 and CR XI-R2 at runtime with CrystalActiveXReportViewer object) but now i must print the payment conditions on the back of each order. What is the way to modify my report to do that.
    (Is there somewhere examples of duplex printing report?).
    Thanks in advance.

    Hi Ludek,
    I have imported the reg key but i have the same problem: you must install SP2 or SP4 before.
    Here is my reg key :
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{94FB0978-D094-40C7-91D7-834D39220D4A}]
    "AuthorizedCDFPrefix"=""
    "Comments"=""
    "Contact"=""
    "DisplayVersion"="11.5.8.82627"
    "HelpLink"=hex(2):68,00,74,00,74,00,70,00,3a,00,2f,00,2f,00,73,00,75,00,70,00,\
      70,00,6f,00,72,00,74,00,2e,00,62,00,75,00,73,00,69,00,6e,00,65,00,73,00,73,\
      00,6f,00,62,00,6a,00,65,00,63,00,74,00,73,00,2e,00,63,00,6f,00,6d,00,2f,00,\
      00,00
    "HelpTelephone"=""
    "InstallDate"="20080416"
    "InstallLocation"=""
    "InstallSource"="C:
    CRXIR2SP2Full
    win32
    "ModifyPath"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,78,\
      00,65,00,20,00,2f,00,49,00,7b,00,39,00,34,00,46,00,42,00,30,00,39,00,37,00,\
      38,00,2d,00,44,00,30,00,39,00,34,00,2d,00,34,00,30,00,43,00,37,00,2d,00,39,\
      00,31,00,44,00,37,00,2d,00,38,00,33,00,34,00,44,00,33,00,39,00,32,00,32,00,\
      30,00,44,00,34,00,41,00,7d,00,00,00
    "Publisher"="Business Objects"
    "Readme"=hex(2):68,00,74,00,74,00,70,00,3a,00,2f,00,2f,00,73,00,75,00,70,00,70,\
      00,6f,00,72,00,74,00,2e,00,62,00,75,00,73,00,69,00,6e,00,65,00,73,00,73,00,\
      6f,00,62,00,6a,00,65,00,63,00,74,00,73,00,2e,00,63,00,6f,00,6d,00,2f,00,00,\
      00
    "Size"=""
    "EstimatedSize"=dword:001bcc81
    "UninstallString"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,\
      78,00,65,00,20,00,2f,00,49,00,7b,00,39,00,34,00,46,00,42,00,30,00,39,00,37,\
      00,38,00,2d,00,44,00,30,00,39,00,34,00,2d,00,34,00,30,00,43,00,37,00,2d,00,\
      39,00,31,00,44,00,37,00,2d,00,38,00,33,00,34,00,44,00,33,00,39,00,32,00,32,\
      00,30,00,44,00,34,00,41,00,7d,00,00,00
    "URLInfoAbout"=""
    "URLUpdateInfo"=""
    "VersionMajor"=dword:0000000b
    "VersionMinor"=dword:00000005
    "WindowsInstaller"=dword:00000001
    "Version"=dword:0b050008
    "Language"=dword:00000000
    "DisplayName"="Crystal Reports XI Release 2"
    Hope this helps you.
    Just a precision : the message 'can't load data' not occures on all PC with runtime, At work i have installed runtime on 3 PC's (XP) and it works, problem occures when i 'm connecting to my customer's server (windows 2003 server SP2) via tse.

Maybe you are looking for

  • Who has the Unlimited Data Plan and has Been Speed Capped when You went over 5Gig?

    Just checking to see how many others have been speed capped to 200Kb on the unlimited data plan when they went over 5Gig in a billing cycle? (you can get a one time reprieve if you call them at 1-888-483-7200) Did they ask you to change your plan to

  • Error in automatic PO

    Hello , I want to create automatic PO.  i followed the following steps: a) ticked automatic PO boxes in material purchasing view and vendor creation purchase view b) maintain source list c) maintain info record d) Create Purchase request e) then ME56

  • Help in merging the output rtf/documents reports

    Hi, I am working with XML pub tool for a user requirement that 2 output reports(rtf documents) were genated using XML processor from 2 rtf templates, XML data files etc. No I need to merge the 2 output rtf/doc reports . Is there any function in XML p

  • Cisco 871W - VLAN-Interface = 'Up/Down'

    Hi, I have configured our company's Cisco 871W per suggested configs found on the cisco web site, however, VLAN1, VLAN10 and VLAN20 interfaces won't come up (e.g. up/down) and it's preventing communication. Guess I'm expecting this to behave like a m

  • Reset samba passwords - Mission impossible?

    hi! Yesterday night I tried to set a password for a new user (of a Windows XP) so that I may connect my MacBook to a PC. Reason: I never managed to connect the both of them. I was always receiving a kind of "wromng user/password message (do not remem