A doubt in triggering BPM

Hi All,
I have a scenario where IDocs would be posted from R3 randomly to a non SAP system.
I would need to wait for 30 mins after posting one IDoc to the non SAP System and receive a Ack from that non SAP System.
If I receive a Ack within 30 mins or if the 30 mins of time is already elaspsed, i would need to process with the next IDoc.
Or in other words, there should always be one BPM instance active at any point of time and my IDocs should wait until that BPM is freed up..
Do you guys have any idea to achieve this? Your help is highly appreciated.
Thanks

HI Suraj,
Thanks for your reply. Actually R3 collects a batch a IDocs(of MessageType A) and sends to XI and also sends a summary IDoc of MessageType B, that contians all the IDoc numbers of type A.
Using some corrleations I need to wait until Message Type B is received .There would be n number of such Batches(each batch containing few message Types A and one Message Type B).
My BPM(which would be timed out in 2 hrs) should process each batch in sequence. Meaning that second batch should be picked by the BPM only when the first BPM is auto-timed out.Or in other words, at any point of time, only one BPM instance should be active.
Pls let me know if you have sugeestions.
thanks a lot in advance..

Similar Messages

  • Triggering BPM Process without using Guest

    Hi All,
    I am triggering BPM web service from webdynpro from java. This is giving error message :
    Server Exception: Guest,  is not allowed to start a process.; nested exception is:
    javax.xml.rpc.soap.SOAPFaultException: Guest,  is not allowed to start a process.
    [EXCEPTION]
    How to start BPM web service with a logged in user id in place of Guest? I do not want to give BPM role to Guest user.
    Thanks
    Raktim
    Edited by: Raktim Banerjee on Jul 5, 2010 12:41 PM

    Hi Lars,
    Thanks for your answer. As per note : "Web service endpoints with incorrect security settings or service calls without provided credentials will result in an error message telling that "Guest, is not allowed to start a process".
    I am getting exactly the same error. What endpoint settings I need to change?
    I am using following wsdl in process start:
    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
         xmlns:tns="http://www.example.org/JEService/"
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="JEService"
         targetNamespace="http://www.example.org/JEService/"
         xmlns:p="http://schemas.xmlsoap.org/wsdl/http/">
         <wsdl:types>
              <xsd:schema targetNamespace="http://www.example.org/JEService/">
                   <xsd:element name="NewOperation">
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element name="eformno" nillable="true"
                                       type="xsd:string" />
                                  <xsd:element name="initiator" nillable="true"
                                       type="xsd:string" />
                                  <xsd:element name="isAccountantEntered" nillable="true"
                                       type="xsd:boolean" />
                                  <xsd:element name="tasktext" nillable="true"
                                       type="xsd:string" />
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
                   <xsd:element name="NewOperationResponse">
                        <xsd:complexType>
                             <xsd:sequence>
                                  <xsd:element name="eformno" type="xsd:string" />
                                  <xsd:element name="initiator" type="xsd:string" />
                                  <xsd:element name="isAccountantEntered" type="xsd:boolean" />
                                  <xsd:element name="tasktext" type="xsd:string" />
                             </xsd:sequence>
                        </xsd:complexType>
                   </xsd:element>
              </xsd:schema>
         </wsdl:types>
         <wsdl:message name="NewOperationRequest">
              <wsdl:part element="tns:NewOperation" name="parameters" />
         </wsdl:message>
         <wsdl:message name="NewOperationResponse">
              <wsdl:part element="tns:NewOperationResponse" name="parameters" />
         </wsdl:message>
         <wsdl:portType name="JEService">
              <wsdl:operation name="NewOperation">
                   <wsdl:input message="tns:NewOperationRequest"
                        name="inputJE" />
                   <wsdl:output message="tns:NewOperationResponse" />
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="JEServiceSOAP" type="tns:JEService">
              <soap:binding style="document"
                   transport="http://schemas.xmlsoap.org/soap/http" />
              <wsdl:operation name="NewOperation">
                   <soap:operation
                        soapAction="http://www.example.org/JEService/NewOperation" />
                   <wsdl:input name="inputJE">
                        <soap:body use="literal" />
                   </wsdl:input>
                   <wsdl:output>
                        <soap:body use="literal" />
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:service name="JEService">
              <wsdl:port binding="tns:JEServiceSOAP" name="JEServiceSOAP">
                   <soap:address location="http://www.example.org/" />
              </wsdl:port>
         </wsdl:service>
    </wsdl:definitions>
    What changes are required in the wsdl to accept the credential?
    Thanks
    Raktim

  • Triggering BPM Process on regular intervals.

    Hi All,
    Can i make a BPM Process to trigger on regular intervals. We want a BPM process to triggger on hourly basis.
    Is it possible in BPM suite to do this.
    Please share your thoughts.
    Thanks
    Parker.

    Hello Vikram Bailur,
    How can I define the scheduled timer start event by expression?
    The timer start event is usally described as below.
    The timer start event triggers the creation of a process instance based on a specific time condition. You can> configure the timer start event to trigger a process instance based on the following:          (1) A specific date and time. For example, a process could be triggered on December 31, at 11:59 PM.
              (2) A recurring interval. For example, a process could be triggered every 10 hours, 5 minutes, 32 seconds.
    In case of the above item (1), I want to define the scheduled expression such as:
    evey Friday at 11:00 PM
    the end of this week
    the end of this month at 11:00 PM
    I have searched the proper functions but there are no them like the following convenience functions in Oracle SQL/PLSQL as below.
    select next_day(sysdate,'Friday') from dual; '---returns date of the next friday
    select last_day(sysdate) from dual; '---returns the last day of this month
    How can do it?
    Akira

  • Triggering BPM/Message from an XI Alert

    I would like to trigger a BPM from an alert (like a mapping error) being generated but the only options are email, fax and SMS. 
    I could send out an email and receive it back within XI to kick off a process; but this is not elegant and email is not a guaranteed delivery mechanism plus the BPM should be triggered ASAP.
    Anyone have any ideas?
    Info to SAP - Would be good to add an additional option to send a message to XI as a feature to the alert framework in the future.
    Regards,
    Matt

    Hi Matt/Anand
    I was thinking in the same direction, but then i realized Matt wanted a way to trigger a BPM from an alert that is raised due to some message mapping error of some arbitary interface which may not be a BPM.
    Matt: i dont think there is an elegant way todo in the current SP level of XI
    Naveen

  • Doubt regarding Triggers

    Hello,
    How many triggers can i make at the most on a single table...
    lets say ..i have a table 'Employee'....then how many triggers i can build on this trigger.

    then how many triggers i can build on this trigger.I guess you meant:
    then how many triggers i can build on this table.You should always doubt triggers, and use them as little as possible.
    The max you would use is easy to calculate, given the following trigger types (omitting compound and instead of triggers, assuming we're dealing with a normal table) :
    -there's row level/statement level
    -there's insert/update/delete of table
    -there's before/after
    So, 12 triggers is the 'logical max' according to many development tools that are capable of generating table API's.
    Having multiple triggers that fire at the same level/type can cause you great troubles if all that trigger code needs to be processed in a specific order.
    But yes, in addition to Frank, in theory, you can have as much triggers as you want:
    "You can create as many triggers of the preceding different types as you need for each type of DML statement, (INSERT, UPDATE, or DELETE)."
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/triggers.htm#CNCPT118
    (read and scroll a bit)
    But it wouln't be very practical (that's an understatement ;) ).
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:436419805666

  • Problem in generating WSDL file for triggering BPM process

    Hello Experts,
    I have a working BPM process which I want to trigger using a web service. I am referring following blog link to generate New WSDL file and perform further operations:
    /people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
    However, it everything goes well until I set the type for the "New Element". I want to set type to context of my component controller. So I selected Set type --> Enclosing Project and I seleted Context of my component controller.
    Upon saving this, I am getting this error:
    "../../rep/ui/com.sap.demo.wd_ui_mna.wd.comp.c_fillmynameage.C_FillMyNameAgeInterface.xsd" is not a path relative to "src/wsdl/NewWSDLFile.wsdl" because it contains too many '../'
    I am not sure what is happening here. I have also removed the response element(s) from WSDL source.
    What am I missing here?
    Thanks in advance,
    Ameya

    Cross post in EBiz forum -
    General EBS Discussion
    Regards,
    Anuj

  • Triggering BPM process from ECC

    Dear All,
    I created a WSDL in BPM and consumed it in ECC . After that created a logical port using SOAMANAGER.
    While executing in the program(the code is shown below) or testing the service consumer  it does not give any error. but still process not starting up.
    REPORT ZTEST_BPM.
    DATA : lv_port type REF TO zco_abapwsdl,
            lo_sys_exception   TYPE REF TO cx_ai_system_fault,
            input TYPE ZNEW_OPERATION_REQUEST1,
            in TYPE ztest.
    TRY .
       CREATE OBJECT lv_port
         EXPORTING
             LOGICAL_PORT_NAME = 'ZPORT'.
    CATCH CX_AI_SYSTEM_FAULT.
    ENDTRY.
       input-in-first_name = 'ABCDEF'.
       input-in-last_name = 'G'.
    TRY.
       call METHOD lv_port->NEW_OPERATION
        EXPORTING
             INPUT = INPUT.
       COMMIT WORK.
       CATCH CX_AI_SYSTEM_FAULT INTO lo_sys_exception .
       CATCH cx_ai_application_fault.
    ENDTRY.
    write : 'Process Started'.
    Your input will be helpful.
    Thanks and Regards,
    Prabhu Karuppasamy

    Make sure that the user you are testing this with, has all the necessary roles and authorizations on the portal to Start a BPM Process.
    For all possible roles and authorizations related to SAP BPM, refer the following:
    http://help.sap.com/saphelp_nw73/helpdata/en/45/d7d0e08a164c5e87e4604ba89c632a/content.htm
    https://help.sap.com/saphelp_nw73/helpdata/en/9c/23eaeb4c53486f8d9c4cb376b99994/content.htm

  • Problem about Triggering BPM and Process monitor

    Hi all,
    I am new on the BPM domain. Now i got some problem working on it.
    First, i want to execute a FM or Program in ECC, and then trigger the process of BPM, how to do this?
    or maybe i can say like this, i want to start a BPM from ECC screen, how could i do?
    Second, the requester could find the completed tasks in UWL with some simple text only,
    if he wants to see the whole process status, is that possible?
    Regards,
    Fisher

    Hi Harsha,
    Thx for your reply.
    For First, is the URL which in Process Repository, after clicking "start process", something like "http://www.example.org/bpem/..... "?
    but seems i cannot open the URL for detail XML data. Could you give some more details?
    For Second, go to UWL page, in Tasks tab, choose "completed tasks" in first dropdown box, you can get the task list then.
    And it returns only "priority, completion date, status".
    If the task is in progress, yes, process visualization will picture the state of the process.
    But my customers (requesters), not admin, want to see the diagram after they submit, with status better. Any suggestion?
    Regards,
    Fisher

  • Triggering BPM on a particular time

    Using a bpm we are collecting some messages and we need to send the collected messages at 11:30 AM EVERYDAY, how to do that?

    Hey Jenni,
    As ar i understand your requirement is a TIME DEPENDENT / Scheduled bpm.
    Check out this might help you out
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    or check this Blog by siva (Schedule Your BPM)
    /people/siva.maranani/blog/2005/05/22/schedule-your-bpm
    Hope itz usefull
    <b>Cheers,
    *Raj*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Doubt in triggers

    hello,
    we have on trigger which contains 1000 lines of code.According to oracle documentation one point is given that if a trigger contains more that 50 lines
    better to call a procedure(by writing trigger logic in the procedure) from a trigger instead of implementing the code in the trigger,is
    this correct way please help

    we have on trigger which contains 1000 lines of code.Yuk. What are you doing in a trigger that it requires so much code?
    Anyway, I think just about any logic beyond simple formatting or sequence look-ups ...
       select m_seq.nextval in :new.pk_col from dual;
       :new.col1 := upper(:new.col1);should be put in a stored procedure.
    Cheers, APC

  • BPM Scenario

    Hi,
        I am trying out an BPM scenario for an N:1 mapping,in which i'll be sending N number of 2 different structure of messages.The source file got picked from the Source.The SXMB_MONI describes that the "Message being sent",but i couldn't get at the target.I doubt that my BPM design could have strucked up in the looping and hence the message couldn't be delivered.Can anyone provide some pointer to get it resolved.The BPM design is as mentioned below :
    Block
              Deadline
              Exception Handler
                                        Loop1     Recv1     Container1    Loop1
             Fork                                                                                Fork     Transformation(2:1)   Send  Stop
                                      Loop2     Recv2      Container2      Loop2
    Note : The loop will come out when the deadline time reaches 2 min.

    Yes.The Correlation desfined as below
    File1 of Abstract type Message Interface
    FileList1 of of Abstract type Message Interface(Multiline checked)
    File2 of Abstract type Message Interface
    FileList2 of of Abstract type Message Interface(Multiline checked)
    TargetFile of Abstract type Message Interface

  • Queues are not processed properly in BPM

    Hi all ,
    In BPM , the inbound queues of the process engine are not processed properly.
    Several message are sent to the process and the message queued in the QRFC queue.
    How to process those messages so that process instance gets created ?
    Kind regards
    Goutam

    Check steps I've detailed on this thread:
    Re: problem in triggering BPM engine
    Hope that helps
    James.

  • Start BPM Process from ABAP with another User as GUEST

    Hi all,
    i would like to start the BPM Process by a webservice. It works if the user GUEST has the role BPM_SuperAdmin.
    My question is: How can i chance this user, who call the webservice starting the process. The user, who starts the process by calling the webservice should be my own user instead of GUEST.
    Thanks in advance.
    Regards,
    Christoph

    the last reply is regarding the configuration at consumer side.
    of course you have to configure at the service provider side to enable the logon ticket as acceptable authentication method.
    I checked at my side, i found the the service for triggering bpm is already configured to use id/pwd and logon ticket as authentication method.
    you can check in this way,
    CE nwa-> SOA  Management->Application and Scenario Communication-->Single Service Administration
    find your service, if you haven't assign any profile to your service, there will be only one configuration generate by system
    you can edit this configuration.
    go to configuration tab, select the endpoint, select security tab in the bottom tab list.
    change the setting there.
    Edited by: John Wu on Sep 10, 2010 7:29 PM

  • A help on triggers

    Hi all,
    I have a doubt with triggers. my synario is, I have to make 2 insets and a select(one after the other continuously). One of the two insert statements will fire a Trigger(AFTER INSERT Trigger) and do some manipulations on data.After this I use the slect statement to reterive values from the table. In this case, The Insert query which is associated is taking nearly 40 seconds.(while others take only 2 to 3 seconds). I have also used setQueryTimeout() in this query as 10 seconds. But it is not throwing SQLException also. Can anybody suggest why this occurs:.is this because,the trigger takes much time to execute and hence the query timeout doesn't affect the flow.I had given a part of my code here:
    Statement stmt=dbConn.createStatement();
    stmt.setQueryTimeout(10);
    int i=stmt.executeUpdate(detIns);//without trigger
    int j=stmt.executeUpdate(HeadIns);//with Trigger ::Takes 40s
    stmt.close();

    Maybe you're not performing a commit in the stored procedure, so that the table is locked for a little while.......
    Ps. if you can, you should be using PreparedStatements instead of Statements.
    regards,
    Owen

  • BOM Explosion for MRP Area

    Dear Expert,
    I have doubt regarding BOM explosion for MRP Area. This doubt is triggered when performing MD01, as result I do not find the dependent requirement in MD04 for my FG. I have maintained the BOM through CS61 and MRP area for all component, I understand that only component level system is taking into account MRP area (storage location). FYI before maintaining all components to MRP area, the BOM explosion was successful exploded. Your advice is appreciated.
    Best regards,
    Mahnansa

    Dear,
    Please check the Explosion control in Customizing, Transaction OMIW.
    Try to explode the BOM in CS11 , CS12 or CS13 if it is working there in curret date then chack the planning file entry in MD21.
    You need to convert the planning file entery at MRP area in OM0F.
    Also note the dependent requirement is not generated in the corresponding MRP area to which the production storage location in the material master has been not assigned for the data of the MRP area.
    Regards,
    R.Brahmankar

