Raise event at the end of process chain

Gurus,
I would like to raise an event at the end of my process chain run.  I need this event to schedule a file extract using RSCRM_BAPI.
How do we raise an event at the end of process chain?
Regards,
-Sonny

1) First create an event in SM62. Lets say ur event name is ZTEST and event param is also ZTEST.
2) Then In SE8 ---> Create a program say 'ZPROGRM' as follows.
DATA: EVENTID LIKE TBTCJOB-EVENTID.
DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
EVENTID = 'ZTEST'.
EVENTPARM = 'ZTEST'.
CALL FUNCTION 'RSSM_EVENT_RAISE'
EXPORTING
I_EVENTID = EVENTID
I_EVENTPARM = EVENTPARM.
3) Include this 'ZPROGRM' at the end of ur PC
Regards,
R.Ravi

Similar Messages

  • Raising an alert at the end of process chain execution

    Hello ,
      I have a requirement, where I have to raise an
    alert(not an e-mail) in Alert Server at the end of data loading process through a process chain.
    Is there solution for above requirement?.
    Regards
    MB

    Hi ,
    Thank you for taking time and answering my question.
    I have found a solution to raise the alert at the end of loading a target through process chain.
    Solution :
    There is no out of the box option to raise the alert from process chain.
    SAP has given a SALRT_CREATE_API function to raise the alert. We have used this function with "ABAP process type" in process chain to raise the alert.
    Madhukar

  • Ending a process chain with abap program

    Hello friends.
    Can anyone help me please?
    I have a problem with a process chain in BW.
    The process chain is triggered by the MF BP_EVENT_RAISE in an custom MF. While the process chain works, the custom MF is monitoring the chain´s log.
    This process chain have 2 steps:  one is the initial process and the other is a ABAP program. In the abap program there are validations and if exists some error, the program abort and this job (BI_PROCESS_ABAP) is cancelled. The problem is that i have to go to the Tx. RSPC and view the logs fro this chain and in these moment ends th custom MF. In other wors, the MF ciustom ends until i go to the tx RSPC for view the logs.
    I need that the program ends the process chain naturally.
    Thanks for your help.
    Regards.

    Hi,
    You can end a process chain by seeing the variant name and instance name of teh process chain from and finding its corresponding log id,type of process from the table RSPCPROCESSLOG and then executing the standard FM RSPC_PROCESS_FINISH. Here you will have to give the log id,type of process ,vairant name and instance name alongwith the status of the process chain as R to end the process chains.
    If you want to aurtomate it you can do that by creating a Z program which will read LOG ID and teh TYPE of process from table RSPCPROCESSLOG on the basis of variant name and the instance name of the process chain and the execute the function module RSPC_PROCESS_FINISH from inside the program.
    Navesh

  • Including an Event Data Change in a Process Chain

    There is a step called "_Execution with Data Change in InfoProvider_" in the process of including event data change in a process chain.
    How do we carryout this? should this be done in Bex or in process chain itself?

    Dear Eshwari,
    1) To get the 'Execution on data change' option, you need to have aprocess chain with the 'Event data
    change' process type which contains 'the infoprovider' (The infoprovider, over which the query is created
    which you are trying to broadcast) in the process variant of it.
    2) Further more, additional authorization is also needed in order for the user to see such scheduling options in broadcaster.
    Please assign this authorization object to the affected users.
    BEx Broadcasting Authorization to Schedule  S_RS_BCS
         Activity                       *
         Event ID in Broadcasting Frame *
         Event Type in Broadcasting Fra <== Here you should select*
         ID of a BI Reporting Object in *
         Type of BI Reporting Object in *
    3) Please also ensure the user has not only the Busines Explorer role but also Business Intelligence role in Portal,
    Regards,
    Arvind

  • How to get the name of user who last changed the settings of process chain

    Hi All,
    I have a process chain which runs daily. At one atep it would load data till PSA then there was a separate process to update data from PSA. But recently someone changed the settings and data is loaded in PSA and data target in parallel. But the process update data from PSA is also there still and as a result giving error as data already reached infocube. I wish to know who changed the settings. I searched and found about tcode SGL1 but not getting any fruitful result. Can anyone pls suggest anything.
    Thanks in advance,
    Sananda

    Hi There,
    In your case, nobody has changed the settings in process chains. However, it appears that someone has changed the Processing mode in the Info package. Since now the infopackage has already run after the change was made, I don't think there is any way to find who has changed the setting in the infopackage.
    However, the solution would be to just switch back the processing mode from "PSA and Data Targets in Parallel" to "Only PSA".
    Regards,
    Hemant Khemani

  • List of all the process types used in the creation of process chains

    Hi Gurus,
    I am new to process chains creation, can any one give the list of all the process types used in the creation of process chains and there uses also.
    Please search the forum before posting a thread
    Edited by: Pravender on Jan 4, 2011 4:18 PM

    Hi,
    As process chain is to automate the data load step.
    For Ex:- If you are loading data from R/3 to DSO CUBE.
    Here you require Info package to load till PSA.
                                 DTP to load till DSO
                                  Another DTP to load Cube.
    And all other process like psa deletion AND process you can find in RSPC tab.
    Thnaks,
    Saveen Kumar

  • Incorrect data after activating the request through Process chain.

    Dear SDN chaps.
    Today morning. I encountered a strange issue in DSO..
    I have DSO which is updating from the AL11(application server) flat file.
    While i am loading it to PSA there were no issues and after loading it to the DSO there is no issue and its passing through the routine and the data is populating properly in NEW data Table .But after successful activation of  the request through process i am getting the wrong records in active data table.
    Then i deleted the request and reran it manually i mean triggered the DTP and ran the manual activation surprisingly accurate records are coming through manual process..
    I am just wondering why it is not working through process chain and why it is showing incorrect records through process chain execution and how it is showing accurate records through manual uploading process..'
    Could some one please help to come out from this..By the way mine is SAP BI 7 SP20 &SP05 for BW 7.01
    Thanks
    K M R
      

    Hi Pra
    Thanks for your response..
    We are doing PSA deletion and then we are uploading the data to PSA as well as DSO.
    Now the issue is not in the part of loading we are facing the issue in Actiation of request if i am executing the activation through process chain it is sucess but the values are incorrect. If i am doing the manual activation it sucess with correct data.
    Even i tried with a new chain but still i am facing the issue.
    Surprise thing is in new data table the data is perfect in both the ways like manual upate and Process chain update only during activation i am getting incorrect record in the active data table..
    Appreciate your help on this....
    Thanks
    K M R
    Edited by: K M R on Jul 9, 2010 11:09 AM

  • How to know in an IDOC you are at the end of processing the EDIDD table?

    I am fairly new to processing IDOCS.
    I am working with the user exit EXIT_SAPLVEDF_002.  This is in the IDOC FM IDCO_OUTPU_INVOIC.  I am working with SAP AFS (the IDOC is /AFS/INVOIC02 but is the same as IDOC INVOIC02 with added logic for AFS).
    I know the FM processes one segment at a time and builds the EDIDD table and then passes it to the user exit after it adds each segment to the table.
    There isn't any other user exit that executes near the end of the processing - none that I could find.
    I am looking to do something that is similar to someone doing a SAVE in DYNPRO and using a user exit to do any final processing before the document is saved.
    Is there some segment name that is the key so that I know I am at the end of processing?
    Is there some status in the IDOC control record that would be set so I would know when it hits this that I can now review the entire EDIDD table?
    Points awarded for any help!
    Thanks.
    Scott

    I found the segment to search for - it's the summary segment 'ED1EDS01'.  It is passed after the detail processing has been added into the EDIDD table.

  • The new event are created when i import photo in the top. Before they where put in the end. All my event are classified. Where i can set the event at the end ? Thank's.

    The new event are created when i import photo in the top.
    Before they where put in the end.
    All my event (around 600) are classified on the top the old and a the end the new.
    Where i can set the event at the end ?
    Thank's.

    View menu  ==> sort events
    LN

  • How to send the status of Process Chain to email address?

    Hi,gurus here.
    We monitor process chains' work status by RSPCM, but it's inconvenient.
    Any method to send process chains' work status via email immediately instead of RSPCM?

    Any process in process chain fails, below will send mail to mail ID that specified
    This can be perfectely done using Tcode ALRTCATDEF.
    1. go to ALRTCATDEF
    2. select classification "Process Chains"
    3. click on display/change
    4. double-click on "error in a process of a process chain"
    5. click on "fixed recipients"
    6. write in your username (you have to maintain your e-mail address in SU01 for that to work)
    7. save
    8. go to your process chain (rspc)
    9. go into edit mode
    10. from the menu, select Process chain -> attributes -> alerting
    11. check "send alerts if errors occur".
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=64389689

  • TS3694 uploading iOS 7 to iphone 5 and after it downloaded, it was at the end of processing the file when i received  and error (3004) .  what do i do

    was at the end of processing the file when i received  and error (3004) .  what do i do

    http://lmgtfy.com/?q=iPhone+error+code+3004

  • How can I insert the RSCRM_BAPI into Process chain?

    Dear all:
    Now I Use RSCRM_BAPI(RSCRM_REPORT) ,excute a query , Get the result in a table, I use this table as a datasource,and then next steps,upload data. all of this runs well.
    But  I want inset this process into a process chain. now I don't know how to do it.
    who can help me?

    Hi,
    Now I'm using RSCRM_BAPI in Process chains..
    1. I set the report name RSCRM_BAPI  and then in schedule I select EVENT there I given Event is
    'ZE_GR' and parameter is  'ZEP_GR'. and then I created a program and there I given Event and Parameter. And then I inserted this program in Process chain. And I scheduled the Process chain.
    You need to create the event in SM62
    REPORT  ZE_GR_RP.
    DATA: EVENTID LIKE TBTCJOB-EVENTID.
    DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
    EVENTID = 'ZE_GR'.
    EVENTPARM = 'ZEP_GR'.
    CALL FUNCTION 'RSSM_EVENT_RAISE'
      EXPORTING
        I_EVENTID                    = EVENTID
        I_EVENTPARM                  = EVENTPARM
    EXCEPTIONS
      BAD_EVENTID                  = 1
      EVENTID_DOES_NOT_EXIST       = 2
      EVENTID_MISSING              = 3
      RAISE_FAILED                 = 4
      OTHERS                       = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Thanks
    Reddy
    Edited by: Surendra Reddy on Dec 2, 2008 5:09 AM

  • Abap program - end of process chain

    Hi,
    I have a requirement. At the end of each process chain, the ABAP program must trigger email.
    The process chains are having naming format of Z<Module name>. Ex: SD process chain will have ZSD, PS process chain will have ZPS etc.
    Now we are reading a table based on the module and identify the users, and to those users email should be sent.
    Now i am unable to identify the name of the process chain at run time from my ABAP program.
    Is there any way to identify the name of the process chain at runtime from ABAP program?
    Thanks.

    Hi,
    Your question is not clear can you please provide few more detail.
    for sending mail to users you can use "Varient" whatever you required. I am not sure what table you are using.
    Regards,
    satya.

  • Error in generating/deleting the index of the cube in Process chain

    Hi All,
    I am getting an error in the process chain during the deletion/generation of index in the cube....
    error says: " Deleting/reconstructing indexes for InfoCube 0CSAL_C01 is not permitted "
    Need your input for the same.....
    Thanks & Regards,
    Anup

    Hi Anup,
    Try to analyse the error in the manage tab of that cube, and try to do the reconstruction of indexes manually.
    Good day!!!
    Regards
    Arun S

  • Can we set User roles/permissions for a content that is stored in Contentspace at the end of Process

    Friends,
    I have a requirment where a set of approvers approve a form and at the end of the process i store the form as a pdf in the contentspace.
    My requirment is that, can we set roles/permission for the file that i store in the contentspace and allow only the people who have approved the form to view/edit the content the the contentspace.
    If possible what is the workbench activity should i use and how should i use it in the process?
    Thanks for your support
    -Ashok Deivasigamani

    There is  a read/write permissions service in the Content Services category in workbench that will allow you to control the access to the space or th efile that you write intp CS.
    Paul

Maybe you are looking for

  • Error Check does not work

    Hi, I'm having a problem with the following code, when I add alphabetic characters or even nothing at all in the principal amt text field, I expect to get an error message, but I do not. This happens no matter which method I choose to compute the mor

  • How do you update the firmware on 1st Gen Airport Extreme in OSX Mountain Lion?

    A friend gave me a old but never used 1st Gen Airport Extreme 802.11n WiFi Wireless Base Station.  I have a couple WiFi dead zones in my house and was told that I could daisy chain the Apple Airport Extreme off of my Verizon FIOS router/modem (802.11

  • Query on bdc program

    hi friends,                I really have doubt on bdc program. I wantedto complete this task. 1.  Create a BDC program for the following   - Read a flat file containing Vendor Master details (keep the record structure as simple as possible).  The fil

  • Can I print or export the MediaSource Libr

    I have a ton of duplicate entries and I don't want dups on my Zen Touch. Is there anyway to get a listing of the library?

  • OSX Lion with ALUA support actually broke more than it fixed for us

    Hi As you guys know Apple introduced ALUA in to Lion and when they bumped up the specs of Xsan. Most people seems to be really happy about this but in our case it actually broke more than it fixed. With our ATTO Celerity ES41 and LSI quad channel fib