Reports executes with status FINISHED_WITH_ERROR.how to see error log

hi
I have executin following codes
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,ASYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_FILENAME,'/u02/oradata/data/REPORTS/PE4.rdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,FILE);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESNAME,'/u02/oradata/data/REPORTS/aa.pdf');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_ora_apps');
v_rep := RUN_REPORT_OBJECT(repid);
WHILE REPORT_OBJECT_STATUS(v_rep) in ('RUNNING','OPENING_REPORT','ENQUEUED')
LOOP
     message('Status is '||REPORT_OBJECT_STATUS(v_rep));
     i :=i+1;
     if i>100 then
          exit;
     end if;
END LOOP;
message('Status is '||REPORT_OBJECT_STATUS(v_rep));
The messages I got are
ENQUEUED
ENQUEUED
ENQUEUED
ENQUEUED
RUNNING
RUNNING
RUNNING
FINISHED_WITH_ERROR
Could you please tell me how can I see the error log?
Regards

hi
please try the following code i hope it will help u or modify it with ur requirements.
DECLARE
repid REPORT_OBJECT;
v_rep VARCHAR2(100);
rep_status VARCHAR2(20);
BEGIN
repid := FIND_REPORT_OBJECT('REPORT6');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,cache);
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER, 'paramform=no p_serial=' || to_char(:ins1.serial) );
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
  WEB.SHOW_DOCUMENT('http://Sarah:8889/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1) ||
  '?server=repserver' );
else
  message ( 'error while running reports-object '  || error_text );
  message ( ' ' );
  clear_message;
end if;
end; sarah

