Error when executing report due to 0FISCPER

Hi All,
I am using a customer exit in my query to calculate the year to date numbers for current Fiscal Period and prior fiscal year (via offset -12). When I execute the query it works fine but when I save it to my portal favorite and re-execute from the favorite, it throws an error: 
Termination message sent
ERROR BRAIN (648): Variable value  must be numeric
ERROR BRAIN (599): For characteristic 0FISCPER, enter value in a permitted format
  MSGV1: 0FISCPER
  MSGV2: 200/001/
ERROR BRAIN (599): For characteristic 0FISCPER, enter value in a permitted format
  MSGV1: 0FISCPER
  MSGV2: 200/005/
ERROR BRAIN (648): Variable value  must be numeric
ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
  MSGV1: SAPMSSY1
  MSGV3: UNCAUGHT_EXCEPTION
Here is my customer exit code. Do you see any issues with the exit that is causing the above error?
DATA: lv_cur_period(3) TYPE n,
          lv_cur_year(4) TYPE n.
   WHEN 'ZCC_FPER_YTD_INTERVAL'.
     IF i_step = '1'.
Determine current fiscal period
       CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
         EXPORTING
           i_date               = SY-DATUM
           i_periv              = 'MR'  
        IMPORTING
          E_BUPER              = lv_cur_period
          E_GJAHR              = lv_cur_year
        EXCEPTIONS
          INPUT_FALSE          = 1
          T009_NOTFOUND        = 2
          T009B_NOTFOUND       = 3
          OTHERS               = 4
       IF sy-subrc <> 0.
       ENDIF.
Enter interval into variable
       CONCATENATE lv_cur_year '001' INTO l_s_range-low.
       CONCATENATE lv_cur_year lv_cur_period INTO l_s_range-high.
       l_s_range-sign = 'I'.
       l_s_range-opt = 'BT'.
       APPEND l_s_range TO e_t_range.
     ENDIF.
Thanks a bunch.

Hi Venkat and Gaurav,
Thanks for your replies. The format of Fiscal Period in the first variable screen is correct with the Concatenate statements that I originally had in the customer exit. It displays an interval of 001/2010 - 005/2010 which is what I want.
CONCATENATE lv_cur_year '001' INTO l_s_range-low.
CONCATENATE lv_cur_year lv_cur_period INTO l_s_range-high.
I created another i_step = 2 variable with 'ready for input' unchecked and added it to the original i_step = 1 variable within the RKF. As I have limited knowledge of coding customer exists, I added the following code for the 2nd variable that I found on SDN as seen below. After applying this code and executing the "saved report on portal favorite", the original error message went away and I get to the variable screen but the format that displays now is 201/001/ - 201/005/.  Why does it work the first time it is executed and why does it mess up the format when executed from portal favorite, really confused.
   WHEN 'ZCC_FPER_YTD_INTERVAL_2'.
     IF i_step = '2'.
       READ TABLE i_t_var_range WITH KEY vnam = 'ZCC_FPER_YTD_INTERVAL' ASSIGNING
                      <input>.
Determine current fiscal period
       CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
         EXPORTING
           i_date               = SY-DATUM
  I_MONMIT             = 00
           i_periv              = 'MR'  
        IMPORTING
          E_BUPER              = lv_cur_period
          E_GJAHR              = lv_cur_year
        EXCEPTIONS
          INPUT_FALSE          = 1
          T009_NOTFOUND        = 2
          T009B_NOTFOUND       = 3
          OTHERS               = 4
       IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
Enter interval into variable
       CONCATENATE lv_cur_year lv_cur_period INTO lv_cur_fiscper.
       l_s_range-low = lv_cur_fiscper.
       l_s_range-high = <input>-low.
       l_s_range-sign = 'I'.
       l_s_range-opt = 'BT'.
       APPEND l_s_range TO e_t_range.
     ENDIF.

