Oracle execution in C program exits immediately when CNTR-C is hitted

Hi,
I have a pro c program that connects to oracle and executes a stored procedure. This is done in a while loop. An intrrupt signal function is done(catches CNTRL-C signal), which makes the varibale in while loop false and exits normally in coming loop. But when i hit CNTRL-C , the oracle execution breaks immedietly with errors such as
*"ora-01013 user requested cancel of current operation".*
I dont want this to happen. I want the oracle procedure execution completes and in next while loop the program should exit. Is there any way to accomplish this?

You probably want to capture the exceptions and handle them.
Refer to [PL/SQL 101 : Exception Handling|http://forums.oracle.com/forums/thread.jspa?threadID=697262&tstart=50]

Similar Messages

  • Java program shuts down when I close Terminal.

    I use following:
    Java: 1.3.1_01
    Platform: Solaris
    Shell: bourn
    I've a java program in which, I've implemented shutdown hooks (Runtime.addshutdownhook()) for proper shut down of my application.
    I've a shell script to start & stop this application.
    Now, if I use bourn shell to start this app, when I close the terminal window, the program also shuts down.
    I tried using 'nohup' command but its not working. I also tried starting it in background by appending '&'. It is not working either.
    Can someone pls give me solution?
    - Samir

    I don't think there is a solution to your problem (other than not to close the terminal window) because according to the documentation:
    addShutdownHook
    public void addShutdownHook(Thread hook)
    Registers a new virtual-machine shutdown hook.
    The Java virtual machine shuts down in response to two kinds of events:
    1) The program exits normally, when the last non-daemon thread exits or when the exit (equivalently, System.exit) method is invoked, or
    2) The virtual machine is terminated in response to a user interrupt, such as typing ^C, or a system-wide event, such as user logoff or system shutdown.
    The behavior you described is consistent with what I see on my Windows 98SE.
    V.V.

  • Program Exit

    Hi All,
    Can any one give me an idea about Program Exit..? What is Program Exit? When it is used?
    Please provide sample code for it.
    Thanks,
    Shilpa K

    Hi shilpa,
        It seems u r talking abt function module exit.
    Check these links.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://erp.ittoolbox.com/groups/technical-functional/sap-r3-dev/573131
    http://www.sapinsideronline.com/searchspi/search.htm?page=article&query_text=base&key=43244
    http://www.easymarketplace.de/userexit.php
    User-Exits
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
    These links will help you to learn more on user exits.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.allsaplinks.com/user_exit.html
    www.sap-img.com/abap/what-is-user-exits.htm
    Also please check these threads for more details about user exits.
    Re: Screen exit
    user exit and customer exit
    user exit
    1. Document on UserExits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    2. Finding User Exits...
    http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits
    3. List of all User Exits...
    http://www.planetsap.com/userexit_main_page.htm
    Regards...
    Arun.
    Reward points if useful.

  • Oracle execution breaks immedietly when CNTRL-C is hitted

    Hi,
    I have a pro c program that connects to oracle and executes a stored procedure. This is done in a while loop. An intrrupt signal function is done(catches CNTRL-C signal), which makes the varibale in while loop false and exits normally in coming loop. But when i hit CNTRL-C , the oracle execution breaks immedietly with errors such as
    "ora-01013 user requested cancel of current operation".
    I dont want this to happen. I want the oracle procedure execution completes and in next while loop the program should exit. Is there any way to accomplish this?

    Hi,
    You might try to register your own signal handler as described here:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b15658/prcmp_cll_int.htm#sthref437
    That may allow you to accomplish what you want.
    Regards,
    Mark

  • DWCS5  on Maverick times out when trying to connect to server. Other FTP programs connect immediately.

    I'm unable to connect with my server because DWCS5 times out. I'm using 10.9.3. Two other FTP programs connected immediately. What the answer?

    Try Toggling Passive FTP on/off in the More Options menu.  See screenshot.
    Nancy O.

  • Doubt in Workflows using Programming Exits on OO ABAP

    I have a doubt on workflows:-
    Let me brief you about my requirement:
    I am trying to update some Master data using ABAP Methods through Programming Exits in a Workflow.
    I managed to find an OO method that can fetch the workflow container values directly into the structure.
    While testing the workflow:-
    The OO ABAP method executes and successfully updates the master tables.
    However, a calling method (that triggers this method indirectly), raises an exception called SWF_RUN_WIM_EXEC_INTERRUPTED.  
    The exception is caught within the caller method and the workflow errors saying that “the method ABC… cannot be executed.”
    The caller method is:-
    CL_SWF_RUN_WORKFLOW_START
    The exception is raised on execution of the following statement:-
    CALL METHOD me->start_workitem( lh_wi_handle ).
    One reason for this is that the workflow is still not completed and still in “READY” state.
    Alternative method
    Once the Master data is updated successfully,
    I tried to use the FM SAP_WAPI_WORKITEM_COMPLETE to end the work item or tried another FM to suspend the workflow.
    Now it gives an error saying that these FMs are restricted from use during run-time execution.
    Query
    Do you have an idea why the exception is raised and how to track/prevent the same?
    Can you suggest any other alternative?  Your valuable advice is urgently needed.
    Thanks a million in advance,
    Best Regards,
    Vinod

    Check the code
          CLASS zcl_event_handler IMPLEMENTATION
    CLASS zcl_event_handler IMPLEMENTATION.
    Top-of-page event
      METHOD top_of_page.
        PERFORM event_top_of_page
                USING z_dyndoc_id.
      ENDMETHOD.   "METHOD top_of_page
    Change Status Button
      METHOD handle_toolbar.
        IF NOT pa_prodr IS INITIAL.
          DATA: lz_toolbar  TYPE stb_button.
          CLEAR lz_toolbar.
          MOVE    'CHANGE_STATUS'  TO lz_toolbar-function.
          MOVE    text-001         TO lz_toolbar-text.
          APPEND  lz_toolbar       TO e_object->mt_toolbar.
        ENDIF.          "IF NOT pa_prodr IS INITIAL
      ENDMETHOD.   "METHOD handle_toolbar
    Handle User Command
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'CHANGE_STATUS'.
            LOOP AT    it_output
                 INTO  wa_output.
              IF wa_output-chk_box EQ kc_x.
                z_flag = 1.
                EXIT.
              ENDIF.          "IF wa_output-chk_box EQ kc_x
            ENDLOOP.      "LOOP AT it_output INTO  wa_output
            IF z_flag EQ 1.
              PERFORM display_selected_data.
            ELSE.
              MESSAGE i001(zzrefn01)
                      WITH text-023.
            ENDIF.       "IF z_flag EQ 1
        ENDCASE.      "CASE e_ucomm
      ENDMETHOD.   "METHOD handle_user_command
    ENDCLASS.   "zcl_event_handler IMPLEMENTATION

  • How to debug a program exit in a Workflow ?

    Hi experts,
                      How to debug a program exit in a workflow when the workflow is triggered ?
    thanks in advance
    regards
    Ashwin

    In 4.6c I did this by creating a function module and a table (zsm50_debug). In the table are just two fields: User name (key), and a flag (yes/no).
    The function module:
    FUNCTION zsm50_debug.
    *"*"Local interface:
    *"  IMPORTING
    *"     REFERENCE(Z_DEBUG_USER) LIKE  SY-UNAME
      DATA: z_exit,
            z_debug.
      CLEAR: z_debug.
      DATA: starttime   TYPE t,
            currenttime TYPE t,
            time_passed TYPE i.
      starttime = sy-uzeit.
    * Check if debugging is switched on
      SELECT SINGLE debug FROM  zsm50_debug
                          INTO  z_debug
                          WHERE uname = z_debug_user.
    * Debugging is switched on:
      IF z_debug = 'X'.
    *   Not an endless loop, but it will continue after approx. 1 minute...
    *   Plenty of time to go to SM50 to debug the program and continue!
        DO.
    *     Change the value of z_exit to 'X' to exit the loop an stay in
    *     debug mode.
          IF z_exit = 'X'.
            EXIT.
          ENDIF.
    *     To prevent an endless loop (if the user forgot that debugging was
    *     switched on in ZSM50_DEBUG, time is measured to allow the program
    *     to continue after 2 minutes
          GET TIME FIELD currenttime.
          time_passed = currenttime - starttime.
          IF time_passed > 120.
            WRITE: / '!!!==========================================!!!'.
            WRITE: / '!!!DEBUGGING STILL SWITCHED ON IN ZSM50_DEBUG!!!'.
            WRITE: / '!!!    Program was delayed by two minutes    !!!'.
            WRITE: / '!!!==========================================!!!'.
            EXIT.
          ENDIF.
        ENDDO.
      ENDIF.
    ENDFUNCTION.
    This FM reads the table and checks if the flag is switched on. If so, it loops for two minutes. After that, it continues regardless. If not flagged, it continues immediately.
    This way, you can debug any program that is running in the background.
    In every method I program I add this FM right in the beginning. With authorization for SM50, I can then debug the program (in production it may be difficult to get the correct server, if there are more).

  • Program exited with status 1

    Hi,
    While submitting the request i am getting the follwing error.can any one please help me..
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    p_org_id='121'
    p_anno='2012'
    p_batch_source_id='1115'
    p_tipo_fatt='1233'
    p_numero_da='87'
    p_numero_a='87'
    p_desname_path='/usr/tmp/statarch'
    p_nome_protocollo='CE'
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.WE8ISO8859P1
    Enter Password:
    REP-1437: Run time error in the PL/SQL development environment (DE).
    Message file unavailable (Error: REP-3335: Unhandled Internal CA Error.deper 1 REP-3335: Unhandled Internal CA Error.
    depxc 25)
    REP-1437: Run time error in the PL/SQL development environment (DE).
    Message file unavailable (Error: REP-3335: Unhandled Internal CA Error.deper 1 REP-3335: Unhandled Internal CA Error.
    depxc 25)
    REP-0002: Unable to retrieve a string from the Report Builder message file.
    REP-421490969:
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-421490969: Run time error in the PL/SQL development environment (DE).
    Message file unavailable (Error: REP-3335: Unhandled Internal CA Error.deper 1 REP-3335: Unhandled Internal CA Error.
    depxc 25)
    REP-1437: Run time error in the PL/SQL development environment (DE).
    Message file unavailable (Error: REP-3335: Unhandled Internal CA Error.deper 1 REP-3335: Unhandled Internal CA Error.
    depxc 25)
    REP-0002: Unable to retr
    Report Builder: Release 10.1.2.3.0 - Production on Thu Oct 24 11:19:44 2013
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    kgefec: fatal error 0
    kgefec: fatal error 0
    +---------------------------------------------------------------------------+
    Start of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    +---------------------------------------------------------------------------+
    End of log messages from FND_FILE
    +---------------------------------------------------------------------------+
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 12172406.
    Review your concurrent request log and/or report output file for more detailed information.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    Output file size:
    0
    Thanks,

    Hi,
    Is this a standard or a custom report? See if the following note helps you:
    R12 General Ledger Journal Entry Report (JGZZGLJRN) Errors With: REP-0069, REP-57054, REP-271504897 and REP-0002 For Large Volume Report (Doc ID 1070234.1)
    Thanks &
    Best Regards,

  • Windows reboots immediately when I start iTunes

    The Problem: When I click on the iTunes icon to start up the software, my computer restarts IMMEDIATELY. There is no error message, the computer does not freeze, and there is no indication that an iTunes window opened at all, even briefly. The screen just goes black and the boot information comes up right away, as if I had pressed the reset button on my case.
    My Computer: My computer is a custom built windows XP Pro, SP2, 1G RAM, 2.2 Ghz AMD processor, 3 hard drives -- the bootable drive (C:) is 4G with about 1G of available space and runs at 7200 RPM. The other 2 drives are large (~80G each) and also run at 7200 RPM.
    Attempted Solutions, so far: I have spent hours on the phone with Apple support about this already. They walked me though the msconfig process (turning off all other processes and rebooting), I have uninstalled and reinstalled iTunes, Quicktime and Quicktime standalone many, many times. Obviously, nothing has worked, since I'm posting here that I still have a problem.
    I have also run regclean, updated the Windows Installer, updated my Virus checker (Avast), and installed and run ewido (no malware detected--I keep a clean computer).
    Ideosynchracies and Notables: 2 things are important to note.
    1) The very first time this happened, I tried to uninstall iTunes and reinstall. I went into the "Add and Remove Programs..." dialog in the control panel and hit "Remove" for iTunes. Nothing happened. I rebooted and tried again. Still nothing. Only after mucking around for a while and trying to install over top of the existing iTunes, etc. did I finally get it to uninstall. That was iTunes 5, which came on the CD with my iPod nano. Henceforth, I have been working with iTunes 6, downloaded from Apple's website instead.
    2) Even before I had a problem, iTunes opened successfully. In fact, I have opened iTunes 3 times successfully. Each time I have been able to open it has been after a clean install of the software. That is, I uninstall the previous copies of both iTunes and Quicktime, reboot, install Quicktime standalone, uninstall that, reboot, reinstall iTunes+Quicktime, reboot, and then open iTunes. It works! (Yay.) But then if I close iTunes and try opening it again, my computer crashes right away (described above). This occurrs whether I reboot between the 1st time and 2nd time or not. If I do not uninstall iTunes completely (and Quicktime), then reinstall them fresh each time, I can't open iTunes. Since this process takes about an hour to accomplish, this is clearly not an acceptable way to use iTunes.
    Ultimatum: I will not reinstall windows XP. That is a 40 hour task I am not willing to undertake. In addition to the numerous games I have installed, each of which requires multiple patches to be applied after installing off the CD, I dislike many of the default configurations of Windows and it takes me a while to go though all the settings and change them to my preferences.
    Additional notes:
    - My OS (Win XP) is an upgrade from Win 98. This should not make a difference, as the upgrade was done over a year ago and I've never had any problem. Nevertheless, the tech support on the phone told me that this was probably the problem and that I needed to contact Microsoft to have them solve my iTunes crashing dilemma. (Yeah, right. I told him there was no way he was pinning the blame on MS for this, since it never happened until I bought an iPod and the crash only occurs when I launch iTunes).
    - Before my iPod, I hated Quicktime for the nasty things it did to another computer of mine (basically, when you install it it leaves bits of itself behind that run in the background and report things back to QT. This was years ago and maybe it doesn't anymore, but it left a sour feeling with me, so I avoid QT when I can now--Real, too. Same problem.) So instead of Quicktime, I used to use a program called Quicktime Alternative. It's basically the codecs for QT, but without some of the bloat. I've used QTA for nearly 4 years now, in various versions, and never had a problem with them, but it is conceivable that there could be some bad interaction between the real and alternative versions of QT. However, I removed the QTA from my system, and have installed and uninstalled the real QT many times now, and opening the real QT browser does not cause any problems on my machine.
    My thoughts on the matter:
    - Since iTunes can start up successfully after a fresh install, but then crashes once I close/reopen it, I'm thinking that there's a setting that it's trying to set after the initial installation. It would probably be related to registration or something like that. I'm not sure what iTunes tries to do after the first use, but the problem could be with that. (On first use each time it asks me some personal information and gives a "Welcome to iTunes..." message. It is likely that after that, it tries to store 1 more setting somewhere and that's what's causing the problem.)
    - Since iTunes crashes the whole computer (not just itself), and the crash happens IMMEDIATELY when I click the icon, I'm guessing there could be a conflicting registry that is preventing iTunes from opening, and in fact sending a reboot signal to the OS.
    So, any one have similar experiences, proposed solutions or other helpful advice?
    *here's hoping...*
    self-built PC, 10+ yrs experience w/ Windows, 1st Apple product   Windows XP   iPod nano, iTunes 6, 2G RAM, 2.2 Ghz CPU

    I typed WINVER in the RUN option, and it shows Version 6.1 (Build 7600).  It does not say Service Pack 1.  I check the other computer I share iTunes with and it shows the same version/build.

  • In Oracle, Can i use if exits clause in a query?

    In Oracle, Can i use if exits clause in a query?
    For example, "Drop table if exists tablename"
    Is the above command valid in oracle?
    If not then is there any equivalent for if exists clause?

    Here is the SP code code that might help you to Drop a table if it exisit, whith out throwing an error if the table is not present.
    create or replace PROCEDURE DROP_TABLE(TabName in Varchar2)
    IS
    temp number:=0;
    tes VARCHAR2 (200) := TabName;
    drp_stmt VARCHAR2 (200):=null;
    BEGIN
    select count(*) into temp from user_tables where TABLE_NAME = tes ;
    if temp =1 then
    drp_stmt := 'Drop Table '||tes;
    EXECUTE IMMEDIATE drp_stmt;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    raise_application_error(-20001,'An error was encountered - '||SQLCODE||' -ERROR- '||SQLERRM);
    END DROP_TABLE;
    Call this SP in your Scripts by : CALL DROP_TABLE ('<Table Name>')
    Hope this Helps!
    Regards,
    Kaarthiik

  • Itunes 10.5 crashes immediately when playing a song.

    I've been struggling to get itunes to work after updating for over a week now. I was finally able to connect to the itunes store after using the "netsh winsock reset" command but still can't play music. It crashes immediately when I try to play any song in my music library. I have restarted the computer with only the basic programs running and that didn't help and have uninstalled and reinstalled all Apple programs and updated all audio drivers I can find! Any ideas or help would be appreciated! I'm running Widows Vista on a Dell Inspiron 1545.

    Hi Denis,
    I managed to fix a similar issue on Mac OS X:
    "I am running 10.5.8 on an iMac 27 with a 2.66GHz i5 processor and got the same side-effects after I moved up to iTunes 10.5. Th e problem also continued when I downgraded to 10.4.1 as well, straight afterwards. However, I managed to resolve it fairly quickly in this way:
    Opened the  Activity Monitor, and looked at the processes taking most resources.
    The one that leapt out at the top, if ordered by % CPU, was "ShockWave Flash (Chrome Plug-in Host)".
    So, I closed down Chrome and noted that it was still there. Thus, I sent a force quit to it and waited for it to die. I then re-opened iTunes and the annoying stuttering had gone. I've now got Chrome and this plug-in open and it has not returned. I suspect the issue may frequently be caused by a plug-in like this causing resource contention, but I can't say for sure as I've only seen this once.
    My advice would be to close down, one by one,  as many apps as you can and constantly review activity ordered by CPU in Activity Monitor. If you think you can safely quit the process then do so and retry iTunes. If you're not sure, then gracefully shutdown and look again. Bear in mind, the problem may be launching at startup. Before shutting down, review your Login Items in System Prefs->Accounts->"My Account"->Login Items. Remove anything you can live without. You can always add them back in. If you manage to spot conflicting software then you can look for a patch or upgrade, but at least be aware that it does not play well with iTunes and thus quickly fix your issue."
    May be you can follow a similar process on Windows? I would target your suspicions towards Adobe and Google components :-) !!!
    Hope this helps.

  • Program for the last execution of a program or a TC

    Hello,
    DO you know a program or a TC (Transaction) to edit the date and the hour of the last execution of a program or a TC.
    Thank you for the help
    Denis Corminboeuf

    Hi Denis,
    I attached below parts of a program I created a couple of years ago to get use statistics on (customer) reports and transactions.
    Maybe you can reuse parts of it for your needs.
    Regards
    Ferdi
    <pre>
    internal tables for use counter
    data: begin of list occurs 5.
            include structure sapwlserv.
    data: end of list.
    data: begin of applicat occurs 0.
            include structure sapwlustcx.
    data: end of applicat.
    data: begin of applica_ occurs 0.
            include structure sapwlustcx.
    data: end of applica_.
    data: begin of applicau occurs 0,
            entry_id like sapwlustcx-entry_id,
            account  like sapwlustcx-account,
            count    like sapwlustcx-count,
        : end of applicau.
    data: wa_applicau like applicau.
    *&      Form  MONI
    form moni.
      data: l_host like  sapwlserv-hostshort.
      m_start = p_usedt.
    get server
      call function 'SAPWL_SERVLIST_GET_LIST'
           tables
                list = list.
      do.
        loop at list.
    loop on server
          check not list-instshort is initial.
          l_host = list-instshort.
    get statistics per month and server
          perform workload using m_start l_host.
        endloop.
        add 31 to m_start.
        if m_start > sy-datum.
          exit.
        endif.
      enddo.
      sort applica_ by entry_id.
      sort applicau by entry_id count descending.
    endform.                               " MONI
    *&      Form  WORKLOAD
    form workload using    p_start like sy-datum
                             p_host  like  sapwlserv-hostshort.
      refresh: applica_.
    read application statistic from MONI
      call function 'SAPWL_WORKLOAD_GET_STATISTIC'
           exporting
                periodtype                 = 'M'
                hostid                     = p_host
                startdate                  = p_start
                only_application_statistic = 'X'
           tables
                application_statistic      = applica_
           exceptions
                unknown_periodtype         = 1
                no_data_found              = 2
                others                     = 3.
      sort applica_ by entry_id account.
      loop at applica_  where entry_id(1) ge 'Y'.             "#EC PORTABLE
        clear wa_applicau-entry_id.
        wa_applicau-entry_id(25) = applica_-entry_id.
        wa_applicau-account      = applica_-account.
        wa_applicau-count        = applica_-count.
        collect wa_applicau into applicau.
      endloop.
      sort applicau by entry_id count descending.
      applica_-ttype    = space.
      applica_-account  = space.
      modify applica_ transporting ttype account
             where ttype ne space.
    collect only enhancements statistic
      if p_temp = 'X'.
        loop at applica_.
          applica_-entry_id+25(48) = space.
          collect applica_ into applicat.
        endloop.
      else.
        loop at applica_ where entry_id(1) ge 'Y'.            "#EC PORTABLE
          applica_-entry_id+25(48) = space.
          collect applica_ into applicat.
        endloop.
      endif.
    endform.                               " WORKLOAD
    </pre>

  • Retrieve workflow container data in programming exit

    I am trying to use a programming exit in Workflow in order to amend the task container for the receipients field of a "Send Email" step. The reason why we are not determining the receipients in the usual way is because we hold the receipients (amongst other data) in a separate Z* table - this needs to stay this way.
    I created a class and copied method CHANGE_CONT_ELEMENT to base my altered code on. The method is triggered fine when testing the workflow. Here is what it now looks like:
    method CHANGE_CONT_ELEMENT .
      DATA: container TYPE REF TO if_swf_cnt_container,
            if_swf_cnt_container,
            cont TYPE REF TO IF_SWF_IFS_PARAMETER_CONTAINER,
            name TYPE swfdname,
            lh_wihandle TYPE REF TO if_swf_run_wim_internal,
            l_exception TYPE REF TO cx_swf_cnt_container,
            l_wiid TYPE sww_wiid,
            w_container type ref to IF_SWF_IFS_PARAMETER_CONTAINER,
            w_names type SWFDNAMTAB,
            wa_names type line of SWFDNAMTAB,
            w_value(30).
      w_container = me->m_ctx->GET_WI_CONTAINER( ).
      w_names = w_container->LIST_NAMES( ).
    data: w_name type SWFDNAME.
    w_name = 'TEST-NUMBER'.
    TRY.
      loop at w_names into wa_names.
        CALL METHOD w_container->get
         EXPORTING
          name       = wa_names.
      endloop.
    CATCH CX_SWF_CNT_ELEM_NOT_FOUND .
    CATCH CX_SWF_CNT_ELEM_TYPE_CONFLICT .
    CATCH CX_SWF_CNT_UNIT_TYPE_CONFLICT .
    CATCH CX_SWF_CNT_CONTAINER .
    ENDTRY.
    ENDMETHOD.
    Now w_names retrieves the names of the fields fine (including my "TEST" entry which I declared in the Workflow Builder), but the GET method causes a "CX_SWF_CNT_ELEM_NOT_FOUND" exception.
    Is this the correct way to retrieve data out of a Workflow container within a WF programming exit? What am I doing wrong?
    Kind regards,
    Michael Koch

    Hi Michael, Paolo & Other experts,
    I am trying to understand when, why and how to use a 'programming exit' in a SAP workflow.
    (1) Did you figure out the solution to your problem?
    (2) Is there any material / tutorial on use of a  'programming exit' in a workflow?
    Thanks
    Abaper

  • Program exit to change workitem text

    Hi All,
    I have a requirement to change work item text at runtime, i am using program exit to change the task contrainer variable which is being used to display work item text. i have written a code in program exit to update container element, but it's not reflected to change workitem text, when i check in ln workflow log the variable shows with updated value.
    Please help to solve issue.
    Many thanks,

    Hi Gupta,
    I used below code to update container element.
    CASE im_event_name.
         WHEN swfco_event_after_creation.
            CLEAR l_value.
           CALL METHOD l_wi_cont->get
             EXPORTING
               name  = 'LV_WITEXT'
             IMPORTING
               value = l_value.
             REPLACE '$' INTO l_value WITH lv_id.
           CALL METHOD l_wi_cont->set
             EXPORTING
               name  = 'LV_WITEXT'
               value = l_value.
    With above code LV_WITEXT is updated with new value, but same is not displayed as workitem text in inbox.
    After workitem displayed in inbox if i use FM SWL_REFRESH_WORKITEM_TEXT explicitly to refresh, workitem text getting refreshed.
    Many thanks.

  • How to linked to Oracle Applications from another program

    I'm developing a program that linked automatically to Oracle Applications, but I have a problem when linked jsp page, for example Purchasing Super User -> Notifictaions Summary (http://host.mydomain.com:8000/OA_HTML/RF.jsp?function_id=2781&resp_id=20707&resp_appl_id=201&security_group_id=0&lang_code=US&params=-hGaWj3PvePPMhx7H1yInt93j1IPNk6tfPVTCtNXwLs&oas=gS2ZxQ3Hn1tQi6xAVKtgsw..). This page need some special parameters, params and ocs, that I can't regenerate. My current solution is to use javascript to parse html page. and find the link that match function_id, and resp_id of page that I want to show. To do this I have to solve javascript cross domain problem by adding javascript code like document.domain="mydomain.com" into jsp page of Oracle Applications, but I can't find the location of thehtml page used for main menu and "Home" page.
    Do you have any sugestion ?
    Thank you

    Hi,
    To create Interface with SAP Business Object Repository (BOR) Oracle provides Adapter for SAP.
    Please get more info on this
    http://www.oracle.com/technology/products/integration/adapters/pdf/DS_OracleASAdapter_SAP.pdf
    Example of using the Oracle AS Adapter for SAP - http://www.oracle.com/technology/products/integration/adapters/pdf/adapter-Tutorial3-InvokingSAPBAPI.pdf
    regards,

Maybe you are looking for