Similar Messages

  • StartJAVA was executed with status ERROR

    Hi People.
    I am installing SAP Netweaver 7.0 SR3 AS JAVA, in Linux RH5 with Oracle 10 and JAVA 1.4.2 IBM.
    The problem in the installation is when I tried to install the CI. The installation fail when tried to start de JAVA VM.
    The LOG DEV_DISPATCHER is:
    [Thr 1123465536] Wed Nov 11 12:08:32 2009
    [Thr 1123465536] JLaunchISetState: change state from [Starting (2)] to [Stopped (6)]
    </verbosegc>
    [Thr 1111980352] JLaunchIExitJava: exit hook is called (rc = 0)
    [Thr 1111980352] SigISetIgnoreAction : SIG_IGN for signal 17
    [Thr 1111980352] JLaunchCloseProgram: good bye (exitcode = 0)
    DEV_SERVER0:
    JHVM_BuildArgumentList: main method arguments of node [server0]
    [Thr 1081338176] Wed Nov 11 12:08:30 2009
    [Thr 1081338176] JLaunchRequestFunc: receive command:17, argument:0 from pid:30225
    [Thr 1081338176] JLaunchIShutdownInvoke: set shutdown interval (stop:1257952110/end:1257952230/TO:120)
    [Thr 1081338176] JLaunchProcessCommand: Invoke VM Shutdown
    [Thr 1081338176] JHVM_FrameworkShutdownDirect: invoke direct shutdown
    </verbosegc>
    [Thr 1108367680] JLaunchIExitJava: exit hook is called (rc = 999)
    [Thr 1108367680] **********************************************************************
    ERROR => The Java VM terminated with a non-zero exit code.
    Please see SAP Note 943602 , section 'J2EE Engine exit codes'
    for additional information and trouble shooting.
    [Thr 1108367680] SigISetIgnoreAction : SIG_IGN for signal 17
    [Thr 1108367680] JLaunchCloseProgram: good bye (exitcode = 999)
    And the log of Installation is:
    TRACE      2009-11-11 12:08:12.823 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 4037
    ERROR      2009-11-11 12:08:13.873 [sixxcstepexecute.cpp:951]
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR .
    Somebody Help me?
    Thanks...

    Hi.
    The sapinst.log is:
    INFO 2009-11-11 17:29:49.025
    State of instance EPP/JC01 changed from Java: (dispatcher: STARTING, server0: STARTING) to Java: (dispatcher: STARTING, server0: STARTING).
    ERROR 2009-11-11 17:29:49.027
    CJS-30153  Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.
    ERROR 2009-11-11 17:29:49.755
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR ( Last error reported by the step :Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.).
    Tha sapinst_dev.log is:
    TRACE      2009-11-11 17:29:49.027
    Function setMessageIdOfExceptionMessage: nw.progress.startupProcessFailed
    ERROR      2009-11-11 17:29:49.027
               CJSlibModule::writeError_impl()
    CJS-30153  Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.
    TRACE      2009-11-11 17:29:49.28 [iaxxejsbas.hpp:483]
               EJS_Base::dispatchFunctionCall()
    JS Callback has thrown unknown exception. Rethrowing.
    TRACE      2009-11-11 17:29:49.142 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25736
    TRACE      2009-11-11 17:29:49.265 [syuxctask.cpp:1382]
               CSyTaskImpl::start(bool)
    A child process has been started. Pid = 25737
    ERROR      2009-11-11 17:29:49.755 [sixxcstepexecute.cpp:951]
    FCO-00011  The step startJava with step key |NW_Java_CI|ind|ind|ind|ind|0|0|NW_CI_Instance|ind|ind|ind|ind|12|0|NW_CI_Instance_StartJava|ind|ind|ind|ind|5|0|startJava was executed with status ERROR ( Last error reported by the step :Java process dispatcher of instance EPP/JC01 reached state UNKNOWN after having state STARTING. Giving up.).
    TRACE      2009-11-11 17:29:49.767 [iaxxgenimp.cpp:752]
                CGuiEngineImp::showMessageBox
    TRACE      2009-11-11 17:29:49.767 [iaxxgenimp.cpp:1255]
               CGuiEngineImp::acceptAnswerForBlockingRequest
    Waiting for an answer from GUI
    The others logs are attached in the first Post.
    The phase of the error is in StartUP Java VM, before of the installation of Java Components.
    Thanks a lot.
    Edited by: Esteban Gutierrez E. on Nov 12, 2009 1:38 PM

  • Adopmnctl.sh script is executing with status 2

    while starting oracle EBS 12R the script adopmnctl.sh is executing with status 2

    Hi,
    What is the OS?
    Was this working before? Any changes have been done recently?
    Please post the complete error message from the startup script log file.
    Also, please run AutoConfig and see if it completes successfully or not.
    Thanks,
    Hussein

  • System Refresh SAPINST.exe error ExeProcs was executed with status Error

    Hi Everyone,
                         As part of system refresh, our QA ECC is restored with Production Data backup. In this process, sapinst.exe is executed to perform homogeneous system copy steps. This process is being terminated with error at the step *"Create SAP stored procedures"*.
    The error being displayed is as follows:
    An error occurred while processing option SAP Toools for MS SQL Server > Database Copy Completion( Last error reported by the step: Errors when executing sql command: [Microsoft][ODBC SQL Server Driver][SQL Server]The specified @job_name ('SAP CCMS_qpe_QPE_Update_Tabstats') does not exist.
    SOLUTION: If this message is displayed as a warning, you can ignore it. If this is an error, contact SAP support.
    ). You can now:
    Choose Retry to repeat the current step.
    Choose View Log to get more information about the error.
    Stop the option and continue with it later.
    Log files are written to C:\Program Files/sapinst_instdir/MSS/CPY.
    sapinst.log file contains following information:
    INFO 2010-11-06 17:40:30
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.4.xml'.
    INFO 2010-11-06 17:40:30
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/inifile.5.xml'.
    INFO 2010-11-06 17:40:31
    Execute step
    Component  W2K_ServicePack_Check|ind|ind|ind|ind
    Preprocess  of component |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_First_Steps|ind|ind|ind|ind|0|0|W2K_ServicePack_Check|ind|ind|ind|ind|2|0.
    INFO 2010-11-06 17:40:41
    Copied file 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/keydb.xml' to 'C:/Program Files/sapinst_instdir/ERP/LM/COPY/MSS/SYSTEM/DISTRIBUTED/AS-ABAP/DB/keydb.3.xml'.
    INFO 2010-11-06 17:40:41
    Execute step ExeProcs of component |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssProcs|ind|ind|ind|ind|4|0.
    ERROR 2010-11-06 17:40:58
    FCO-00011  The step ExeProcs with step key |NW_ABAP_DB|ind|ind|ind|ind|0|0|NW_CreateDBandLoad|ind|ind|ind|ind|8|0|NW_CreateDB|ind|ind|ind|ind|0|0|NW_MSS_DB|ind|ind|ind|ind|2|0|MssSysCopy|ind|ind|ind|ind|10|0|MssProcs|ind|ind|ind|ind|4|0|ExeProcs was executed with status ERROR .
    Our Environment details:
    SAP Version : ECC6
    OS                 : Microsoft windows server 2003
    DB                 : Microsoft SQL Server         2005.
    Can some please guide me in debugging this issue. Your help is highly appreciated.
    Thanks a lot in advance.
    Kind Regards,
    Bharani.

    Hi Satya,
                 Thank you for the reply. QA in our landsacpe was in use since 2008. Serveral times system refresh is carried out on our QA with production data but never came accross this issue.
                 Usually if the SAPINST.exe run is successfull, temperory licence will be installed and we will be allowed to login into the sytem with our user names normally and carry out post installation steps.
                 As the SAPISNT.exe is being terminated, temperory license is not being installed and we got to work around by including parameter to allow default sap* userid and password to login and install license and carry on with the post installation steps. To be frank this issue is not really a show stopper, but there seems to be an issue that is to be resolved.
    Thank you,
    Kind Regards,
    Bharani.

  • ImportJavaDump was executed with status ERROR .

    Hi
    I am installing SAP Netweaver 2004s on AIX with MAXDB.
    To generate solution manager key , I started installation of Solution Manager 4.0 on AIX.
    I am getting error log as below:
    ERROR 2007-03-03 13:37:04
    FCO-00011 The step importJavaDump with step key |NW_Onehost|ind|ind|ind|ind|0|0|NW_Onehost_System|ind|ind|ind|ind|1|0|NW_CreateDBandLoad|ind|ind|ind|ind|10|0|NW_Jload|ind|ind|ind|ind|9|0|importJavaDump was executed with status ERROR .
    Please help.

    Hi
    This is more a JVM problem.
    You should download the appropriate JDK (from Sun site) required for your hardware.. and retry after updating the $PATH variable...
    Check the SAP note
    Note 941595 - Download J2SE 1.4.2 for the x64 platform
    Hope this helps
    Cheers
    Senthil

  • Error in Report: Next to amount field i could see 'ERROR' word in report

    Guys,
    Problem in Report: Next to amount field i could see 'ERROR' word in report
    Eg: Invoice Amount  : "1200ERROR"  it should be like "$1200".
    Pls help where do i need to check.
    Thanks

    Ajeet wrote :
    Hi,
    It can heppens if all the records getting aggregated in the report are of different currencies and not belonging to one currency.
    Do a currency conversion for the key figures and make them all with same currency.
    See if the records in the cube for the selection which you have given in the report gives you records with different currency and if it is true then as above said.
    Thanks
    AJeet
    Are you sure ???
    The mixed unit values will be displayed as * (by default unless its changed).
    ERR comes if unit is not maintained.

  • How to See Action Logs

    Hi Guys,
                    Can anybody tell me how to see action logs for sales documents?Also i want to know how to change sales doc type...( i know we can mention in vov8...alt.sales doc types...how to get that(configure) list(in my system list is empty).What i am supposed to do from va01 side?
    Points for sure
    Thanks
    RamaChandra

    Change logs
    Go to the order in VA03 and in the menu
    Environment----Changes
    Here you can mention the line item and see the change logs.
    You can sort the logs based on header, item, sch.line, date etc
    It will also show you the old value and new value, changed by and the changed time.
    Alternate sales doc type
    In VOV8 you can mention the alternate sales docu type
    Once this is done, come to VA01 and give hte original dcument number
    Once you enter teh screen to enter the sold to party, at the header level, there will be radio button to select the other sales document also. If you want you can now select the other doc type.
    That radio button enabling you to select the other doc type will be near to the Requested Delivery date field at the header level.
    Here you can select the other document type.
    Hope this helps.
    Reward if this helps.

  • Since Prelude doesn't work with Red footage, how can I add logging info to a file in Premiere Pro

    Since Prelude doesn't work with Red footage, how can I add logging info to a file in Premiere Pro CS6?

    RED footage has a restriction on metadata.  We are looking into what it would take to get full metadata support into our system, but you cannot tag red footage at this time.

  • How to see debug logging  message on jdeveloper Console?

    How to see debug logging  message on jdeveloper Console?

    The debug info is not even created unless debugging is switched on.
    Adam

  • How to write error log while creating invoice and avoid implicite commit

    Hi,
    I've have written code in exit RV60AFZZ in which I check for some possible errors while invoicing via VF01/VF04. If conditions are met then we create error message and display it to the user. As result we had a lot of missing SD invoices in FI when we did batch/mass invoicing. I've opened OSS note and SAP support team wrote that using statement MESSAGE is forbidden in UE. It can lead to implicite commits.
    Do you have some example how to write error log for invoincing in VF01/VF04 transactions?
    Thanks

    @ sri nath. Please read post before answering. I wouldn't be posting trivial questions. As I wrote before it doesn't work.  Also SAP support would not answer to the question in my OSS.
    In VOFM, SAP is using routine  VBFS_HINZUFUEGEN_ALLG to write to error log.
    Mine is something like this in ue:
          PERFORM ZVBFS_HINZUFUEGEN_ALLG
                     USING VBAP-VBELN VBAP-POSNR  'ZSD' 'E '600'
                           SPACE SPACE SPACE SPACE.
    (we have custom message class)
    As result  XVBFS and VBSK are filled with error, but posting is also done.  Error log is filled but invoice is created and posted in FI.
    That is not OK.
    thanks

  • Message stuck in adapter engine with status Hold, how to delete those

    Hi,
    In Dev system around 6 lac messages are stuck in ;holding' state. How can I delete them. Is there is any standard proge which can delete all these messages.
    Can I delete messages of IE with status 'recorded'?
    Regards,
    Krishna

    Hi,
    see this wiki
    RSXMB_ARCHIVE_MESSAGES Archive XML Messages
    RSXMB_CANCEL_NOT_REST_MESSAGES Cancel XI Messages With Errors That Cannot Be Restarted
    RSXMB_DELETE_ARCHIVED_MESSAGES Delete Archived XML Messages
    RSXMB_DELETE_MESSAGES Delete XML Messages from the Persistency Layer marked for DEL
    RSXMB_CANCEL_MESSAGES Mass cancellation of error messages - XI
    RSXMB_SHOW_REORG_STATUS & RSXMB_SHOW_STATUS provide an overview for all XML messages in XI persistency layer.
    RSXMB_MESSAGE_STATISTICS2 which provides the processing statistics. This report basically analyzed the history table.
    RXWF_XI_UNSED_MSGS report helps in converting messages states other than 003 to final state i.e. 003.
    SXMS_REFRESH_ADAPTER_STATUS report helps in converting message sates like 001/008 into final state.
    http://wiki.sdn.sap.com/wiki/display/XI/PIArchivingConceptual+Overview

  • Report Row With Detail (IFRAME) - How to reload Main Page within iFrame

    Hi,
    Based on Carl's example - Report Row With Detail (IFRAME), i.e:
    http://htmldb.oracle.com/pls/otn/f?p=11933:17
    Within my scenario, I have a button within the iframe section of my report that calls a pl/sql process that performs some database processing.
    What I basically need is a means of performing a page refresh of the main page, when this button within the iframe is pressed. In Carl's example, that would be page 17.
    As mentioned, I call a PL/SQL process within the iframe, but unsure how to then refresh the main page - parent page.
    Any help would be appreciated.
    Thanks.
    Tony.

    Tony,
    you could insert the following script to the region footer of a region located on your "iframe"-page.
    <script>
    parent.location.reload();
    </script>
    But this is dangerous because everytime the parent is being reloaded, the iframe is loaded, too. Risk of loop...
    A possible solution is to conditionally display a html region (with the script) on your iframe-page basing on a request. You could post the request as a result after your plsql processing in a branch.
    Regards,
    Jens

  • How to see the log file on the Reports Application server?

    Hi,
    I am new to this Reports, please correct me if i am wrong or in the wrong forum, we have a java based front-end application which calls oracle reports to display requested reports. We are using oracle reports (9i/10g). I need work on a report, It is working fine if i provide parameters on the report itself, but if i run from the application it is not running properly. I want to see the parameters the application is sending to this report, is there any way that i can some log file or any other one on the report server?
    thanks,

    Thank you.
    When you fire the processes to the report server you
    can trace the report with the following parameter:
    RWCLIENT.EXE SERVER=my_server
    TRACEFILE=c:\my_trace.trc
    TRACEMODE=TRACE_REPLACE
    TRACEOPTS=TRACE_ALL

  • How to see error message for a failed crystal report in CMC BO XI 3.1

    Hi,
    I do not have much knowledge on CMC.
    Currently there is a crystal report failing on server.
    I can see the error message on CMC as "Object failed to run due to an error while processing on the Job Server".
    Is there any way i could see the actual error message causing this issue.
    Attached is the error message.
    Please suggest.
    Thanks
    Rahul

    Hi rahul,
    Can u try these
    :Object failed to run due to an error while processing on the Job Server.
    2 )Object failed to run due to an error
    3 )Object failed to run due to an error while proc... | SCN

  • How To See Change Log For A Table Entry

    Hi Experts,
    One entry is created in a table. I want to know, when that entry was created/ changed.
    Is there a way to find it out.
    PLZ NOTE: Table doesn't contain any DATE field.
    Regards

    Hi,
    or else do like this...
    In order to maintain the log changes the main pre reuisite is to checkmark the checkbox in dataelement of table filed.
    To do this...
    goto transaction SE11>enter ur table name>cleck on fields tab>cleick on dataelement->click on Furthercharacterstics tab-->select the checkbox'Change Document'.
    If u dont select dis the u cannot see the log entry of the particuylar field..Do like this for each dataelement for each table field...selecting all the fields is not mandatory..u can choose the table field u want to see the log report..
    Once u done with dat...
    Goto SCDO transaction> click on create>give a name change doc startwith Z or Y only>Follow the prodedure and in-->name of table field>enter u r TABLE NAME->click on individual field checkbox.--->insertentries..
    Once u done with dis..
    Goto SE16->enter CHDIR or CDPOS->press ENTER->enter u r object id>F8
    U can see the new and old value of a table entry.....

Maybe you are looking for

  • Dual boot issues

    I've been attempting to get up to speed on labview, labview RT, the PXI (8106), and getting the PXI to dual boot labview RT and windows XP. Question here is only about dual booting. I have the PXI set up with a fat32 partition physically before (C th

  • OIM 11g R2 : deployment failed / soaconfigplan.xml not exist

    Hello all, I got my Weblogic, OIM, SOA installed. Then I tried to configure my security domain on Weblogic. I created a domain with OAM, then extended to SOA and then when I try to extend it to OIM I got the following error : Preparing... Extracting

  • Stopping A thread

    HI, I have written an application which starts two threads. Later on i want the two threads two stop using another method call. Actually i am starting the threads calling a bean from my JSP. Now i want to stop them using another method call from my J

  • HT5052 Why is my puffin browser not working?

    My puffin browser stopped functioning; I deleted it, and when I tried to purchase a newer version from the store, a displayed message stated that I need to have iOS 5 or later, in order to install the new puffin version. I searched for the iOS 5 but

  • Mi ipod touch 16 GB iOs 1.1.5 no se conecta con iTunes

    mi ipod 16 GB iOs 1.1.5 no se puede conectar a iTunes Store, aunque el ordenador reconoce el iPod y el diagnostico es correcto