ABAP Process of process chain not ending

Hello,
I have created a  Process Chain(BW) which has a ABAP Process.This program calls a FM in R/3 and deletes table data. The R/3 FM Module in turns calls  the BW FM <b>RSPC_ABAP_FINISH</b> to  Mark the ABAP Process as Green.
Here is the code snippets
<b>BW FM</b>
REPORT  ZCMC47_DELETE.
parameter: p_rfc type rfcdes-rfcdest,
           p_srfc type rfcdes-rfcdest,
           PR_VAR type variant.
CALL FUNCTION 'ZCFM_MC47_DELETE'
destination p_rfc  " <b>R/3 Destination</b>
  EXPORTING
    P_SRFC   = p_srfc " <b>BW Destination</b>
    pr_var = pr_var.
<b>R/3 FM</b>
FUNCTION ZCFM_MC47_DELETE.
  delete from ztab_rqmt1.
  commit work.
  delete from ZTAB_5MNTH.
  commit work.
  delete from ZTAB_ODUE1.
  commit work.
  delete from ZTAB_QTRLY.
  commit work.
  delete from ZTAB_RQMT2.
  commit work.
  delete from ZTAB_RQMT3.
  commit work.
CALL FUNCTION 'RSPC_ABAP_FINISH'
DESTINATION p_srfc  "<b> BW Destination</b>
EXPORTING
I_VARIANT = pr_var   <b>"Process  Variant</b>EXCEPTIONS
ALREADY_FINISHED = 1
OTHERS = 2
ENDFUNCTION.
But some how background job BI_ABAP_PROCESS is stuck in the RFC Call is not returning back to BW from R/3.
Is there any problem with my coding please guide ?
Please help as I'm Stuck
Thanks,
Dutta

Hello,
I have created a  Process Chain(BW) which has a ABAP Process.This program calls a FM in R/3 and deletes table data. The R/3 FM Module in turns calls  the BW FM <b>RSPC_ABAP_FINISH</b> to  Mark the ABAP Process as Green.
Here is the code snippets
<b>BW FM</b>
REPORT  ZCMC47_DELETE.
parameter: p_rfc type rfcdes-rfcdest,
           p_srfc type rfcdes-rfcdest,
           PR_VAR type variant.
CALL FUNCTION 'ZCFM_MC47_DELETE'
destination p_rfc  " <b>R/3 Destination</b>
  EXPORTING
    P_SRFC   = p_srfc " <b>BW Destination</b>
    pr_var = pr_var.
<b>R/3 FM</b>
FUNCTION ZCFM_MC47_DELETE.
  delete from ztab_rqmt1.
  commit work.
  delete from ZTAB_5MNTH.
  commit work.
  delete from ZTAB_ODUE1.
  commit work.
  delete from ZTAB_QTRLY.
  commit work.
  delete from ZTAB_RQMT2.
  commit work.
  delete from ZTAB_RQMT3.
  commit work.
CALL FUNCTION 'RSPC_ABAP_FINISH'
DESTINATION p_srfc  "<b> BW Destination</b>
EXPORTING
I_VARIANT = pr_var   <b>"Process  Variant</b>EXCEPTIONS
ALREADY_FINISHED = 1
OTHERS = 2
ENDFUNCTION.
But some how background job BI_ABAP_PROCESS is stuck in the RFC Call is not returning back to BW from R/3.
Is there any problem with my coding please guide ?
Please help as I'm Stuck
Thanks,
Dutta

