BSP to trigger a Process Chain in BW

Hi ,
  I have a requirement to develop a BSP Application in the BW System where the BSP Application have to get some input parameter and in the back ground trigger a process chain.
Can any one tell me how to trigger the process chain in BW System from BSP. I have not worked on the BSP / BW combination ..
It would be helpfull if there are some documents which would help me ..

from your bsp application simply call FM RSPC_API_CHAIN_START to trigger process chain.
Regards
Raja
reward points/close your previous threads
Re: BSP Pages-  Icon not appearing
BSP for pop up

Similar Messages

  • Trigger a process chain when user clicks on save button in web interface

    Hi All,
    This is a issue I'm facing with the BW BPS web interface.
    BPS web interface generates a BSP application so thought posting this question in BSP forum might get some responses.
    The issue is I have to trigger a process chain when the user clicks on the save button on the web interface.
    I have no clue how BSP works. So if anybody has any ideas or suggestions I would greatly appreciate it.
    Thanks,
    Harini

    Hi Dhanya,
    This is the code i have in the ABAP program in the process chain. I just included the API_SEMBPS_POST part, but still it doesn't work. Please give me your email address so that i can send some screenshots.
    REPORT  ZHTEST.
    DATA: l_subrc TYPE sy-subrc.
    DATA: ls_return TYPE bapiret2.
    CALL FUNCTION 'API_SEMBPS_POST'
    IMPORTING
       E_SUBRC         = l_subrc
       ES_RETURN       = ls_return.
    CALL FUNCTION 'RSAPO_CLOSE_TRANS_REQUEST'
      EXPORTING
        I_INFOCUBE               = 'ZMAP_TAB'
    EXCEPTIONS
      ILLEGAL_INPUT            = 1
      REQUEST_NOT_CLOSED       = 2
      INHERITED_ERROR          = 3
      OTHERS                   = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to Trigger a Process Chain through ABAP Program

    Hi
    I have a Requirement to trigger a process Chain on 1st, 2nd and 3rd day of the month for 2 times in a Day.
    Can any one give me any idea, how i can do it by writing a ABAP program and triggering the Process chain.
    If anyone can share the Logic for ABAP program means, that will be helpful for me, as i dont have much expertise on writing ABAP program.
    Regards,
    Muruganand.K

    Hi,
    you can achieve this in a following way.
    DATA : v_date type sy-datum,
    v_day(2) type c.
    v_date = sy-datum.
    v_day = v_date6(2).+
    if v_day = '01' or
       v_day = '02" or
       v_day = '03".
    CALL FUNCTION RSPC_API_CHAIN_START.
    pass the name of the chain to this function module.
    hope this wil help.

  • How-to trigger a process chain using ABAP?

    Does anybody know how to trigger a process chain using ABAP code?
    Any help would be appreciated!
    Thanks
    Ioan

    Hi Ioan,
    try this in your ABAP:
        CALL FUNCTION 'BP_EVENT_RAISE'
          EXPORTING
            eventid         = 'Your Event'
            eventparm       = 'START'
            target_instance = ' '
          EXCEPTIONS
            OTHERS          = 01.
    and schedule your process chain, waiting for 'Your Event'.
    regards
    Siggi

  • R3 job completion trigger a process chain to run on BW

    Hello,
    I was wondering how I can trigger a process chain to run on BW 3.5 after a SM37 job completes on R3?
    I have been searching the forums and the web, but I haven't found what I am looking for.
    Thanks,
    Nick

    Hello Pramod,
    I would need a more detailed suggestion to implement, but thanks for starting the discussion.
    I thought it would be as easy as this
    1. Create an event in BW
    2. Have a process chain that starts when that event is raised.
    Having implemented and successfully tested steps 1 and 2, the rest should be simple (I was able to raise the event on BW locally and the chain did run as expected)
    3. On R3, create a small ABAP program that calls the BP_EVENT_RAISED Function Module on R3.
    4. Pass that Function Module the following parameters
            A. My BW system name, and
            B. The event name that I created on my BW system
    5. Add that ABAP program to the end of the job on R3.
    It doesn't work though! The event i created on BW, doesn't seem to exist from R3's perspective.  I was hoping it was as easy as that.  Hopefully I am missing something simple, but so far R3 does not want to cause the event on BW to be raised.
    Thanks,
    Nick
    Edited by: Nick Bertz on Oct 13, 2008 12:19 PM
    Edited by: Nick Bertz on Oct 13, 2008 12:23 PM

  • Trigger a process chain(PC) after successfull completion of two other PCs

    Hi All,
    My requirement is to trigger a Process Chain only after successfull completion of two other process chain which are already scheduled to run at different times.
    Please tell me how to achieve this into SAP-BW 3.5
    Thanks
    Jharna

    Hi
    It is very simple, I'm doing the same.
    Insert Remote Process Chain at the end of the actual process chain and call the other process chain, here you need to give source , destination and process chain name in Remote process chain.
    try it, it will work.
    Thanks
    Reddy

  • How to trigger a process chain using external scheduler ?

    Hi all,
             we have a requirement wherein we need to trigger the process chains from an external scheduler used by client rather than directly scheduling it through BW scheduler.So any pointers on this will be heplful.

    Hi we have had a same scenario like this. You can schedule it using schedulers like autosys. Speak to your basis team and see if you have the autosys software installed or some thing similar to that. You have to write a program which calls the function RSPC_CHAIN_START. When you excute this program, it willl ask for a variant to execute. this variant will be the start variant of the process chain you want to trigger.
    the flow will be like the basis team will schedule the autosys or the scheduler to run the program and this program will in turn trigger the process chain.
    regards,
    Satish.

  • How to trigger a process chain through

    Hi All,
    Can any one send me the steps to trigger a process chain through a job in sm37.
    Thanx
    Kishore

    Just a trigger ?
    Best way I can suggest is to call the function module 'RSPC_API_CHAIN_START'...
    So, create an ABAP Program, call the function in the program. You can add parameters and a selection screen to make the program generic and add variants to it.
    Once you are done with this, schedule a job with this program and whichever variant you're lookin for and you should be done.
    - Aditya
    Assign points if helpful

  • How to trigger a process chain after R 3 job

    Hi All,
    We have a requirement to trigger a process chain immediately after the completion of R 3 job.
    could you please give me your input in this regard.
    rama

    Try to Search first.  This has been discussed a lot in this forum.
    Try these:
    Triggering a Process Chain From R/3 pgm
    There is even an OSS Note on how to do this:
    Trigger process chain using event

  • How to trigger the Process Chains in BI from ECC

    HI Friends,
    Can let me know  How to trigger the Process Chains in BI from ECC. Please let me know.........

    Hi,
    1) Define a Custom ABAP Program (eg : Z_EVENT_RAISE)..........call the FM : BP_EVENT_RAISE or RSSM_EVENT_RAISE..........and trigger an event towards BW .........specify BW as RFC destination...........
    2) Create a R/3 Job in SM36>> use the Program Z_EVENT_RAISE ......
    3) In BW schedule the PC..........and in the Start variant use this Event..........
    http://sapbiwtutorials.blogspot.com/2009/03/how-to-trigger-process-chains-in-bw.html
    It can be help full
    Regards,
    Edited by: subba2010 on Aug 19, 2010 6:51 AM

  • Autosys user unable to trigger the Process Chain.

    Hi all,
    we need to run a process chain daily, So we are inserted the PC triggering Job in Autosys, some time autosys unable to trigger the job..
    Can any one please help me in this issue....
    Waiting for responce...
    Thanks in advance,

    Dear all,
    Here is my error while triggering the Porcess chain by Autosys,
    <i> the error: %CASAP_E_222 Process chain <process_chain_name_here> could not be started. Please validate the Direct Scheduling selections in the Start Process variant.
    Can any one please suggest me ,
    Note: I Validate the Direct Scheduling selections in the Start Process variant already but still iam getting the same error...</i>
    Thanks in advance,
    Points will be assigned diffenatly.

  • How to Trigger the process chain using Excel Files?

    Hi All,
    We have 9 excel files(4 master data attributes and text files and 1 transaction file).
    Everyday new records will be added into the excel sheets and we need to trigger all these files into the bw server through process chain automatically . As we have all these Excel files in the desktop.
    Please suggest how to achieve this task?
    Thanks
    Gowtham

    Hi,
    You cannot load flat files to BW automatically using process chains.
    You have to upload them to Apllication server and point your Infopackage to the directory path of the flat file in application server. then process chains can load it.
    How to guide for loading flat file to application server.
    Program to load CSV file from local desktop to Application server(For flat file Data extraction)
    -Sriram

  • Trigger a Process chain

    Hi All,
    After a long time, approaching SDN for a help. At first i thank all the contributors.
    I had a requirement, my client wants a process chain in event based triggering.
    Scenario: There is a process chain, lets say: ZTEST_PC. This pulls GL data, I need to run this process chain every 1st week and 4th week of the month and then i need to run the process chain on event based like if the first instance of process chain completes then the second one should start.
    Summ: The same process chain has to run 2 times in a month at 1st week of the month and 4th week of the month and then to run on that week repeatedly.
    Please guide me how to do this.
    Thanks a ton in advance.
    Regards,
    Ravi Kanth.

    Hi Ravi,
    I need one clarification from you. in the first week and 4th week, should the PC run recursively, even thought it means it is running more than once a day.
    If the answer is yes, you may follow the steps as listed below, else, slight chnages in the code will be required.
    1. Create a Z program, say Z_TEST_EVENT_RAISE
    And add the below code
    DATA: DD(2) TYPE N,
          WK(1) TYPE C.
    CLEAR DD.
    CLEAR WK.
    DD = sy-datum+6(2).
    IF ( DD >= 01 and DD <= 07 ) or ( DD >= 22 and DD <= 28 ).    "Checking if it is the first week of the month or the 4th week of the month.
      WK ='Y'.
    ELSE.
      WK ='N'.
    ENDIF.
    IF WK ='Y'.
      Call function 'RSSM_EVENT_RAISE'
        DESTINATION 'LC200BI'
        EXPORTING
          i_eventid              = 'Z_EVENT1'        " Created this event in sm64
          i_eventparam           = 'Z_EVNT_PARAM'    " Give this parameter in the Process Chain
        EXCEPTIONS
          bad_eventid            = 1
          eventid_does_not_exist = 2
          eventid_missing        = 3
          raise_failed           = 4
          OTHERS                 = 5.
    ENDIF.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    2. Now create the event 'Z_EVENT1' in sm64.
    3. Add the step ABAP Program at the end of the PC.
    And give the program name Z_TEST_EVENT_RAISE.
    Also, for scheduling the process chain, you will have to maintain 3 jobs
    a) Event based, in which you will mention the event id and parameter as mentioned in th code above
    b) Create a monthly job for 1st of (month) and maintain periodic value monthly.
    c) Create a monthly job for 22nd (start of 4th week) of the month and maintain periodic value monthly.
    Hope this will resolve your issue.
    Shilpa

  • Job to trigger a process chain

    Hi Gurus,
    I have to create a job in SM37 which triggers a process chain every day at 2 am.This job has to run after the completion of another job.Please let me know the procedure.I searched the forums but did not find anything suiting my requirement.
    Thanks,
    Sai.

    hi Sai,
    if you want to run the second chain after the successful execution of first chain,
    create two Process chains and link the two chains, while u looking both chains the system will ask you successful, (or)error (or) always; there u can choose successful;
    that means the second chain will start only after the successfull execution of PC1
    Regards
    ReddY A

  • How to identify an event that trigger a process chain.

    Hi,
         I have a process chain, which starts after the an event is triggered.
    How to find out where this event is triggered.
    Cheers
    Senthil

    Hi Senthil,
    When it comes to event based chains there could be many scenarious:
    1) There is an event collector which collects some events and then triggers the subsequent event.
    In this case Right Click on the start variant of the process chain and then display scheduled Job. You get the released Job and then double click on that released Job it will show you the event that triggers this chain.
    Then take this event and go to table RSEVENTHEAD and then place this event in field EVENT_OK then execute then in the field CHAIN_ID you get the name of the event collector. Then take this event collector in RSA1 --> Tools --> Event Collector and search it gives all the event collected in this.
    2) The event based chain has no event collector and the event can be triggered from another chain or any other Job from the same system or any other system.
    In those cases you need to be aware of the dependency but there is no hardcore rule to derive the event from where it triggers.
    Also search the event in SM62 it could be of some use.
    Cheers,
    Neelesh Jain,

Maybe you are looking for

  • Another Function Question

    I have created the following Function: CREATE FUNCTION f_defer_future_payments (Vendor_id varchar2, User_id varchar2, Start_date date, End_date date, Defer_to_date date RETURN NUMBER IS original_start_date date; original_end_date date; original_defer

  • Itunes & audiobooks & tiger

    Can't figure what happened to my new audiobooks. Now that I have Tiger,when I buy a book I just can't get it to open up in Itunes. I've clicked and dragged, opened, and imported and nothing happens. Are there problems with Tiger and Itunes? Help! g5

  • RMAN BACKUP VERY SLOW

    Hi all, what is fastest method to take backup using rman Thanks&Regards, Mahesh

  • Cannot access a shared folder in TC with Windows XP

    I have a Windows XP machine that has a network share to the time capsule. Basically, when I click on it, the folder opens as expected and displays the same contents that I see on my mac. But when I click on a shared folder within the TC folder, there

  • Interactive Form Design

    I am new to Indesign. I need to create a User account form. Is it possible to give a drop down with following choices and when user selects one option rest should be disabled/disappeared? New Starter Request User Change Request Leaver Request Example