Similar Messages

  • Error when executing report with large data selection in Infoview

    Hello,
    This is regarding Error we are facing in BO system.
    We have installed:
    Business Object Enterprise XI 3.1
    Crystal report 2008
    When we are trying to execute report in BO INFOVIEW on production  system, we are facing following error (After 10 mins of execution).
    ========================================================================================
    Windows Internet Explorer
    Stop running this script?
    As script on this page is causing Internet Explorere to tun slowly.
    If it continues to run, your computer might become
    unresponsive.
    ========================================================================================
    Please note: We are getting data via Crytal report. Only, execution in infoview is giving error.
    If we are executing same report with less data(E.g a days data) then we are getting output in Infoview.
    However, when we execute report with more data (6 months data) then we are getting attached error after 10 min of execution time.
    Helpfull reply will be awarded.
    Regards.
    Edited by: Nirav Shah on Dec 14, 2010 6:19 AM

    If it is indeed a server timeout issue, the following document might be usefull: http://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/606e9338-bf3e-2b10-b7ab-ce76a7e34432
    It's about Troubleshooting Time-outs in BusinessObjects Enterprise XI, but  a lot is still applicable.
    Hope this helps...
    Martijn van Foeken
    Focuzz BI Services
    http://www.focuzz.nl
    http://nl.linkedin.com/in/martijnvanfoeken
    http://twitter.com/mfoeken

  • Error when executing report in background

    Hi experts,
    I developed a new report. In that report I am getting data from KRMI transaction. For getting data from KRMI I have all the program and transaction and function modules under KRMI transaction to Z program, transcation and function modules and by using Call Transaction on ZKRMI and using Import and export parameters I am fetching data from KRMI transaction.
    By doing this I dont have any problem while executing report online and when I am executing this report in back ground I am not getting in the above mentioned case.
    Can anyone advise me in solving the issue

    As already said....the import and export wont work in background...however what you can do is import and export in shared buffer
    Please refer this below thread for how to proceed on this...
    Re: Problem with export/import in back ground
    Check the below link for information on shared buffers
    http://help.sap.com/saphelp_webas630/helpdata/en/c4/3a6dbb505211d189550000e829fbbd/frameset.htm

  • Error when executing report

    Hello,
    When trying to run a report on the web, at the execution, when the report should show data, the page appears blank.
    When debugging the following error appears:
    An exception with the type CX_SY_PROGRAM_NOT_FOUND occurred, but was neither handled locally, nor declared in a RAISING clause
    Program SAPLRSDRC does not exist
    Please can you help me with this?
    Thank you,
    Ramona

    Hi,
    Please reactivate the 'Personalization' and 'History' in SPRO:
    -> Business Information Warehouse
    -> Reporting-relevant Settings
      -> General Reporting Settings
       -> Activate Personalization in BEX
    or call tcode RS_PERS_ACTIVATE.
    Rgds
    Manoj Kumar

  • Webi report throwing error when executed

    HI Experts,
    While executing a Webi Report we are gettign following error when executing with more than one characteristics -
    A Database error occured. The database eror text is : The MDX Query select { [Measures].[4225B1TBMEMOYKZGDKLVINMAW] } ON COLUMNS FROM [ZMEPSC01/ZMEPSC01_QRY_0001]
    failed to execute with the error Unknown error.(WIS 10901).
    We tried changing the Universe -> Parameter -> Control -> Limit size of result set to -> unchecked it.
    But still the error remains. Can u put some light over it.
    Thanks.

    Hello ,
    Just Check with the BI the people they might change the the column name or some thing else in the bex Query that s way It is showing error.
    Refresh the universe and generate the report then check it.
    Thanks
    Santhosh V

  • Error when executing function in MSS launchpad report ???

    In MSS lanchpad report, we have the following problem:
    Error in Manager Sef-Service
    When calling the report, the following error occurred:
    System: HRP
    Error when executing function
    Basically in MSS report, I select employees in the first iView which calls another ABAP query in back-end to display back-end t-code inside iView of portal through ITS service. What could be the reason for it? please advice.
    Thanks,
    Anthony

    Please try converting the standadrd-delivered scenario RPT0, then check
    out the things.
    Also problem may be that your function code names contain
    the character '&'. This causes a problem when the selected function
    code is passed to the ITS-WebGUI as a URL parameter. Please use only
    standard characters (A..Z and _) when you define a function code.
    Then it should work.
    Please go through the following link also
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/3a/
    3198408d953154e10000000a1550b0/frameset.htm
    Please test in backend using Se38 > PWPC_RPT_START_REPORT_TEST
    The Reporting Iview in the portal has the Report category type, by
    the report category type is set to "RPT0". Therefore, when the
    application is launched, the reporting category type is also sent as URL
    parameter to the backend system. As of ECC 6.0 only the reporting
    category type "RPT0" is supported. ensure this is set for your custom reports if you are using own scenarion
    then set in the Iview property of reports as well
    ie example
    1)Change the Iview property "Scenario" of the Reporting iview from
    "RPT0" to your own "ZRPT", than this set of reports will work. however,
    the standard reports will not work.
    pwpc_convert_mdt_to_lpa >>
    The following list of reports have been converted.

  • Unknown error when executing MDX when refreshing Crystal Report with BEx

    Hello Experts,
    I have created a Crystal Report (Crystal 2008 SP1) with BEx Query (7.10) and have been able to refresh successfully when the SAP_ALL authorization is included in my user role. I don't want my end users to have SAP_ALL so I created a role and assigned the authorizations recommended in the SAP Integration Kit for BusinessObjects 3.1 Install Guide.
    When I run the report as one of the users assigned to my new role I get the following error in the trace file.
    ERROR: .\crdb_bwmdx_execution.cpp [200]: l_bapiGetStreamInfo failed with return code RFC_RC = 0 Exception:  BAPI Error: BAPI Error #:0
    Unknown error when executing MDX
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    2188     6556     Caught DbError #1 with Message 'BAPI Error #:0
    Unknown error when executing MDX'
    I tried all the Fix Packs (ie 1.1., 1.2 and 1.3) for XI 3.1 Integration Kit to try resolving the error but it didn't work.
    The same query works fine in BEx Web when running as one of the users in the new role I created for Crystal Report users.
    Are there any other Authorizations that I need to include in the role?
    Cheers.
    Paul.

    We have been able to identify what causes the MDX driver to error and I will explain what we are trying to implement with the hierarchies.
    Firstly, we are creating reports of the HR cube Mutliprovider using the SAP MDX Driver which works well when there are no authorization analysis set on the cube. But with the authorization analysis set for on 0ORGUNIT for BEx Explorer Crystal returns the MDX error.
    Each of the Business Unit managers are assigned to an Organization Unit that will be used to restrict the employees that will be reported. To restrict the Managers to only see their Org Unit we have set the 0ORGUNIT object to use authorization ananlysis and a custom authorization variable to return only data for the Org Unit they belong too.
    In Crystal this works well when a manager has an Org Unit that is a head department of other Org Units. This scenario will give Crystal the NodeID and Parent NodeID to create the hierarchies in the report. But when a manager does not have any other Org Units beneath there own department then Crystal doesn't have a Parent NodeID to create the Hierarchies with the NodeID. In the RFC trace I can see an error when Crystal is trying to get the Parent NodeID but the user is not authorized to that Org Unit then it throws the error.
    We have got a temporary workaround which is to create the managers a dummy Org Unit below their own department. The workaround will do for now but shouldn't the MDX driver be able to recognise that it has returned the last level in the Org Unit Hierarchy and not return an error?
    The customer is looking for a product fix as they believe this should be handled by the driver. Is this a bug or a limitation of the product?
    Paul.

  • Error when executing query without passing variable selection

    Hi Gurus
    I am getting an error while executing a query with out passing values for variables
    When executing the query by passing the filter values report returns the data
    When executing the query with out passing variable selections the error message is
    Unknown error in SQL interface
    Error reading the data of Info Provider ZCRM_O08
    Error while reading data; navigation possible
    System error in program SSAPLRS_EXCEPTION and form
    RS_EXCEPTION_TO_MESSAGE
    No Data Available
    can any one please help me in resolving this
    Thank you

    Hi Srini
    Thanks for your quick response
    When i am executing the query with selection it is returning the data
    giving error when executing with out passing the selection
    is there any other cause for this problem
    like any particular info object causes this sort of problem
    Thank you

  • Error when executing statement for table/stored proc

    Hi All,
          I am getting this error when executing IDOC to JDBC (Stored Procedure) Scenario.
         In my stored procedure I have three insert statements to insert rows in to 3 tables.
        This stored procedure is working fine for two insert statements i.e, 
             For this I have created data type for stored procedure with 10 elements and executed the scenario and was successfully running.
        when I added 3rd insert statement to stored procedure ie., when i added 5 more elements to the datatype (totally 15 elements) it starts giving the bellow error in Message Monitoring.
    <i><b>Exception caught by adapter framework: Error processing request in sax parser: Error when executing statement for table/stored proc. 'COGRP_TMP_PROC_1' (structure 'Statements'): java.sql.SQLException: General error</b></i>
    <i><b>Delivery of the message to the application using connection JDBC_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'COGRP_TMP_PROC_1' (structure 'Statements'): java.sql.SQLException: General error</b></i>
       Note:- I have run the stored procedure  with three insert statements in Sql Server, and also by calling an external program also, and was working fine.
    <i><b> Note : Is there any structure needs to be follow when working with IDOC to Stored procedure.</b></i>
    I am struck up with the error, can any body resolve this issue.
    Thanks in Advance,
    Murthy

    Hi narasimha,
                      This seems to be any error due to incorrect query formation.In your receiver jdbc channel set the parameter logSQLstatement = true.you can find this parameter in the advanced mode. Using this parameter you will be able to see the sql query which is generated at runtime in the audit log in RWB.
    Regards,
    Pragati

  • Report Designer - Error when Loading Report

    Hi,
    We have created a report in Report Designer (7.0) and saved it. When we execute it runs fine. After closing the report and trying to reopen it, the report does not open. It gives an error "Error when Loading Report". Our BI frontend patch is 14.
    Did anyone encounter this issue and is there a solution to this.
    Thanks
    Hemant

    Hello,
    Please go to SE38 -> RS_REPORT_MAINTAIN,
    Type your report name, and DT als "Report Type".
    Goto edit mode, copy&paste this XML into txt file and send it to me ([email protected]). I will check whats going on with this report. Loading should be always possible.
    Regards, Karol Kalisz, BI Development

  • Error when executing CPACache mode = full

    Hi,
    I had error, when executing this CPACache mode = full and delta, I am using this link below:
    http://demokl:50100/CPACache/refresh?mode=full.
    Full :
    Error message =
    <?xml version="1.0" encoding="UTF-8" ?>
    - <CacheRefreshError>
      <EngineType>AE</EngineType>
      <EngineName>af.px6.demokl</EngineName>
      <RefreshMode>F</RefreshMode>
    - <GlobalError>
      <Message>Couldn't parse Configuration Data cache update XML string from Directory.</Message>
      <Trace>org.xml.sax.SAXException: JavaErrors Tag found in cache update XML. at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryDataSAXHandler.startElement(DirectoryDataSAXHandler.java:148) at com.sap.engine.lib.xml.parser.handlers.SAXDocHandler.startElementEnd(SAXDocHandler.java:146) at com.sap.engine.lib.xml.parser.XMLParser.scanElement(XMLParser.java:1814) at com.sap.engine.lib.xml.parser.XMLParser.scanContent(XMLParser.java:2440) at
    Delta :
    <?xml version="1.0" encoding="UTF-8" ?>
    - <CacheRefreshError>
      <EngineType>AE</EngineType>
      <EngineName>af.px6.demokl</EngineName>
      <RefreshMode>C</RefreshMode>
    - <GlobalError>
      <Message>CPA Cache not updated with directory data.</Message>
      <Trace>com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Couldn't open Directory URL (http://demokl:50100/dir/hmi_cache_refresh_service/ext?method=CacheRefresh&mode=C&consumer=af.px6.demokl), due to: HTTP 503: Service Unavailable at com.sap.aii.af.service.cpa.impl.cache.directory.DirectoryAccess.getDataFromDirectory(DirectoryAccess.java:382) at
    </Trace>
      </GlobalError>
    - <GlobalError>
      <Message>Confirmation handling failed.</Message>
      <Trace>com.sap.aii.af.service.cpa.impl.exception.CPADirectoryCacheException: Couldn't send confirmation, due to: Couldn't access Confirmation URL, due to: HTTP 503: Service Unavailable at
    Thank you and Regards
    Fernand

    Hi,
    I already using user PIDIRUSER to execute CPACache full mode, but still unsuccessfull.
    Hi Srinivas,
    Which parameter that you mention, i couldn't find in the SXMB_ADM Integration Configuration ?
    Thank you and Regards
    Fernand

  • Error when sending report output to printer from Forms 10g

    Hi,
    I have a simple report that I am running from a form using run_report_object built-in. I can successfully send the report output to a file but when I send the report output to a printer my report is
    terminated with report status of 'TERMINATED_WITH_ERROR'. I am using the default forms service and reports server that comes with the forms builder. How do I specify the reports server to user my default network printer ?Following is the code that runs my report.
    Thanks,
    Anna
    PROCEDURE SEND_TO_PRINTER IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    rep_server system_variables.reports_server%type;
    alldone          exception;
    BEGIN
         select reports_server
         into rep_server
         from system_variables;
         if rep_server is null then
              msg_alert('Error getting the reports server name', 'I', FALSE);                
              raise alldone;
         end if;
         :ctrl.run_report_errors := 'N';                    
         repid := find_report_object('REP_OBJ1');
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,rep_server);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
         SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
         IF :ctrl.rg_print = 'P' THEN
              --Send the output to printer.
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,PRINTER);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'dflt');
         ELSIF :ctrl.rg_print = 'R' THEN
              --Rich Text Format
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'rtf');
              SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,:ctrl.filename);
         END IF;
         v_rep := RUN_REPORT_OBJECT(repid);
         rep_status := REPORT_OBJECT_STATUS(v_rep);
         WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
         LOOP
              rep_status := report_object_status(v_rep);
         END LOOP;
         IF rep_status = 'FINISHED' THEN
              null;
         ELSE
              :ctrl.run_report_errors := 'Y';
              msg_alert('Error when running report.' || rep_status, 'I', FALSE);           
         END IF;
    EXCEPTION
         when no_data_found then
              msg_alert('Error getting the reports server name', 'I', FALSE);      
         when alldone then
              null;     
    END;

    If you use Windows the user that runs the reports server is usually LocalSystem. Check this in the Windows Services panel.
    LocalSystem has no printer access. To be able to print, you have to use a real domain user that has access to the printer. So, change the Log on properties in the Services panel.

  • Error while executing report in query designer

    Dear Folks,
    I am geting following error while executing report in query designer.
    Error:500 E
    an exception raised because of 0analysis pattern.
    Hence,i am unable to execute any report.
    Need help.
    Thanks

    Hi Kitu G,
    I think this is something to do with the bex web 0ANALYSIS* objects not being installed in your BW system.
    I would try and do the following:
    - Goto RSA1 > BI Content > BEx Web Template (BTMP)
    - Then double-click on Select Object.
    - Highlight all objects that start with 0ANALYSIS_PATTERN
    - Click on Transfer Selections, and then Install.
    If you can't do the above in prd, do it in DEV, then transport the objects to prd.
    After all this, try re-running your queries.
    Any questions/clarification just let me know
    Cheers.
    Darwin

  • Error when executing a .irpt page

    Hi,
    I am getting the below error when executing a .irpt from the workbench. I am on MII 12.2.2 Build (235).
    404   Not Found
    SAP NetWeaver Application Server 7.20 / AS Java 7.30
    Error: S:usrsapALXJ10j2eeclusterappssap.comxappsxmiiearservlet_jspXMII
    oot/XMII/CM/<Project>/<File.irpt>
    Troubleshooting Guide https://sdn.sap.com/irj/sdn/wiki?path=/display/jstsg/home
    Details: No details available.
    Please share your thoughts on this.
    Regards,
    Chanti.

    Hi Chanti,
    This sounds obvious, but check to make sure your irpt page has the extension .irpt in the workbench.  Depending on how you saved it, it might have been dropped.
    Also make sure the page is published by either saving it to web:// (not db://) or by right clicking and selecting Publish.
    Regards,
    Mike

  • Runtime error when executing ME2B/ME3B if condition recs 160

    Dear all,
    I have created a vendor rebate agreement and entered condition records for a vendor/material combination.
    Since for this vendor there are 170 materials for which he provides rebate I have created 170 condition records.
    When I am trying to change or display the rebate agreement by executing transaction codes ME2B and ME3B respectively the following run time error occurs (Runtime error when executing transaction codes ME2B/ME3B for condition recrds >160):
    Runtime Errors: DBIF_RSQL_INVALID_RSQL
    Except. CX_SY_OPEN_SQL_DB
    The error is in function module SELECT_TEXT at line 120 "select * from stxh client specified into table stxh_buffer".
    When I debug or test/execute the function module SELECT_TEXT, I find that there are no relevant entries in table STXH for the vendor rebate agreements.
    Please note that if the condition records of the rebate agreement are 160 and less then there is no problem.
    I would appreciate if I could have your expert oppinion on what is causing this runtime error and if it is possible on how to resolve it.
    Thanks in advance.
    Regards,
    Mimis
    Edited by: Mimis1973 on Jan 26, 2011 11:18 AM
    Edited by: Mimis1973 on Jan 26, 2011 11:20 AM
    Edited by: Mimis1973 on Jan 26, 2011 11:23 AM

    There's something similar in OSS note 1002788. Is it relevant to your system?

Maybe you are looking for