Process chain to trigger automatically after file arrives in AL11.

Hi All,
There is a text file(.txt) which comes from mainframes team every Sunday between 11 AM to 6 PM and gets placed in AL11 inbound directory following which we manually trigger a process chain which uses this file.
The requirement is that this chain should trigger automatically after the file arrives in AL11 in BW.
Is it necessary for the mainframe team to send another control file or some other file in addition to the text file to trigger this process chain..?
Is there any other way the process chain can be triggered in BW without any changes required from the mainframe team.
Additional information:
Also I came to know that this can happen through some system command statements using SM49 we can schedule this chain.
Else can some ABAP Program code be used to make this process automatic?
Please help me.

Hi,
You can do the following, in your process chain change the start variant and make it event dependent. Now you can do the following,
1) Create a table in SE11 which will have fields like Process chain name and execution date as primary fields. This table will be used further for checking purpose.
2) Now create a ABAP program as shown in below given article, in this program in addition to raising an event you will have to read the file from app server.
3) If program can read file from app server means you will raise an event and make entry in above table for preventing further execution of process chain. If program can't read file from app server then program will simply end without doing anything.
4) Now you can schedule this program after every hour or 30 min. as per your requirement, the program will first check if the process chain execution entry exists in the above 'Z' table or not. If entry exists means the process chain has been already executed and the program will be terminated.
5) You can use FM to read data from app server. You need to be careful while placing file on app server, because it has to be different naming convention or something else to identify that the current day file is available.
[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a01cc44a-5aac-2d10-3eaa-a3bbf645d25c?QuickLink=index&overridelayout=true]
Regards,
Durgesh.

