BPM Steps in a single transaction

Hi all;
I am in a prob,Please help.
I have a BPM process in which an IDoc is received and a synchronous send update to ODS is done.Based on the reply for the ODS another table is updated with success/Error message.
Now if we receive a reply from ODS and at the time of inserting success or error messages XI goes down we want to roll back the insertions in the ODS table.
Can we have both these send steps in the BPM in one transaction.
Mudit

<b>Can we have both these send steps in the BPM in one transaction</b>
No it is not possible in XI BPM. You have to implement your own logic for handle this or write a Java/ABAP proxy that will perform 2 calls in one transaction.

Similar Messages

  • Entering multiple scrap accounts in a single transaction

    Hi guys
    Can I enter multiple scrap accounts in OSFM transactions in a single form?
    I hope oracle offers only single a/c for each step.
    This will minimize the data entry effort for me.
    Please suggest any work arounds.
    Regards
    Sreee

    Hello Sebastien,
    Thanks for your response!!!
    Let me make it bit more clear.In deploymewnt descriptor,we define jndi name for any resource and do a lookup on that resource from the code.
    Let us consider that resource as JDBC data source for our discussion.usually you define any jdbc data source under a JDBC resource provider.
    So my question is,in a single transaction can you access multiple data sources defines under multiple JDBC resource providers.
    Ex:A datasource "x "defined under resource provider "A"[say DB2 jbdc provider] and a datasource "y" defined under respurce provider "B"[say mysql jdbc provider].
    Thanks

  • Capture and post in single transaction J1IEX

    Hello
    Business requirement is that:
    Business do not want to give any excise related activity to stores persons. So i,e the reason they will do the GR with Ref to Purchase order with Option "NO excise entry" in MIGO.
    Now they want to make the Capture and Post in single transaction through J1IEX. If we select J1IEX with ref to GR then system will generates the Internal number, but it will not update J_1IPART1 and J_1IPARt2.
    How to Capture and post in single step?m means how to update J_1IPART1 and J_1IPART2
    Regards
    sapman man

    HI,
    Remove the authorization of J1IEX transaction from the Stores Id.
    SPRO--> Logistic general --> tax on goods and movement --> india -->basic  settings --> maintain excise group.
    Select the appropriate excise group in combination of your plant.
    Click on the details (ctrl +Shift + F2), In the MIGO Setting Block, there are options like EI Capture, Post EI in MIGO.
    untick this option and save it.
    After that you will not get excise option in MIGO Screen and you can have your control as per below mentioned steps.
    1. CVD (commercial invoice) Booking is done by finance.
    2. GRN Booking -- Stores Incharge
        Select the option 'No excise entry' while making GRN or disable this functionality from SPRO.
    3. Capture the excise invoice using J1IEX -- Done by Finance
    4. Post the Excise Invoice using J1IEX -- Done by finance.
    regards,
    S Anand

  • Multiple db2 instances with informix in a single transaction

    Hi All,
    Can somebody tell how this can be achieved.
    I do have 3 db2 instances in three physical mahines. Within a transaction I will
    only be writing to a one instance but will be retieving data from the other two
    instances. In the same transaction I will be writing to a Informix database as
    well. All the systems are on windows.
    The application server is Weblogic 7.02.
    For DB2 the driver is db2jcc driver which does not support XA transactions. And
    for informix we do use the driver which comes along with the informix installation
    which is a XA supported driver.
    We do have seperate TXDatasources created in the Web logic server and EJBs are
    used in the project.
    As welogic can give the XA features only for one none XA driver. How about implementing
    the above scenario.
    Waiting for a early response.

    Hello Sebastien,
    Thanks for your response!!!
    Let me make it bit more clear.In deploymewnt descriptor,we define jndi name for any resource and do a lookup on that resource from the code.
    Let us consider that resource as JDBC data source for our discussion.usually you define any jdbc data source under a JDBC resource provider.
    So my question is,in a single transaction can you access multiple data sources defines under multiple JDBC resource providers.
    Ex:A datasource "x "defined under resource provider "A"[say DB2 jbdc provider] and a datasource "y" defined under respurce provider "B"[say mysql jdbc provider].
    Thanks

  • Multiple Database access in a single transaction

    Hello All,
    I have read in a book which states that "according to J2ee Specification,a single transaction(an EJB method for example) may not be provided access to multiple JDBC resource providers.."
    Does it mean that i cannot access multiple databases from different vendors in a single EJB transaction??
    Any help is very much appreciated
    Thanks

    Hello Sebastien,
    Thanks for your response!!!
    Let me make it bit more clear.In deploymewnt descriptor,we define jndi name for any resource and do a lookup on that resource from the code.
    Let us consider that resource as JDBC data source for our discussion.usually you define any jdbc data source under a JDBC resource provider.
    So my question is,in a single transaction can you access multiple data sources defines under multiple JDBC resource providers.
    Ex:A datasource "x "defined under resource provider "A"[say DB2 jbdc provider] and a datasource "y" defined under respurce provider "B"[say mysql jdbc provider].
    Thanks

  • Multiple records for a single transaction - Issue in LSMW

    Hi,
    i'm facing a issue in LSMW
    i have the data coming up in the flat file. the data which constitutes the single transaction consists of  data from multiple records from the flat file..
    suppose we have 10 records in the flat file... and all the 10 records related to ony  2 transactions i.e say 6 records to first transaction and next 4 records to next transaction.
    we have a direct input method to handle this data like field1 for first record, field2 for 2nd record and so on...
    while uploading, we will get all the records one by one into our source structure. My question is can we handle this scenario in lsmw? if yes, pls suggest
    Thanks in advance
    Shekhar

    Hi Kris,
    this is regarding the asset creation via AS01..
    we are getting the flat file in that way. Lets assume like this:
    suppose for one transaction we may need to fill 5 depreciation keys and for another option only 3 dep. keys we need to fill.
    then in the flat file, we can get like 5 records for first transaction i.e asset and 3 records for 2nd transaction
    Can we handle this via lsmw
    Regards
    shekhar

  • How to Add a single Transaction to Base role of a User in GRC AC 10

    Hello Gurus,
    I would like to know if it is possible to assign a single transaction to a user in his default roles.
    e.g) We have some Users who have been assigned some default roles, and in some case if a user requires authorization only for a one transaction e.g.) FB08 or for the matter any transaction , instead of adding a role containing many other transactions , we would like to assign only this transaction to the user.
    OR
    In other example , if a user sends a missing authorization request i.e. SU53 screenshot , and that only one transaction needs to be assigned , how can it be provisioned to that specific user ?
    Is it possible in GRC AC 10 , by using CUP or BRM ?
    Looking forward for your opnion.
    Regards,
    Victor

    Hello Victor,
    In this case, why don't you create a role including only FB08? You cannot assign a user a transaction, you have to assign a role. This is the authorization concept in SAP.
    Cheers,
    Diego.

  • Single Transaction code for ALE Configuration

    Hi All,
    I want to Know is there any Single Transaction code for the ALE Configuration instead of going through SALE, WEDI t-code or with defining logical systems assigning them to clients, creating RFC and Distribution Model, generate partner function and..so on.
    Please let me know if there is any t-code through which i can do the ALE configuration in a single T-code.
    Thanking you in advance,
    Bhanu

    hi ars
    i got a task saying that message type is DESADV01 ,but u told that DESADV01
    is basic type,can i know the difference.
    regards
    sagar

  • BPM steps required.

    BPM steps required...
    Idoc to ,Proxy and JMS(2 receivers,JMS 1 and JMS2) scenario....totally 3 receivers
    JMS 2 has to wait till JMS1 reaches receiver....then JMS2 should reach receiver..
    what are the steps i should  put in BPM.....
    Please remember that there is no need logic for PROXY...no need of waiti time aswell...only JMS2 receivers required....
    can some one tell me step by step, what are the steps required to do so...

    Hi Harsha
    You can correlate JMS messages with or without BPM.
    Use these
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8060448a-e56e-2910-f588-9af459e7ce21
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b028f6f6-7da5-2a10-19bd-cf322cf5ae7b
    This will help you getting response from JMS1
    Thanks
    Gaurav

  • Multiple records as a single transaction in JDBC Receiver Adapter

    Hi,
    I am sending multiple records in a single message to a JDBC receiver adapter to get updated to the database. How to make all the insert a single transaction. Like all the records has to be inserted else all has to be rolled back.
    For eg for table Employee two fields EMPNO and EMPNAME
    EMPNO  EMPNAME
    1            Jay
    2            Christie
    These two records are in the same message and has to be updated
    if one fails the other has to be rolled back.
    How can i achieve it using a JDBC Receiver Adapter.
    Thanks
    Sebin

    Hi Rolf Micus,
    My xml structure to insert 2 tables are as follow:-
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_PODB xmlns:ns0="http://abeam.com/xi/fer_filejdbc_scenarios1">
    ..   <STATEMENT_HEADER>
    ....      <ROW action="INSERT">
    ......         <TABLE>ZPO_HEADER</TABLE>
    ......        <access>
    ........            <PONUMBER>001</PONUMBER>
    ........            <PODATE>20070801</PODATE>
    ........            <POAMOUNT>200.99</POAMOUNT>
    ....         </access>
    ....      </ROW>
    ..   </STATEMENT_HEADER>
    ..   <STATEMENT_DETAIL>
    ....      <ROW action="INSERT">
    ......         <TABLE>ZPODETAIL</TABLE>
    ......         <access>
    ........            <PONUMBER>001</PONUMBER>
    ........            <PONO>1</PONO>
    ........            <POITEMCODE>A12345</POITEMCODE>
    ........            <POITEMDESC>Testing A</POITEMDESC>
    ........            <POITEMAMOUNT>2990.00</POITEMAMOUNT>
    ........            <POITEMQTY>55</POITEMQTY>
    ......         </access>
    ....      </ROW>
    ..   </STATEMENT_DETAIL>
    </ns0:MT_PODB>
    Fro the structure that you have declared..there is only contained 1 statement, try to admend your MT to have 2 statements.
    If you wish to insert multiple records, just create a loop/multiple of access tag inside STATEMENT tag. For example, multiple records insert into Header should have multiple access tag in Header STATEMENT. Same goes for muliple records insert into Details STATEMENT should have multiple access tag in Details STATEMENT.
    With this structure, whenever any records insert/update/delete failed...it will rollback all the transactions together, ie. Header and Details.
    PS: For different table, please create different STATEMENT.
    Hope it helps.
    Message was edited by: Pua Ming Fei

  • Making DB updates and sending message to JMS queue enclosed in a single transaction

              using a container managed transactions can we achieve sending a message to the JMS
              queue and updating DB as part of single transaction with the data base driver not
              supporting XA. If yes what all configurations setting I need to do. I tried to achieve
              this using 2PC but I am getting the error that "javax.transaction.xa.XAException:
              JDBC driver does not support XA, hence cannot be a participant in two-phase commit.
              To force this participation, set the enableTwoPhaseCommit property on the corresponding
              JDBCTxDataSourceproperty, to true. Pool = ejbPool".
              

    As far as I know, your only options is to do as the exception you cut-and-pasted below
              states:
              "To force this participation, set the enableTwoPhaseCommit property on the corresponding
              JDBCTxDataSourceproperty, to true. Pool = ejbPool"
              The "enableTwoPhaseCommit" property has definite drawbacks
              see the javadoc and/or documentation for configuring
              a "JDBCTxDataSource".
              This problem is specific to non-XA resources in general, not JMS (which is an XA resource),
              you may wish to get more info by posting to the transaction newsgroup.
              Tom
              Manoj Bansal wrote:
              > using a container managed transactions can we achieve sending a message to the JMS
              > queue and updating DB as part of single transaction with the data base driver not
              > supporting XA. If yes what all configurations setting I need to do. I tried to achieve
              > this using 2PC but I am getting the error that "javax.transaction.xa.XAException:
              > JDBC driver does not support XA, hence cannot be a participant in two-phase commit.
              > To force this participation, set the enableTwoPhaseCommit property on the corresponding
              > JDBCTxDataSourceproperty, to true. Pool = ejbPool".
              

  • Contact Two Datasources in Weblogic 10 in a single transaction

    Hi,
    my requirement is to create two datasource which points to two different schemas of oracle 10 g database.
    In a single transaction i may be in requireemnt of contacting both the datasource to get respective db connection and do a insert/update.
    I created two datasources A and B which use Oracle 9 thin driver.
    When my application starts my app is able to get connection of datasource A and unable to get connection on datasource B. what may be the problem ??
    both uses Oracle non-XA driver with one phase commit;
    Let me know how to connect to two diff datasources in a single transaction.
    Thanks in Advance.
    Sreehari.

    Do you get like any error for second datasource like jndi lookup failed or exactly what do you see error. If I understand your usecase:
    DataSource_1 -> Uses ConnectionPool_1 -> DB Schema_1
    DataSource_2 -> Uses ConnectionPool_2 -> DB Schema_2.
    So in your java application, I guess you are using JNDI Lookup and pass above Datasources unique JNDI names, and get 2 instances. I mean you have like 2 sets of Jndi lookup code to get 2 connection objects. This looks pretty straight forward. Does not matter what drivers you use.
    Are you reusing any objects in your code, like have a single connection object and then close it and try to recycle it for second something like that...If not, check for any errors in the log files.
    Ravi Jegga

  • Parent Child Inert in a single transaction

    Hi,
    How to insert the parent and child table records in a single transaction.
    The Senario is
    CREATE TABLE SAMPLE1
    COL1 NUMBER PRIMARY KEY,
    COL2 NUMBER
    CREATE TABLE SAMPLE2
    COL_1 number,
    COL1 NUMBER ,
    CONSTRAINT fk_col1
    FOREIGN KEY (COL1)
    REFERENCES SAMPLE1(COL1)
    CREATE OR REPLACE TRIGGER SAMPLE_TRG
    AFTER INSERT ON SAMPLE1
    FOR EACH ROW
    BEGIN
    INSERT INTO SAMPLE2 (COL1,COL_1)
    VALUES(:NEW.COL1,125);
    END;
    INSERT INTO SAMPLE1 (COL1,COL2) VALUES (1,2);
    The Insert raises integrity constraint. But the above scenario is valid too..
    Thanks in advance,
    Ramesh.R
    Edited by: Ramesh_R on Nov 8, 2009 8:56 PM

    Ramesh_R wrote:
    Hi Justin,
    Thanks for your reply.
    We need this scenario because the child records are inserted automatically in the back end with out the user knowledge. so onlt by using triggers we have to insert the records.
    Can you please say the limitations of deferred constraint int his scenario..What "limitations" are you worried about?
    If there is a process that is inserting records in a child table that is unaware of the existence of the parent table, that would seem like a bug. Coding around a bug like this rarely works well in the long term. And if it doesn't know about the parent table, will it know to be able to defer the constraint?
    Justin

  • How more than one MDB can be made to run in single transaction

    Hi All,
    I am working on EJB 2.0 with Application server as Websphere 5.0 and Messaging middleware as WebSphere MQ5.3
    I am facing a design issue, I need to use more than one MDB in single transaction unit. Since an MDB can only run in transaction started by itself I am looking for some alternative approach
    The problem in detail is as below:
    Consider there is an MDB M1 listening on Queue Q1
    Bean M1 reads Message (say msg1) from Q1, writes another message into Q2.
    We have a mainframe system which reads message from Q2 does some processes and write it's response into Queue Q3.
    Now we have another MDB M2 in same application server listening on Q3.
    The requirement is if there is any ERROR in message at Q3, transaction started by MDB M1 should be rolled back and hence the message (i.e msg1) should be put back on queue.
    Since trancation started by MDB M1 and M2 are independent I do not have any control to rollback M1 from M2.
    Pls suggest me what alternative approach I can use.

    I think if you are using container managed
    transaction and have set the trans attribute to
    "required" then MDB M-1 and MDB M-2
    should have same container transaction.
    wrong !
    There is never a client transaction context available when a message-driven bean is invoked because a transaction context does not flow with a JMS message. [EJB spec. 2.0 15.4.7]
    Nishant Saini
    Daffodil Software Ltd.
    http://www.daffodilsolutions.com
    Nishant , you should have added this to you'r site:
    Why India ?
    India 's abundant human resources: a bunch of clueless developers !
    :-)

  • Single transaction through multiple service objects [Spring]

    Hello.
    I have multiple service objects, while methods in service objects represent use cases.
    If I call the method from the other method in the same service object, then the second (called) method uses the same transaction as the first (caller), because of default propagation REQUIRED is applied.
    .. as is shown in the following pseudo code:
    @Transactional
    public class PersonService {
         private PersonDAO personDAO;
         public void otherMethod() {
         public void savePerson(Person person) {
              otherMethod();
              personDAO.save(person);
    }But I need to call service methods of different service objects, because some use cases use other use cases. I also need all those called methods to be done as a single transaction.
    @Transactional
    public class OrderService {
         private OrderDAO orderDAO;
         public void saveOrder(Person person, Order order) {
              PersonService personService = CONTEXT.getBean("personService");
              personService.savePerson(person);
              orderDAO.save(order);
    }If I do it like that, the new transaction proxy is created and all personService stuff is executed in the new transaction. How to configure @Transactional annotated objects or Spring beans to do all service stuff in single transaction?
    I have Hibernate sessionfactory, DAOs and services beans simply configured in Spring configuration XML, using autowiring and transaction annotation config. I prefer using @transactional annotated service classes, but if I had to use more complex Spring transaction configuration to achieve the goal I won't have any problem with it.
    Thank you in advance.

    I would like it to be done is single transaction but it isn't. As the bean is retrieved from the spring context in OrderService's method
    PersonService personService = CONTEXT.getBean("personService");a new transaction for PersonService is started. So then I have two transactions in progress - one for OrderService and second for PersonService. I need the PersonService (or any other service object) to detect already pending transaction and use that. Not create new (it's own). I use no arguments in @Transactional annotation so default propagation REQUIRED should be used, but it still creates a new transaction for PersonService stuff.
    I'm posting my applicationContext.xml (simplified slightly)
    <beans default-autowire="byType">
         <bean id="dataSource"
              class="org.springframework.jdbc.datasource.DriverManagerDataSource">
         </bean>
         <!-- Hibernate SessionFactory -->
         <bean id="sessionFactory"
              class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
              <property name="dataSource">
                   <ref local="dataSource" />
              </property>
         </bean>
         <bean id="hibernateTxManager"
              class="org.springframework.orm.hibernate3.HibernateTransactionManager">
              <property name="sessionFactory">
                   <ref local="sessionFactory" />
              </property>
         </bean>
         <tx:annotation-driven transaction-manager="hibernateTxManager" />
         <!-- DAOs -->
         <bean id="personDAO" class="net.package.dao.PersonDAO" />
         <bean id="orderDAO" class="net.package.dao.OrderDAO" />
         <!-- Services -->
         <bean id="personService" class="net.package.service.PersonService" />
         <bean id="orderService" class="net.package.service.OrderService" />
    </beans>Thank you

Maybe you are looking for

  • Performance tuning in t

    hi, I have to do perofrmance for one program, it is taking 67000 secs in back ground for execution and 1000 secs for some varints .It is an  ALV report. please suggest me how to proced to change the code.

  • Error message from adobe

    message reads as follows. this file does not have a program associated with it for performing this action. create an association in the set association in control panel. please contact me for assistance at [email protected] or 860-669-2688 thanks for

  • Problem with iWeb publishing to IE

    Hello, I am experiencing a problem with iWeb '08 publishing content to Internet Explorer. The images and web pages look fine in Safari and in Firefox, but a lot of the web page images are mirrored in IE, covering up large parts of the text. Please do

  • Why did my isight camera come on by itself

    My isight camera came on by itself. I admit that skype was running, but I was not talking to anyone. The next day the isight cameara came on for less than a second and went off. Why would this happen?

  • Networking between Oracle vm machines

    hi, I am using Oracle vm virtual box manager and create two machines on it. One is Centos and other is solaris 10 with dhcp configuration, internet is working on both machines also access base operating system but cant access each other. I want to ac