BI Process Chain executing a program in ECC

I want to build a process chain in BI 7.0, which should also be able to execute a program in ECC.
Is it possible.
How do I do that ?
Thanks
Mary

It should be possible:  Your process chain should include an ABAP program.  This program should call an RFC enabled function module in ECC (custom-built)  which should perform the required function in ECC.
There are many links on including ABAP programs in PCs.  In the ABAP section you will find information about building RFC function modules.
BR/
Mathew.

Similar Messages

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

  • Trigger a program in ECC from BI using a process chain with out Program

    Hi,
    How can we trigger a program which is in ECC system from BI using a process chain with out writing any program.
    is it possible? if yes how can we achieve this.
    Thanks & Regards,
    Madhu

    Madhu,
    Not possible, indeed need event or Remote Function Call using an ABAP program.
    Other option would be to use a 3rd party tool like Control-M to run programs/jobs on whatever system in your landscape (but requires investments of course).
    Grtx
    Marco

  • Process chain executed synchronously produces dump and hangs

    Process chain (RSPC) being executed synchronously hangs on a step (not first) with yellow status. Analysis of ST22 shows there is dump: RAISE_EXCEPTION
    The chain loads data from flat files on frontend to several characteristics (attributes and texts). All the steps are sequential.
    After the start first file is loaded successfully (info package), subsequent data transfer process has no errors too. But the second info package becomes yellow and hangs just after ( after some time timeout occurs and the step becomes red). In ST22 i see dump, text of the dump is below. Analysis of the dump reveals that 'GUI_UPLOAD' FM doesn't work during execution of the second info-package.
    The chain looks as follows:
    1. Info package 1
          V
    2. Data transfer process 1
          V
    3. Info package 2              <-------   hangs here because of dump
          V
    4. Data transfer process 2
         V
    Hangs on step 3 (infopackage 2).
    Text of the dump:
    Runtime Errors         RAISE_EXCEPTION
    Date and Time          10.10.2010 19:07:59
    |Short text                                                                                |
    |    Exception condition "NOT_SUPPORTED_BY_GUI" raised.                                            |
    |What happened?                                                                                |
    |    The current ABAP/4 program encountered an unexpected                                          |
    |    situation.                                                                                |
    |Error analysis                                                                                |
    |    A RAISE statement in the program "CL_GUI_FRONTEND_SERVICES======CP" raised the                |
    |     exception                                                                                |
    |    condition "NOT_SUPPORTED_BY_GUI".                                                             |
    |    Since the exception was not intercepted by a superior                                         |
    |    program, processing was terminated.                                                           |
    |                                                                                |
    |    Short description of exception condition:                                                     |
    |                                                                                |
    |                                                                                |
    |    For detailed documentation of the exception condition, use                                    |
    |    Transaction SE37 (Function Library). You can take the called                                  |
    |    function module from the display of active calls.                                             |
    |    -                                                                                |
    |How to correct the error                                                                          |
    |                                                                                |
    |    If the error occures in a non-modified SAP program, you may be able to                        |
    |    find an interim solution in an SAP Note.                                                      |
    |    If you have access to SAP Notes, carry out a search with the following                        |
    |    keywords:                                                                                |
    |                                                                                |
    |    "RAISE_EXCEPTION" " "                                                                         |
    |    "CL_GUI_FRONTEND_SERVICES======CP" or "CL_GUI_FRONTEND_SERVICES======CM00X"                   |
    |    "FILE_EXIST"                                                                                |
    |                                                                                |
    |    or                                                                                |
    |                                                                                |
    |    "CL_GUI_FRONTEND_SERVICES======CP" "NOT_SUPPORTED_BY_GUI"                                     |
    |                                                                                |
    |    or                                                                                |
    |                                                                                |
    |    "RSBATCH1 " "NOT_SUPPORTED_BY_GUI"                                                            |
    |    If you cannot solve the problem yourself and want to send an error                            |
    |    notification to SAP, include the following information:                                       |
    |                                                                                |
    |System environment                                                                                |
    |    SAP-Release 701                                                                               |
    |                                                                                |
    |                                                                                |
    |    SAP kernel....... 701                                                                         |
    |                                                                                |
    |    Patch level. 69                                                                               |
    |    Patch text.. " "                                                                              |
    |                                                                                |
    |User and Transaction                                                                              |
                                                                                    |
    |    Program............. "CL_GUI_FRONTEND_SERVICES======CP"                                       |
    |    Screen.............. "SAPMSSY0 1000"                                                          |
    |    Screen Line......... 6                                                                        |
    |                                                                                |
    |Information on where terminated                                                                   |
    |    Termination occurred in the ABAP program "CL_GUI_FRONTEND_SERVICES======CP" -                 |
    |     in "FILE_EXIST".                                                                             |
    |    The main program was "RSBATCH1 ".                                                             |
    |                                                                                |
    |    In the source code you have the termination point in line 8                                   |
    |    of the (Include) program "CL_GUI_FRONTEND_SERVICES======CM00X".                               |
    |Source Code Extract                                                                               |
    |Line |SourceCde                                                                                |
    |    1|method FILE_EXIST.                                                                          |
    |    2|* ...                                                                                |
    |    3|                                                                                |
    |    4|  CLASS CL_GUI_CONTROL DEFINITION LOAD .                                                    |
    |    5|                                                                                |
    |    6|*-check if valid GUI is available----
                             |
    |    7|  IF IS_VALID_HANDLE( ) NE 0 AND cl_gui_control=>www_active IS INITIAL.                     |
    |>>>>>|    RAISE NOT_SUPPORTED_BY_GUI.                                                             |
    |    9|  ENDIF.                                                                                |
    |   10|                                                                                |
    |   11|* check parameter, wild characters not allowed                                              |
    |   12|  IF FILE IS INITIAL OR FILE CA '*<>|"'.                                                    |
    |   13|  MESSAGE 'WRONG PARAMETER: FILE_NAME' TYPE 'I' RAISING WRONG_PARAMETER.                    |
    |   14|    EXIT.                                                                                |
    |   15|  ENDIF.                                                                                |
    |   16|                                                                                |
    |   17|* special handling for SAPGUI for HTML                                                      |
    |   18|  IF CL_GUI_CONTROL=>WWW_ACTIVE IS NOT INITIAL.                                             |
    |   19|                                                                                |
    |   20|    DATA: rc type i, filename(4096) type C.                                                 |
    |   21|    filename = file.                                                                        |
    |   22|    CALL FUNCTION 'ITS_QUERY'                                                               |
    |   23|      EXPORTING                                                                             |
    |   24|        filename = FILEname                                                                 |
    |   25|        query    = 'FE'                                                                     |
    |   26|      IMPORTING                                                                             |
    |   27|        return   = rc.                                                                      |
    |Active Calls/Events                                                                               |
    |No.   Ty.          Program                             Include                             Line   |
    |      Name                                                                                |
    |    8 METHOD       CL_GUI_FRONTEND_SERVICES======CP    CL_GUI_FRONTEND_SERVICES======CM00X     8  |
    |      CL_GUI_FRONTEND_SERVICES=>FILE_EXIST                                                        |
    |    7 FUNCTION     SAPLSFES                            LSFESU16                               96  |
    |      GUI_UPLOAD                                                                                |
    |    6 METHOD       CL_GUI_FRONTEND_SERVICES======CP    CL_GUI_FRONTEND_SERVICES======CM013     4  |
    |      CL_GUI_FRONTEND_SERVICES=>GUI_UPLOAD                                                        |
    |    5 METHOD       CL_RSDS_ACCESS_GUI_UPLOAD=====CP    CL_RSDS_ACCESS_GUI_UPLOAD=====CM001    74  |
    |      CL_RSDS_ACCESS_GUI_UPLOAD=>IF_RSDS_EXTRACT_DIRECT~EXTRACT                                   |
    |    4 FUNCTION     SAPLRSDS_BACKEND                    LRSDS_BACKENDU01                      304  |
    |      RSDS_DATA_PULL                                                                              |
    |    3 FUNCTION     SAPLRSSM                            LRSSMU17                             5422  |
    |      RSSM_CALL_RSAR_DATA_REQUEST_1                                                               |
    |    2 FORM         RSBATCH1                            RSBATCH1                             1327  |
    |      START                                                                                |
    |    1 EVENT        RSBATCH1                            RSBATCH1                              498  |
    |      START-OF-SELECTION                                                                          |

    If i load the step manually it works. The hung step is possible to re-execute after it gets red (with context menu) and it works then. After that it hangs on the 3rd info-package and so on.
    The file lays on a network drive, but i suspect it doesn't matter

  • Process Chain execute method Schedule or Execute Synchronously

    Hi  Expert:
          When i execute  process chain, there are two methods to start the PC: Schedule and Execute Synchronously .
          Now i wander what the difference between the two methods for executing the PC.
          Thanks inadvance.

    Hi  prashanthk
        Thank your response,
        As a matter of fact, i execute the same process chain  which contains a  Abap Program with schedule and execute synchronously .
       But with schedule, the PC terminate with a error and execute synchronnusly the PC it run correctly .
      whether execute the PC in background or dialog mode can make a different result for the same PC .
      Now i  confused about this.
      Can you explain this in more detail for me?
    Thanks .

  • Calling Process Chain after a program

    I have written a trigger program to spool RSA7 in BW
    every 1 minute to check if a datasource has come to the queue and if so check if it has got data. Once I confirm that there is data I want to EXECUTE a process chain.
    Is there a program/function module to execute a process chain in background within BW? Pls help..
    Suja

    Hi Suja,
             You can write a code to trigger a event in your program once the check is done and then give this event in the start condition for the process chain. I think you can trigger a event using call transqaction statement in ABAP. Transaction to trigger a event is SM64. Hope this helps.
    Regards,
    Shilpa

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

  • 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

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

    Hi,
    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.

  • To set delay in process chain using a program

    Hi all,
    We have a requirement in which the loads from nearly 15 sources (DSO) gets loaded into the Cube thro 15 process chains. The source gets loaded from the PI interface. So it might happen that simultaneously 10 loads will be started and reach the cube.
    In the cube we have delete overlapping request, so its gives a deadlock when the chains try to delete the prev. request at the same time.
    What we have planned is if we can write a program that will set a delay depending on the lock entries present for that particular cube. But still we are not sure how far this will help.
    If anyone has faced a similar issue or can anyone suggest on this would be much appreciated.
    Thanks
    Merlin

    I believe in each of your 15 local chains you have the load to Cube process.Why dont you take the load to the Cube out of the local chains and in the meta chain you could sequence the loads from the 15 ODSs so that you can have a parallel processing upto the ODSs ( assuming the rest of the local chain is used to fetch from R3 ) and then sequential to Cube.
    I dont think writing a program will help much here.

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

    Hi,
    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.

  • How to identify which process in process chain executes in Batch and Dialog

    Hi, We want to identify which processes in process chain is running in Batch mode or Dialog mode. Is there any where we can identify this from any table or transaction. (Eg Loading, DTP loading, Attribute change run, deletion of index, deletion of overlapping request, AND process, ABAP program , Master Data loading, Full Load, Delta load, Hierarchy Save, Start Process).
    Regards
    Vishwanath

    Hi Vishwanth,
                      In Process Chain proces runs in background only.
    refer here......
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7b/d4313b38bea774e10000000a114084/content.htm
    Thanks,
    Vijay.

  • Process chain execution using program

    hi,
    i want to run process chain 10 times using a program.
    can any one tell me how to write a program in pc in order to run the chain 10 times.
    any example of running the process chin using program .any nice code will be really useful
    please suggest me.
    i will assign points

    Hi Venkat,
    Go to SE37 input CHAIN  F4 then you will get various function module that can be used for process chain.
    IN you program call the function module RSPC_CHAIN_EXECUTE_REMOTE pass the required parameters and exceute.
    Test throughly in DEV system before moving to PRD. I have not used this earlier.
    Hope this helps.
    PV

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

    Your 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

