How to trigger an Action

Hello,
I need help to find out how to trigger an Action (Action Definition) from an ABAP program. The program should trigger the Action used to create a follow-up transaction from an existing Contract.
Thanks in advance,
Jonas

Hi! Every one
I am using codes mentioned in this tread but getting one exception at the time when SAP is trying to save the changes for the change process action data. I am able to run the change process action programmatically ( successfully ) and when i enter some data for the change process action and press the execute button, I am getting one exception. I have attached the exception in this text. Can any one please give any clue why this exception is coming and what else I need to do?
Thanks
Yogesh
Runtime Errors         UNCAUGHT_EXCEPTION
Except.                CX_OS_OBJECT_NOT_FOUND
Date and Time          13.03.2007 16:14:30
Short dump has not been completely stored (too big)
     Short text
          An exception occurred that was not caught.
     What happened?
          The exception 'CX_OS_OBJECT_NOT_FOUND' was raised, but it was not caught
           anywhere along
          the call hierarchy.
          Since exceptions represent error situations and this error was not
          adequately responded to, the running ABAP program
           'CL_METHODCALL_PPF=============CP' has to be
          terminated.
     Error analysis
          An exception occurred that is explained in detail below.
          The exception, which is assigned to class 'CX_OS_OBJECT_NOT_FOUND', was not
           caught in
          procedure "IF_MEDIUM_PPF~EXECUTE" "(METHOD)", nor was it propagated by a
           RAISING clause.
          Since the caller of the procedure could not have anticipated that the
          exception would occur, the current program is terminated.
          The reason for the exception is:
          Could not find the referenced object with the OID
          "00000000000000000000000000000000" (instance GUID) and
          "BECA3BF12720D411AB61009027C3C00A" (class GUID)
     Missing RAISING Clause in Interface
         Program     CL_METHODCALL_PPF=============CP
         Include     CL_METHODCALL_PPF=============CM009
         Row     1
         Module type     (METHOD)
         Module Name     IF_MEDIUM_PPF~EXECUTE
     Trigger Location of Exception
         Program     CL_METHODCALL_PPF=============CP
         Include     CL_METHODCALL_PPF=============CM001
         Row     32
         Module type     (METHOD)
         Module Name     IF_OS_STATE~HANDLE_EXCEPTION
     Source Code Extract
     Line     SourceCde
         2     ***BUILD 020501
         3          " importing I_EXCEPTION type ref to IF_OS_EXCEPTION_INFO optional
         4          " importing I_EX_OS type ref to CX_OS_OBJECT_NOT_FOUND optional
         5     ************************************************************************
         6     * Purpose        : Handles exceptions during attribute access.
         7     *
         8     * Version        : 2.0
         9     *
        10     * Precondition   : -
        11     *
        12     * Postcondition  : -
        13     *
        14     * OO Exceptions  : CX_OS_OBJECT_NOT_FOUND
        15     *
        16     * Implementation : If an exception is raised during attribut access,
        17     *                  this method is called and the exception is passed
        18     *                  as a paramater. The default is to raise the exception
        19     *                  again, so that the caller can handle the exception.
        20     *                  But it is also possible to handle the exception
        21     *                  here in the callee.
        22     *
        23     ************************************************************************
        24     * Changelog:
        25     * - 2000-03-07   : (BGR) Initial Version 2.0
        26     * - 2000-08-02   : (SB)  OO Exceptions
        27     ************************************************************************
        28     * Modify if you like
        29     ************************************************************************
        30     
        31       if i_ex_os is not initial.
     >>>>>         raise exception i_ex_os.
        33       endif.
        34     
        35     endmethod.

