Call ABAP Program in Process Chain

Dear BW Gurus,
I need to call an Process chain which includes ABAP Program.
The ABAP Program doesn't have the variants but it accepts the inputs from the user and sets into a YXXXX table.
I am not getting how to proceed in this regard.
Kindly guide.
Best Regards,
Harsh

hi,
chk these links below.. they contain the resolution for your query
Call ABAP Program in Process Chain
ABAP in Process Chains
Also chk this relase which ia an entire guiding one to ABAP Program in Process Chain
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7

Similar Messages

  • How to integrate an ABAP program in process chain

    Hello Experts :
    I need to call an ABAP program in PROCESS CHAIN from a different system, using Process type "ABAP program", option "scheduled program".
    Sombebody have the step by step or some examples
    Regards,
    Diana

    If you search this forum for RSPC_ABAP_FINISH you will find some good answers such as:
    Start an ABAP program in R/3 from a process chain in BW

  • ABAP program in process chain running under another user

    Hi, gurus
    I have a process chain that load three DSO in order to generate authorizations. I wish to add a new process at the end of this process chain which calls ABAP program RSSB_GENERATE_AUTHORIZATION. I wish to run this ABAP program under a different user rather than using ALEREMOTE, our general purpose load user. The user to run authorization generation must be a system user specially created for this purpose.
    My question is: is it possible to define a different user to execute only a process (ABAP program) inside a process chain while the previous steps can be run by a general purpose load user?
    Is there any other approach? What about separating it into two tasks? How to sincronize them, that is, how to run generation just after successful ending of the load process?
    Thanks for ideas.
    Fernando

    Let us assume that you have two parts to this -
    1. Process chain for Data Loads
    2. Program for authorizations.
    Schedule the authorization program in the background and have it run after a particular event - this way your authorization program is run with a specific user.
    In your process chain put in a program to raise the event at the appropriate time so that the authorization program can run. The authorization program in the meanwhile will be runnnig and waiting for the event to occur.

  • Log from ABAP program in Process chain

    Hello.
    I have some problem. I wrote the ABAP program and insert this program in process chain. This program a correctly work, but I canu2019t view the steps of work this program. In help:
    You can write logs by outputting success messages. (Error messages terminate the task!)
    Example: MESSAGE s051(rsar) WITH 'Process successfully ended'.
    You can see these logs on the tab page Batch in the detail monitors of the process chain.
    I append this code to my program, but nothing in process chain.
    Help me, please - what code I need to insert in my program so that view this message in a process chain logs?

    We have an ABAP that outputs a message.  The output from the following code is visible when you click on a process chain step icon, and select the middle tab that says "Backg" for background.
    IF sy-subrc = 0.
        CONCATENATE text-005 p_date INTO l_msg SEPARATED BY space.
        MESSAGE i162(00) WITH l_msg.
      ELSE.
        CONCATENATE text-003 p_date INTO l_msg SEPARATED BY space.
        MESSAGE e162(00) WITH l_msg.
      ENDIF.

  • Call an ABAP program from process chain

    Hi experts,
    How do I include an abap program in R/3 sandbox in my process chain in BW.
    I know how to do it in BW but this program is in the ECC sandbox.
    what I did was to create a job in R3 through SM36,this job had two steps one to run my program and another step to call the FM RSPC_ABAP_FINISH,which would inform the PC that the job is executed and continue to the next step.
    I was triggering this job trough an event in R3.
    In my PC I added a process type ABAP program,where i made an asynchronous call to the event in the ecc sandbox.
    But this is not working.Any ideas?
    Regards
    Ankit

    Hi Mario,
    Would RSPC_API_CHAIN_START work?

  • Capturing failure event of Process Type ABAP program in Process Chain

    Hi all
    I am calling an ABAP program in a Process Chain, there are subsequent steps after the ABAP program. The subsequent steps should execute if the ABAP program fails. While running the process cahin, if the ABAP program fails, then a pop-up comes up asking for triggering subsequent process. Since this Process Chain has to run in background mode, we dont want this pop-up. How can this be stopped?
    Please help.

    Hi Arnab,
    Welcome to SDN!!
    When you define the next step after the ABAP program select the action for as "error".
    Hope I have made things clear.
    Bye
    Dinesh

  • ABAP program on process chain

    Hi, 
       I'm trying to create an ABAP program in the process chain. I Know how to do this, so the problem that I'm having is that I need to know <b>WHO is</b> the process chain that is call me because this same ABAP program can we caller from another process chain. Exist any function code to interpret this ? I need to know this and then save it.
    Thanks a bunch.

    Hi Sebastian,
    please post questions like this in the another BI forum, e.g. BI General or Data Warerhousing. This forum is dedicated to SAP NetWeaver 2004s only topics.
    Nevertheless, please see the online documentation for the information you need
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/06/efd63b54e56276e10000000a11402f/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/06/efd63b54e56276e10000000a11402f/content.htm</a>
    (GET_INFO)
    For the implmenetation of a custom defined process type, please see
    <a href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/45d8a990-0201-0010-a290-f22083728179">https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/45d8a990-0201-0010-a290-f22083728179</a>
      Cheers
        SAP NetWeaver BI Organisation

  • How to add Abap program in process chain to check the another process chain status and do accordingly

    Hello All,
    My requirement is related to process chain 1 . I have one process chain in that i have to  put abap program in middle of that chain . This program will check the status of one another process chain 2 status ( whether it was completed or it is going on). if it is completed then continue the Process chain 1  to further activity else wait to complete Process chain 2 .
    Here i have to use process chain 2 as a parameter.
    Kindly provide me solution .
    Regards
    Saurabh

    Hi Saurabh,
    You need to create ABAP program in which you check the values for required process chain in
    following table
    RSPCLOGCHAIN (Feilds ANALYZED_STATUS LOG_ID)
    Depend on values you can trigger next process or you can wait unitil this process chain complete.you need to check status from table using ABAP.
    If you are not aware about how to write ABAP program then take help from ABAP Team.
    Regards,
    Ganesh Bothe

  • ABAP Program in process chain

    Hi All,
    We have ABAP Porgram(PROCESS TYPE)  in our porcess chain.
    It was failed today with following message in Job log
    " Table Locked.Data currently being processed by user ALEREMOTE " .But when i check in SM12 there was no locks I found there. and i have checked in sm21 also there also i didn't find anylogs at that time and date.
    So i tried by repeating the load of "ABAP Process "  the program went successful now.
    But client is asking which PROCESS CHAIN caused locks for this program.
    Is there any way to find out any other process chain is using the same " PROCESS TYPE (ABAP Program)"  in their process chain?.
    so that i can identify that process chain and inform to the client.

    First :
    The lock need not be due to another ABAP program...
    What you are seeing here is a table lock due to a conflicting process... for instance - lets say your program is reading 0MATERIAL and updating specific values in the P Table of 0MATERIAL. At the same time - if there is a data load happening to thi table - then your program or the data load whichever runs later - will face the locking issue.
    What you need to do is :
    1. Find out which tables are being UPDATED by the ABAp program - find out when these tables are being updated by other process chains - and then change the schedule for the same.

  • Error in Transport of ABAP Program in Process Chain

    Hi All,
    I am trying to transport a process chain that contains ABAP programs.
    I have transported the programs along with the other process chain variants
    There is an error that occurs when I transport - "Errors occurred during post-handling RS_AFTER_IMPORT for EVEN L" 
    The Process chain in the target system is fine except that I am not able to see the ABAP programs in the process chain.
    I am not able to locate the error.
    Your help will be appreciated
    Thanks,
    Shruti

    If a Process Variant (in this case; 'ABAP Program with success/failed' ) does not exist in the succeeding systems, it is very likely that this Process Variant has been created as a customized variant by a user. Unless the user transports this variant to further systems, this variant cannot be used in the process chain.
    Therefore it is better to use general Process Variants (those delivered by SAP) in the process chains. The General Variant here can be 'ABAP Program'.
    - Shruti Kulkarni

  • Problem in triggering abap program in process chain

    i m running a infopackage in a process chain .
    this infopackage creates the request in the DSO .
    after infopackage i m including the abap program to delete the same request in the process chain .
    but the abap program is not getting triggered .i have maintained the variant correctly for the program in the process chain .
    what can be done so that the program gets triggered .

    Hi,
    You can trigger you ABASP program from
    1. SM64  : copy the ABAP program's Afer event and parambeter and give it there and execute
    2.or go to
    SE37 >>Program : BP_EVENT_RAISE  >> say test execute
    and give the same after event and parameter ..and execute
    this might trigger your program
    Hope this helps you,
    Regrads,
    shikha

  • Return code from ABAP program in process chain?

    Hi,
    I have situation where I want to run some little part of my process chain only on mondays. So I am thinking of writing a little bit of ABAP that checks if is monday today. If it is, then return true, and if not return false. Then I want to branch on the outcome of my ABAP process...
    ...but how do I return that value?
    ...and what about the overall status if I use this trick to branch off?
    I have looked at:
    How to… Integrate an ABAP program in a process chain.pdf
    How to… Implement custom-defined process type.pdf,
    but those documents have not lead me to a solution yet...
    Best regards,
    Christian Frier

    Sorry I missed the code:
    *& Report  ZBW_STATUS_RED_GREEN                                        *
    *& sets Status at End on Red(default) or Green                         *
    *& History:                                                            *
    *&          02.11.2005 M.Schulze Author                                *
    REPORT  zbw_status_red_green.
    SELECTION-SCREEN BEGIN OF BLOCK eins WITH FRAME.
    PARAMETERS: red   RADIOBUTTON GROUP radi,
                green RADIOBUTTON GROUP radi.
    SELECTION-SCREEN END OF BLOCK eins.
    IF NOT green IS INITIAL.
      MESSAGE i162(00) WITH 'Status' 'Green'.
    ELSE.
      MESSAGE e162(00) WITH 'Status' 'Red'.
    ENDIF.

  • How to include an ABAP program in process Chain

    Hello Gurus,
    I have a situation where I have to go to SE38 and run an ABAP program which fills the active table of ODS2 by taking data from another ODS1.The data from ODS2 is again fed to another ODS3. So my question now is how do I create a process chain which takes care of this scenario.Especially include ABAP program in the process chain.Looking forward to your replies.
    Regards,
    Kalyan

    hi,
    take a look 'how to' ABAP in process chain
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7

  • Status of Abap program in process chain

    Hi,
    Is there a way to create process chain of type abap program that determine what the status of the process? In other words, to decide what the status color of the process (red/ green) according to some conditions in the code?
    Thanks,
    Mohamad

    Hi,
    look at this how to
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/509f3ae6-e36e-2910-48a8-ab43dc167dd9
    also:
    1.create a custom defined abap process type which ends correct or invalid
    2. create an abap whith 'E' message command (ends incorrect/red) or 'I' message tpye (ends correct/green)
    /manfred

  • Trigger abap program from process chain

    hello...i have an external source system which is a SAP client, I have a table with the fields i wanted, when the field of the table change to "ctmd end", the abap program in this source client will trigger the process chain in SAP BW and the selection of the infopackage which is a business date will be triggered as well to load the data based on the business key date in the source systems. I am new in abap program and wanna know can this be done so? If can, how can this be done? Thanks!

    generate an event through ABAP program and use that event to trigger that start process type of that process chain
    -- Amit

Maybe you are looking for