Running Process Chains via abap

Hi all,
I have scenario in loading text file to cube via chains using abap, here the step:
Start from abap code to check the file, if exist run the Process chains
<b>Process Chains</b>
a. <b>start</b>
b. <b>load data</b>  
c. <b>updt from PSA</b>
d. <b>program</b>  "move file to err folder if loading error
e. <b>Attrbute Change</b>
f. <b>program</b>  "move file to suc foled if loading successfull
g. <b>program</b> check file is still exist
it's looks like machine gun
The problem is always create two job "loading" (sm37) each file after abap code for checking file run the event 4 chains. This happened makes loading process takes time event the file only 20 records.
Why this happened? Please
Any suggestion is highly appreciated would be thankful for all
rgds
supriatna

you already raise the event after you checked the file successfully, right? And you already scheduled your process chain waiting for that event?!
-> yes, it's done and works
But what do you mean with 'each file have 2 jobs ...'
- > after a file founded and run the chains and I check the job using (sm37-job overview) there are create two job for BI_PROCESS_TRIGGER, BI_PROCESS_PSAPROCESS, BI_PROCESS_LOADING, BI_PROCESS_ATTRIBCHAN
is there time out ? no time out, stop by system
I have put 10 files but some times the process only run 2,3,5 file after that the job is stop.
here the message:
Process ABAP, job count 15425901 should already have started
System response
The chain has been terminated.
Procedure
There are probably not enough background proceses in your system.
Make sure that there are enough background processes, because parallel processes also run when process chains are processed.
The repeat frequency of the start-process may be too short. Look into this.
any suggestion on this problem ?
thanks in advance
supriatna