Similar Messages

  • How to trigger so action when ServerletOuput stream writes all data as byte

    Hi ,
    I have a servlet which accepts the index , size of a .3gp file in bytes as input parameters.
    If index=0 ...i am reading whole file into buffered input streame and writing to client as Servlet output steam as bytes.
    If index !=0 , or index=100 ...say suppose
    im ommiting first 100 bytes and rading101 byte to till the end of file in to buffered input streame and writing to client as Servlet output steam as bytes.
    Here i would like to trigger some action when the servlet writes entire bytes to the client .
    But im not able to notify exactly when the connection can close between client and server.
    Can any one help me to overcome this.
    Thanks in advance.

    Hi ,
    Thanks for reply..
    But reallu i couldnt get you.
    please go though the code snippet i have...and suggest me.
    try{
    File fFile = new File (fileName);
    BufferedInputStream bif = new BufferedInputStream(new FileInputStream(fFile));
         bif.skip(Integer.parseInt(((DownloadFileForm)o).getIndex()));
    int byteSize = (bif.available() < Integer.parseInt(((DownloadFileForm)o).getSize())) ? bif.available() : Integer.parseInt(((DownloadFileForm)o).getSize());
    byte[] b = new byte[byteSize];
    bif.read(b, 0, byteSize);
    sosStream = response.getOutputStream();
    sosStream.write(b);
    // here i have to do something
    sosStream.close();
    logger.info("file has been downloaded from Server is sending out to client");
    }catch(Exception e)
    // e.printStackTrace();
    logger.info("Exception :"+e.toString());
    regards,

  • How to trigger two Actions at a time in a break function(Boolean)

    Hi All
    I am using three sequential Blocks.First Block is to enter the data and send to second Block. When second sequential Block accepts it should sent to third Block. If Second Block rejects the form then I want to stop (Terminate) the process and I want to send the notification.
    I am using Pre-conditional block and checking check box in the second block to accept or reject the initial form. If I use Boolean function it automatically declare two functions one is Continue and another is Break. If I select break then I am not able to send any notification or any callable object as this break function will break the process at instant and it won’t allow any further actions.
    Thanks & Regards,
    Syed Nawaz.S

    I think you just need to use 2 sequential blocks. Seq Block 1 will contain your data input form. Seq Block 2 will contain 5 actions - 1st action is a Decision Dialog (that will have Continue and Break), 2nd Action is whatever needs to be done on Continue, 3rd Action is Terminate, 4th Action is Send Notification and 5th Action is Terminate. Set the target for Continue to Action #2 and target for Break is Action #4. Once 2 is executed it will execute Action #3 and the process will terminate. If the Break situation is executed, a notification will be sent and the process will terminate.
    Thanx,
    Mahesh

  • How to trigger dynamic action

    hi all,
    i am using HR_INFOTYPE_OPERATION to update or insert data in infotype 0000. it has been updated but i am also want to insert data in P0001 for same employee number(pernr) and same data. i want to do this with dynamic action. is it possible?????
    thanks
    Sachin

    Hi Ajay,
    When you use BDC or FM to update infotype, you can not call dynamic action as it wont be supported by SAP.
    So if you wnat to meet your requirement you have to create one RFC FM inside which you can call from the user exit or after your code had executed the FM operation and got the success message you can call the same FM for updating other infotypes.
    The best approach can be to create BDC sessions for updating each infotype after you have done with update of IT0000.
    Hope this will help you in resolving your queries.
    Regards,
    guds

  • How to trigger an action after a FLV has finished playing

    I have a FLV file that I am pulling into my SWF and I want to
    go to the next scene in the SWF once the video clip is finished
    playing... Because it's externally loaded I haven't been able to
    figure out how to do this. I tried just importing the FLV to the
    stage and putting it in the timeline, but that makes the SWF huge
    and the video playback is much slower for some reason.
    Does anyone know how to do this?

    Read in the duration metadata from the FLV so you know how
    long the video clip is, then just check to see if the movie's
    current time is >= to the total time. Don't use the prebult
    media player components, write your own player. Check out
    www.gotoandlearn.com for some great easy tutorials on this.

  • How to trigger action dynamically in Web Dynpro ABAP?

    Hi,
    I need to trigger an action dynamically. How do I do that?
    Eg. I have Search Tab where I input Purchase Order Number and press Find button to get the PO details.
    Now I have an Overview Tab where I have listed all the Purchase Orders, after selecting a purchase order I click the Transfer button on the Overview Tab, on clicking on transfer button I navigate to the Search Tab and the PO number selected in Overview Tab is binded and appears in the Search Tab.
    In the same flow I also want to trigger the action without clicking on Find button of Search Tab so that I get the search results.
    Please let me know how to go about doing this.
    Thanks
    Samekshaa

    fire plugs in Search Tab as it has multiple UI view containers which displays different views in the Search tab.
    can you elaborate on that ...  a clear explaination of what u intend to do will be of great help.
    Outbound Plugs can have Parameters. so you can still decide what plug to fire , further when in the details view.
    i dont think there is option of raising ONACTION automatically because framework create an EVENT object for each action, at the most you can transfer this EVENT as Parameter to other methods.
    Greetings
    Prashant

  • Is there a way to trigger an action on or after a specific date?

    Hi,
    I wanted to set up AS3 to trigger an action on or after specific dates (quarterly, 1/1, 4/1, 7/1, 10/1). Is this possible?
    I can script getting today's date, but I am not sure how to script: if today's date is  greater than or equal to (>=) one of these quarterly dates (greater than is essential since the video may not run on the specified date, so greater than is needed). Year is not needed, since the goal is quarterly action. But, would need to start over each new year, so quarterly action continues each year. Can't seem to get my brain around how to construct this and how to script it.
    Any help appreciated.

    if you can accept the user's date, you can compare the user's date's time property with your date's time property:
    var triggerDate=new Date(2013,0,1);
    var userDate=new Date();
    if(userDate.time>triggerDate.time){
    //do whatever

  • How to trigger an E-mail after saving a Case

    Dear all,
    We need to trigger an action to send an E-mail after creation and saving a Case in EP.
    Please help me how could we configure this in the system.
    Your suggestions will be highly appreciated.
    Best wishes
    Raghu ram

    Hi Raghu,
    By using he action profile you can trigger the email once you save the transaction.
    We have processing types in action profile,
    1.Immediate
    2.Recurring
    3.After saving
    In ur case you can after saving the document.
    and assign the action profile to the transcation type.
    Regards
    Chandramohan

  • How to trigger a process task on IT Resource process form

    Hi,
    I want to know how to trigger a process task on IT resource process form using OIM API.For Example:- If a task ilike an e-mail is to be sent on the departure date of a user.So,how can it be done using API?
    Thanks.

    This would typically be done through a scheduled task. Write your code to query for the departure date. If someone meets your criteria for an action to occur, you can either use the addProcessTaskInstance which has an adapter attached to it to send the email, or in your code, send the email.
    The details that need to be considered though is where the departure date is stored. Is it on a process form, or is it on the user's OIM profile. Do you want to disable the user or revoke the object instance at this departure date? You could use the notification tab of these existing tasks if so.
    -Kevin

  • How to trigger the automated row fetch process and open modal window by javascript api?

    Hi,
    I would like to click the one row of column of IR report, to open the modal window of current page.  <----------------it is ok. I can use "javascript:openModal('windowID')"  to do it.
    There is one form in this modal window, Meanwhile, I would like to pass column data to this form.    <--------------------- it is ok also. I can use " $s('P7_ID','column_value');" to do it.
    But I don't know how to trigger the "automated row fetch" process of this form to retrieve other field's value in this form.   
    I tried to use following 2 ways. But failed.
    First method:
    add one ajax process of "automated row fetch" in "page processing" block, named "get_fetch_data"
    when click IR column , call "openModal", and call  "apex.server.process ( "get_fetch_data", {}, { success: function( pData ) { }  } );"  , I tried to call above ajax process to refresh form. It is failed.
    Second method:
    add one process of  "automated row fetch" in "page rendering" block, named "get_fetch_data"
    when click IR column, call javascript api "apex.submit" to submit current page , then call "openModal".
    such as :  javascript:apex.submit({request:'MODIFY',set:{'P7_ID': #ID#}}); openModal('trade');
    But it is failed also. the modal page is showed firstly. then page refresh. but modal window will not open again.
    I am not sure if my thinking is right. Could you please provide any suggestion?
    Thanks in advance,
    Ping

    Hi Ping,
    You can try to set the session state of your modal page's primary key before opening the modal page. Use one dynamic action (on click of IR row) with two true actions. First one to set session state of modal page pk, second on to open modal page.
    Or you can add the modal page url as link in your report by extending your query:
    select ...
    ,         apex_util.prepare_url( 'f?p='||:APP_ID||':7:'||:APP_SESSION||'::'||:DEBUG||':7:P7_ID'||COLUMN_VALUE ) as link
    from ...
    This will give you the url of the modal page, with set primary key.
    Regards,
    Vincent Deelen
    http://vincentdeelen.blogspot.com

  • How to trigger email notification when users fail to reset your password in fim 2010 r2.

    Hi,
    how to trigger email notification when users fail to reset  your password in fim 2010 r2
    Regards
    Anil Kumar

    Hi Sylvain,
    I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
    check Advance View of Set this gives
    <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
    xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
    But this is not working for me so please tell me where i am wrong.
    Regards
    Anil Kumar

  • How to trigger email notification when users fail to give correct answers to reset your password in fim 2010 r2

    Hi,
    How to trigger email notification when users fail to give correct answers to reset your password in fim 2010 r2
    Senario:I want put wrong answering to the Questions that i was during registration if i give wrong answers to the questions then a Email Notification should be trigger to Users.
    Regards
    Anil Kumar

    Hi Sylvain,
    I did all thing as you told me.First i created Criteria based Set after this we created a Workflow type Action and Actvities Type Notifcation Email template and finally i called this Workflow in MPR as Set Transition and call Set that i was created below.and
    check Advance View of Set this gives
    <Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Dialect="http://schemas.microsoft.com/2006/11/XPathFilterDialect"
    xmlns="/Request[(Creator">http://schemas.xmlsoap.org/ws/2004/09/enumeration">/Request[(Creator = 'b0b36673-d43b-4cfa-a7a2-aff14fd90522') and (RequestStatus = 'Denied or PostProcessingError')]</Filter>
    But this is not working for me so please tell me where i am wrong.
    Regards
    Anil Kumar

  • How to trigger onerror of f:ajax inside a h:commandButton?

    hi, how to trigger onerror of f:ajax inside a h:commandButton from it's action method?
    <h:form>
       <h:inputText id="i1" value="#{bean.i1}"/>
       <h:commandButton id="go" action="#{bean.process}" value="go">
          <f:ajax render="o1" onerror="myfunction();"/>
       </h:commandButton>
       <h:outputText id="o1" value="#{bean.o1}"/>
    </h:form>then in the bean
        public String process() {
            if(isOK()) {
                calculate();
                return null;
            } else {
                //here I want to send an ajax error, to trigger the onerror function in the client
       }I don't know what I must do inside the action method to signalize an ajax error. Do I have to throw a specific Exception or any run time exception, or another approach?

    797701 wrote:
    Basic idea of commandbutton is to send form data to server, basic idea of ajax is to update part of page. Hopefully your example is very generic or just a test, otherwise using ajax in your example makes no sense.No. AJAX - Asynchonous Javascript and XML. Key word: asynchronous.
    The basic idea behind Ajax is to make a request to the server asynchronous. Its purpose, even in JSF, is not to update part of a page, that may be a result of doing the request asynchronous. It is perfectly valid to want to do an ajax call from a button, it depends on what requirements you have and nothing else.

  • BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?

    Hi All.
    I have this request.
    BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
    We have jobs scheduled on BODS running smoothly and absolutely fine.
    But to check, i am logging into the admin console and check for the jobs status.
    I would like to have an email to be received from BODS after each job is finished.
    It could succuessful. Or it could fail.
    Whatsoever, i wish to receive an email alert as soon as a job is finished.
    Can anyone advise me as to whether this could be made possible.
    And if yes, how this could be done.
    Thanks for your help in advance.
    In BOE CMC / for webi / schedule / we find an option to send email for a job success or a job failure.
    Is there any option similar to that in BODS ?
    Also would like to know :
    how to use the smtp_to or mail_to functions ?
    how to set up the smtp server for this ?
    thanks
    REgards
    indu
    Edited by: Indumathy Narayanan on May 31, 2011 3:47 PM

    Hi.
    Since am new to this BODS. I need some help.
    I already have many jobs which are running absolutely fine.
    And when a job runs, and finishes, am able to see the trace saying
    e.g. :
    Job_abc is completed successfully.
    We got the smtp service activated for our test server.
    and we hae a group email id.
    I have put the details of the smtp server / ip address / and said apply restarted.
    The i created a simple test script as below :
    print (' Before email ' );
    smtp_to('abc@company_name.com', 'Job ' || job_name() ||' on ' || host_name() || ' has FAILED',
    ' the job has failed', 0, 0);
    print('After Email ');
    It does send a email to as per smtp_to whatever email is specified.
    But how to differentiate between a job success
    And a job which has failed.
    I wish to have a mail which says on the subject :
    'Job ' || job_name() ||' on ' || host_name() || ' has completed successfully'
    ==> IF it is a success
    OR
    'Job ' || job_name() ||' on ' || host_name() || ' has failed'
    ==> if it has failed
    How to make the system identify, whether
    to send a success message or a error message whatever
    Could anyone advise.
    thanks
    indu

  • How to trigger New page while using ALV with classes/oops?

    Hi All
    I am trying to print a report which has to show the data in two pages.
    I am using ALV with classes/oops.
    Though I am able to print the report but a new page is not coming. Whole of the data is coming in one single page.
    Please tell me as to how to trigger a NEW PAGE while using ALV with classes/oops.
    Please send some code samples also if available.
    Thanks in advance.
    Jerry

    using sort option you can do it. in case of grid/oo alv class ALV you can view that only in print mode/preview mode.
    in case of list you can view that directly.
    sort-fieldname = 'FIELDNAME'.
    sort-group = '*'  "triggers new page
    sort-up = 'X'.
    append sort to it_sort.

Maybe you are looking for

  • Is it possible to have a Lion OS and snow Leopard using the bootcamp?

    I bought a macbook pro 13" 2011. I have other programs that will run only in Snow Leopard OS just like Logic Pro 8. Is it possible to install snow leopard aside from my current Lion OS? How to install? Is it possible to use both OS in my mac? I need

  • TS3989 how to copy photos on camera roll to photo stream?

    I am trying to copy some photos that only appear in my camera roll and not in photo stream how do I do this?

  • File ownership changes on deploy changes

    In my web server 7.0 environment everything installed with owner:group of webservd:webservd. This is fine. I am using Cgistub and executing all cgi scripts by a different system user. I need to do this to execute ssh, because I don't want to give web

  • Error while launching Webdynpro Console

    Hello Gurus, I am trying to launch webdynpro console from the url http://<HOST>:50000/webdynpro/welcome/Welcome.jsp and its giving me error    Internal Server Error   SAP J2EE Engine/7.00    Application error occurred during request processing.   Det

  • Wondering if there is a dial up modem for wireless laptop?

    Hi I have a wireless laptop, bought a dial up modem  it only lasted a week. went to Walmart.com bought another one it get really hot fast, so wonderign which way to go on getting another one?