Maybe you are looking for

  • Question about SOAPBody # extractContentAsDocument()

    Hi java experts, I have a question about a method SOAPBody # extractContentAsDocument(). According to its javadoc, http://docs.oracle.com/javase/6/docs/api/javax/xml/soap/SOAPBody.html#extractContentAsDocument%28%29 when you use this method, "The chi

  • Firefox Display Discrepancy

    July 30, 2010 Hello: I have an existing site. http://envisioningmoore.com/ Last evening, I added two photographs to the collection.  The thumbnail and web size photos were added to the appropriate directories and they were added to the photo list (em

  • Hello! Question about Macbook Pro keyboard cover.

    Hello! I have recently bought a Mac Book Pro is Retina display ( 13 in) and I am looking to protect it as much as possible. I bought a case. I saw the keyboard covers and though they were a good idea. I was almost about to purchase one until i read a

  • Keyboard - input layout - Word

    I have read in the forum that some people have experienced problems using the input layout (in order to change fonts or keyboards) while working with MS Word. It seems that the problem comes with Word itself, because the input layout works with Page

  • Raising Exceptions and Assistance classes

    Hi everyone. I know that the WDA framwork will not let me declare a raising clause in the method signature. However, during checks in the component i usually declare some code like this which is not pretty: The methods below were declared in the view