Similar Messages

  • Error when run Process Chain via BPC NW

    Hi Gurus,
    I am implementing SAP BPC 7.5 NW in a customer and I´m facing the following error when try to run a process chain via Data Manager: "Failed to analyze instruction ,TAB,%TAB% ".
    Here is the scenario: we created a process chain that will be able to capture values recorded in a BPC application, load them into an DSO (make some transformations there) and finally send those transformed values to an specific table at ECC. This process will be started after some simulations at BPC and, when the user ends its simulation, start this process chain via BPC; this process chain is named as PC_ECC.
    We made a  copy of /CPMB/DEFAULT_FORMULAS and named it PC_FORMULA and, before step /CPMB/CLEAR, I assigned my process chain PC_ECC.
    So, at Data Manager, I add this process chain (PC_FORMULA) and in Advanced button, I put this statement:
    INFO(%EQU%,=)
    INFO(%TAB%,;)
    TASK(PC_FORMULA,TAB,%TAB%)
    TASK(PC_FORMULA,EQU,%EQU%)
    TASK(PC_FORMULA,SUSER,%USER%)
    TASK(PC_FORMULA,SAPPSET,%APPSET%)
    TASK(PC_FORMULA,SAPP,%APP%)
    //TASK(PC_FORMULA,LOGICFILENAME,DEFAULT.LGF)
    //TASK(PC_FORMULA,REPLACEPARAM,TESTE3%EQU%%TESTE3%%TAB%ASARENT%EQU%%ASARENT%%TAB%SOURCE%EQU%%SOURCE%%TAB%TARGET%EQU%%TARGET%)
    As we do not have any script logic to be executed, we commented the two last statements.
    When we run this package via DM, it gives us the message error:  "Failed to analyze instruction ,TAB,%TAB% "
    Looking through SDN forum we found two posts similar to this issues:
    But the suggestion to supress the statement TASK(PC_FORMULA,TAB,%TAB%) do not work; when we comment this statement, the message error gives us the message:"Failed to analyze instruction ,EQU,%EQU% "; when we comment the statement TASK(PC_FORMULA,EQU,%EQU%) and the previous (with TAB). the DM gives us the message: TASK(PC_FORMULA,SUSER,%SUSER%) and so on, until nothing has left to comment.
    Anyone of you view or has some similar case of error?
    Thanks in advance to you all
    Best Regards
    Adriano

    Hi Rich,
    Thanks for your answer.
    I checked the parameter at my process chain and it has a variant (/CPMB/DEFAULT_FORMULAS_LOGIC) with the parameters:
    TAB
    SUSER
    SELECTION
    SAPPSET
    REPLACEPARAM
    MEMBERSELECTION
    LOGICFILENAME
    EQU
    So, when I put in the task PC_FORMULA, TAB, %TAB%, it will be able to be recognized by the task...and the other parameters too. And when I take one of them off the task instructions, the system complains.
    Any other suggestion?
    Once again, thanks..a.nd best regards
    Adriano

  • List of Process Chains via ABAP Class

    Anyone know if there is an ABAP Class that will return a table of the available process chains in the system?  I looked at CL_RSPC_CHAIN, but don't see how to get a list of what is out there.

    This works for me..  I would think you'd be able to do this with a class..  Thanks!  Anyone else know a way to do this with one of the classes?
    Thanks!

  • Deleting master data in a process chain via ABAP "RSDMD_DEL_BACKGROUND" ?

    I need to delete master data attributes in a process chain.
    Since there seems to be no predefined process type for this, I looked for an existing ABAP in the dictionary and found the ABAP report "RSDMD_DEL_BACKGROUND". I plan to call this ABAP in an ABAP-process-step in my process chain.
    Unfortunately, I'm not shure how to set the input parameters:
    report rsdmd_del_background .
    type-pools: rsd, rrsi, rsenq.
    parameters: p_iobjnm like rsdiobj-iobjnm obligatory,
                p_chabnm type rsd_s_cha_bas-chabasnm obligatory,
                p_delsid type rs_bool default 'X',
                p_deltxt type rs_bool,
                p_obj    like balhdri-object,
                p_sub    like balhdri-subobject,
                p_ext    like balhdri-extnumber,
                p_noprot type rs_bool.
    Can anybody help me, with the settings needed or point out another way to achieve the deletion of master data attributes in a process chain?
    Thanks in advance, Frank.

    Hi Frank,
    as I already suggested in a previous thread, try to look at the FM 'RSDMD_DEL_MASTER_DATA'(in the pgm LRSDMDU12)...but pay attention to the other elements that the system certainly checks in order to complete this type of process !
    Hope it helps.
    Bye,
    Roberto

  • Run process chain on last three days of the month

    Hello
    I need to run process chain on last three days of the month. For example , It should run on 28, 29 and 30th dates of June.
    There is no option to put a code in the start process of the process chain.
    I can run it every day and put a code in the infopackage/DTP so that empty load (0 records) will be done on other days.
    This doesnt sound as a good option.
    Do u know any other options?

    Hi
    See the code and details how to do it, and change the code as per your requirement.
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Triggering  the Process Chains at Particular Date using Events
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/triggering%20%20the%20process%20chains%20at%20particular%20date%20using%20events.pdf
    BI-ABAP (Trigger Process Chains on evry month 3rd and 4th day).
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=81428842 
    Thanks
    Reddy

  • Trigger Process chain using ABAP code

    Hi All,
    As per my knowledge there are 2 ways to trigger a process chain using ABAP code :
    1) Using FM ‘RSPC_API_CHAIN_START’ and passing process chain name as the parameter
    2)Using FM 'BP_EVENT_RAISE' and passing process event as the parameter, which you can create using SM62 transaction.
    I would like to know which one is better to use, in terms of advantage and disadvantage.
    Thanks,
    Praveena

    Hi praveena,
    check these links ..u .may get some help
    Process Chain
    Process Chain
    How to run a Process Chain
    Process chain-parallel process
    Regards
    BILL

  • Error running process chain

    Hi,
    wehn we run  process chain , the result from optimizer log showing error indicator , we check the abap run time using ST22 and discovered the message
    DBIF_DSQL2_SQL_ERROR
    what the message try to tell us , how to troubleshoot it .?
    thanks

    Hi AF,
    try to look on SAP notes  978417 - Latch Monitor and Table Access Monitor: DBIF_DSQL2_SQL_ERROR. I guess this will solve your problem. It states also here on how you fix the issue.
    Let me know if this make sense. Have a nice day!
    Regards,
    SASJr

  • 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,
    Pavithra

    hi 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 stop the running process chain

    How to stop the running process chains or infopackges...just qm status change is enought?

    BI - SM 37 - Kill the Job
    ECC - SM 50 - Kill the job

  • Is it possible to run process chain from the certain process/point?

    Hello
    Is it possible to run process chain from the certain process?
    How?
    Thanks

    Hello,
    yes it possible! use the following steps.
    1. Goto the process which you want the chain to start from.Goto display messages>> Chain tab. In the generated instance note the variant and instance.
    2. Goto table RSPROCESSLOG and give variant and instance and get logid details.
    3. t codese37>> run FM RSPROCESSFINISH.
    4. give the deatils u have got in RSPROCESSLOG table here and say execute.
    This will solve ur problem.
    Hope this helps!
    Reg
    Deepmala

  • How-to trigger a process chain using ABAP?

    Does anybody know how to trigger a process chain using ABAP code?
    Any help would be appreciated!
    Thanks
    Ioan

    Hi Ioan,
    try this in your ABAP:
        CALL FUNCTION 'BP_EVENT_RAISE'
          EXPORTING
            eventid         = 'Your Event'
            eventparm       = 'START'
            target_instance = ' '
          EXCEPTIONS
            OTHERS          = 01.
    and schedule your process chain, waiting for 'Your Event'.
    regards
    Siggi

  • How to run process chain in day of 20 and 2 every month?

    Dear all,
    I have to run process chain in day of 20 and 2 every month,but the settting of PC just allow Scheduled start every month once
    time.
    Please tell me the way of setting process chain.
    Thanks.

    Hi,
    (1) Create an event in the BW system
    Define a system event (for example SAP_BW_TRIGGER) with Transaction SM62. Lets says it is "EVENTX". Use this even in the Process chain and execute the process chain as repeative job.
    (2) Use the below lines of code in the program for calling a Fucntion which trigeres the event created above . Here in this program you will call the the Below FM if and only id the sy-datum is 20 th or 2nd of the month ( as mentioned by our friend suggested).
    call function 'BP_EVENT_RAISE'
    exporting
    eventid = EVENTX
    exceptions
    bad_eventid = 1
    eventid_does_not_exist = 2
    eventid_missing = 3
    raise_failed = 4
    others = 5.
    endfunction.
    Regards,
    Anil Kumar Sharma .P

  • Transportation of process chains with ABAP variants

    Hi,
    Could you please help me in finding out how to transport process chains with ABAP variants.
    I can transport them, however when transporting them, I overwrite the already existing variants, which is very unfortunate...
    Could you please advice.
    Thank you in advance!
    /Brian

    Hi Ramesh,
    Option 1:
    You can directly create the process chain in Production. Most of the times ppl do have access to create a process chain in Prod. Kindly check whether you have the authorization to do so.
    Option 2:-
    I did not suggest to delete the old info-packages in QA and Prod. Let them continue to exist but you may not use them once the process chain is in place. You create the process chain, test it and move it up to Prod. I dont' think the new infopackages will hamper your delta load. The delta is not dependent on the infopackage.
    If I were you, I would try the second option and if it does not work during testing then go for the first option.
    Bye
    Dinesh.

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

    Hi Martin,
    How-to trigger a process chain using ABAP?
    Hope it suffice,
    Cheers
    SRS

  • Problem with AND process in daily running process chain

    Dear Friends,
    I am currently I am facing problem with AND process. In my daily running process chain, daily the process chain is failing at AND process. Currently I am workaround and manually repairing the AND process and loading the data with below (link) steps.
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    I need permanent solution for this reoccurring problem. Kindly share your thoughts and ideas to resolve this problem.

    Hi,
    The below are the job log. After this the batch job is failing.
    Job log overview for job:  BI_PROCESS_AND
    Job started
    Step 001 started (program RSPROCESS, variant &0000000190315, user ID MAESTRO)
    This AND process is not waiting for event RSPROCESS, parameter 475P4YTXTIIOA6IQ9GAZVEP24
    Job cancelled after system exception ERROR_MESSAGE

Maybe you are looking for

  • H323 gateway with PABX Avaya

    Hi Which are the parameter that I need to configure H323 signaling system between my gateway CISCO2811 bundle CME and Avaya PABX Thanks

  • Updation of rg1 register twice on 641 mov type

    Hi, We have a scenerio, where finished product will be consumed for assembling the another product, for this the scenerio is STO to own plant through Sales, When I am updating RG1 register through J1I5 transaction with mov type 641 against STO to own

  • Sales area creation for existing customer

    Hi Guru's, Good Day to all.. . Here my requirement is i need to update the customer data in KNVV table based on below conditions. My Selection screen is Customer   : Sales Org  : My checks are... The program has to check if each inserted customer (se

  • Instant Portal availability

    Is Oracle Instant Portal only available in Oracle Application Server Standard Edition One, or is it also available as part of Oracle Application Server Standard Edition and Oracle Application Server Enterprise Edition?

  • Dm4-2180us USB port smoked

    ITEM 1 - I have a Pavilion DM4-2180us with a USB port that is smoked.  When I type START, "joystick" and try to set up the joystick, on one port I get either an all or nothing movement while the good port indicates smooth movement as long as you hold