Event to be triggered after the completion of ProcessChain

Hi,
I have a scenario in Process chain. After successful completion of the proces chain,i shall trigger an event for other system (XI).
Please help me in this regard, how to handle the event.
Thanks,
ILYAS

Hi,
On the successful completion of the last step, have another ABAP program that would raise an event using the following function module.
  call function 'BP_EVENT_RAISE'
       exporting
            eventid                = i_eventid
            eventparm              = i_eventparm
        TARGET_INSTANCE        = ' '
       exceptions
            bad_eventid            = 1
            eventid_does_not_exist = 2
            eventid_missing        = 3
            raise_failed           = 4
            others                 = 5.
Hope this helps.
Regards,
Kalyan

Similar Messages

  • Triggering a report after the completion of processing the session

    Hi Friends,
    I want to know how to trigger an report after the completion of processing the session.
    Thanks,
    Raj

    Hi
            SELECTION-SCREEN                               *
    PARAMETERS: p_name     LIKE apqi-groupid,
                p_datum    LIKE apqi-credate,
                p_time     LIKE apqi-cretime,
                p_event    LIKE tbtco-eventid.
                 DATA                                     *
    DATA: fl_job_ok TYPE c,
          fl_event TYPE c,
          cont_sysubrc_6 TYPE i.
    DATA: start_time LIKE sy-uzeit,
          start_date LIKE sy-datum,
          time       LIKE sy-uzeit,
          delta_time TYPE i.
    DATA: apqitab LIKE STANDARD TABLE OF apqi WITH HEADER LINE.
    DATA:
      btc_running       LIKE tbtco-status VALUE 'R',
      btc_ready         LIKE tbtco-status VALUE 'Y',
      btc_scheduled     LIKE tbtco-status VALUE 'P',
      btc_released      LIKE tbtco-status VALUE 'S',
      btc_aborted       LIKE tbtco-status VALUE 'A',
      btc_finished      LIKE tbtco-status VALUE 'F',
      btc_put_active    LIKE tbtco-status VALUE 'Z',
      btc_unknown_state LIKE tbtco-status VALUE 'X'.
                         START-OF-SELECTION                              *
    START-OF-SELECTION.
      DATA: a VALUE '1', b.
    Controllo esistenza job:
      start_time = sy-uzeit.
      start_date = sy-datum.
      DO.
        apqitab-creator = sy-uname.
        CALL FUNCTION 'BDC_OBJECT_SELECT'
          EXPORTING
            name                   =  p_name
            datatype               = 'BDC'
        CLIENT                 = SY-MANDT
            date_from              = p_datum
        DATE_TO                =
            time_from              = p_time
        TIME_TO                =
           QSTATE                 = 'F'
            session_creator        = apqitab-creator
          TABLES
            apqitab                = apqitab
          EXCEPTIONS
            invalid_datatype       = 1
            OTHERS                 = 2.
        IF sy-subrc <> 0.
          fl_job_ok = space.
        ELSE.
          LOOP AT apqitab.
            CASE apqitab-qstate.
              WHEN 'F'.          fl_job_ok = 'X'. EXIT.
              WHEN 'E'.          fl_job_ok = 'E'. EXIT.
              WHEN OTHERS.       fl_job_ok = space.
            ENDCASE.
          ENDLOOP.
          IF fl_job_ok = 'X' OR fl_job_ok = 'E'.
            EXIT.
          ENDIF.
        ENDIF.
        IF start_date <> sy-datum.
          start_time = sy-uzeit.
        ENDIF.
        time = sy-uzeit.
        delta_time = time - start_time.
        IF delta_time > 1800.
          EXIT.
        ENDIF.
        REFRESH apqitab.
      ENDDO.
      IF fl_job_ok = 'X'. " Trovato JOB
        fl_event = 'X'.
        IF fl_event = 'X'.
    Attiva evento
          CALL FUNCTION 'BP_EVENT_RAISE'
            EXPORTING
              eventid                = p_event
            EXCEPTIONS
              bad_eventid            = 1
              eventid_does_not_exist = 2
              eventid_missing        = 3
              raise_failed           = 4
              OTHERS                 = 5.
          IF sy-subrc <> 0.
            MESSAGE e999(zfagm) WITH p_event 'is not actived'(002).
          ELSE.
            MESSAGE i999(zfagm) WITH p_event 'is successfully actived'(002).
          ENDIF.
        ELSE.
          MESSAGE e999(zfagm) WITH p_event 'is not actived'(002).
        ENDIF.
      ELSE.
        IF fl_job_ok = space.
          MESSAGE e999(zfagm) WITH p_event 'is successfully actived'(002).
        ELSE.
          MESSAGE e999(zfagm) WITH p_event 'is successfully actived'(002).
        ENDIF.
      ENDIF.
    Max

  • Close Notification is triggering at the completion of each path

    In my company we are using BRF+ flat rule for routing rule in process id: SAP GRAC Access Request.  The problem is when each path is completed the end user receives close notification and we want user to receive close notification only at the end of request. For example:  request splits into two paths, (1) training verification, (2) 2nd level role approval – when training verification is completed user receives close notification and also he receives after the completion of 2nd level role approval path.
    Highly appreciate your response in this regard.

    Colleen,
    FYI!
    close notification text "
    The following access has been processed from access request %REQNO% that was submitted on your behalf:
    %PROVISIONING_WITHOUT_PASSWORD%
    Please note that some of your access may still be pending approval. You can check the status of your request by logging into SAP ARM"
    I don't see this template ID GRAC_AR_CLOSE linked to any recipient ID in any stage notification settings and looking at the above text message the person who build this workflow knows that this notification triggers at each path.
    Let me know, if I am missing anything.
    Regards,
    Mohammed

  • SM36 job --- next  job should start after the completion of before job

    Hi All,
    I have a job which is running hourly . My requirement next  job should start after the completion of before job .
    forexample :
    It will run evenry hour like ,---  8 am,9 am,10 ,11 etc..
    My requirement
    9am job should  start after completion of 8 am job ...  Can you please let me know ... How can i achieve this thru SM36.
    Thanks,
    Tashvi

    Hi Tashvi,
    Start Criteria :
    From the initial define background job screen, click on the u2018Start dateu2019 pushbutton to indicate the start criteria for the background job. The options available for scheduling jobs are:
    Immediate - allows you to start a job immediately.
    Date/Time - allows you to start a job at a specific date/time.
    After Job - allows you to start a job provided that another job has completed.
    After Event - allows you to specify the event when you want your job to run.
    At Operation Mode - allows you to start a job when the system switches to a particular operation mode.
    Scheduling Job after another Job :
    The u2018After Jobu2019 pushbutton allows you to start a job provided that another job has been completed. With this option, you must specify the name of the job that must be completed for the current job to run. If the u201CStart status-dependentu201D option is checked, the current job will only run if the specified job ends successfully. This option is useful in cases where the current job depends on the outcome of the specified job.
    Hope this Helps.
    Regards,
    Chandravadan

  • TS1372 I was just about to about to update my iPod nano 7 from 1.0.2 to 1.0.3 . And after the complete download of the software,it says "The firmware file could not be found"   A little help anyone!!!

    I was just about to about to update my iPod nano 7 from 1.0.2 to 1.0.3 . And after the complete download of the software,it says "The firmware file could not be found"   A little help anyone!!!

    Welcome to Apple Discussions!
    Take a look at these two articles. The error messages are not the same, but they may help...
    http://docs.info.apple.com/article.html?artnum=304309
    http://docs.info.apple.com/article.html?artnum=301267
    If not, post back.
    btabz

  • To trigger the same Gp process once again after the completion of one

    Hi
    I have aGP process implemented in Webdynpro.
    After the completion of this process, itshould automatically trigger the same GP process once again.
    It should happen from the webdynpro coding.
    Can anybody help me.
    thnaks
    Smitha

    Hi Siva,
    Thanks for the reply.
    But How can I give process name ?
    There can be more than 1 process with the same name.
    Procees ID is the unique one what we can use.
    Still that too we can't use as method.
    we can give it as a parameter.
    what I tried is,
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    IUser user1 = wdUser.getSAPUser();
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user1);
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("EB0B28E08B6011DBB1BE00145EB416E0",userContext);
    EB0B28E08B6011DBB1BE00145EB416E0 is the process ID.
    This code I have tried by  giving before and after the completion of the previous  process(process9executionContext.processingComplete();)
    And I tried URL navigation also, by creating an outbound plug in the interfaceview. in the outbound plug I have called the process instantiation URL. But it is giving the error: "can not navigte :non-existent outbound plug"
    Please help me out.
    Thanks
    smitha

  • EP developer work after the completion ep installtion with the basis person

    Hi,
        After the completion of basis person work in EP, what r all the responsibilities of the ep developer.
    please tell the procedure how they will do the work.
    If u ve any documents with screen shots please forward to me.
    Thank u.
    Regards,
    Kakshayini.

    Hi,
    Refer this thread...
    EP materials
    Best Practices in EP
    Regards,
    Senthil K.

  • Error when starting the JC00 after the completion of the WEB AS 640 instal.

    Hi,
    After successful completion of the Web As 640 Installation on HP-UX, I am not able to start the JC00 and getting the following error.
    sapweb:ep1adm 36> startsap
    Checking db Database
    ABAP Database is not available via R3trans
    Checking db Database
    J2EE Database is not available via  test
    See logfile JdbcCon.log
    Starting SAP-Collector Daemon
    12:19:32 09.08.2005   LOG: Effective User Id is root
    This is Saposcol Version COLL 20.87 640 - hpxOscol 07/2003
    Usage:  saposcol -l: Start OS Collector
            saposcol -k: Stop  OS Collector
            saposcol -d: OS Collector Dialog Mode
            saposcol -s: OS Collector Status
    The OS Collector (PID 1087) is already running .....
    saposcol already running
    Running /usr/sap/EP1/SYS/exe/run/startj2eedb
    Trying to start EP1 database ...
    Log file: /home/ep1adm/startdb.log
    /usr/sap/EP1/SYS/exe/run/startj2eedb completed successfully
    Starting SAP Instance SCS01
    Startup-Log is written to /home/ep1adm/startsap_SCS01.log
    Instance on host sapweb started
    Starting SAP Instance JC00
    Startup-Log is written to /home/ep1adm/startsap_JC00.log
    Startup of Instance failed
    See /home/ep1adm/startsap_JC00.log for details
    startsap_JC00.log is
    Trace of system startup/check of SAP System EP1 on Tue Aug  9 13:30:24 EDT 2005
    Called command: /usr/sap/EP1/SYS/exe/run/startsap
    Starting SAP Instance JC00
    SAP-R/3-Startup Program Rel 640 V1.8 (2003/04/24)
    Starting at 2005/08/09 13:30:25
    Startup Profile: "/usr/sap/EP1/SYS/profile/START_JC00_sapweb"
    (4439) SETENV LD_LIBRARY_PATH=/usr/sap/EP1/JC00/j2ee/os_libs:
    Setup Environment Variables
    (4439) SETENV SHLIB_PATH=/usr/sap/EP1/JC00/j2ee/os_libs:/usr/sap/EP1/SYS/exe/run:/usr/sap/EP1/SYS/exe/runU:/usr/sap/EP1/JC00/j2ee/os_libs:/oracle/EP1/920_64/lib:/oracle/EP1/920_64/lib32:/oracle/EP1/920_64/lib:/oracle/EP1/920_64/lib32
    (4439) SETENV LIBPATH=/usr/sap/EP1/JC00/j2ee/os_libs:
    Execute Pre-Startup Commands
    (4439) Local: rm -f jc.sapEP1_JC00
    (4439) Local: ln -s -f /usr/sap/EP1/JC00/j2ee/os_libs/jcontrol jc.sapEP1_JC00
    Starting Programs
    (4446) Starting: local jc.sapEP1_JC00 pf=/usr/sap/EP1/SYS/profile/EP1_JC00_sapweb
    (4439) Waiting for Child Processes to terminate.
    (4439) **** 2005/08/09 13:30:31 Child 4446 terminated with Status 66 . ****
    (4439) **** No more Child Processes to wait for.
    (4439) Parent Shutdown at 2005/08/09 13:30:31
    Execute Post-Shutdown Commands
    (4439) Exiting with Return-Code 3. (No more child processes)
    Startup of Instance failed
    I was able to start and stop the SAP before i took the backup but after the backup i am not able to start the SAP.
    Thanks,
    Sandeep

    J2EE Database is not available via  test
    See logfile JdbcCon.log
    Please see the log file.If it says password expired .Please change the password for the schema user of J2ee database.In my case the user is sapdbqx1 and after resetiing the apssword it worked fine.
    Also onetime for annother system in XI Landscpe I had same issue.
    Solution: The listener file should have both logical hostname as well as physical host name entry.Then its worked.
    Sudhakar

  • HT3805 I selected 179 photos to be have printed 4 x 6.  The program indicated that they were being processed.  After the completion of that process I get the message that I cannot get a connection.  What gives?  I can connect to the internet for other pro

    I selected 179 photos to be printed 4 x 6.  The program indicated that they were being processed.  At the completion of the processing, I get the message "I can not get a connection".  I am able to connect to the internet for other programs, but not aperture.  What gives???

    Hello thexchicop,
    Thanks for using Apple Support Communities.
    I'm sorry to hear about the difficulties you're experiencing when trying to place your prints in Aperture.  I'd like you to do the steps in this article to help resolve the issue:
    Aperture 3: Book ordering panel turns white when submitting an order
    http://support.apple.com/kb/TS3464
    Take care,
    Alex H.

  • Trex developer work after the completion of basis work

    Hi,
       After trex installation, i mean completion of basis person work.
      what r the responsibilites of trex developer.
      how to to that work
    regards,
    kakshayini

    After Trex Installation u need to Register Trex with portal
    Registering TREX Hosts with the Portal:
    To register TREX hosts with the Portal, you have to first locate the name server and port of the TREX Installation. This is located in sapmsg.ini. You have to then set up the TREX name server in the J2EE Engine with the Visual Administrator.
    Procedure
    To locate the name server and port
    Log on to the server with Administrator privileges.
    Navigate to the installation folder of TREX (that is C:\usr\sap\trex_00).
    Double-click sapprofile.ini to open the file in Notepad.
    Make a note of the port number. The default is 30001. You will need to enter this port number to the J2EE Visual Administrator in a later step.
    Trex/Nameserver/Port=30001    
    To set up the TREX name server in the J2EE Engine
    Open Windows Explorer in the server.
    Navigate to J2EE Admin installation directory (that is C:\usr\sap[SID]\JC##\j2ee\admin).
    Double-click go.bat to start the J2EE Visual Administrator.
    Log on to the Visual Administrator.
    Choose Global Configuration u00E0 Services u00E0 TREX Service.
    Select the nameserver.address properties field.
    Enter the server name of the TREX instance and the port number.
    Choose Update.
    Choose Save
    Select yes to restart the TREX Service.
    To exit the J2EE Visual Administrator, choose Close u00E0 Exit.
    Check the connection to the Enterprise Portal
    Log on to the Enterprise Portal with super-administrator permissions.
         Choose System Administration u00E0 Monitoring u00E0 Knowledge Management u00E0 TREX Monitor u00E0 Server Status.
         You should see the status of the HTTP Server, Name Server, Queue Server, and Index Server is Available.

  • Service Allowance after the completion of ine year

    Hi Gurus
    I have a scenario. If the employee completes one year in the company, then i want to give some allowance. How can i do this. Is there any standard functionality or do i need to write a PCR. If its thru PCR, how can i get the start date of the employee.
    Hope i am clear. Pl suggest.
    Thanks & Regards
    Bharathi

    hi
    please refer to my  post
    Get number of years of service completed
    hope it helps
    Regards
    sameer

  • What do you do after the complete wipeout?

    My jailbroken iphone 3gs was recently system restored and now it's stuck on the emergency call screen. I dont have a at&t account but i do have a tmobile account. I'm such a noob at this so what do I do next cause I don't wanna accidently crash it again?

    Your phone has be re-locked to AT&T. One of the downsides to hacking an iPhone is that updating software or restoring the phone will re-lock it to the carrier it was originally locked to. You'll have to get an AT&T sim to activate the phone, otherwise you'll only be able to make emergency calls to 911.

  • Is there a way to auto check a check box triggered off the completion of a specific text box?

    I am using Conga Composer. I'm hoping when information is filled into a specific text box in a pdf, it will auto check a specific checkbox.  Any script ideas? Or if this is even possible? I've seen scenarios for the reverse, but my situation requires this particular flow.

    I highly doubt this process is going to trigger any of these scripts, if that's what you're planning...
    What you can do add a doc-level script that will execute when the file is opened and set the check-box based on the text field's value, in addition to the custom keystroke code. That would look something like this:
    this.getField("CheckBox").checkThisBox(0, this.getField("TextBox").value!="");

  • Event is not getting triggered in the process chain

    Hi,
    We had a process chain which was triggered by an Event, and it was running fine until few days ago. So I removed the chain from schedule and re-scheduled it again with these details:
    File load: every 2 hrs
    Process chain setting
    Immediate tab: start immediately
    After event: "event name" and "parameter name" and periodic job: ticked
    I activated the chain and scheduled it. But the event is not triggered and the chain does not start. I even tried to trigger the process chain manually in sm64 but the process chain did not start.
    Can someone please tell me steps to automate the event triggering and also any setting that should be taken care off in the info package and the process chain.
    Thanks In advance.
    Ram

    Hello Ram, to start your Process Chain by an event, then you need to maintain the Start process of the process chain. 
    Select "Direct Scheduling".
    In the <b>Change Selections</b>, press <b>After Event</b>.  Put your event name and parameter (if any).  Also click on <b>Periodic job</b>.
    Press Save.  Then Activate and Schedule your process chain.  All your processes should turn green.
    To verify, right-click on the Start process and select <b><u>D</u>isplaying Scheduled Job(s)...</b>.  You should see a job called BI_PROCESS_TRIGGER in a <i>Released</i> status.  You can click on the job and look at the start conditions.
    When you go to trigger the event, use the same event name and parameter (if any) as in the start condition.  Your process chain will then execute.  To insure, use RSPC to view your process chain and press the <b>Logs</b> icon (last one at the top).
    Does this help?

  • Which event is triggered after a column in a gridstyle treeview datawindow has been moved or resized

    Hi all,
    I'm using a gridstyle treeview datawindow with 2 levels.
    What I want to do now is when I move the most right column on the screen e.g. 2 columns to the left the information in the level 1 should stay at the same place but the information in the detail and the header level should move to the left.
    I wrote a function that is doing what I want and it works fine if I call that function in a clicked event of a button: e.g. I move the most right column to the left and then click the button to simulate that a event has been triggerered after moving or after I resize a column and then hit the button.
    So my question is what can I do to trigger my function after a column has been moved or after a column was resized?

    Hi Thomas, Try these steps:
    1. Create a ue_lbuttonup user event mapped to pbm_dwnlbuttonup in DW control.
    2. Create another user event named ue_checkmodified. This is not mapped.
    In ue_lbuttonup, enter the below code:
    This.event post ue_checkmodified()
    In ue_checkmodified event, enter:
    If this.Object.DataWindow.Syntax.Modified = "yes" Then
    ... Your logic goes here...
    End If
    That's it.
    HTH,
    Neil

Maybe you are looking for

  • Can't view Crystal Reports from BW

    Hi, I'm installing SAP Integration Kit XI 3.1 SP3 with IIS.  I am able to publish reports from BW to BOE but not able view them from BW.  I followed the documentation to use report/report_view.aspx to define the viewer application in Content Administ

  • Updating tables based on Dates

    In my application I use some tables with a date field. table: employee period date (e.g. 01-01-2004, 01-02-204, 01-03-2004) target money result money table: project date date (e.g. 15-01-2004, 20-01-2004, 03-02-2004) revenue money If I book a new pro

  • Japanese double byte characters

    Hi all, We have a ECC 6.0 system and we are introducing Japanese markets. When we try to see table KNA1: SE16-->KNA1 and we search a word in Japanese language written in single-byte format, there is no problem, the search returns us the entries. But

  • Saving files in Photoshop CC Mac

    I upgraded to Photshop CC Mac and I'm having a problem saving files. My last version was PS5 and when I saved a file I could go to the drop down tab, there would be the name of my folder, click the folder and click one a file with a similar name and

  • Migration of SAP Netweaver

    I'm currently installing SAP Netweaver 7.0 in Windows Server 2008 R2. The database is MS SQL 2008 R2. I'm a bit confuse now because I'm not sure need to start a fresh installation or just doing a system copy will do. This is because I already have ex