How to trigger an ABAP program in a Process chain

Hello Forum,
1. In a process chain, if a program fails, how can we re-run it?
2. If the process preceeding the ABAP program fails, how can we start the program?
3. If an Infospoke fails in a process chain, how can we trigger that?
Thank you,
Its my pleasure to assign points,
raj

Hi,
1. U have to first check whats the reason for the failure. check in the monitor screen details button, the error message will be displayed, check the error, correct it. and to proceed with further right click on the subsequent process use Repeat option , the loads will get continue.
2. same here, if it fails check the reason, sometimes if two parallel process trying to access the same program Lock may occur, stop one process, once its done start the second process, use the transaction code SA38>select ur ABAP program, the corresponding variant->this is for running the ABAP program in the backgroud..if u want to run direct means Select the Process types Under the general services u find an ABAP program
3. same here too u should find the reason why it fails, and rectify the error, and use the repaet option to proceed with further.

Similar Messages

  • How to implement an abap program in a process chain

    Hi,
    I have an ABAP Program which uploads data into a table.
    Now I want to implement this abap program in a process chain.
    Please could anyone tell me how this can be done.
    Thanks & Regards,
    Sushanth H.S.

    Hi,
    A process chain is a background task for processing data into a BW instance .
    I want to know how to integrate an abap program into the process chain.
    Regards,
    Sushanth H.S.

  • Trigger an ABAP program through a Process Chain

    Hi,
    I have an ABAP program as part of my Process Chain that updates the BW Hierarchy OREGH. 
    However I can't get the program to execute through the chain, even the though chains goes all green. without any REDS anywhere along the chain. 
    When I check if the program has made the desired changes in the tables it hasn't.
    If I run the program using SE38 it works fine and in seconds.
    Is there a parameter setting I have to set in the process chain or within the program itself.Tthe program is active.
    Ive checked many of the  posts about this issue but couldn't find a someone experiencing a similar problem.
    Please Help
    Thanks
    Amir

    Remove that ABAP program from the Process Chain and activate. Leave RSPC screen.
    Re-enter to RSPC, and add that program by creating a new variant with following options:
    Call Mode : Synchronous
    Call From : Local
    Check and Activate process chain.

  • How to finish ABAP program in the process chains

    Hello All,
    we have one ABAP program in the process chains which was created in the BW system only.
    this program we are using in the synchronous mode. according to my understanding we can not capture the failure of the ABAP program when it is in the synchronous mode.
    but i found a way through one this forum topic to capture the failure of the program through asynchrous mode by calling a function module RSPC_ABAP_FINISH but it was with the R/3 program in BW.
    can we use the same function module for BW program also.
    kindly let me know what steps we need to follow for the BW program in the process chains to capture the failure status.
    Regards,
    Ala.

    Hi Ala,
    we created an own processtype, look at this HowTo: https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/45d8a990-0201-0010-a290-f22083728179
    and than also an abap which can end red or green:
    PARAMETERS: red   RADIOBUTTON GROUP radi,
                green RADIOBUTTON GROUP radi.
    IF NOT green IS INITIAL.
      MESSAGE i162(00) WITH 'Status' 'Green'.
    ELSE.
      MESSAGE e162(00) WITH 'Status' 'Red'.
    ENDIF.
    with i-message process ends green, with e-message process ends red.
    /manfred

  • How-to trigger an ABAP program after a user logs on?

    Does anybody know if it is possible to trigger an ABAP program just after a users logs into the system?
    Thanks
    Ioan

    The function module is EXIT_SAPLSUSF_001.  The include program is ZXUSRU01. 
    Just put your SUBMIT statement in this include program.
    Regards,
    Rich Heilman

  • ABAP Program in a Process Chain

    Hi!
    I create a program in ABAP/4. The program modify an attribute of a Z table I have previously created.
    I want to add that program in a process chain of BW which load a cube. The problem is that when I am in in the process chain, the program I have created doesn´t appear in the available programs to select and associate to the process chain.
    What I have to do to have the ABAP program available to select and associate to the process chain?
    Thanks in advance.

    Hello Nicolas, there are a few options you can try.
    1.  Instead of an ABAP program, would you think of incorporating your logic into a function module and then create a generic datasource in R/3 to extract the data from your Z table using the function module.  There is a function module in R/3 called <b>RSAX_BIW_GET_DATA_SIMPLE</b> that you can copy and use as a template for your function module.  Refer to the following blog:
    <a href="/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module:///people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    You can also search this forum for RSAX_BIW_GET_DATA_SIMPLE for other ideas.
    2.  If you really want to use your ABAP program in R/3, then your best solution would be to create a job in R/3 that is triggered by an event.  This job will have two steps in it.
    Step 1:  execute your ABAP program to fill your Z table
    Step 2:  execute program to notify process chain in BW that ABAP process is complete (sample source below)
    In your process chain in BW, your ABAP process should be set up to be
    Called From:  (RFC destination of your R/3 system)
    Scheduled Program:  Event (event name in R/3)
    You may get a help message about "Requirements for asynchronous processes".  This is an informational message telling you that if you call an ABAP program from a remote system, there is no way for BW to monitor it, so you will have to execute a function module (RSPC_ABAP_FINISH) in the R/3 system to inform the process chain when the ABAP program finishes.   You can create your own program in R/3 to use this function module:
    *& Report  Z_RSPC_END_PROCESS                                    *
    *  Trigger end of an ABAP process in BW process chain.
    REPORT  z_rspc_end_process.
    *"*"Lokale Schnittstelle: Detination BW
    *"  IMPORTING
    *"     VALUE(I_VARIANT) TYPE  RSPC_VARIANT
    *"  EXCEPTIONS
    *"      ALREADY_FINISHED
    PARAMETER: p_rfc LIKE rfcdes-rfcdest,
               p_var(30) TYPE c.
    CALL FUNCTION 'RSPC_ABAP_FINISH'
        DESTINATION p_rfc
         EXPORTING
           I_VARIANT              = p_var
         EXCEPTIONS
           ALREADY_FINISHED       = 1
           OTHERS                 = 2
        IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    This program in R/3 will inform your process chain in BW that the ABAP process is finished and BW will continue to next process in the process chain.
    Note:
    p_rfc would be the RFC destination of your BW system
    p_var would be the name of the ABAP process in your process chain
    Hope this helps.

  • ABAP Program Termination in Process Chain

    Hello
    in my process chains i have one abap program and it is getting dump while loading.
    where can i check whether this program got terminated in this particular chain.
    as i have many chains i am not able to check in each and every chain.
    kindly let me know where to check the program termination in process chains.
    do i have any chance to set an automatic process for checking the termination of the program.
    regards,
    Ala.

    Hi Ala,
    If u know the process chain name, u can directly see log view of that process chain and right click on that failed ABAP program click "display mesaged". Now note down the error message and see that in st22.
    If u dont know the process chain name..
    In SM37 go to the job log for that pirticular job which is failed, it gives u tha program name and varient name.
    now goto SE38 and give that program name and variant then click on display.It gives u process chain name.
    Hope it helps.

  • How to extend the execution time of an ABAP Program using the Process chain

    Hello Sapians,
    Our Environment has got 600seconds = 10 mintues as the execution time.
    My ABAP Program is taking more than this 600 seconds, to show the result, I found this when I tried to execute in debug mode, it shows the result.
    If I execute in background also it shows the results succesfully.
    Only issue is when I execute this report in foreground it has been taking ages and goes on Time OUT Error.
    It has been decided that we can extend the execution time only for this report, and it will reset the time back to 10mintues once the report has been executed successfully or failed in between for any other reasons.
    And we can achieve this by using the process chains.
    Can any body help me please in this regard
    Thanks,

    Hi,,,,,,,,,,
    Besides Process Chain There is another way out for this........
    Resetting time counter of dialog process so that time-out does not
    happen. Use this fm within your program at appropriate locations to
    reset time counter.
    "CALL FUNCTION 'TH_REDISPATCH'."
    Thanks
    Saurabh

  • ABAP program fails  in process chain -'ABAP/4 processor: DBIF_NTAB_SQL_ER

    Hi Experts,
    I have an ABAP program in  process chain. It frequently fails in the chain .
    When i do repeat on it will run fine.
    Purpose of the program is to delete the content from open hub table.
    I can    'ABAP/4 processor: DBIF_NTAB_SQL_ERROR' .
    What could be the reason . How can i give permenant fix to it.
    Thanks in Advance

    Hi,
    It looks like database error, speak to your DBA/Basis to get it resolved.
    regards
    Vikash

  • 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.

  • Call ABAP program from a process chain

    Hi ,
    Can anyone tell me how do we call an ABAP program in R3 from a process chain in BW.
    Its real urgent please help.
    Thanks
    Ankit

    Hi,
    Create ABAP program in BI/BW system with name like ZFILL_CALL.
    Create RFC enabled function module(eg: ZRFCFM) in R/3 system, in this function module call your program which fills the ZTABLE from application server.
    Call RFC function module ZRFCFM from your program ZFILL_CALL in BW system.(u need to RFC connections to these systems).
    Create process of type "ABAP program" which u will find in General sevices in RSPC. Attach this process befor u r inpackage process chain.
    Hope it will work.
    Sree

  • 50 ABAP Program in a Process Chain.

    Hello Experts,
    Here is what I am trying to do.
    I want to create Process Chain which run 50(for ex.) Abap Program in parallel. I can create one by one through Process Types and select 'ABAP Program' and drag in the chain which is really very time consuming and tidious.
    Does anybody have better approach to do that ?? Any table where I can create all this parallel steps and put it in a chain ?? or copy each step and put it in parallel in chain ??
    Quick reply will be appreciated.
    Points are guaranteed for Right Resolution.
    Thanks in Advance.

    Hello Experts,
    Here is what I am trying to do.
    I want to create Process Chain which run 50(for ex.) Abap Program in parallel. I can create one by one through Process Types and select 'ABAP Program' and drag in the chain which is really very time consuming and tidious.
    Does anybody have better approach to do that ?? Any table where I can create all this parallel steps and put it in a chain ?? or copy each step and put it in parallel in chain ??
    Quick reply will be appreciated.
    Points are guaranteed for Right Resolution.
    Thanks in Advance.

  • Calling ABAP Program from a Process Chain

    I am calling an ABAP Program from Process Chain by adding a Process Type u201CABAP Programu201D,
    My ABAP program writes lots of information using write statements.
    I looked in Process Chain Log; I do not see output from Write statement. I am pretty sure my write statements were executed. I also looked in SM37 job log. I do not see any more information.
    Where to see the output generated from ABAP.
    Thanks.

    Hi,
    First find out where your ABAP program the data written.You need to write it into and spool then only you can see it.
    Transaction SP01, you can use the FM 'GET_PRINT_PARAMETERS' in your abap program to write to spool.
    Thanks,
    Ravi

  • Issue with ABAP program execution from process chains

    Hi All:
    We have a process chain with 3 steps, each of them executing the same program with three different variants. The program is ftp's the file from APO's dataexchange (mount) to another ftp server. The first variant transfers file A to a directory in the external ftp server (say /X) . The second and the third variants are supposed to transfer different files, B and C to the same directory.
    That is where the problem is. After the process chain is successful, I see two files B and C but the contents are same and that of C. So, if I switch the steps in the PC to bring in A then C and then B, I see files B and C with content of C. I tried C then A then B. I see the file names correct but now the contents are A, A then B.
    Have any of you come across this issue? Do you know that these is an existing problem? IF you have a solution, pl. let me know.
    Thanks
    Narayanan

    Narayanan,
    Instead of doing it in three steps - would it be possible for you to have one UNIX script or equivalent doing the above and calling the same from your process chain ...?
    We do a lot of FTPs but then our file names are standard and we have a UNIX script for the same executed using a system command through a process chain and it has been working without issues for the past 1 year ...
    Maybe I have not got your situation properly ... some more detail on the program details and what you are doing in more detail would help....  also SP levels please..

  • ABAP Program error in Process chain

    Hi
    I have abap process in the process chain which failed frequently with followin error messages
    Spool request (number 0000015904) created without immediate output                  SY           355         
    rocessing completed with errors. See spool list  RSAN_PR        022          E
    23.02.2009 23:44:47 Job cancelled after system exception ERROR_MESSAGE     
    Need ur valuable advise to resolve this issue
    Regards
    ll

    Hi
    Did you check the data is really retracted to CRM ?
    Are you sure the RFC connection works ?  Are you sure the user has the authorization to update the data ?
    You might have more info in spool log (sp01)
    PY

