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.

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

  • 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

  • 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

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

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

  • 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

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

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

  • 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 I insert ABAP Programs in Process Chain ?

    Hi mates,
      I need to know how exactly in a Process Chain can I start a ABAP Program ?
      For Instance, if X happens the go and execute this program it not execute Y program ?
      Kindly advice

    Hi,
    Yes you can definitely insert an ABAP program process in a PC.
    You can include a ABAP Process which is available in the Processes under PC. And it asks for a Variant and ABAP report name.
    You need to create a Variant for the ABAP program.
    This will also have a Output, like if in case the variants are correct and the Program logic is matched then in that case the output is given else not given. Which turns the process GREEN / RED accordingly.
    Hope this helps,
    Pradip Parmar

  • Standard ABAP program for process chains

    Hi gurus,
      Is there any standard ABAP program to trigger process chains?
    I do not have authorization for RSPC_API_CHAIN_START. So is there any alternative function module or any standard ABAP program that I could use?
    Please help.

    Hi Apara,
      Did you try scheduling the chain via rspc1? If not then follow the steps as given below and see if it is successful
    1) Goto RSPC1.
    2) Enter your chain technical name.
    3) Go to display variant by right clicking the chain. Select the immediate option. save the settings.
    4) Come back to the process chain screen. Click on execute button. See if this succeeds.
    or in case if the chain has been already scheduled once:
    Just open the PC in RCPC1/RCPC
    right click on the start variant (i.e the first process in the PC)
    and select display scheduled jobs...
    this will show you the released jobs for this pC
    just selsct the check box in front of the released job and the select the menu option Job - > selct Repeat scheduling.
    selct immediate and remove the periodic tick mark and save which will run your process chain immediately.
    But i doubt if you will be able to schedule the process chain via a function module or a ABAP code without prior authorization. Maybe you can request some one from your team to run the chain for you until you get access.
    You will surely need to get access for running the chain without which it should not be possible to run the chain.
    Thanks
    Pawan

  • 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

Maybe you are looking for

  • Calculo do ICMS no processo de Transferencia SD/MM

    Pessoal, tenho um processo de transferencia MM/SD e o que ocorre e que na nota fiscal o valor esta saindo com preco embutido mais impostos. Ex: Alíquota de ICMS =7% Quantidade: 36 Preço Material: 143,52 Calculo Qtd x Preço material = 36 x 143,52 = 5.

  • Problem in using module AF_Modules/StrictXml2PlainBean in xml to file scena

    Hi Expert , I have problem in converting XML to CSV in the following structure. MT_EAN_MASTER        -E1WBB01               -E1WBB03                        -EAN_MASTER                                 -Item_no                                 -Item_des

  • Backup iTunes 11 to DVD

    In addition to backing up to an external HD, I would like to backup my iTunes Library to DVD's. The size of my library will require multiple DVDs. I used to be able to do this in older versions of iTunes, but I can't find option for this in iTunes 11

  • Issue with DBadapter - Getting Multiple records from DB

    Hi, i am facing issues when i am trying to take out data from database and populate it in my Dataobject... I ll gv an example... I have table A & B where A - B is 1:M mapping... Now suppose, A is having one records and B is having 2 records in DB...

  • Discoverer Plus - Creating URL's with Multiple Dimension values

    We are using the "Manage Links" feature in Discoverer Plus (10.1.2.2.0) to send dimension value names in a URL. As part of the "Manage Links" feature, the user is given the opportunity to choose which dimension values for the selected cells they want