Subinventory Transaction API & Inter_Org Transfer API

Hi,
Can anyone let me know if there are any APIs to use for subinventory transaction and Inter_org Transactions. We would like to download the transaction details that were performed in an external system to Oracle Inventory.
Regards,
Sravan.

Hi Naga,
Thanks for your update.
For Subinventory transfer, i have understood it. But coming to Inter-Org Transfer, here we do 2 transactions. One is transfer from Sourcing Organization and receiving from Destination Organization. So for this, do i need to first do a intransit shipment through MTL_MATERIAL_TRANSACTION_INTERFACE and process them through API. Then use RECEIVIGN TRANSACTION for destination Organization and process. Please let me know what would be exact approach with respect to Inter_org Transfer.
Regards,
Sravan.

Similar Messages

  • Transactions API in AR

    We are developing a custom application that will integrate with Oracle Receivables in Oracle Applications 11.5.2. We will need to send transactions (i.e. invoices, payments, etc.) to AR. We are considering using either Auto Invoice or Transaction API. The documentation for Transaction API for Applications 11 states it is a 'beta' version. Has Transaction API gone to a full production release? Also, is there any more documentation available on Transaction API other than the Oracle Receivables User Guide?
    null

    Hi Jaya,
    U ought to use Autoinvoice to import Invoices, Credit Memos and
    Debit Memos. There is no other alternative. It's quite strange
    that Oracle hasn't come up with the Transaction API.
    Regards,
    Rajkumar
    [email protected]

  • Custom Transaction Data getting Transfer from R/3 to APO only through CFM3

    Custom Transactional Data getting Transfer from R/3 to APO only through CFM3
    Requirement :Automatic updation of Custom Transactional Data R/3 to APO Auto Transfer like Normal PO Changes Reflection
         While working with Core Interface The Standard Transactional Data is getting updated to APO Directly for PO Qty Changes.
          But I have written code in the R/3 User Exit to Calculate the Open Target Quantity and Transfer the Values to APO through the Structure .
          It is Populating the values and updating in the ZTable of APO [User Exit] only when we activate and De-activate the Integration Model thru CFM3 Manually.
       Could you advise and provide the info for solution if you have come across the same scenario .
    Thanks in Advance.
    With Regards,
    Naveen Mutyapu.

    Hi All,
    I have not received answer from the forum, but solution is without CFM3 also we can able to send data from R/3 to APO whenever we change the PO with populating the necessary values  in the structure IT_OUTPUT_CUS..
    Regards,
    M N Kumar.
    Edited by: MNKumar on Sep 14, 2010 8:23 AM

  • Material Transaction API?

    Hi,
    Is there an API that I can call to create Material Transactions without having to use a concurrent request?
    Thanks in advance!

    There is no public API available to perform the transaction without using the interface tables. You have to populate the mtl_transactions_interface and other tables as necessary based on the item controls. But after you populate if you do not want the batch processor (Process Transactions Interface) to process them, you can call MTL_ONLINE_TRANSACTION_PUB to process transactions online. There is a coulmn in the table which decides whether you are leaving the record to be processed by Process Transaction Manager of your online API.
    Thanks
    Nagamohan

  • Misc Transactions - API

    Hi all
    I am just trying to create misc transactions through mtl_transactions_interface table.
    After i inserted rows into mtl_transactions_interface table and the record is picked up by the Inventory transaction manager. It updated the same record with the error_code,
    "Invalid transaction source segments"
    Do anyone face this issue? also let me know if you have any standard piece of working code to create misc transactions.
    Thanks for your help.
    chan

    Hi Nitin,
    Can you pls elaborate on this.
    Actually we are trying to insert records into mtl_transactions_interface table.
    Following is the insert script.
    Insert into mtl_transactions_interface
    (transaction_uom,
    transaction_date,
    source_code,
    source_header_id,
    source_line_id,
    process_flag,
    transaction_mode,
    lock_flag,
    last_update_date,
    last_updated_by,
    creation_date,
    created_by,
    inventory_item_id,
    subinventory_code,
    organization_id,
    transaction_source_name,
    transaction_quantity,
    transaction_type_id)
    VALUES
    ('EA', --transaction uom
    SYSDATE, --transaction date
    'Account alias', --source code
    99,
    99,
    1, --process flag
    3, --transaction mode
    2, --lock flag
    SYSDATE, --last update date
    0, --last updated by
    SYSDATE, --creation date
    0, --created by
    80599, --510467 , --inventory item id
    'STORES', --From subinventory code
    -- 'STORES....',-- Locator
    108, --organization id
    'COUNT/ADJ', --transaction source
    1, --transaction quantity
    41 --transaction type id
    We are getting error: Invalid transaction source segments
    Pls suggest.
    Thanks,
    Ashwani.

  • Error in KEFC transaction - External Data Transfer

    I am getting this error while using external data transfer function using KEFC.
    Plan version is not supported -> check your entry
    Message no. KG 029
    Diagnosis
    Plan version"xx" has not been created in operating concern"xxxx"
    Procedure
    Transfer version"xx" to operating concern"xxxx" and maintain the attributes for that version.
    I have checked plan version settings. It has been created for operating concern as well. I am not sure how to resolve this. Any suggestion or help would be appreciated.

    Hi AP,
      Please check whether you defined a constant value for characteristic VERSI (Version) in the transfer rules for your sender structure. If you don't want to define a constant value there you have to assign a field from your external structure and fill the version in your external file. In this case please consider to fill the field in the following format '1  ' for version 1 (don't use '001').
      Please refer and implement note 576807 in your system if it is in your system . Also refer note  508273 for a possible list of problems in external data transfer.
    Best Regards,
    Abhisek

  • Inter-org / subinventory transfer api

    Hello,
    I am looking for a real-time api that will conduct an inter-org or subinventory transfer.
    I know there is an option of using the open interface table/concurrent manager but I am looking for a real-time api.
    I thought process_move_order api would have worked but it seems like I have the wrong one.
    Any help?
    Thanks

    Hi Naga,
    Thanks for your update.
    For Subinventory transfer, i have understood it. But coming to Inter-Org Transfer, here we do 2 transactions. One is transfer from Sourcing Organization and receiving from Destination Organization. So for this, do i need to first do a intransit shipment through MTL_MATERIAL_TRANSACTION_INTERFACE and process them through API. Then use RECEIVIGN TRANSACTION for destination Organization and process. Please let me know what would be exact approach with respect to Inter_org Transfer.
    Regards,
    Sravan.

  • Transfer posting against purchase order in MIGO transaction

    Dear all,
    How can we make the settings in MIGO transaction code for Transfer posting with reference to Purchase order.
    Other wise, i want to do the transfer posting of my goods to my sub contractor with refernce to PO number in MIGO Tcode
    Any config settings are required.
    Thanks & Regards,
    R.Saravanan

    As per SAP online help you have three options to post components to your SC vendor's special stock:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/4d/2b906243ad11d189410000e829fbbd/frameset.htm
    You can provide components for existing purchase orders in the following ways:
    from the SC Stock Monitoring for Vendor list as a goods issue via Inventory Management
    from the SC Stock Monitoring for Vendor list as a delivery via Shipping
    from the Inventory Management menu
    If you read the instruction for the third option (first two is about ME2O), you will see it is speaking about MB1B and not about MIGO.
    1. From the Inventory Management menu, choose Goods movement ® Transfer posting.
    2. Enter the issuing plant and storage location. Choose Movement type ® Transfer posting ® Stck w. subcontract. ® From unrestricted. Enter the vendor and then choose Transfer posting ® Create with reference ® To purchase order.
    A dialog box appears in which you can enter up to 4 purchase orders.
    In MIGO you can choose only "A08" with "R02", "R08", "R09". "R01" is not allowed for "A08" in standard system.
    (Maybe it is possible but I do not know how...)
    Edited by: Csaba Szommer on Aug 5, 2010 11:54 AM
    Edited by: Csaba Szommer on Aug 5, 2010 11:54 AM

  • BAPI for transfer with posting -FB05 (transaction f-04)

    We are running R/3 4.7.
    Does anyone know if there is a BAPI that will do a transfer with clearing for GL accounts? The SAP transaction for GL transfer with clearing is F-04. If so could you let me know the name of the BAPI.
    Thank you
    Chris

    Hi Christopher,
    Have a glance at the link below, here you can find list of BAPI's
    http://www.sapbapi.com/bapi-list/
    Regards,
    Soundarya.

  • Transfer Posting - Transaction MB1B

    Hello Friends,
    Transaction - MB1B (Enter Transfer Posting)
    Movement - 303 (Transfer posting plant to plant - remove from storage)
    As per above transaction and Movement description, it is very clear this movement being used for Plant to Plant transfer.
    Here I am having one query, in initial screen of MB1B, inputs to be given as Movement Type 303, Plant, ABC and Storage location is 001then Enter,
    In second screen, there is a Receiving Plant
    Suppose we have to enter other plant (other than ABC), but by mistake (knowningly / unknowingly) even we enter same plant (ABC), system is taking and after save material document is created.
    Suppose system should not create (allow to save) if issuing plant as well as Receiving plants are same.
    Am I correct? If correct, Please explain how to restrict this?
    If I am not correct, please explain why?
    Best Regards,
    Vijayakumar TVN

    Dear Mr.Jürgen L.
    I am having one query here, the meaning of transfer posting shall either within a plant (between storage locations) or plant to plant. In this case, when I am choosing 303 movement - Transfer posting plant to plant - remove from storage, it should be between two plants, obviously, system should not allow receiving plant is equal to issue plant.
    Could u please clarify my understanding is correct or not?
    Best Regards,
    Vijayakumar TVN

  • DTW Transaction Commit Unsuccessful

    Hi All,
    I'm using DTW version 2005.0.29.  When I tried to import transaction, it gave me error message "Transaction Commit Unsuccessful".  I would like to know what's causes it.
    Regards,
    Foong Yee

    Hi Foong,
    Here is the solution from SAP note:
    DTW 2005.0.27: Handling a Transaction Commit Failure
    Symptom
    If a transaction commit operation is unsuccessful, for example, the stored procedure SBO_SP_TransactionNotification failure leads to a failed transaction commit, Data Transfer Workbench shows a successful import, even though the data has not been imported.
    Other terms
    DTW, Data Transfer Workbench, B1, SAP Business One, Transaction, Commit
    Reason and Prerequisites
    Bug
    Solution
    An upgrade to DTW2005.0.27 includes this functionality. If a transaction commit operation is unsuccessful, Data Transfer Workbench shows the import as failed and generates an error message.
    Based on the note above, I think it is a bug of DTW you are currently using. I suggest to upgrade the DTW version including the DI API version so that the DTW can run.
    Rgds,
    JimM

  • 11.5.10 ROI를 통해 INTRANSIT SHIPMENT(INTER-ORG TRANSFER)를 처리하는 방법

    제품: Applications
    작성날짜 : 2006-05-30
    11.5.10 ROI를 통해 INTRANSIT SHIPMENT(INTER-ORG TRANSFER)를 처리하는 방법
    ===============================================================
    PURPOSE
    11.5.10 Receiving Open Interface를 통해 Lot / Serial Controlled Items을 Intransit Shipment (Inter-org transfer) 처리하는 방법을 기술함.
    Explanation
    11.5.10에서는 ROI를 통해 Inter-Org Transfers를 지원합니다.
    . RECEIVE transaction
    . DELIVER to Inventory Transaction
    Solution
    ========
    - Receiving Open Interface (ROI)를 통해서 2 inventory organizations
    사이의 Inter-Organization Transfer를 수행한다.
    - Direct Receipt Routing으로 RECEIVE 와 DELIVER transaction을 동시에
    수행한다.
    <1> the sample script has been tested for a Lot and Serial
    Controlled Item.
    The script will load records into the tables
    RCV_HEADERS_INTERFACE,
    RCV_TRANSACTIONS_INTERFACE,
    MTL_TRANSACTIONS_LOTS_INTERFACE
    MTL_SERIAL_NUMBERS_INTERFACE
    * If the item is only a standard item, only the records into
    RCV_HEADERS_INTERFACE and RCV_TRANSACTIONS_INTERFACE tables
    have to be created.
    <2> Setup
    1) Inventory Setup/Organizations/Shipping Networks
    - From Sending Organization M1 to Destination Organization D2
    - Transfer Type=Intransit
    - Receipt Routing=Direct
    2) Item 'Lot-Serial-Controlled-1' is a lot and serial controlled
    Item in sending and Destination Organization
    <3> Create manual "Intransit Shipment"
    Inventory / Transactions/ Inter Organization transfer
    - From Org= M1, To Org= D2
    - Shipment: 'ROI-Lot-Serial-1'
    - Item= Lot-Serial-Controlled-1
    - Lot=S00226
    - From Subinventory=Stores
    - To Subinventory=Staging1
    - Quantity=10
    - Start Serial Number=SM1_00001
    - End Serial Number=SM1_00010
    <4> data collection for RCV_TRANSACTIONS_INTERFACE table
    - Select * from RCV_SHIPMENT_HEADERS
    where SHIPMENT_NUM like '&Shipment_Num';
    - Select * from RCV_SHIPMENT_LINES
    where SHIPMENT_HEADER_ID=&Shipment_Header_id;
    - Select * from RCV_LOTS_SUPPLY
    where SHIPMENT_LINE_ID=&Shipment_Line_id;
    - Select * from RCV_SERIAL_SUPPLY
    where SHIPMENT_LINE_ID=&Shipment_Line_id;
    <5> RECEIVE/ DELIVER to INVENTORY Transaction for INTER-ORG
    TRANSFER SHIPMENT
    - Direct DELIVER Receipt
    - LOT_NUM=S00226 and serial numbers SM1_00001 to SM1_00002
    Insert
    - RCV_HEADERS_INTERFACE with SHIPMENT_NUM='ROI-Lot-Serial-1',
    VALIDATION_FLAG='Y'
    - RCV_TRANSACTIONS_INTERFACE with TRANSACTION_TYPE='RECEIVE',
    AUTO_TRANSACT_CODE='DELIVER' , DESTINATION_TYPE_CODE='INVENTORY'
    RECEIPT_SOURCE_CODE='INVENTORY', SOURCE_DOCUMENT_CODE='INVENTORY'
    VALIDATION_FLAG='Y'
    - MTL_TRANSACTIONS_LOTS_INTERFACE with quantity=2, lot number S00226
    - MTL_TRANSACTIONS_SERIAL_INTERFACE with FM_SERIAL_NUMBER='SM1_00001'
    and TO_SERIAL_NUMBER='SM1_00002'
    INSERT INTO RCV_HEADERS_INTERFACE
    (HEADER_INTERFACE_ID,
    GROUP_ID,
    PROCESSING_STATUS_CODE,
    RECEIPT_SOURCE_CODE,
    TRANSACTION_TYPE,
    AUTO_TRANSACT_CODE,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    LAST_UPDATE_LOGIN,
    CREATION_DATE,
    CREATED_BY,
    SHIPMENT_NUM,
    SHIP_TO_ORGANIZATION_ID,
    EXPECTED_RECEIPT_DATE,
    VALIDATION_FLAG
    VALUES
    (rcv_headers_interface_s.nextval , --Header_Interface_Id
    rcv_interface_groups_s.nextval, --Group_Id
    'PENDING', --Processing_Status_Code
    'INVENTORY', --Receipt_Source_Code
    'NEW', --Transaction_Type
    'DELIVER', --Auto_Transact_Code
    SYSDATE, --Last_Update_Date
    0, --Last_Updated_By
    0, --Last_Update_Login
    SYSDATE, --Creation_Date
    0, --Created_By
    'ROI-Lot-Serial-1', --Shipment_Num
    210, --Ship_To_Organization_Id,
    SYSDATE, --Expected_Receipt_Date
    'Y' --Validation_Flag
    INSERT INTO RCV_TRANSACTIONS_INTERFACE
    (INTERFACE_TRANSACTION_ID,
    GROUP_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    TRANSACTION_TYPE,
    TRANSACTION_DATE,
    PROCESSING_STATUS_CODE,
    PROCESSING_MODE_CODE,
    TRANSACTION_STATUS_CODE,
    QUANTITY,
    UNIT_OF_MEASURE,
    INTERFACE_SOURCE_CODE,
    ITEM_ID,
    EMPLOYEE_ID,
    AUTO_TRANSACT_CODE,
    SHIPMENT_HEADER_ID,
    SHIPMENT_LINE_ID,
    RECEIPT_SOURCE_CODE,
    TO_ORGANIZATION_ID,
    SOURCE_DOCUMENT_CODE,
    DESTINATION_TYPE_CODE,
    SUBINVENTORY,
    SHIPMENT_NUM,
    EXPECTED_RECEIPT_DATE,
    HEADER_INTERFACE_ID,
    VALIDATION_FLAG
    VALUES
    ( rcv_transactions_interface_s.nextval, --
    INTERFACE_TRANSACTION_ID
    rcv_interface_groups_s.currval, --GROUP_ID
    SYSDATE, --LAST_UPDATE_DATE
    0, --LAST_UPDATED_BY
    SYSDATE, --CREATION_DATE
    0, --CREATED_BY
    0, --LAST_UPDATE_LOGIN
    'RECEIVE', --TRANSACTION_TYPE
    SYSDATE, --TRANSACTION_DATE
    'PENDING', --PROCESSING_STATUS_CODE
    'BATCH', --PROCESSING_MODE_CODE
    'PENDING', --TRANSACTION_STATUS_CODE
    2, --QUANTITY
    'Each', --UNIT_OF_MEASURE
    'RCV', --INTERFACE_SOURCE_CODE
    169845, --ITEM_ID
    13706, --EMPLOYEE_ID
    'DELIVER', --AUTO_TRANSACT_CODE
    233534, --SHIPMENT_HEADER_ID
    246486, --SHIPMENT_LINE_ID
    'INVENTORY', --RECEIPT_SOURCE_CODE
    210, --TO_ORGANIZATION_ID
    'INVENTORY', --SOURCE_DOCUMENT_CODE
    'INVENTORY', --DESTINATION_TYPE_CODE
    'Staging1', --SUBINVENTORY
    'ROI-Lot-Serial-1', --SHIPMENT_NUM
    SYSDATE, --EXPECTED_RECEIPT_DATE,
    rcv_headers_interface_s.currval, --HEADER_INTERFACE_ID
    'Y' --VALIDATION_FLAG
    INSERT INTO MTL_TRANSACTION_LOTS_INTERFACE
    ( TRANSACTION_INTERFACE_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    LOT_NUMBER,
    TRANSACTION_QUANTITY,
    PRIMARY_QUANTITY,
    SERIAL_TRANSACTION_TEMP_ID,
    PRODUCT_CODE,
    PRODUCT_TRANSACTION_ID
    VALUES
    ( MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL,--
    TRANSACTION_INTERFACE_ID
    SYSDATE, --LAST_UPDATE_DATE
    0, --LAST_UPDATED_BY
    SYSDATE, --CREATION_DATE
    0, --CREATED_BY
    0, --LAST_UPDATE_LOGIN
    'S00226', --LOT_NUMBER
    2, --TRANSACTION_QUANTITY
    2, --PRIMARY_QUANTITY
    MTL_MATERIAL_TRANSACTIONS_S.NEXTVAL, --
    SERIAL_TRANSACTION_TEMP_ID
    'RCV', --PRODUCT_CODE
    RCV_TRANSACTIONS_INTERFACE_S.CURRVAL --
    PRODUCT_TRANSACTION_ID
    INSERT INTO MTL_SERIAL_NUMBERS_INTERFACE
    ( TRANSACTION_INTERFACE_ID,
    LAST_UPDATE_DATE,
    LAST_UPDATED_BY,
    CREATION_DATE,
    CREATED_BY,
    LAST_UPDATE_LOGIN,
    FM_SERIAL_NUMBER,
    TO_SERIAL_NUMBER,
    PRODUCT_CODE,
    PRODUCT_TRANSACTION_ID)
    VALUES
    (MTL_MATERIAL_TRANSACTIONS_S.CURRVAL,--
    TRANSACTION_INTERFACE_ID
    SYSDATE, --LAST_UPDATE_DATE
    0, --LAST_UPDATED_BY
    SYSDATE, --CREATION_DATE
    0, --CREATED_BY
    0, --LAST_UPDATE_LOGIN
    'SM1_00001', --FM_SERIAL_NUMBER
    'SM1_00002', --TO_SERIAL_NUMBER
    'RCV', --PRODUCT_CODE
    RCV_TRANSACTIONS_INTERFACE_S.CURRVAL --
    PRODUCT_TRANSACTION_ID
    Commit;
    <6> In Purchasing Responsibility, Change to receiving organization
    - run the Receiving Transaction Processor for the given group_id
    used in RHI and RTI (GROUP_ID=25168)
    <7> check a data
    Navigate to Receiving / Receiving Transactions Summary form
    - For Shipment Number ROI-Lot-Serial-1, Receipt Number 5012
    has Receive and Deliver transactions.
    Reference Documents
    Note#336924.1
    글 수정:
    heeyeol2

    I Think Rajesh is Good inspite of Merlin.
    Can u send me your mail i'd.
    Actually I'm Facing Some Proble In Receipt Header.
    As the period in GL and Inventory is open till march-07 and i'm doing transaction today.
    After this also application is throughing a error.
    APP-PO-14230
    I Can't Send u the Screen Short hear.
    Please Help Me.
    Bachan

  • Coherence 3.6.0 transactional cache and POF - NULL values

    Hi,
    We are trying to use the new transactional scheme defined in 3.6.0 and we encounter an abnormal behaviour. The code executes without any exception or warnings but in the cache we find the key associated with a NULL value.
    To try to identify the problem, we defined two services (see cache-config below):
    - one transactional cache
    - one distributed cache
    If we try to insert into transactional cache primitives or strings everything is normal (both key and value are visible using coherence console). But if we try to insert custom classes using POF, the key is inserted with a NULL value.
    In same cluster we defined a distributed cache that uses the same POF classes/configuration. A call to put will succeed in any scenario (both key and value are visible using coherence console).
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>cnt.*</cache-name>
                   <scheme-name>storage.transactionalcache.cnt.scheme</scheme-name>
              </cache-mapping>
              <cache-mapping>
                   <cache-name>stt.*</cache-name>
                   <scheme-name>storage.distributedcache.stt.scheme</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <transactional-scheme>
                   <scheme-name>storage.transactionalcache.cnt.scheme</scheme-name>
                   <service-name>storage.transactionalcache.cnt</service-name>
                   <thread-count>10</thread-count>
                   <serializer>
                        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        <init-params>
                             <init-param>
                                  <param-type>String</param-type>
                                  <param-value>cnt-pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <backing-map-scheme>
                        <local-scheme>
                             <high-units>250M</high-units>
                             <unit-calculator>binary</unit-calculator>
                        </local-scheme>
                   </backing-map-scheme>
                   <autostart>true</autostart>
              </transactional-scheme>
              <distributed-scheme>
                   <scheme-name>storage.distributedcache.stt.scheme</scheme-name>
                   <service-name>storage.distributedcache.stt</service-name>
                   <serializer>
                        <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
                        <init-params>
                             <init-param>
                                  <param-type>String</param-type>
                                  <param-value>cnt-pof-config.xml</param-value>
                             </init-param>
                        </init-params>
                   </serializer>
                   <backing-map-scheme>
                        <local-scheme>
                             <high-units>250M</high-units>
                             <unit-calculator>binary</unit-calculator>
                        </local-scheme>
                   </backing-map-scheme>
                   <autostart>true</autostart>
              </distributed-scheme>
         </caching-schemes>
    </cache-config>
    Failing code (uses transaction APIs 3.6.0):
         public static void main(String[] args)
              Connection con = new DefaultConnectionFactory().createConnection("storage.transactionalcache.cnt");
              con.setAutoCommit(false);
              try
                   OptimisticNamedCache cache = con.getNamedCache("cnt.t1");
                   CId tID = new CId();
                   tID.setId(11111L);
                   C tC = new C();
                   tC.setVal(new BigDecimal("100.1"));
                   cache.insert(tID, tC);
                   con.commit();
              catch (Exception e)
                   e.printStackTrace();
                   con.rollback();
              finally
                   con.close();
    Code that succeeds (but without transaction APIs):
         public static void main(String[] args)
              try
                   NamedCache cache = CacheFactory.getCache("stt.t1");
                   CId tID = new CId();
                   tID.setId(11111L);
                   C tC = new C();
                   tC.setVal(new BigDecimal("100.1"));
                   cache.put(tID, tC);
              catch (Exception e)
                   e.printStackTrace();
              finally
    And here is what we list using coherence console if we use transactional APIs:
    Map (cnt.t1): list
    CId {
    id = 11111
    } = null
    Any suggestion, please?

    Cristian,
    After looking at your configuration I noticed that your configuration is incorrect. For a transactional scheme you cannot specify a backing-map-scheme.
    Your config contained:
    <backing-map-scheme>
    <local-scheme>
    <high-units>250M</high-units>
    <unit-calculator>binary</unit-calculator>
    </local-scheme>
    </backing-map-scheme>To specify high-units for a transactional scheme, simply provide a high-units element directly under the transactional-scheme element.
    <transactional-scheme>
        <scheme-name>small-high-units</scheme-name>
        <service-name>TestTxnService</service-name>
        <autostart>true</autostart>
        <high-units>1M</high-units>
    </transactional-scheme>http://download.oracle.com/docs/cd/E15357_01/coh.360/e15723/api_transactionslocks.htm#BEIBACHA
    The reason that it is not allowable to specify a backing-map-scheme for a transactional scheme is that transactional caches use their own storage.
    I am not sure why this would work with primitives and only fail with POF. We will look into this further here and try to reproduce.
    Can you please change your configuration with the above changes and let us know your results.
    Thanks,
    John
    Edited by: jspeidel on Sep 16, 2010 10:44 AM

  • EJB 3.0 and JTA (Distributed transactions)

    hi, first of all sorry for my english.
    then :)
    i'm working with JBoss Aplication Server an Oracle DataBase using EJB 3.0
    i have no problem before ... but now i want work with multiple database and i wand to manage transactions ... how i understand JTA (Java Transaction Api) is a technology for it.
    i think that i need two datasource file for example oracle-xa-ds.xml and postgres-ds.xml
    <datasources>
      <xa-datasource>
        <jndi-name>XAOracleDS</jndi-name>
        <track-connection-by-tx/>
        <isSameRM-override-value>false</isSameRM-override-value>    <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
        <xa-datasource-property name="URL">jdbc:oracle:thin:@192.9.200.177:1521:devnbtwo</xa-datasource-property>
        <xa-datasource-property name="User">paata</xa-datasource-property>
        <xa-datasource-property name="Password">1982226</xa-datasource-property>   <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name>
        <no-tx-separate-pools/>
          <metadata>
             <type-mapping>Oracle9i</type-mapping>
          </metadata>
      </xa-datasource>
      <mbean code="org.jboss.resource.adapter.jdbc.vendor.OracleXAExceptionFormatter"
             name="jboss.jca:service=OracleXAExceptionFormatter">
        <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
      </mbean>
    </datasources>
    <datasources>
      <local-tx-datasource>
        <jndi-name>PostgresDS</jndi-name>
       <connection-url>jdbc:postgresql://localhost:5432/Test</connection-url>
        <driver-class>org.postgresql.Driver</driver-class>
        <user-name>postgres</user-name>
        <password>1982226</password>
            <new-connection-sql>select 1</new-connection-sql>
          <metadata>
             <type-mapping>PostgreSQL 7.2</type-mapping>
          </metadata>
      </local-tx-datasource>
    </datasources>and i dont know what should i do in my persistance.xml file ..... when i was working with single database my persistance.xml file was working
    <?xml version="1.0" encoding="UTF-8" ?>
    <persistence xmlns="http://java.sun.com/xml/ns/persistence"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
         version="1.0">     
         <persistence-unit name="Oracle" transaction-type="JTA">
              <jta-data-source>java:/XAOracleDS</jta-data-source>
              <class>com.magti.businesslayer.ejb3entity.Group</class>
              <class>com.magti.businesslayer.ejb3entity.Student</class>
              <properties>
                   <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/>
                   <property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver"/>
                   <property name="hibernate.connection.url" value="jdbc:oracle:thin:@192.9.200.177:1521:devnbtwo"/>
                   <property name="hibernate.connection.username" value="paata"/>
                   <property name="hibernate.connection.password" value="1982226"/>
                   <property name="hibernate.default_schema" value="PAATA"/>
              </properties>
         </persistence-unit>     
    </persistence>but then i added anothe unit for second database and i get error
         <persistence-unit name="PostgreSql" transaction-type="JTA">
              <jta-data-source>java:/PostgresDS</jta-data-source>
              <class>com.magti.businesslayer.ejb3entity.Group</class>
              <class>com.magti.businesslayer.ejb3entity.Student</class>
              <properties>
                   <property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
                   <property name="hibernate.connection.driver_class" value="org.postgresql.Driver"/>
                   <property name="hibernate.connection.url" value="jdbc:postgresql://localhost:5432/Test"/>
                   <property name="hibernate.connection.username" value="postgres"/>
                   <property name="hibernate.connection.password" value="1982226"/>
                   <property name="hibernate.default_schema" value="postgres"/>
              </properties>
         </persistence-unit>     i don't know how i resolve it .
    i can't find any simple exaplme about distributed transactions on net ...
    can anybody help me ....
    thanks.

    Check this one:
    http://www.webagesolutions.com/knowledgebase/javakb/jkb005/index.html

  • Bean Managed Transactions and rollback

    Hi Everybody,
    I am using Bean Managed Transactions in a Message Bean which is called every some time by an EJB3 timer. This Message Bean subsequently calls a Session Bean which uses Container Managed Transactions and uses the default transaction attribute which is SUPPORTS. The Session Bean methods might sometime throw a System Exception(inheriting from RuntimeException) which will rollback the Bean Managed Transaction which was started from the Message Bean.
    When this happens and I try to invoke userTransaction.rollback() I get invalid transaction state exception and I suppose this means that is already rolled back.
    Is there a way to get another transaction or set the transaction back to a valid state so I can carry on with some persistence tasks or the only way to do that is by suppressing the RuntimeException and throwing an Application Exception having the *@ApplicationException(rollback=false)* annotation? Can I suppress a System Exception though?
    Thank you in advance!

    Saroj wrote:
    Hi All,
    I would like to know whether we can use JDBC Connection Object's commit and rollback
    methods to control Transaction in Bean Managed Transactions or not.You may use the JDBC connection's transaction support from an EJB. That being said, you
    need to understand that it won't be the transaction that started declaratively by the
    EJB container nor would it be a bean-managed transaction started through
    UserTransaction.
    FWIW, I question why you'd want to do this though. I'd use container-managed
    transactions and let the container handle this for you. The transaction manager
    includes a 1PC optimization so it's not going to do an XA/2PC tx if you only have a
    single resource in the tx. Also, the EJB container includes all the logic to properly
    handle rollbacks when exceptions are thrown etc.
    Finally, your code will more maintainable and reusable if you use the container-managed
    tx + JTA resources. If I later wanted to call another EJB or another JTA resource (eg
    JMS perhaps) I could do it without having to rewrite all of your code.
    -- Rob
    >
    >
    Why is it required that we should use Java Transaction API to control the Transaction
    in Our Beans?
    I understand that if we are using Multiple Resources and need to use Transaction
    then going for JTA makes sense. If I am using only Resource,for example, Only One
    Connection then we should be able to use Connection's Transaction control.
    I understand that other way to do the transaction is to use Container's transaction
    services.
    Please respond at the earliest.
    Thanks in Advance,
    Saroj

Maybe you are looking for

  • Hyperlink/bookmarks pointing at the bottom of the page

    We have a problem with the behaviour of hyperlinks and bookmarks pointing to external documents in Adobe 7.0 and 9.0.  When we click on these bookmarks/hyperlinks, the target document opens at the bottom of the page. If the user's page setting is set

  • How to disable print button in outoput screen from vf03

    hi, i have a requirement to display error message and, disable the print and print preview button. below its the step, 1)vf03 2)key in document type 3)select output type 4)if there's error, display error message and disable print and print preview bu

  • Async problem when using FlexUnit4

    Hi all, I have a problem I could use a little help with. I'm trying to change a test to FlexUnit4 (first used FlexUnit 0.9), but when using the Async class I get a "Timeout Occurred before expected event" (from the ExpectAsync.handleAsyncTimeOut func

  • I need a table/view so I can list current portal users

    Is there a table/view that I can use within portal that holds the names of all the portal users ?

  • Cost allocation based on time sheet

    Hi, I have a scenario to capture employees working time based on different projects/  sales order/  Internal services etc., and their cost has to be assigned to respective costcenters based on their actual (no.of hours) effort. For Eg: If an employee