Similar Messages

  • Excel process does not end properly

    Hello All.
    I am using excel in my program writing data into it an excel workbook and then later on reading data from it. I have written down the code of closing excel worlkbook and shutting down excel application hence releasing the handles for it. But when i do that i.e. when the code containing excel workbook closing and excel application shutting down executes, excel workbook is closed but excel process does not end properly and can be seen in the task manager. And when i repeatedly open the excel file through my front end interface and close the file, another excel process is added in the task manager which does not end and so on. What can be the problem and solution. Thanks in advance.
    Best Regards.
    Moshi.

    Interfacing to Excel via ActiveX may be tricky, ending in situations like the one you are facing now.
    The basic principle is that every single handle opened to an Excel object (workbook, worksheet, range, variant and so on) must be closed properly for the entire process to terminate gracefully. If a reference remains unhandled at program end you will find an instance of Excel remaining in the task list and you may suffer erratic behaviour in subsequent accesses to the product.
    You must double check all references and add approporiate dispose/close commands for every one of them.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Process does not end when binding a object to registry

    I am writing a Unit Test case in which i need to create a datasource and bind it to RMI registry so that the methods i need to test can get a database connection . The problem is that after the test cases have finished running the process does not end and i have to shut it down manually . When i do not bind the datasource , the process ends put with errors because the methods do not get a connection. Even unbinding it after running the test cases does not help.
    Edited by: gurpreetbhalla on Jun 25, 2009 11:56 AM

    public void testIntraDayForClient() throws Exception
              ConstantConfig.JNDI_FACTORY = "com.sun.jndi.rmi.registry.RegistryContextFactory";
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.rmi.registry.RegistryContextFactory");
              env.put(Context.PROVIDER_URL, "rmi:");
    InitialContext ic = new InitialContext(env);
    // Construct DataSource
    SQLServerConnectionPoolDataSource ds = new SQLServerConnectionPoolDataSource();
    ds.setURL("jdbc:sqlserver://10.200.41.201:1433;databaseName=TradeportTC");
    ds.setUser("sa");
    ds.setPassword("superuser");
    DataSource d = ds;
         ic.unbind("TCDB_JNDI");
    ic.bind("TCDB_JNDI", ds);
              HttpServletRequest req = new MockHttpRequest();
              HttpServletResponse resp = EasyMock.createMock(HttpServletResponse.class);
              ActionContext context = EasyMock.createMock(ActionContext.class);
              HttpSession session = EasyMock.createMock(HttpSession.class);
              EasyMock.expect(session.getAttribute("ZephyrUserName")).andReturn("sclient90");
              EasyMock.expect(session.getAttribute("ZephyrDomainId")).andReturn("8a48a9cb1860e2a4011860e2c64d003a");
              EasyMock.expect(session.getAttribute("isTrader")).andReturn(false);
              EasyMock.expect(session.getAttribute("accountsDataDB")).andReturn(null);
              EasyMock.expect(context.getSession()).andReturn(session).times(12);
              session.setAttribute("vawTrades", null);
              session.setAttribute("noOfDays", null);
              session.setAttribute("accountNo", null);
              session.setAttribute("exchange", null);
              session.setAttribute("symbolName", null);
              session.setAttribute("trCode", null);
              session.setAttribute("status", null);
              session.setAttribute("accountsDataDB", null);
              EasyMock.replay(session);
              EasyMock.replay(context);
              MyOrdersAction action = new MyOrdersAction();
              action.execute(req, resp, context);
    This is the unit test case which does not exit , if i skip this binding ic.bind("TCDB_JNDI", ds);
    then it exits normally with a failure,

  • Bex Broadcasting via ABAP / Process Chain

    Hi,
    is it possible to start a Broadcasting Setting (Excel-Workbook on an InfoSet) via an process chain or ABAP programm through an process chain. The data change in InfoProvider process only applies to DSOs, Cube etc. but not InfoSets.
    thx in advance!
    cu
    Dominik

    Hi,
    I have not tried this, but i think it would work.
    1. Create a new event in SM64.
    2. In the Chain at the step where you want to trigger brodcast include an ABAP Program which would trigger the event which you created in SM64.
    3. In SM36 create a Job with name "TP_BROADCASTING_*" where * will be the name which you can define for your job.
    4. In Step add the ABAP Program "RSRD_BROADCAST_FOR_TIMEPOINT" and schedule the Job to start by event created by you in SM36.
    5. In the Broadcaster set the Dispatch to start with this option.
    Or the other way you can do is If your Infoset is containg an ODS and an Infoobject. you can place the step " data change in InfoProvider" after the ODS and also after the Infoobject but include ODS in the variant.
    Regards,
    Neelesh Jain.

  • Loop in Process Chain never ends?!

    Hello All!
    I'd created an ABAP program which calls the FM "RSPC_CHAIN_EXECUTE_REMOTE", to start a specific process chain. I'd created a job to run it.
    Then, I want the same process chain continue in loop. For this I'd created another ABAP program, which calls the FM BP_EVENT_RAISE.At the end of my process chain I'd created a variant calling this program. All process im my process chain works fine, but the job never stops. Is it normal, or could I do something to solve it?
    Thank you!!!
    Aline.

    Hi Aline,
       You have to put a logic when to raise event. or every time ABAP program runs and triggers the event ... so its becomes infinite...
    What is code in your ABAP program..? and logic...?
    <a href="http://sapbwneelam.blogspot.com/2007/09/how-to-start-process-chain-through.html">Sample coding... similar requirement...</a>
    Hope it Helps
    Srini

  • BI IP Executing planning sequence via process chain not possible

    Hi,
    we use BI IP and have defined a process chain (RSPC) with value type process planning sequence. When we execute it, we get error message
    "Inconsistent input parameter (parameter: <unknown>, value <unknown>)"
    When we execute this planning sequence via the modeller or via SE38 RSPLS_PLSEQ_EXECUTE everything works fine. I thougt the cause could be the user of the job itself (job is executed with different user, and variant of planning sequence is user-dependent!), but I changed the user in the job itself as well without results.
    any thoughts?
    regards
    D
    null

    Hi,
    I executed with my user and have a SAP_ALL authorization. Perhaps it could be because we use authorisation with the old method (4.0) (-> I'm not sure on this). I also think it has to do with authorization. I'll check this out with our authorization consultant.
    D

  • Toggle Option in Process Chain not working

    Hello SDNers,
    I am experiencing the below scenario with one of my process chain.
    Process Chain FLow
    Start
    |
    |
    Local Chain (To delete the already existing file from Application Server(ZFTP))
    |
    Local chain to rename the file
    |
    |
    Local chain (Load data to cube)
    |
    |
    Local chain to backup a file from Appl. Server
    In the above flow, the step 2 has been set to proceed further even if there are no files to delete in the application server. To achieve this I am using a toggle option between the step 2 and 3.
    At times, the chain progress further when there are no files to delete as expected but not all the times.
    I am trying to figure why the step which is supposed to progress further is not progressing some times even though it has been set to move further.
    Any advice would be helpful.
    Regards,
    Vinoth

    Hello Venkatesh,
    Thank You for your Patience.
    I have BW systems both running in the SAP_BW Versions 730 & 701.
    I have checked the folders " Other BW Processes " & "Other" and below are the process types.
    Other BW Processes
    Attribute Change Run
    Adjustment of Time-Dependent Aggregates
    Deletion of Requests from PSA
    Deletion of Requests from the Change Log
    Execute Planning Sequence
    Switch Realtime InfoCube to Plan Mode
    Switch Realtime InfoCube to Load Mode
    Reorganize Attributes and Texts for Master Data
    Execute Analysis Process
    Update Explorer Properties of BW Objects
    Other
    Event in SAP CPS
    Job in SAP CPS
    Last Customer Contact Update (Retraction)
    Regards,
    Vinoth V

  • Change on process chain not visible in display mode after transport

    All,
    We have changed a process chain where message notification was active in development.
    We have deleted the notification and created a transport. This has been released and implemented into the QA system without a problem.
    When displaying the new process chain in QA the change was not visible. But in change mode it is.
    Can anyone tell us what might be a cause/solution for this? Also for future changes.
    Gui error??
    Thanks in advance.

    hi,
    Try activating the PC again in the QA.
    if still it does reflect the message notification, then try creating the request again
    in DEV and transport.
    make sure you r out of the Process chains in DEV nad QA when transport happens.
    This is just a practice.
    Regards,
    Dhanya.

  • Process chain not continue after successful node

    Hi gurus,
       In my process chain I load data from R/3 to PSA and then execute DTP to DSO, all actions are serially. Usually our PC is running well. But recently the PC will stop after the loading to PSA was successfully end , which means in the log view of PC this node was green.
       I have checked the table  RSPCPROCESSLOG, the entry here was also marked as successful. ( STATE = G )
       I have no idea why this PC wouldn't continue automatically?
    Regards,
    Aaron

    Hi Ashok,
      We have tried manually execute DTP to load data from PSA into DSO. Everything is OK. And as I mentioned, this PC was OK before! Sometimes when execute the failed PC several times, it runs correctly.
       This is why it looks so weird! I guess is it related to time exceed (load to PSA cost 2 hours) or some potential restrictions?
    Regards,
    Aaron

  • Process chains not delivered in BPC 7.5 NW SP4 Version

    Hi Experts,
    We have installed BPC 7.5 NW SP04 sandbox system and we found that
    there are two process chains
    (/CPMB/IMPORT_IOBJ_MASTER, /CPMB/IMPORT_IOBJ_HIER) not delivered with
    BPC NW 7.5 NW versino which are used for BW Master data imports.
    Please suggest.
    thanks
    Venkata

    Hi,
    To acitvate BI Business content follow as below:
    Login into Backend system (BW) and run tcode SE38> Enter program name as UJS_ACTIVATE_CONTENT>Execute
    Choose AppsetID uncheck all check boxes except Activate BI Business Content and Run (F8).
    Hope it works..
    regards,
    Raju

  • Process chain not executing

    Process chain is activated, but not getting execute.
    Also no jobs are being scheduled for the same.
    Please help ASAP.
    Regards,
    Iira

    Hi
    First check whether the process chain has been started or not. If not then schedule it again .
    U can check whether the PC is started or not by using the Tcode : sm37
    Regards,
    Ravichandra
    Edited by: Ravichandra.bi on Mar 6, 2012 10:29 AM

  • Process chain not loaded today and yesterday

    Hello all,
    I scheduled PC daily, but today i realized that PC is not loaded today and yesterday.
    how can i analyze further for missing today and yesterday load.
    Regards,
    Ranga

    Check in sm37 if you process chain was triggered or not. If it was triggered, whether it finished successfully or not.
    If everything looks fine here, go to WE02 in your source system to check if any idocs have failed. If the idocs are posted succussfully, check in sm37 here if you job for dataload got completed succesfully or not.

  • Process chains not pulling any data?

    I have created   process chain and also shceduled it I am not even seeing the in monitor the requests.But in SM 37 all of them shceduled and also completed.

    Hi Vasu,
    I doubt that u have used a wrong schedule time..
    Just check going into the infopackage and then goto Monitor..and check if u can see any entry in the monitor... If not.. then proceed as below..
    So try with an immediate run and then check is that works fine for u...!!!
    Do let us know the details..
    Thanks
    Hope thishelps

  • Scheduled process chain not getting triggered properly

    Hi all,
    Process CHAIN, variant ZPC_MASTER_COMMON is not scheduled waiting for event RSPROCESS 3Y7V2S5WLYJ5VGT8IMCSG068H, after this message the job gets cancelled for any process chain when i schedule it as a periodic job.

    Hi,
    Please check if in the job you have 3Y7V2S5WLYJ5VGT8IMCSG068H entered as the event name. If yes, please change and activate again.
    -Vikram

  • Scheduling Process chain  in end of month & starting of month

    Hey Experts,
    I want to schedule my  process chain in different days that is last 2 days of every month & first 3 days of every month...
    Can any one explain me step by step process how to do it.
    can you guys help out as soon as early......
    Thanks,
    suresh

    You can achieve your requirement using Events, check the Function Modules in SE37 and then use it to find first 3 days and last 2 days of that month then if it satisfies your condition then trigger the Event and which will trigger PC.
    check the below links hope u can get some idea
    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
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=81428842

Maybe you are looking for