Maybe you are looking for

  • HP PRO 3400 Series desktop won't boot CPU fan starts and stops , no video, no beeps

    I have the above computer with an i3-2125 CPU, Windows 7 Home Premium 64 bit, and a 300GB Seagate Hard drive.  I've had it for about 2 years and been working fine. It started acting up about 2 months ago.  It would lose the date and time.  I checked

  • External Storage over Wireless ?

    My new MacBook Pro will arrive in two days. It is configured with OS -X Also, the AirPort Wireless Router arrives then. I wish to be able to store files over the home wirelss net. What External Device could I use, likely in the 200gB range, that I co

  • Schedule a Proxy Service in ALSB

    Hi Dear, <BR><BR> I want to schedule my proxy service in ALSB. It should run once in a day automatically. <BR><BR> Can I do this in ALSB????

  • Help needed with JMF and FFMPEG

    Hi, im using Jave which is a wrapper libraray for FFMPEG to encoded videos and im also using JMF to take snapshots of the video to save as thumbnails. All the code I have works except that I cant get Jave(FFMPEG) to encoded the videos in to a format

  • CS6 new HTML 5 document uses XHTML DTD - WTF?

    We are suffering some serious weirdness. I am on Win7 with CS6 and my colleague is on OSX with CS6. We both do file, new, blank page, none, doctype html5 I get a correct basic html5 page, he gets the XHTML DTD & extra stuff. We both have fresh instal