ABAP Code not getting executed through process chain

Hi Friends,
  I have program which when executed with respective varient Popup system message (SM02 Messages).  This program work fine when executed in forground or in background.
   However same program when i added in process chain with respective varient. The output is not genertaed as expected (i.e the program is not populating SM02 message)
  The process chain work's fine without giving any error.
Does any setting we need to do ???
i have followed the procedure given in "How to…
Integrate an ABAP program in a process chain" document from OSS.
Regards,
Jayant.

Hi,
you will not see in the log of the process chain if your program failed or not. You only receive a message that the programm has been triggered successfully.
Your program is then started in a new background process with a new log - try to find it via the job overview (transaction SM37) via date and time selection. (Of course you can only find there what your program writes to the log).
Another idea would be to check the profile of user ALEREMOTE (Transaction SU01 or SU01D) if there is an authorization for transaction SM02.
Stephan

Similar Messages

  • Infopackage not getting executed through Process Chain

    Hi All,
    I am facing a strange issue in BW Process Chain. Sometimes 3 Infopakages in my Process Chain is not getting executed and the variants get stucked in Yellow state. I checked the status of variants in RSPCPROCESSLOG table and they went in Undefined State.
    Can anyone tell why this happening and how to resolve that issue permanently.
    Thanks,
    Javed

    Hi Javed,
    When you trigger the process manually, it might work.
    But, as Raman told - some times due to huge number of loads running at the same time, the Back ground processes will be heavily occupied and loads will stuck. By the time, you trigger them manually; they will be successful due to some of the back ground processes which becomes free by that time.
    Though this will not happen all the time. But this can also be the reason. Try checking, if the loads are getting stuck in yellow with "Target event" "with parameter" getting generated in display messages --> chain tab or not.
    Thanks,
    Vikranth.

  • Changes are not getting reflected in Process Chain after changes.

    Hello,
    I have modified a Process Chain in Development environment. I have created one new infopackage and included it in the process chain. I have also added two new change run variants in the process chain. I have collected the process chain and infopackage in a transport request and transported it to integration environment.
    Transport request has reached successfully in integration but the changes in process chain are not getting reflected. The infopackage has reached to integration after transport.
    I need some suggestion on this.
    Regards,
    Sanjay

    Hi Sanjay.......
    R u in Display mode..........click on Change mode...........
    If you can see the chain in Change mode............then ur process chain is imported in in-active version..........
    U can try activating it manually or re-transport the active version..........
    Regards,
    Debjani......

  • Process Type ABAP does not work properly via process chain

    Dear SDNers
    I am running a process chain and it contains process type ABAP program. ABAP program was running correctly till now via this process chain. ABAP program process type generally takes approximately 2 hours to run. But now, this process type for ABAP program just run for less than 1 minute and finishes successfully. The issue is that ABAP program does not run at all.
    I ran the ABAP program in background and it took approximately 2 hours to run. ABAP Program is local means in our BW system and does not involve Remote Function call. We have BI7.0 system
    Has some one came across this type of issue?
    Best Regards
    Pradip

    Has the aleremote user or which ever user you have defined for background scheduling changed permissions recently?
    What happens if you create an adhoc chain and include this ABAP variant, does it run then?
    What does the log say in SM37 when run via process chain?
    Cheers
    Craig

  • Code not getting executed:

    The requirement if comm+salary is >=3000 then all the details laong with emp info have to be inserted into emp table and comm+sal between 10000 and 20000 the same have to be inserted into emp table. PLZ CHECKOUT AND SPECIFIY THE RIGHT CODE TO DO IT.
    create or replace procedure pps is
    ccsal number;
    cursor comm is
    select salary+nvl(commission_pct,0)from employees;
    begin
    open comm;
    loop
    exit when comm%notfound;
    fetch comm into ccsal;
    if ccsal>=3000 then
    ccsal:=ccsal*10/100;
    insert into emp(employee_id,last_name,salary,commission_pct,totsal) values(employees.employee_id,employees.last_name,employees.salary,employees.commission_pct,ccsal)
    elsif ccsal between 10000 and 2000 then
    ccsal:=ccsal*5/100;
    insert into empinsert into emp(employee_id,last_name,salary,commission_pct,totsal) values(employees.employee_id,employees.last_name,employees.salary,employees.commission_pct,ccsal)
    end if;
    end loop;
    close comm;
    end;
    Edited by: 987184 on May 3, 2013 9:25 PM

    You try this and let me know if it helped you .. I have made some changes ..
    CREATE OR REPLACE PROCEDURE pps
    IS
    -- ccsal NUMBER;
    -- empid employees.employee_id%TYPE;
    -- lname employees.last_name%TYPE;
    -- sal employees.salary%TYPE;
    -- cpt employees.commission_pct%TYPE;
    BEGIN
    FOR i IN (SELECT employee_id, last_name, salary, commission_pct,
    salary + NVL (commission_pct, 0) ccsal
    FROM employees)
    LOOP
    IF i.ccsal >= 3000
    THEN
    i.ccsal := i.ccsal * 10 / 100;
    INSERT INTO emp
    (employee_id, last_name, salary,
    commission_pct, totsal
    VALUES (i.employee_id, i.last_name, i.salary,
    i.commission_pct, i.ccsal
    ELSIF i.ccsal BETWEEN 10000 AND 20000
    THEN
    i.ccsal := i.ccsal * 5 / 100;
    INSERT INTO emp
    (employee_id, last_name, salary,
    commission_pct, totsal
    VALUES (i.employee_id, i.last_name, i.salary,
    i.commission_pct, i.ccsal
    END IF;
    END LOOP;
    END;
    Regards..

  • Applying variable filter while executing a process chain

    Hi,
    I have a  client requirement discussed below:
    I have a process chain containing multiple DTPs. The user wants to have a filter variable for fiscal year period while executing the process chain(i.e fiscal period selection screen should come for him to enter fiscal period). And the entire process chain should run for that selected fiscal period.
    Please help me with solutions of this dynamic process chain triggering.
    Points will be assigned if helpful.
    Regards,
    Sourabh

    Hi,
    You can craete a variant with some set of value and through ABAP code you
    can run the process chain according to your requirement.
    Thanks,
    Saveen Kumar

  • Process chain infopackage not getting executed.

    Hi,
    We have a process chain in which one of the element for infopackage is yellow for more than last 5 hrs. On checking batch jobs i can see that job is ready but not getting executed.
    I had gone into infopackage and pressed start but still it is showing old status.
    I need to understand what is the problem and how it can be resolved ?
    Please reply fast.

    Hi Babu,
    If the data has arrived into BW sysstem and the process chain has stuck. Then you can push the chain ahead of that step. Run the function module RSPC_PROCESS_FINISH in transaction SE38 The field entries required to run this function module can be collected in the table RSPCPROCESSLOG in traction SE16. Just provide the entries "Process Variants" and "Instance ID" and run execute the table and you will get all the required field entries to run the function module. usually give Log id, type, varient, instance id and status in function module and run. this will push ur chain ahead. The entries "Process Variants" and "Instance ID" in the process chain can be collected by right clicking the failed load and click on Chain tab.
    Note; The status you have to set to G.
    Hope this will help
    Regards
    Koushik

  • Fault policies not getting executed for called BPEL process

    Hi,
    I am facing one issue in execution of fault policy for a called BPEL Process.
    I have two BPEL Processes - BPELProcess1 and BPELProcess2.
    We have fault-policies and fault-bindings file.
    Case1 - BPELProcess2 is synchronous :-
    BPELProcess2 throws a fault of selectionFailure.
    Now this fault is defined in fault-policies and fault policy is bound to BPELProcess2 component in fault-bindings.xml file.
    But this fault policy is NOT getting executed.
    This selectionFailure fault from BPELProcess2 goes unhandled and in BPELProcess1, invoke activity gets this unhandled fault and raises a fault "remoteFault".
    This remotefault is also defined in fault-bindings and bound to BPELProcess1 component. Here fault policy bound to BPELProcess1 is working fine.
    So problem is that for called process, fault policies are not getting executed while for calling process, they are getting executed.
    Case1 - BPELProcess2 is Asynchronous
    BPELProcess2 is asynchronous. So same situation happening here. Fault policy for BPELProcess2 is not getting executed on throwing selectionFailure.
    But now here, since BPELProcess2 is async in nature, BPELProcess1 is not getting response and it is always waiting for response which is wrong.
    So how can we use fault policies in this case?
    Please suggest.
    Thanks & Regards,
    Parshant

    So that means - only fault originating from invoke activity in BPEL can be associated with a fault policy. No other fault can be associated. Even if I throw a selectionFault from throw activity, that will not be captured. Only fault from invoke activity can be associated with a fault policy.
    Please confirm.
    Thanks,
    Edited by: 833944 on Feb 24, 2011 9:36 PM

  • CommandButton code does not get executed with partialSubmit=false

    Following code in Jdev11g
    <input type="text" value="#{myBacking.text}"/>
    <af:commandButton text="Click" action="#{myBacking.doSomething}"/>
    <af:commandButton text="Click" actionListener="#{myBacking.doSomethingElse}"/>
    public void setText(String value)
       System.out.println("Setting value");
    public String doSomething()
       System.out.println("Clicked");
        return "";
    public String doSomethingElse(ActionEvent e)
       System.out.println("Clicked with event");
    } I always get following output:
    Setting valueI never see the output from my commandButton. It seems that my button does not executes it's code but just notifies the components to call their setters.
    I notice that when i set the partialSubmit to true, de code do get executed.
    Why is that and what is causing this behaviour? How can i use my own code in the buttons without setting the partialSubmit to true? I do need a complete refresh of the page and can not use the partialSubmit but when it's set to false, it ignores my code...

    They are inside an af:form
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document id="doc1">
          <af:messages id="m1"/>
          <af:form id="frm1">
               //MY buttons are here
          </af:form>

  • ABAP Program using Selection Screen in Process Chain

    Hi,
    I have included an ABAP Program in the Process Chain.
    The ABAP Program takes a selection screen value from user before execution.
    I have created a variant for both the ABAP Process (YPV_ABC) and a variant for the Selection Screen (YPV_XYZ).
    The ABAP Program executes perfectly well in SE 38.
    I get the following message when I execute the Process Chain.
    "Status Change of Process ABAP YPV_ABC.
    Save Status and Trigger Events if Appropriate "
    When I click Yes, the ABAP Process becomes red.
    These are error messages in the log
    516 -  Job started     
    550 -  Step 001 started (program RSPROCESS, variant &0000000012961, user ID ALEREMOTE)
    25 -    Could not ascertain code page     
    546 -  Job cancelled after system exception ERROR_MESSAGE     
    My questions are:
    1) Is it possible to use an  ABAP Program which has a user input screen in Process Chain?
    2) Could you please help  with the above error?

    1) Is it possible to use an ABAP Program which has a user input screen in Process Chain?
    ABAP programs, with variants established for selection screens, are possible. We use them quite extensively for setting triggers to allow Process Chain to continue after an Interrupt Process has been hit.
    2) Could you please help with the above error?
    I'm not quite sure what could be causing this. When you tested this program in SE38, did you test it with the same variant for the selection screen and did you execute it in background?

  • Incorrect data after activating the request through Process chain.

    Dear SDN chaps.
    Today morning. I encountered a strange issue in DSO..
    I have DSO which is updating from the AL11(application server) flat file.
    While i am loading it to PSA there were no issues and after loading it to the DSO there is no issue and its passing through the routine and the data is populating properly in NEW data Table .But after successful activation of  the request through process i am getting the wrong records in active data table.
    Then i deleted the request and reran it manually i mean triggered the DTP and ran the manual activation surprisingly accurate records are coming through manual process..
    I am just wondering why it is not working through process chain and why it is showing incorrect records through process chain execution and how it is showing accurate records through manual uploading process..'
    Could some one please help to come out from this..By the way mine is SAP BI 7 SP20 &SP05 for BW 7.01
    Thanks
    K M R
      

    Hi Pra
    Thanks for your response..
    We are doing PSA deletion and then we are uploading the data to PSA as well as DSO.
    Now the issue is not in the part of loading we are facing the issue in Actiation of request if i am executing the activation through process chain it is sucess but the values are incorrect. If i am doing the manual activation it sucess with correct data.
    Even i tried with a new chain but still i am facing the issue.
    Surprise thing is in new data table the data is perfect in both the ways like manual upate and Process chain update only during activation i am getting incorrect record in the active data table..
    Appreciate your help on this....
    Thanks
    K M R
    Edited by: K M R on Jul 9, 2010 11:09 AM

  • How to call program through process chain

    Hi Gurus,
    I am in the position to execute the abap program through process chain, I have used  abap program as process type in process chain(First time I am using this process type).when I am executing the process chain, the abap program is not executing.Eagerly anticipating your reply.
    Regards
    Shiva

    Hi
    I managed the execution of rscrm jobs in PC as follows:
    1. Execute query through RSCRM_BAPI transaction
    2. goto sm37 and copy the Jobname (the active one)
    3. Create following progromm
    *& Report /WST/RSCRM_START *
    REPORT /WST/RSCRM_START .
    parameter: l_bid TYPE sysuuid_c.
    CALL METHOD cl_rscrmbw_bapi=>exec_rep_in_batch
    EXPORTING
    i_barepid = l_bid
    4. Execute Programm and fill the Parameter with the Jobname
    5. Save as a new program variant and use in PC as a normal program
    I hope that helps.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    regards
    ashwin

  • Error in the Source system while data loding through Process Chain

    Hi,
    I am facing issue while data loading for certain extractors through Process chain. Load of 0BPM_WIHEAD, 0BP_LOGHIST, OBPM_OBJREL, 0BPM_DEADLINES(there are 2-3 more extractors) is getting failed daily with message Error occurred in the source system and if we repeat the same it is getting executed successfully.
    Regards,
    Javed

    Hi..
    It means that the extraction job is failing in the source system..
    Please check the Job log in the source system  --> Copy the request nimber --> In the source system go to SM37 --> Give * then the request number......execute --> Check the Job log..
    Look there may be multiple reasons behind this....
    1) Connection problem : Go to SM59 and test the connection, If you don't have the access in SM59...then go to RSA1 --> Source Systems --> Right click --> Connection Parameters --> Connection Test
    2) Or may be work processes are not available and due to which jobs are failing due to time out...
    In both the cases you can check with the Basis Team if they can suggest something....or you can change the process chain scheduling time if possible, and schedule it in such a time when less no of jobs are running..
    Regards,
    Debjani..

  • Broadcasting through process chains

    How to broadcast reports to indivdual mailboxs in the company through process chains. say current data should be broadcasted into individual email account every time a new sales order or purchase order is created or by the end of the day , it should automatically trigger the mail with the report. can anyone help on this.

    Hi,
    Here see the blog details.
    The goal of information broadcasting is to distribute the right information, in the appropriate format, to the right people, through different channels, at the right time.
    With the BEx Broadcaster, you can precalculate queries, query views, Web templates, reports and workbooks and broadcast them by e-mail or to the portal. In addition to the precalculated documents in various formats (HTML, MHTML, ZIP and so on) that contain historical data, you can also generate online links.
    Accessing the Broadcaster
    The broadcaster can also be accessed via the Portal through the delivered BI Role.
    You can determine the Scheduling for Information Broadcaster
    Based on a data change event triggered by a process chain.
    Based on a pre-defined time point.
    Freely definable scheduling.
    Steps to Schedule Information Broadcaster based on a data change event triggered by a process chain
    Create the Query in the Query Designer.
    Execute the report in the BEx Web Analyzer.
    Click on u201CSendu201D to create the settings for broadcasting.
    The Broadcast Wizard takes you through a series of prompts where you supply the key information required to develop a broadcast. At any time you can leave the Wizard and use the standard settings dialogs which offer more settings.
    Then schedule the broadcast. If you start the Broadcaster for a query (or template or workbook) that gets data from an InfoProvider that will be selected in the process chain, you can select the InfoProvider for Scheduling.
    Create the process chain and include the event data change, include process type "Trigger Event Data Change (for Broadcaster), itu2019s available under "Load Process and Post -Processing".
    The Process Chain is created including the process types: (1) Start (2) Execute InfoPackage (3) Delta Data Transfer Process (4) Activate DSO (5) Trigger Event data Change.
    When you create the Variant for the Event Data Change, using checkbox we can indicate when the Broadcast should trigger.
    As soon as that InfoProvider is affected by a Process Chain, the Broadcasting is triggered.
    After successful activation you can now schedule your chain. Press button u201CScheduleu201D or menu u201CExecution -> scheduleu201D. The chain will be scheduled as background job. You can see it in SM37. You will find a job named u201CBI_PROCESS_TRIGGERu201D. Unfortunately every process chain is scheduled with a job with this name. In the job variant you will find which process chain will be executed. During execution the steps defined in RSPCPROCESSCHAIN will be executed one after each other. The execution of the next event is triggered by events defined in the table.  You can watch SM37 for new executed jobs starting with u201CBI_u201D or look at the protocol view of the chain.
    You can monitor the Broadcaster from the SOST transaction.
    Note:
    Depending on authorizations, end-users can schedule their Broadcasting Settings.
    Only for those queries which are checked "Execution with Data Change in the Infoprovider" while you schedule, will be triggered by process chain event.
    You may wish to refer the Note on Settings for Information Broadcasting- 760775
    Hope this help you
    Regards,
    Rakesh

  • 50 Parallel Processing through Process Chain

    Hello Experts,
    Here is what I am trying to do.
    I want to create Process Chain which run 50(for ex.) Abap Program in parallel. I can create one by one through Process Types and select 'ABAP Program' and drag in the chain which is really very time consuming and tidious.
    Does anybody have better approach to do that ?? Any table where I can create all this parallel steps and put it in a chain ?? or copy each step and put it in parallel in chain ??
    Quick reply will be appreciated.
    Points are guaranteed for Right Resolution.
    Thanks in Advance.

    Hi "Believe in Jainism",
    Do you need to execute other process chain steps after executing the 50 abap programs? If not, why not just do the following:
    1) Create an ABAP program
    2) Inside the ABAP program, use the SUBMIT statement to execute the 50 ABAP programs in a background task.
    If you need to execute steps after the 50 abap programs, you can try to create a custom process type that executes the 50 ABAP programs in a background task and then monitors the statuses and then terminate only once all of these programs have executed successfully or if 1 has failed.
    Hope this helps.
    P.S. If you don't mind, may I ask why do you need to execute 50 ABAP programs in parallel?

Maybe you are looking for