Return Code for scenario execution

When we execute an interface,package or scenario.
We can go in execution tab and see the start time , end time and Return code which has values like 0,7000,1722,1777 etc.
This value is fetched from odi system table :-snp_sess_task_log.
This table contains the log status for an execution . it contains start time, end time ,status code and all.
My problem is that i want to know which table stores the status code that table snp_sess_task_log picks from.
I mean is there any master table containing all the error codes/status codes that can occur in a scenario execution?

I mean is there any master table containing all the
error codes/status codes that can occur in a scenario
execution?The code and the message come from the RDBMS...
But they are stocked on a table after raising.
Try this on your work rep connexion:
SELECT *
FROM SNP_STEP_LOG L, SNP_SESS_STEP SS,SNP_SESSION S,SNP_EXP_TXT X
WHERE
L.SESS_NO = SS.SESS_NO AND
L.NNO = SS.NNO AND
S.SESS_NO = L.SESS_NO AND
STEP_STATUS = 'E' AND
L.I_TXT_STEP_MESS=X.I_TXT

Similar Messages

  • Choosing the Return code for a scenario

    Hi,
    I execute an ODI scenario "AAA" from Unix with the command startscen.sh
    Can I control the return code of called screnario?
    IN the scenario "AAA" (=package) i have different path with ko/ok. I would like to choose a specific return code for each ko path. Is it possible ?
    Thank you very much.
    Best regards,

    How you creating this file? Why you couldn't create without enter?
    But, however, see solution in that case:
    File 1.sql:
    select 1 from dual;File 2.sql:
    select 2/0 from dual;File 3.sql:
    select 3 from dual;File exec_sql.sql:
    WHENEVER SQLERROR EXIT
    @&1
    @&2
    @&3And you need to generate file as this "test.sql":
    define f1 = 1.sql
    define f2 = 2.sql
    define f3 = 3.sql
    @exec_sql &f1 &f2 &f3Regards,
    Malakshinov Sayan

  • Transaction code to find return code for transport request

    Hi,
    I want to see  the return code for transport requests after importing to QAS from DEV. What is the transaction code to find return code and can you explain in brief.
    Thx,
    Vasu

    you can check it out in STMS
    wht you can do is ,,
    Run Tcode STMS > Overview imports (F5) > you will find all import queues > then click on the import queue in which u want to see the status of transport (DEV , QAS , PRD )
    > then find out the transport no > click on that > then click on logs or press ( ctrl + f4)
    Return code
    Meaning
    0000
    Transport performed without errors
    0004
    Warnings were issued. All objects were transported successfully. There were special actions for individual objects that may not have been intentional, for example, a warning is issued during the export if the request contains an object deletion.
    Read the warnings.
    0008
    Individual objects could not be transported successfully. You must analyze and correct the errors. Examples of import errors: Original object was not overwritten, Repaired object was not overwritten
    0012 or higher
    A critical error has occurred, probably not caused by the contents of the request. You must inform your system administrator.
    http://help.sap.com/saphelp_nw70/helpdata/en/57/38e26c4eb711d182bf0000e829fbfe/content.htm
    Hope this information will help you ,,
    Cheers
    dEE

  • Error handling return code for Provide Statement

    Hi Experts,
    For select statement we have error handling return code sy-subrc.
    What is the error handling return code for provide.. end provide statement.
    Thanks,
    Ragu

    Ragu,
    Same thing.
    Check sy-subrc.
    sy-subrc is the return code for all ABAP statements as far as I know.
    Regards,
    Dilek

  • Sqlloader return code for unix..

    Hi sir,
    i need to know the sqlloader load successfully or not,
    i have check this link http://download-east.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_params.htm#i1005781
    but this not help me much because,when its has error like unique constraint or its not full fill when clause then its returning '2' which is EX_WARN for unix,i only want thoose which have error like unique constraint ,how i know there is error
    please help me

    Try out this shell script..
    #! /usr/bin/sh
    sqlldr / control=/home/temp/prod.ctl log=/home/temp/prod.log BAD=/home/temp/prod.bad DISCARD=/home/temp/prod.dsc SILENT=HEADER DIRECT=TRUE PARALLEL=TRUE
    RC2=${?}
    if [ ${RC2} -ne 0 ]
    then
      echo " \n \
        Return code = ${RC2}, sql loader failed for the table $TABLE_NAME \n \n \
        Data file   : /home/temp/prod.dat       \n \
        Control file: /home/temp/prod.ctl       \n \
        Log file    : /home/temp/prod.log       \n \
        Bad file    : /home/temp/prod.bad       \n \
        Discard file: /home/temp/prod.dsc "
    else
      echo " \n \
        File loaded successfully            \n \
        Data file   : /home/temp/prod.dat   \n \
        Control file: /home/temp/prod.ctl   \n \
        Log file    : /home/temp/prod.log"
    fiLet me know if this is what you expect.
    Good luck!!!
    Bhagat
    null

  • Return code  For DataStore objects and InfoObjectsb

    Hello Gurus,
           For DataStore objects and InfoObjects: you cannot use the
    return code in the routine for data fields that are updated by being
    overwritten.
           as per above statement, why ?
    Many thanks,
    Frank Zhang

    How you creating this file? Why you couldn't create without enter?
    But, however, see solution in that case:
    File 1.sql:
    select 1 from dual;File 2.sql:
    select 2/0 from dual;File 3.sql:
    select 3 from dual;File exec_sql.sql:
    WHENEVER SQLERROR EXIT
    @&1
    @&2
    @&3And you need to generate file as this "test.sql":
    define f1 = 1.sql
    define f2 = 2.sql
    define f3 = 3.sql
    @exec_sql &f1 &f2 &f3Regards,
    Malakshinov Sayan

  • Return code for dynamic client by-pass

    hi,
    i wonder if 302 ( move temporaily) for return code in dynamic client by-pass. but it said 200 in the Cisco web page, why?
    thanks
    difei

    hi,
    my question is what's the return code from CE if the client ip addr. authentication failed? in cisco web page, it said 200. i guess it be 302, redirect to the original server.
    difei

  • Getting return code from subprocess execution

    Hi,
    I am executing a batch file as a subprocess and need to get the return code from it.
    The batch file executes a java class, which exits (System.exits(rc)) with a return code on error and how this can be captured in the calling program.
    i am calling the batch file as follows: (fragment)
    Runtime r;
    process p = r.exec(execCmd, null, mqsiToolFile);
    istr = p.getInputStream();
    br = new BufferedReader(new InputStreamReader(istr));          
    returnCode = p.waitFor();
    System.out.println("exit value: "+p.exitValue());
    This successfully executes the subprocess and always returns with code '0', even though the sub-process exits with a code >0.
    p.waitFor() or p.exitValue() - doesn't giving the exit value of the subprocess.
    How can i capture the exit value (System.exit(rc)) from the sub-process.
    I am running the app on Windows NT4 sp6
    Any help would be greatful.
    Thanks in Advance.

    Peter,
    can u be more explanative on this, i can see the run time result (0, 1). But couldn't get familiar on the sample you have given.
    My code is as follows:
    Process p = null;
    Runtime r = Runtime.getRuntime();
    for loop {
    execSubProcess(.., .., ..)
    public int execSubProcess(String excmd, String[] env, File fileDir) throws Exception {
    int res = 0;
         try {
              System.out.println(excmd);
              p = r.exec(excmd, null, fileDir);
              istr = p.getInputStream();
              br = new BufferedReader(new InputStreamReader(istr));
              line = null;
              while ((line = br.readLine()) != null) {
                   System.out.println(line);
              res = p.waitFor();
         System.out.println("sub-process return code: "+p.waitFor());
              System.out.println("sub-process exitValue: "+p.exitValue());
         } catch (Exception e) {
         throw e;
         return res;
    Here i get all the time 'res=0' , even though the subprocess execCmd exits with a return code > 0.
    Is tehre any environment setup or ..needed to capture the subprocess exit code val (System.exit(rc)) in the calling program.
    Please provide more details as per ur convinience.
    thanks

  • Throws Exception in main and return code for JVM

    Hello,
    Could someone tell me what the following statement :
    public class Foo {
    public static void main(java.lang.String[] args) throws Exception {
    // Some source code
    is supposed to do with the return code of the VM when the Exception is thrown.
    I mean what num�ric value is supposed to return the following instruction :
    java -classpath ... com.app.Foo
    Because my Java program is run in a script shell which is supposed to get a return code which as to be interpreted.
    Off course I am not allowed to do the test myself because this script shell is executed on a production server ...

    I don't know what the return code will be, but you could do this:
    public static void main(String[] args)
      try
        // ...Run the program here...
      catch (Exception e)
        // Print the stack trace
        e.printStackTrace();
        // Exit with an error code
        System.exit(10);
    }Jesper

  • Getting Return Code for cl_gui_frontend_services= execute

    Hey,
    im using the static method cl_gui_frontend_services=>execute  to start a program locally. The program is openens synchronously and i need to get the return code of the program. I mean not the one from the method-call but from the external tool on OS-level.
    Is there a way to get that one ?
    Thanks and regards,
    oliver

    well seems there is no way...solved it now over a result-file which is get written by the called tool and later read by sap.

  • C API WISH LIST: New info API or return code for txn- commit()

    One problem I have to solve now is that I cannot txn->commit(txn) if there are
    open cursors using that txn. The limitation itself is ok, but I need to know this
    prior to calling commit, or have commit return a suitable error code.
    What happens now if I call commit prior to closing all cursors using it, is that
    it returns the error code -30975 (DB_RUNRECOVERY: Fatal error, run
    database recovery). Then the db is left in an abysmal state for the user.
    All this is happening within a BDB BASIC interpreter where I can't predict
    the user program's cursor usage.
    The only solution for me at the moment is to track each cursor creation
    on the current transaction within the interpreter, and try to preempt this
    problem.
    WISH LIST: It would be nice to either:
    1. have txn->commit() return a more suitable error, without
    corrupting the db (check for this problem first).
    or
    2. have a way to determine how many open cursors there are
    on this txn, so that I can report the failure back to
    the caller.
    Approach #1 is preferable, since api for #2 has limited use. But # 2
    could be provided as part of DB_ENV->txn_stat(), which currently
    lacks this info.
    Thanks, Warren.

    Oh, that does help. The only worry I have is that this appears to be undocumented and could change on the user trying to build my project with a future release. But, I think I'm willing to risk that, at this point.
    Thanks again, Warren.

  • Return code for EXECUTE PROCEDURE (native SQL)

    Hi Experts,
    I've seen in the Note 364707 that the field %_ERRCODE is no longer supported since WAS 6.10 for stored procedures like this:
    EXEC SQL.
      EXECUTE PROCEDURE proc [(parameter list)] %_ERRCODE INTO :rc
    ENDEXEC.
    So an Upgrade to WAS 7.00 gives this programms an error.
    Has anybody an idea for an alternative?
    Regards,
    Stefan

    Hello Peluka,
    i have seen you have worked with 'execute procedure'.
    I want to execute a procedure with two Parameters and one structure. Example:
    EXECUTE PROCEDURE test.p_getdata ( in :i_ls_nr , in :vdatum , out :vtest ).
    vtest has the simple structure with field lieferscheinnr (char25).
    When i execute the procedure, i get the error <b>wrong number or types of arguments in call</b>.
    Do you know, whether execute procedure with structures is not possible?
    Thank you in advance.

  • How to retrieve the return code of the scenario execution

    Hi,
    I do see the return code in the execution tab of the scenarios..
    I need to use those values in a package.
    So how do i retrieve those value and use in a variable..?
    In which table, i find this value?
    Please respond as soona s possible. This is very critical for me.
    thanks,

    Yes, reference the Java API package oracle.odi.domain.runtime.session - this package contains classes for managing Oracle Data Integrator Sessions and related objects.
    In this package is the java class OdiSessionStepLog which has the method getReturnCode() which will do the same as the earlier substitution variable example

  • Return Code of sqlldr for failure or success ??

    Hi,
    I would like to know what will be the return code for the sql loader when there is rejection of single record from the data file.
    Can someone please tell me regarding return code of sqlldr so that depending on that i would be able to take some action.
    The other methods which are there to do the same :
    1) To scan the log file and check for rejected keyword
    2) To check weather any bad file is created.
    Any help would be highly appreciated.
    Thanks!!

    Check out this book : Utilities
    http://otn.oracle.com/pls/db92/db92.docindex?remark=homepage
    Joel P�rez

  • The DB_KEYEMPTY return code ?

    Hi,
    We are using a Berkeley DB queue in a transactional database. Our application is designed with some threads inserting records into the queue and a single thread reading records from the queue. Our concern is around the reading of the queue where we use the "Db::get" method to read records using a given recno key:
         rtn = m_queueDb->get(m_dbTxn, &m_queueDbKey, &m_queueDbData, DB_READ_COMMITTED);
    Note, we are intentionally not using DB_CONSUME/DB_CONSUME_WAIT as we may want to read the record again at a later date. We also have maintenance tasks to clean-up (consume) records when we are certain the records are no longer needed in the queue.
    We would like someone explain the scenarios in which the "DB_KEYEMPTY" code is returned for the "Db::get" method:
    The documentation appears to be a little unclear around the exact circumstances that cause the DB_KEYEMPTY code to be returned:
    http://www.sleepycat.com/docs/api_cxx/db_get.html
    Since we use the "Db::get" method with an incrementing recno key to our retrieve records in the queue, we assume that it is possible to get a DB_KEYEMPTY return code for records that were part of a transaction which was rolled back (i.e. these would be implicit records we should skip over). Is that a fair assumption?
    Also, what else might cause a DB_KEYEMPTY code to be returned, because we seem to be getting this even when nothing is rolled back?
    Thanks,
    Atiq.

    Hi Atiq,
    Since the reader and writers are in separate threads,
    there is always the chance that the reader thread may
    be reading the queue while a writer is adding records
    in an open transaction. Due to the nature of our
    application, it is not appropriate for us to
    co-ordinate our worker threads such that we suspend
    the writer threads while the reader thread attempts
    to read the queue. We were expecting that the
    DB_READ_COMMITTED isolation level would be sufficient
    to take care of this.The readers threads will only see data that had been committed by the writer threads. If your application is under the constraint of having the threads work so that neither of them can suspend and wait for the other one, maybe you should consider relaxing the isolation degree, and use DB_READ_UNCOMMITTED (this flag should be specified when opening the database "DB->open", as well as when creating the transaction "DB_ENV->txn_begin").
    Of course, this means that the readers threads can get data that could disappear at a future moment, due to aborting a writing transaction.
    > DB_KEYEMPTY could be thrown in case you are
    trying to retrieve a record
    inserted in a transaction that hasn't been yetcommitted (or a record inserted
    through using an aborted transaction).
    OK. The statement above outlines two different
    scenarios:
    (1) DB_KEYEMPTY can be thrown to the reader thread
    while trying to retrieve a record inserted in an open
    transaction (i.e. not yet committed). Is this true
    while using the DB_READ_COMMITTED flag? If so, in
    this particular case we should wait and then trying
    reading the record again in the expectancy that it
    will be committed soon.Yes this is the behavior when using the second isolation degree, DB_READ_COMMITTED. The reader thread should begin working after the writing transaction had been committed (estimate how long you should delay starting your readers threads).
    (2) DB_KEYEMPTY can be thrown to the reader thread
    while trying to retrieve a record inserted in an
    aborted transaction. In this particular case I assume
    it is sensible to skip this record?Records inserted in an aborted transaction will never be seen by the reader thread, since they hadn't been committed. If you were using DB_READ_UNCOMMITTED, these records would be seen by the reader threads, before being dropped.
    > You may also step into this exception if the
    specified key exists, but wasn't
    explicitly created through your application or waslater deleted.
    The statement "wasn't explicitly created through your
    application" is a little unclear to me. Can you
    please clarify further what this means?It's possible to insert a record that has a specific number which is greater that any other record numbers existing in the Recno (or Queue) database. Fictive records will then be created with record numbers between the newly inserted record number and the first record number smaller than this one (e.g.: your database has 48 records; the greatest record number in the database than, is 48; let's say that you insert a record with a specific record number of 52; implicit records are created, with record numbers 49 to 51).
    If you try to retrieve any of these " fictive" records, DB_KEYEMPTY will be thrown, because for these records, data doesn't exist.
    Thank you, best regards,
    Andrei Costache
    Oracle Support Services

Maybe you are looking for

  • How to run a Java program without the command line.

    Is there anyway to create a Java program that runs like most programs do in Windows ,by double clicking on their icons? Thanks, Vance

  • Can i install SL on a solid state hard drive??

    Hi I have a MBP with an upgraded 500gb HDD which i fitted myself once the warantee had expired. ( original intel MBP with dodgy case !! ) I would like to fit a Solid State HDD to reduce battery drain, heat etc ( You can cook eggs on my MBP ) Question

  • Error loading Itunes

    I get the following error message when trying to load Itunes: ' There was a problem with this windows installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor.' Its a very vagu

  • Top N analysis..

    .Don't plz send the links ... plz provide with sme solution ... ....Suppose ..i want to find TOP 3 earners of the Company so tht i can do .by using ..Inline vies....... ...My query is ..how to find ...the THIRD highest Earner of the Company ....... T

  • Message status for Contract

    hi, I want to change the message settings in Contract for "Fill in the Required entry fields". I want to change the settings from Error message to Warning messgae. Please advice where to do this in SPRO. Thanks in advance. with Regards, Saakithyan.