Similar Messages

  • Process chain: how to automatically remove from schedule?

    Hi All,
    Is there a way to automatically remove a process chain from schedule when it has failed?
    Thanks,
    Natalie

    I guess the easiest way is to access RSPC transaction and then remove it from schedule.
    --> execution tab --> remove from schedule.
    you can leave the process chain not active also, if it's triggered by an event, this event will not start it (if you dont want to delete or change trigger job)

  • Generic Process-Chain to load many individual files - How?

    Hello All,
    There is a requirement to extract 5 csv files to a single ODS every week.
    The files are individualy named and can appear all at the same time or spread out over 1 week.
    Current loading practice is to employ 5 process-chains, one for each file. The Process-Chains are very similar except that each calls a different InfoPackage which points to a specific file.
    I would like to be able to perform the load with only 1 process-chain.
    Initialy I though I could achieve this by running a script that renames the source files to genericname.csv for example, and then creating an InfoPackage that uses a logical filename. However, for audit  purposes, the source file names must remain unchanged.
    So, does anyone have any suggestions how to achieve the objective preferably without using OS-level scripting?
    Many thanks,

    Hi,
    There is no simple way to achieve this. You can create a master process chain that has the 5 parallel file CSV load including the DTPs and upstream data loads. You can specify the next steps start irrespective of error (versus only if successful which is default ) inside the process chain. Upon successful data load, delete the CSV file so anytime the PC is run again, its not available. You can create an OS command prompt in side the PC at the end to achieve it.
    So only the file that needs be extracted is available, eg: if csv1 needs be loaded to DSO1, the csv2-csv5 that load to (DSO2-5 or can be the same DSO) will not be available. So the process step1 will be successful, while  the remaining will error, however given that the PC will complete since the next steps aren't dependent on success/failure of each extract.
    Alternately
    If you have external job scheduling agent like Maestro, is to schedule the individual PC (5 pcs as they exist today, each run by the Maestro scheduler) load from there.
    Alternately, if the data is getting loaded from a flat file generated from R/3 or other SAP system, you can trigger the event from RFC which will start the respective process chain.
    Hope it helps.
    Samir

  • How can we set a process chain to trigger the nodes w/o manual intervention

    SDNers,
    We have a Master PC which has the loading & activation of some Hierarchies.Wats happening is some of the hier activations are failing (we got track of the root cause as well) and the nodes below are not getting triggered automatically, eventhough they have been designed to get triggered irrespective of success or failure of this hierarchy activation. The chain prompts for the u2018Status change & trigger the following eventsu2019 opo-up and only when it was said u2018yesu2019, the subsequent node gets triggered in the chain. If this manual intervention was not there, the Chain gets struck at the activation node, whic is running in yellow status for long, though a short dump - error has already been thrown.
    My query is how can we set a process chain not to anticipate the manual intervention of chnaging the status & trigger events pop-up

    Hi ravi,
    i'm not sure abt the query but what i got thru ur qustion is u have to automtaically go to the next load/step even the proceess chain fails in the step......
    for that we have the same master meta chains with link of so many local chains...for this even if there are some interventions/fails in between the process chains it never gets stopped....
    it goes to the next step and we'll work, analyse and finish the failed load manually....the next day it'll be
    fine...
    b4 to this make sure that there is no dependency for the previous loads....
    And now the solution i found for this is in the process chain design itself.......
    while giving the links itself we'll be getting the options as status RED,GREEN and RED(or)GREEN.....now if u got for the third option the event goes to the next step even it is unsuceesful....
    rgds,
    nkr.

  • Delete Index in Process Chain Takes long time after SAP BI 7.0 SP 27

    After upgrading to SAP BI 7.0 SP 27 Delete index Process & Create index process in Process chain takes long time.
    For example : Delete index for 0SD_C03 takes around 55 minutes.
    Before SP upgrade it takes around 2 minutes to delete index from 0SD_C03.
    Regards
    Madhu P Menon

    Hi,
    Normally  index  creation or deletion can take long time in case  your database statistics are not updated properly, so can check  stat  after your data loading is completed and index generation is done,  Do creation of database statistics.
    Then try to recheck ...
    Regards,
    Satya

  • Process chain is running even after the 'No Schedule After' date

    Hi Experts,
              On 19th sep, we scheduled a process chain where the scheduled start date is 20th sep, 07:30:00 and no start after date is 22 sep, 00:00:01. The periodic value is 'Daily' and there is no restrictions for this load.
             But yesterday the process chain ran at 7. We checked tbe jobs that triggered and found that the start date and no start after date is changed to 21 and 23 respectively.
            But the last changed date for the process chain is 19th sep only.
            Anyhow, we removed the process chain from schedule. But, I want to know the reason for this load that loaded even after the 'No start after' date.
           Please help me to know why this issue happened...
    Regards,
    Yokesh.

    I also have been caught by this option once : the "do not start after" is here to avoid problems of scheduling : let imagine your system can be stopped, for any reason, so the scheduling will be postponed. In this case, it avoid, for instance, to load data during the day. It's not for running a PC for only a certain period of time.

  • Process Chain: upload from PSA after activation of another ODS

    Hi gurus,
    i have a follow problem: for upload of ITM ODS i must before upload the HDR ODS. For the performance optimization of related process chain, the process:
    1) upload of HDR ODS from 2LIS_02_HDR
    2) upload of ITM ODS from 2LIS_02_ITM (ONLY PSA)
    are PARALLEL process.
    After activation of HDR ODS and upload of ITM PSA, with AND process, i upload data from ITM PSA to datatarget, but there is an process chain error:
    "No ods activation process can be in front of process PSA read and update data target in the chain" !!
    Could you help me?
    Thanks in advance!
    Bye!
    Ferdinando

    Hi,
    Have you tried this format.
    1. Upload HDR (PSA Only)
    1. Upload ITM (PSA Only)
    2. AND
    3. Update HDR (PSA to DT)
    4. Activate HDR
    5. Update ITM (PSA to DT)
    6. Activate ITM
    With Regards

  • Process Chain to do nothing if file does not exist in the application serve

    Hi All,
    We have a process chain that flows to different data targets daily if files delivered in the application server.
    Process chain does works fine.  But my question is do we have anyway to stop the process chain or do not run process chain if it does not find the file available any days during this time range instead of failing.*
    Is there any settings to enable the check if file available then run or else do not run at all.  Please help!!!
    Thanks,

    Follow the function modules listed in :
    http://wiki.sdn.sap.com/wiki/display/ABAP/Workingwithfiles
    with these function modules - you can get a list of files available in the application server directory.
    Pseudo code :
    1. Generate the automated fiel name you want
    2. Get the list of files in the directory
    3. Search the list of files to see if your file exists
    4. If the file exists then load the file , else load an empty file .
    The code is unfortunately in a different BW system that I do not have access to at this moment... but then the procedre is the same as detailed above.

  • ITunes opens automatically after file downloads - HOW TO FIX?

    Hi all,
    don't no wether it's my new MacBook or iTunes 10, but every time I download a music file from the internet it automatically opens, and starts playing, in iTunes.
    Even if iTunes is closed it opens it up and starts playing..
    I really want this to stop and just manually add the songs to iTunes.
    Is there a way to fix this?
    Thanks in advance.

    Its not Itunes, its Safari. It has a setting for "automatically open safe files" after download. So it opens them in itunes. If you disable that setting, you should be fine.

  • Process Chain Status Red, DTP status yellow, DTP is green from inside

    Hello All,
    I have a problem where the  Process Chain  status is red, but the process(DTP) status is yellow.
    When I right click on the yellow process there is no error message and the DTP is green in Process Monitor.
    But the chain did not complete and the rest of the process steps are grey.
    After 20 minutes the Process Chain ran again(automatically after new data arrived) and this time without errors and it went green.
    My question is, how to proceed with the red Process chain and complete the further process and make it green.
    Regards
    Alex

    hi,
    There are scenarios where you need to change status of a process chain or a particular step in process chain.
    You might need to change the status in the cases where we need mark these steps successful so that dependent steps get processed. There are other scenarios where one needs to change the status of a single step in the process chain or status of whole process chain.
    Step by step instructions on change process chain status
    1. Right click on the failed step in the process chain monitor and go to displaying messages
    2. Go to u2018Chainu2019 tab and note down variant, instance and start date
    3. Go to SE16 and the table RSPCPROCESSLOG and enter variant, instance and start dates from step 2 and note down log_id, type, variant, instance.
    4. Go to SE37 transaction and execute the function module RSPC_PROCESS_FINISH and enter the values from step 3 and enter the new status u2018Gu2019 in status field and execute the FM
    5. This sets the status of the process chain (PC)
    After you set the status using the FM, go to the monitor screen of the process chain, you will notice the changed status. Now dependent steps in the process chain will start running
    Thanks

  • Process chains trigger process

    Hi,
    I am using process chains to load the data and the respective processes after load. I scheduled the process chains to trigger every day. But our systems will be down for back up on a weekly basis.So is there any way I can stop this scheduled jobs all at once instead of going to each procee chian and removing the schedule every time we shut down the systems.
    Appriciate if any one can help me on this.

    I suggest to use the sapevt.exe.
    With it you can trigger an event in the SAP system with the execution of a simple command file (.bat for ex.)
    So the event will start the chain as you require.
    You can find more info for sapevt in:
    http://help.sap.com/saphelp_nw04/helpdata/en/fa/096e6b543b11d1898e0000e8322d00/frameset.htm
    Regards,
    Sregio
    Did you try that?
    Message was edited by: Sergio Locatelli

  • Event to trigger Process Chain

    Hello Experts,
    I need your suggestions to write an event to trigger a process chains after user put text file to server,
    but the PC is not run.
    here the step what I have done.
    a. define an event SM62 "ZEV_PC_START"
    b. create abap code to check the file if exist raise the event ZEV_PC_START with BP_EVENT_RAISE.
    c. create Process chain.
    d. schedule PC after event "ZEV_PC_START"
    Could any one tell me the steps in brief. Pointers to any documentation would be highly appreciated.
    thanks
    supriatna

    Hi expert,
    I need create the abap code to check the file if exist raise the event ZEV_PC_START with BP_EVENT_RAISE.
    I don't know ABAP, could you help me with the code?
    Could you give me examples, please?
    Thanks,
    Best Regards.

  • Process Chain gets unschedule after execution

    I've created 1 event based process chain
    i'm triggering this event from an abap program.
    but after executing the process chain, the process chain gets unschedule automatically. I've used BP_RAISE_EVENT FM to trigger the event.
    Thanks in advance.

    Hi AG,
    Can you please check the value of profile parameter:
    rdisp/rfc_min_wait_dia_wp in you remote BW system. Is it 1?
    If that is the case please increase the value to a more suitable value. This will determine the number of waiting dialog work processes in your system.
    It is dynamically switichable. Please try this out and check the results.
    Please award points if issue got solved.
    Regards.
    Ruchit.

  • Download file from process chain

    Hello experts,
    i have just created a data model and report from flat file(CSV) in BW 7.0.
    I understand that if I want to include the extraction from the DataSource into the InfoPackage in the process chain, the CSV file needs to be on the Application Server.
    The external database is being updated with new data daily. There is a URL - www.example.com/export.php -  that when accessed, deliveres the updated flatfile from the database.
    My question is: can i integrate this download in a process chain to be automatically triggered, so that every morning I have the updated data in the report?
    Thanks.

    Hi Andrei,
    Am not sure how to execute the url using the process chain. But still we can check whether the file is available in the application server or not.
    We have a process variant called OS Command, using this variant type we can check whether the file is available or not for some tim intervals. In case file is availabe then the next process will trigger else it will keep on searching for the file until it finds.
    Regards
    Chaithanya

  • How to trigger a local process chain to run manually

    Dear Experts,
    In my company, I have a Daily process chain.
    In this Daily process chain, it contains many other local process chains which are grouped by modules.
    For example, I have created the following 3 process chains:
    - Accounts Receivables Process Chain which contains all the required process for loading FIAR data.
    - Accounts Payables Process Chain which contains all the required process for loading FIAP data.
    - Inventory Process Chain which contains all the required process for loading  Stocks data.
    These 3 process chains are scheduled one after the other in the main process chain which is called Daily Process Chain.
    FIAR needs to be successful before FIAP can run and Inventory chain will run only after FIAP is successful.
    Normally it runs without any problems.
    But recently, when the previous chain is successful, the next process chain does not get triggered to run.
    In the end, I have to manually execute the remaining process chains to start running.
    With this, all data are loaded, but the Daily Process Chain status for the day is yellow because it is not complete.
    Is there a program or method which I can execute or use to trigger the process chain to continue to run in the Daily Process Chain? If there is, please let me know so that I can avoid having to run the process chains manually one by one.
    Thanks in advance for your help.
    Regards,
    Shunhui.

    Check thid thread with the similar issue:
    Process Chain - Node untriggered.
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains

Maybe you are looking for

  • J2ME wrapper--  is this possible?

    Is it possible to "wrap" a compiled .jar to provide DRM protections? I've seen a few hints at this online, but can't find any information other than possibly editing the .jar file using javassist or HECL. Any help, insight, or alternatives would be g

  • Tables regarding to cj20n transaction

    Hi all,      I need to know where user fields in transaction cj20n transaction. please help me. i want these fields depends on actvity and activity type. this is urgent. Thanks, Ananth.

  • Problem in formulas

    Dear Gurus. Iam a doubt regarding Formulas. I have a Sales order date and Delivery date in my report i want to write a formula which gives Delivery date - Salesorder date. For EX: Sales order date is 1/3/2010 and delivery date is 4/3/2010 i want to g

  • Question about generating a delay  :-P

    Hello. I have some movie clips on my root, and in a button press they all do something. I want them to do that thing not immediately, but only after a delay. What is the simplest way to delay the commands?   setDelay  or  setTimer  thing? 10ks.

  • How to alert user the Db is shutting down

    Hi all: Is there a way through forms such as using 'DBMS Alert' that will warn the users when the DB is being shut down. I need a proc or something that will warn the users on the system when the DB is being shut down. Does anyone have any suggestion