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

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

  • About the return code of the tpcall

    if i run the client one time ,then it's right,
    but if run again and again,
    the server should return 'TPSUCESS' or 'TPFAIL'
    BUT,iSucess got by client will be 64(run the client sencond),128(third),192(fourth)
    i did not know what happend to this
    client:
    long reclen=1024;
    FBFR32* inputbuf=NULL;
    int iSuccess;
    inputbuf = (FBFR32*)tpalloc("FML32",NULL,reclen);
    int count=0;(or some other value,like 5,6..)
    for (int i=0;i<count;i++)
         iSuccess=-1;
         userlog("tperrno==%d,desr==%s",tperrno,tpstrerror(tperrno));
         iSuccess = tpcall("shlr",(char*)inputbuf,0L,(char**)&inputbuf,&reclen,0L);
         userlog("tperrno==%d,desr==%s",tperrno,tpstrerror(tperrno));
         userlog("return==%d",iSucess);
    tpfree((char*)inputbuf);
    server:
    void shlr(TPSVCINFO *rqst)
    int ret=dealfun(rqst);
    FBFR32 * sendbuf=(FBFR32*)tpalloc( "FML32", NULL, 1024);
    if (ret==1)
    tpreturn(TPSUCCESS,0,(char*)sendbuf,0L,0);
    else
    tpreturn(TPFAIL, 0,(char*)sendbuf,0L,0);     
    }

    guorke,
    I suggest you add userlog to the server to see the tpreturn situation and compare with tpcall's return code. iSucess is -1 means something wrong, other values such as 64, 128... means the tpcall's execution scucessfully and they are code related with internal handler index.
    Wayne

  • How to generate the return code automatically through EP

    Hello all,
               I have created a transaction Iview and i am calling transaction SE16 to which i am passing application parameter as the table name which i want to see.Now i am getting the SE16 screen with the table name successfully passed on to the input field. But i want the Iview to process this screen also so that i dont have to press enter to see the next screen. i want this iview to process the SE16 screen directly and show me the next screen. I dont know how can i pass the return code parameter which will directly execute the table name entered in SE16 screen.suppose my table name is "ABC" and i have set the application parameter as DATABROWSE-TABLENAME=ABC&~okcode=ANZE where ANZE is the sy-ucomm value.Plz reply at the earliest.
    Thanks and regards,
    Alpa Desai.

    Madden wrote:
    I do think OOP can only complement procedural programming,Wrong. They don't have to have anything to do with each other.
    but I just wish for my app to exit the same way whether I return or not an exit code.
    I mean we are talking about the implementation, or the system, here.
    Simply let it end and the "return code" will be 0.
    But ... is there a way for a Java application to execute another Java application ? The analog for CreateProcess, but in the Java world ?Start a thread and call the main method of the class that kicks it off with the necessary arguements is one way.
    When an Java app executes another Java app will a new VM be created ?Runtime.getRuntime().exec() and call java ...... Which will, obviously, start a new VM.
    Is ther an internal way, for this that will work inside the same VM ?See the thread situation above.
    How will the parent get the exit code from the child ?If called with Runtime simply call System.exit and then (from the original program) evaluate the return code (see the Runtime and Process classes).
    If called in a thread, without using Runtime.exec any where, then you use a return at the end of the main method, but, if you are looking for a "return code" from an entire application, you're probably looking at Runtime.exec anyway. Otherwise, you are better of writing it so that it can be used in a real OOP manner (i.e. you don't have to call the main method of another application at all, you simply start instantiating and using the classes involved), in which case, a "return code" from the "application" is meaningless.
    >
    Timothy Madden,
    RomaniaEdited by: masijade. on Nov 19, 2007 10:18 AM

  • Getting the return code of an exec-called program

    I'm trying to simply call an .EXE (Win32 console-) application from LabView 5, which works fine with EXEC. The problem is, that I cannot query the return code of the program afterwards. (The error output is always 0, no matter what the program has returned.) Anyone knows a nice short solution to that? Thanks!

    Hi Ritter,
    Somehow I think I may be missing something.
    (after looking around)
    What version of LV are you using?
    I am guessing 5.1 or earlier.
    LV 6 EXEC has standard output available.
    If you are using LV 5.1.1 or so, I can only recomend the the re-directed solution.
    If file system is issue how about using a complete file spec starting with "c:"? Do you expect to be running on a machine that does not have a c drive?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can we know the return code of BDC Program ?

    Hi All,
    Please tell me : How can we know the return code of BDC Program when being exceuted in Session or in Transaction mode.
    In my program, we are uploading data from Excel sheet to SAP via BDC
    The records that are not updated we want to create a log file.
    Now to know whether a record is updated ot not, wat syst field shloud be used?
    Its urgent....
    <b>Reward Point will be there ....</b>
    Thanks,
    Harish

    Hi harish,
    try the logic in this code ...
    i had attached input file in the end.
    TYPES: begin of errmess,
            msgnr type t100-msgnr,
            text type t100-text,
           end of errmess.
    TABLES : t100.
    DATA: BEGIN OF DD_VA01,
           AUART TYPE VBAK-AUART,
           KUNNR TYPE RV45A-KUNNR,
           BSTKD TYPE VBKD-BSTKD,
           MABNR TYPE RV45A-MABNR,
           KWMENG(2) type C,
           KBETR(2) type C,
          END OF DD_VA01.
    DATA:IT_VA01     Like TABLE OF DD_VA01,
         WA_VA01     Like LINE  OF IT_VA01,
         WA_VA01_F   Like LINE  OF IT_VA01,
         IT_BDCDATA  TYPE TABLE OF BDCDATA,
         WA_BDCDATA  Like Line  OF IT_BDCDATA,
         W_FNAME     TYPE STRING,
         messtab like bdcmsgcoll occurs 0 with header line,
         it_errmess type table of errmess,
         wa_errmess like line of it_errmess,
         err_message type string.
    data: zf1 type i,
          zc1 type c value '2',
          fn(20) type c.
    Main Code ************************************************************
    PERFORM get_input using 'C:\Documents and Settings\ic881592\Desktop\Daran_bdc_VA01-e.txt'.
    SORT IT_VA01 BY AUART KUNNR BSTKD.
    LOOP AT IT_VA01 INTO WA_VA01.
      if WA_VA01_F-AUART <> WA_VA01-AUART OR
         WA_VA01_F-KUNNR <> WA_VA01-KUNNR OR
         WA_VA01_F-BSTKD <> WA_VA01-BSTKD.
           PERFORM set_header_flag.
           PERFORM create_bdc_header_data.
      endif.
      PERFORM create_bdc_item_data.
    ENDLOOP.
    PERFORM call_transaction.
    PERFORM errorlog.
    Procedures ***********************************************************
    form get_input using w_fname.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME            = W_FNAME
          HAS_FIELD_SEPARATOR = '#'
        TABLES
          DATA_TAB            = IT_VA01.
    endform.
    form call_transaction.
        PERFORM bdc_field       using 'BDC_OKCODE' '/11'.
        CALL TRANSACTION 'VA01' USING IT_BDCDATA MODE 'A' messages into messtab.
        refresh it_bdcdata.
    endform.
    FORM set_header_flag.
           WA_VA01_F-AUART = WA_VA01-AUART.
           WA_VA01_F-KUNNR = WA_VA01-KUNNR.
           WA_VA01_F-BSTKD = WA_VA01-BSTKD.
           if zf1 = 1.
               PERFORM call_transaction.
           endif.
           zf1 = 1.
    endform.   "set_header_flag.
    form create_bdc_header_data.
         perform bdc_dynpro      using 'SAPMV45A' '0101'.
         perform bdc_field       using 'VBAK-AUART' WA_VA01-AUART.
         perform bdc_field       using 'BDC_OKCODE' '/00'.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         perform bdc_field       using 'KUAGV-KUNNR' WA_VA01-KUNNR.
         perform bdc_field       using 'VBKD-BSTKD' WA_VA01-BSTKD.
         perform bdc_field       using 'BDC_OKCODE' '/00'.
         perform bdc_dynpro      using 'SAPMSSY0' '0120'.
         perform bdc_field       using 'BDC_CURSOR' '04/06'.
         perform bdc_field       using 'BDC_OKCODE' '=CHOO'.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
    endform. "create_bdcdata
    FORM create_bdc_item_data.
         CONCATENATE 'RV45A-KWMENG(' zc1 ')' INTO FN.
         perform bdc_field       using 'BDC_CURSOR' FN.
         perform bdc_field       using FN WA_VA01-KWMENG.
         CONCATENATE 'KOMV-KBETR(' zc1 ')' INTO FN.
         perform bdc_field       using FN WA_VA01-KBETR.
         CONCATENATE 'RV45A-MABNR(' zc1 ')' INTO FN.
         perform bdc_field       using FN WA_VA01-MABNR.
         perform bdc_dynpro      using 'SAPMV45A' '4001'.
         PERFORM bdc_field       USING 'BDC_OKCODE' '=POAN'.
    ENDFORM.
    form errorlog.
      LOOP AT MESSTAB .
        if MESSTAB-MSGNR = '311' or MESSTAB-MSGTYP = 'E'.
            SELECT SINGLE msgnr text FROM T100
                            into wa_errmess
                            WHERE SPRSL = MESSTAB-MSGSPRA
                              AND ARBGB = MESSTAB-MSGID
                              AND MSGNR = MESSTAB-MSGNR.
            IF SY-SUBRC = 0.
              err_message = wa_errmess-TEXT.
              IF err_message CS '&1'.
                REPLACE '&1' WITH MESSTAB-MSGV1 INTO err_message.
                REPLACE '&2' WITH MESSTAB-MSGV2 INTO err_message.
                REPLACE '&3' WITH MESSTAB-MSGV3 INTO err_message.
                REPLACE '&4' WITH MESSTAB-MSGV4 INTO err_message.
              ELSE.
                REPLACE '&' WITH MESSTAB-MSGV1 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV2 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV3 INTO err_message.
                REPLACE '&' WITH MESSTAB-MSGV4 INTO err_message.
              ENDIF.
              CONDENSE err_message.
              WRITE: / MESSTAB-MSGTYP, err_message .
            ELSE.
              WRITE: / MESSTAB.
            ENDIF.
        endif.
      ENDLOOP.
    endform. "errorlog
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      WA_BDCDATA-PROGRAM  = PROGRAM.
      WA_BDCDATA-DYNPRO   = DYNPRO.
      WA_BDCDATA-DYNBEGIN = 'X'.
      APPEND WA_BDCDATA TO IT_BDCDATA.
      CLEAR  WA_BDCDATA.
    ENDFORM.
    FORM BDC_FIELD USING FNAM FVAL.
      WA_BDCDATA-FNAM = FNAM.
      WA_BDCDATA-FVAL = FVAL.
      APPEND WA_BDCDATA TO IT_BDCDATA.
      CLEAR  WA_BDCDATA.
    ENDFORM.
    input file :
    OR     2148     0001235     R-1162     8     17
    OR     2148     0001235     R-1161     2     30
    OR     2148     0001235     100-400     6     25
    OR     2148     0001235     R-1162     4     12
    OR     2148     0001236     R-1162     3     12
    OR     2148     0001236     R-1161     2     30
    OR     2148     0001236     100-400     1     25
    OR     2148     0001236     R-1162     7     12
    OR     2148     0001236     R-1161     8     30
    OR     2148     0001236     100-400     10     25
    OR     2148     0001235     R-1161     5     30
    OR     2148     0001235     100-400     2     25
    OR     2148     0001235     R-11621     3     12
    OR     2148     0001235     R-1161     2     30
    OR     2148     0001235     100-400     1     25
    OR     2148     0001235     R-1162     7     12
    OR     2148     0001235     R-1161     8     30
    OR     2148     0001235     100-400     10     25
    OR     2148     0001236     R-1162     8     17
    OR     2148     0001236     R-1161     2     30
    OR     2148     0001236     100-400     6     25
    OR     2148     0001236     R-1162     4     12
    OR     2148     0001236     R-1161     5     30
    OR     2148     0001236     100-400     2     25

  • How can I get the return code of SQL*Plus under Win2000Pro

    How can I get the return code of SQL*Plus under Win2000Pro ?

    In a DOS batch script? Try ECHO %ERRORLEVEL%
    -- CJ

  • The problem with the return code of JOptionPane

    I debug the follow code, when I press button No, return code is 0, but OpenXLSFile(ResultXSLName); executed, why?
    the result is whether I press YES or NO, the if condition will be true
    how to compare the return code?
              int open = JOptionPane.showConfirmDialog(null, "Do you want Open the result File \"" + ResultXSLName + "\" ?", "Confirm", JOptionPane.YES_NO_OPTION);
              if (JOptionPane.YES_OPTION == open);
                   OpenXLSFile(ResultXSLName);
              }Edited by: Kevin.Tong on Feb 26, 2008 7:26 PM

    the result is whether I press YES or NO, the if condition will be truethis line will execute
    OpenXLSFile(ResultXSLName);regardless of the condition being true or false,
    because the if statement terminates at the semi-colon
    if (JOptionPane.YES_OPTION == open);<------------------

  • Return Code of the Tag applet /applet

    Does someone has deal with return code in the applet tag
    <applet codebase="http://10.15.1.26/printcndconjunta/"
         code="AppletHTMLPrint.class" width=710 height=500 id=Applet1 VIEWASTEXT>
    <param name="ConectionLink" value=<%=ConnectionString%>>
    </applet>
    Example : AppletHTMLPrint.class return 1 with someone used exit options.
    In resume , I want to close my HTML page (ASP one) after finished using my Applet, the way is going now it does not close the page
    where the applet was running after applet exit.

    If you Google for "applet javascript communications" you will be able to find out how to make the applet call a Javascript function which could in turn close the window.

  • Family sharing verification has an old credit card number to verify. I have updated the credit card info but it is still not appearing in the verification process asking for the security code of the card. How lng to have account info updated to cloud

    I am trying to set up a family sharing with a new iMac and other Mac pro computer and other apple products. When I click to manage account and the add a member, I am told to verify the user by entering the security code from the credit card. The card listed is an old one and has since been changed. I updated the info on my apple account, but it is not getting to the iCloud for the family sharing. The number shown is the old card. When I enter a code it says invalid. How long does it take for the info to udate to all systems?

    Hi Mofro1,
    Happy Holidays!  The resource below explains how to edit the credit card information for the Apple ID account that you want to use for Family Sharing.  Once you've made the changes, I would suggest you sign out of your iTunes Store on all of your devices, and then restart them.  The changes should take place quickly.  There is a link to the iTunes Store support below if you need more help.
    Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support
    http://support.apple.com/en-gb/HT1918
    Change your payment information on a Mac or PC
    Click to open your account in iTunes. (You might need to sign in with your Apple ID.)
    Alternatively, you can:
    Open iTunes.
    Click iTunes Store.
    Click Sign In and enter your Apple ID.
    Click your Apple ID and select Account Info.
    From the Account Information page, click Edit to the right of Payment Type.
    You can see the payment methods that the iTunes Store accepts in the Payment Type section. If you want to remove the payment method, select None in the Payment Type section. See what to do if None isn't showing or you can't select it.
    Change your information and click Done.
    After you change your payment information, the iTunes Store places an authorization hold on your credit card.
    Family Sharing
    If you’re using Family Sharing, and you're the family organizer, you can’t set your payment information to None. You need to use a credit card or debit card. Only the Family Organizer can edit payment information for a family group. If you're not the organizer, you'll see this message: "The payment method for your Family is managed by [Apple ID]."
    Get help
    If you need help changing your payment information, credit card details, or billing information, contact iTunes Store support. Or you might find the answer to your question below:
    If you change your payment method, make sure your account information matches the credit card information on file with your financial institution.
    If you use an AOL screen name to sign in to the iTunes Store, editing your information on the Account Information page won't update your AOL account. If you need to update your AOL account information, contact AOL.
    If your previous payment wasn't accepted, you might need to change your payment information.
    Last Modified: Oct 31, 2014
    Cheers,
    - Judy

  • How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your repl

    How can I use a SCH-LC11 device in CHINA which bought from ebay. I am not Verizon customer but I prefer to using your 4G LTE Router . How can I get the unlock code? The device may have a bad ESN but I only use it in CHINA. Kindly looking forward your reply. Thanks!

    It's good to read Antoniad's post.  It reassures me that I can use my new iPad as an international communication device which is the reason I purchased the thing.  However, I called Verizon today (my provider of cellular data) who told me that I can't just pop in a SIM card as you suggested.  He also said that he was from the "Pre-Pay" division of Verizon and he was certain that I couldn't do what I planned to do.  I was extremely disappointed as I had called Apple prior to buying the iPad and I read the algorhythm on the website for choosing an iPad before purchasing.  Those sources were quite specific and the information seemed clear.  I would be able to use my iPad to communicate through cellular connections while traveling on the road, literally, abroad.  I was told that I could pop in a data card wherever I was, just as you indicated in your message above, and voila I was good to go.  The Verizon rep definitively rained on that parade, but said that I might be able to do this if I have a "Post-Pay" account, a different area of Verizon.  I haven't had the chance to talk to this division yet, so I looked to Apple's Support for answers.  Maybe I will find out that I can use my iPad as an international communication device while traveling on the road afterall, however, it appears I may need a different type of account (Post-Pay), something I was never warned about. Can I switch to this kind of account?  I don't know.  I have to find out.  If you have any information about this issue, it would be good to share since I strongly suspect there are others who bought the iPad for the same purpose that I have.

  • How to find out the condition type of the tax code in the PO document

    Hi friends,
    My questions is how to find out the condition type of the tax code in the PO document.
    When you use me23n to display one PO document. In the invoice tab, there is one text field named 'tax code' whose value could be T1, T2, J1, J2 and so on. Beside the text field, there is one button named taxes. When you click the button taxes, it will show you the condition type of the tax code. For example, if the tax code is 'T1', then its condition type 'mwcn'.
    I want to use the information on the PO to find out the value 'mwcn' of the tax code 'T1'. Could anybody help to describe the logic?it looks like the value is saved in the table konp. But I don't know the logic. Please describe. Thank you.

    Hi,
    Hope you have asked for select query..
    select single knumh from a003 into wa_knumh
      where mwskz = wa_itpotab-mwskz
      and kappl = 'TX'
      and aland = 'IN'.
    select single kbetr from konp into wa_kbetr
      where knumh = wa_knumh.
    cheers,
    Dep

  • How to place an image in database and how to retrieve and display it in the front end

    how to place an image in database and how to retrieve and display it in the front end
    and to place an image in database and retrieve the image from database using xml
    please,help me out.

    Create a table with a Long RAW Datatype column for storing the Image Column Data.
    Create the form based on the table , which by defaults the column with LONG RAW atatype to a Image Item.
    You can use Forms Built in function READ_IMAGE_FILE to read a Image file stored on the file system in to the image item.
    A save on the form saves the image in the Image item in the long raw column.

  • Is there any differnce between the Numeric Limit Test source code from TestStand 3.0 to TestStand 3.1? How to get the source code for the Numric Limit Test for both the versions?

    I need to know the differnece between the Numeric Limit Test between the TestStand version 3.0 to 3.1. If there is any differnec in the source code how to find it out? If somebody has the code can you share it?
    Thanks,
    Jeyan

    Hi,
    I don't believe there are any differences between the two versions. But you can check the source code for the Numeric Limit Test in TestStand\Components\NI\StepTypes\CommonSubsteps. But the main part of the step is the Code Module and this bit the users supplies this.
    What has prompted this question?
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How to get the java code of the message mapping

    how to get the java code of the message mapping,
    I mean to ask how to get the background java code of the message mapping(graphical mapping).
    And where to view it?

    Hi Satya,
    The JAVA code for graphical msg mapping is in below folder:
    \usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
    Here all the mapping jars are there in this folder.
    Just decompile these jars and you can see the code.
    Thanks,
    Rajeev Gupta
    Message was edited by:
            RAJEEV GUPTA

Maybe you are looking for