Server name message when triggering process chain through ABAP PROGRAM
Hi all,
When I am trying to execute one process chain with variant as a APD ( In this APD data is getting loaded form one Query to Transactional ODS.) This process chainis being executing through one ABAP program using the following code
CALL FUNCTION 'RSPC_API_CHAIN_SCHEDULE'
EXPORTING
I_CHAIN = 'XYZ'. ( Dummy Process chain name)
While executing this program I am getting following message :
You can specify the name of the application server here
on which all jobs in the chain are scheduled
If you do not specify a name, the jobs from batch
management are divided between the available servers
How to avoid this message.
Can we write any code in the above program to assign any fixed server name so that it will not ask for any server name.
Your help is much appreciated.
Thanks,
Uday.
Hi Shanthi,
How to write exception handling for this.
Quick reply is nedeed.
Thanks,
Uday.
Similar Messages
-
Triggering Process chains through abap code
Hi Experts,
Can you please let me know if it is possible to trigger a BW Process chain using an abap code.
If yes , kindly let me know the sample code.
Help done would be appreciated.
Regards,
UdayHi Thanks for your reply.
When I am trying to execute process chain with variant as a APD ( In this APD data is getting loaded form one Query to Transactional ODS.) This process chain being executing through one ABAP program using the following code
CALL FUNCTION 'RSPC_API_CHAIN_SCHEDULE'
EXPORTING
I_CHAIN = 'XYZ'. ( Dummy Process chain name)
While executing this program I am getting following message :
You can specify the name of the application server here
on which all jobs in the chain are scheduled
If you do not specify a name, the jobs from batch
management are divided between the available servers
How to avoid this message.
Can we write any code in the above program to assign any fixed server name so that it will not ask for any server name.
Your help is much appreciated. -
Trigger Process chains through ABAP program using selection screens
Hi All
I am loading flat files through process chains. My requirment is such that i need to create a ABAP selection screen so that user can load the flat file from his PC. when the user is loading the flat file i have to copy the file onto the application server folder and then display him the monitor errors/warnings (if any). when my data load is complete i need to archive the file with time stamp onto the application server folder.
Please help me in this regard....
thanks and regards
sairam phaniHi sairam
can you check this link hope this might help you out
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
Going thru your query hope i get the right solution
Thanks=points in SDN
Sanjeev kumar hamsala -
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.KHi,
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. -
Trigger process chain in ABAP program
Hi Experts,
We have a requirement to trigger the process chain from an ABAP program. I used the function module RSPC_API_CHAIN_START to trigger the process by passing the process chain name in 'I_CHAIN' and it worked. However, the client wants to trigger this using batch user name as few planners do not have authorization when they executed the custom transaction.
Based on the return code of the function module I am capturing the status for tracking.
Please suggest if there is any alternate solution to pass the user name while triggering a process chain in an abap program.
Thanks and Regards,
Pavithrahi Chintai,
in bw side, you create a abap program to trigger an event in r/3,
and include this abap program in your process chain, the abap program like
CALL FUNCTION 'BP_EVENT_RAISE'
EXPORTING
eventid = 'ZRUNJOB_DEL'
and in r/3 schedule the program to delete previous data with 'after event',
the event name is same as raise by bw process chain, in this sample ZRUNJOB_DEL.
hope this helps. -
How to process process chain in ABAP program
Hi,buddy:
If I want to start Process Chain in ABAP program,then which code or function can be used?
Best Regards.
Martin XieHi Martin,
How-to trigger a process chain using ABAP?
Hope it suffice,
Cheers
SRS -
Invalid DataStore object name error when running process chain after EHP1
Hello,
We recently upgraded our BW Dev platform to NW7.01 EHP1 SP6. I noticed that the layout for "Delete PSA Request" process in the Process Chain has changed after the upgrade. We can no longer specify the actual PSA table to delete eg, /BIC/B0001645. Instead we need to specify the Datasource name and the Source System.
Now after the upgrade when I run one of my process chains, it fails at "Delete PSA Request" step with error message "Invalid DataStore object name /BIC/B0001645: Reason: No valid entry in table RSTS". This datasource is based on the flat file source system and the PSA table for this Datasource is /BIC/B0001653.
Unfortunately the process chain is picking up an older PSA table for this datasource and there is no way for me to specify the current PSA table name after this change in layout with EHP1 upgrade. Any suggestions on how to resolve this issue.
Many Thanks,
AlHi,
Please implement OSS 1345331.
If this does not help try the below steps:
1. Run the report 'RSAR_PSA_CLEANUP_DIRECTORY/_MS' in check mode for a
particular PSA table for finding the inconsistencies.
2. After that please analyze the logs and if there is any problems related to partition, you need to correct them using the report u2013
3. 'SAP_PSA_PARTNO_CORRECT' in repair mode for the
PSA tables. Run the report again after this
4. 'RSR_PSA_CLEANUP_DIRECTORY/_MS' in check mode to
double check that the invalid partitions are
corrected.
Once this is done you can execute the report
'RSR_PSA_CLEANUP_DIRECTORY/_MS' in repair mode.
-Vikram -
Error Messages when Transport Process Chain to Production
I am able to transport three related process chain to Q, but failed in Prodtion. Can anyone look at my error messages? Thank you!
Start of the after-import method RS_RSPC_AFTER_IMPORT for object type(s) RSPC
Version 'M' of chain USFCMD was saved without checking
Results of check for process in chain :
Results of check for process in chain :
Results of check for process TRIGGER START_USLDFORECT_MD in chain USFCMD:
Version 'M' of chain USLDFC was saved without checking
Results of check for process in chain :
Results of check for process in chain :
Results of check for process TRIGGER START_USLDFORECT in chain USLDFC:
Version 'M' of chain USLDFORECT was saved without checking
Results of check for process in chain :
Results of check for process in chain :
Results of check for process ODSACTIVAT USDSOFC_ACTIVATE in chain USLDFORECT:
Results of check for process ODSACTIVAT USDSOFC_ACTIVATE in chain USLDFORECT:
Results of check for process TRIGGER START_USLDFORECT_TD in chain USLDFORECT:Try to transport the process chain by removing the process chain from schedule.
Go to Process chain select execution in menu..go for option "Remove from schedule"
It may help you.
Regards,
Srinivas. -
Trigger process chains using ABAP program selection screen.
Hi All
I am loading flat files through process chains. My requirment is such that i need to create a ABAP selection screen so that user can load the flat file from his PC. when the user is loading the flat file i have to copy the file onto the application server folder and then display him the monitor errors/warnings (if any). when my data load is complete i need to archive the file with time stamp onto the application server folder.
Please help me in this regard....
thanks and regards
sairam phaniHi,
1. Using TA: AL11 create a folder in application server.
2. There is a program to send the flat file to application server on r/3 side.
Program Name:RC1TCG3Z.
3. Regarding archiving...I have no idea.
Regards,
Vijay. -
How to schedule a Process Chain using ABAP Program?
Hi All,
I want to schedule the activity of extracting data from the query to a flatfile.
Currently we are schedulling it using the transaction rscrm_bapi.
I need to know , how we can achieve the same using an abap program and not ( rscrm_bapi) in a process chain.
Any help would be appreciated.
Regards
PurvaYour problem will be solved if you use the Function Module "RSPC_API_CHAIN_GET_STATUS" instead of the function module "RSPC_API_CHAIN_GET_LOG".
The function module "RSPC_API_CHAIN_GET_STATUS" gives you the STatus of the process chain, when you pass the Chain Name and the Log ID.
If you get an output
G or F - Report that the Chain is Successfully Completed.
A - The chain is Currently running
R or X - Report that the chain has ended with Errors.
Sample code :
REPORT Z_BW_GET_STATUS_PROZESSKETTE.
TABLES rspclogchain.
DATA: gt_rspclogchain LIKE rspclogchain OCCURS 0,
wa_rspclogchain LIKE rspclogchain.
DATA: gt_log LIKE rspc_s_msg OCCURS 0,
wa_log LIKE rspc_s_msg,
gt_status like RSPC_STATE.
SELECT * FROM rspclogchain
INTO CORRESPONDING FIELDS OF TABLE gt_rspclogchain
WHERE datum = sy-datum
AND chain_id = 'BD_C02_1D'.
IF sy-subrc = 0.
SORT gt_rspclogchain BY datum DESCENDING
zeit DESCENDING.
READ TABLE gt_rspclogchain
INTO wa_rspclogchain INDEX 1.
CALL FUNCTION 'RSPC_API_CHAIN_GET_STATUS'
EXPORTING
i_chain = wa_rspclogchain-chain_id
i_logid = wa_rspclogchain-log_id
IMPORTING
E_STATUS = gt_status.
IF gt_status = 'G' or gt_status = 'F'.
WRITE :/ 'BD_C02_2D chain COMPLETED'.
ELSE.
WRITE :/ 'BD_CO2_2D chain is Running or Ended with Errors'.
ENDIF.
ELSE.
WRITE :/ 'No chain BD_C02_2D started for today ! or keine Kette BD_C02_2D gestartet !'.
ENDIF.
I have just provided a sample code, you might have to edit or add necessary messages to the program.
Regards,
Ramya -
Ending a process chain with abap program
Hello friends.
Can anyone help me please?
I have a problem with a process chain in BW.
The process chain is triggered by the MF BP_EVENT_RAISE in an custom MF. While the process chain works, the custom MF is monitoring the chain´s log.
This process chain have 2 steps: one is the initial process and the other is a ABAP program. In the abap program there are validations and if exists some error, the program abort and this job (BI_PROCESS_ABAP) is cancelled. The problem is that i have to go to the Tx. RSPC and view the logs fro this chain and in these moment ends th custom MF. In other wors, the MF ciustom ends until i go to the tx RSPC for view the logs.
I need that the program ends the process chain naturally.
Thanks for your help.
Regards.Hi,
You can end a process chain by seeing the variant name and instance name of teh process chain from and finding its corresponding log id,type of process from the table RSPCPROCESSLOG and then executing the standard FM RSPC_PROCESS_FINISH. Here you will have to give the log id,type of process ,vairant name and instance name alongwith the status of the process chain as R to end the process chains.
If you want to aurtomate it you can do that by creating a Z program which will read LOG ID and teh TYPE of process from table RSPCPROCESSLOG on the basis of variant name and the instance name of the process chain and the execute the function module RSPC_PROCESS_FINISH from inside the program.
Navesh -
Fork in process chain using ABAP program
Hello everyone.
I need a fork in my chain. Depending on the values in some db table I will make a decision: do some process or skip and go further. The only solution I can see is using ABAP program. But unfortunately It doesn't return status. Any suggestion will be appreciated.Hi,
You have few process to run after the abap program. So make all those process as a different chain, and at the end of the ABAP program include a function module to trigger this chain, based on your condition.
If you like this idea, please revert for more information.
Hope this helps.
Thank you, -
Trigger Process Chain through the Web
Hi,
I am trying to allow the users to control when they trigger a process chain through the web.
The users have a number of integrated planning sheets, which they access and input, once they are happy with the inputs, then they want to trigger the process chain to carry out additional loads.
I am using function module RSPC_CHAIN_ACTIVATE_REMOTE to trigger the process chain, when I test this with the chain set to direct scheduling it works fine.
I have set a planning function to call RSPC_CHAIN_ACTIVATE_REMOTE, with the process chain in question. Now when I run it with the chain set to direct scheduling it repeatedly calls the process chain over and over again, like it is in an endless loop.
When I try setting the chain to Meta Chain or API nothing happens.
Does anyone have any ideas why I can't get this to work through the web?
Thanks
DCALL FUNCTION 'RSPC_API_CHAIN_START'
EXPORTING
i_chain = 'YOUR PROCESS CHAIN NAME'
EXCEPTIONS
error_message = 1.
IF sy-subrc <> 0.
CALL FUNCTION 'BALW_BAPIRETURN_GET1'
EXPORTING
type = sy-msgty
cl = sy-msgid
number = sy-msgno
par1 = sy-msgv1
par2 = sy-msgv2
par3 = sy-msgv3
par4 = sy-msgv4
IMPORTING
bapireturn = p_return.
RAISE STREAM_FAIL.
ELSE.
RAISE STREAM_SUCCES.
RETURN.
ENDIF. -
Hi Experts,
We have a meta chain which contains two local chain in sequance and consuming 10 hours to complete
Process Chain 1
Process Chain 2
We have used the events to trigger process chain 2 only when it meet certain condition and modified the meta chain as
Process Chain 1
Abap Prg to trigger Process chain 2
But now the meta chain just consume 4 hours to complete even though process chain 2 is on progres.
This is giving wrong update to the users as the load is completed.
Is it possible to retain the status of the meta chain as in progress untill the process chain 2 triggered by event gets complets.
Regards
Suresh KumarHi Suresh,
when you are using event as a process in the metachain, it checks if the event ran succesfullly or not.
once the event is succesfull(event - triggering of the process chain but not completion), the step turns green.
so follow below procedure.
1)in the abap program, instead of triggering the process chain,write a program which raises an exceptio if the condition you required is satisfied so that the step becomes red.
use the proicess chain as next step in the process chain and conect this program to processchain step with th condition failure.
Hope this helps,
Srinath. -
Failed to create a user with Mac Mini Server, the message "Failed to process the command writesettings" in the module "servermgr_sharing"
I have a Mac Mini with OS X Server 10.8.5 and Server 2.2.1 and have a problem to share the public folder.
When I enter the Server application to indicate that I want to share the public folder on the network and assign user I get the following message appears
And I can not share the folder.
If I go from my i-mac get mac mini server view and access the public folder, but I can not open any of the files there.
That I can do to fix this?
thank you very much
Maybe you are looking for
-
Not Working: BlackBerry Link Remote File Access Remove Old BlackBerry from BB ID
I have: removed my blackberry q10 from blackberry link, wiped my q10, uninstalled and reinstalled blackberry link, have link version 1.1.1.32, blackberry q10 os version 10.1.0.2309 - which whenever I plug in the q10 after removing the device from lin
-
Unordered list not printing correctly
I created a heading 3 followed immediately by an unordered list. However, when I print the webpage out, I see the heading 3 fine and then the 1st bullet appears where it should but the text for the first bullet begins several lines down the page. All
-
Changing Administrator Login on Provisioned SQL Azure Server
We would like to change the Administrator Login on a server that was already provisioned. I do not see a way to do this. I see how to add additional Administrators but not change the primary one. Any ideas?
-
I have lost access to Safari on my imac
I have done something and have now lost access to Safari. I get the error message: You can't open the application Safari because it may be damaged or incomplete. How can I reinstall Safari? Can you help?
-
HP MINI 5101 problem with instaling XP SP3 with Usb Hard disk
i have problem formatting and installing windows XP SP3 with my usb hard disk on HP Mini 5101 my laptop wont read my usb anyone have any suggestions??? please help