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
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,
DianaIf 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 -
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,
Kalyanhi,
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 -
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 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,
Harshhi,
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 -
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 -
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 FrierSorry 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. -
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
SaurabhHi 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 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.
FernandoLet 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. -
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 -
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,
MohamadHi,
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 -
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
AnkitHi Mario,
Would RSPC_API_CHAIN_START work? -
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 -
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 -
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.
Maybe you are looking for
-
Apple support had not responded to my requests for clarification. The update corrupted both ITunes and Office Outlook mobileme. The error message when I tried to start up I Tunes was Error 7 Windows 193. I un installed I Tunes and re installed t
-
The difference between white and blue folders...
... in Mail is explained very clearly on this page. G5 DP 2 GHz Mac OS X (10.4.8) No Haxies; permissions frequently repaired etc
-
Flash player does not work in Windows 8 tiles
Flash player does not work in Windows 8 start metro tile applications. Flash player also does not work in Windows 8 start tile internet explorer 10 1n windows 8. Flash player does work in Windows 8 desktop internet Explorer 10. I tried all of the rec
-
Can I convert my Elements licence from Windows to IOS
I am using Premier Elementson on a windows 7 PC, can I convert this to run only on an IMAC running IOS Yosemite ?
-
HELP!! Photoship CS3 has stopped working
Just purchased a new laptop that runs Windows 7 and yesterday Photoshop CS3 was working fine. Today it gives a message during the start up that it has stopped working and Windows will close the program and notify me if there is a solution. Any thou