Maybe you are looking for

  • I deleted my iphone back up is there any way to restore my photos

    I was told by an apple rep when my phone was crashing to back up my phone to the cloud.  The battery was dying so it would not.  Then she told me me to delete some apps that I didn't use.  Then she told me to delete my back up and then to re=-back up

  • A proxy and in that proxy we will call the BAPI for creating Purchase Requi

    HI all, I am explaining a situation please resolve if possible. I got source data to create purchase requisition .  the source data was not cleaned and requires lot of validations and crossmapping with actual sap tables . I did it for testing and use

  • Selling a 2007 Mac Pro

    I'm getting ready to sell my 2007 Mac Pro. I've researched the process of cleaning the disk and came across a posting that included a link to a Safe Mac article entitled "How to prepare your Mac for sale" which recommends using the original install d

  • HELP.........I have produced a training module and the reporting at the wont do what I need.

    HELP.........  I have produced a training module and the reporting at the wont do what I need.  I need it to tell me what percentage of the test I have scored which it does but then I need it to tell me which questions I got wrong without giving me t

  • Can I use multiline SQL commands in a query (within a component)?

    I would like to modify the following query: <td>ItranslationString</td>      <td>      INSERT INTO TRANSLATIONSTRINGS (daKey, daLanguage, daTranslation, daStringFlag, daSourceFile) VALUES (?, ?, ?, 'N', ?)      </td>      <td>daKeyField varchar