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.
Similar Messages
-
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?
nullHi 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] -
Project related Inventory "misc transaction" accounting
Hi Friends,
Can any expert explain me that where from the system will determine the accounting information, when we create a "project related miscellaneous transaction" (issue/receipt) from inventory and import into Project module (ver 11.5.10.2).
Thanks in advance.
SuryaHi
When user enters a Misc transaction he has to update the field Account on the Transaction form.
That would be the debit account of a misc issue transaction, The system will creadit the material valuation account of the Inventory organization (based on setup).
Dina -
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. -
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 running total turns blank when using different exp type
Hi,
I would like to ask for some advise on how to fix this issue:
When entering miscellaneous transaction with 2 different expenditure type (Labor and Material) the running total will be blank. But if we enter the same expenditure type (both Labor or Material) the running total will have values.
Any idea how to fix this? Thanks!
Application: 11.5.10.2
Edited by: JulieAnn on Mar 27, 2012 11:21 PMThis was fixed by changing the "Pixel Format" in the catalyst control center to "RGB (Full RGB)".. Somehow it got changed to "YcBcr".
I removed the /etc/ati/amdpcsdb file that the fglrx driver likes to put settings in and did a fresh reinstall of catalyst-test and everything looks good now. Really no idea how the pixel profile got changed. Also noticed that my resolution was much lower than it should have been (which for some reason doesn't affect XBMC which runs in native resolution no matter what?), but that was an easy fix of adding Mode "1920x1080" to my Display section in xorg. -
Transaction processor error in Misc. Transaction
Hi,
When i perform Misc transaction in Inventory module then system shows “Transaction processor error” at save Transaction.
can anyone guide about the error.
Regards,
AmanHI Raghav,
Thanks for the note ids.
I have read all 3 metalink notes & solution written in note id: 412110.1 is applicable but that is for 11i and i am working in R12.0.4. It is some sort of bug.
i.e "the existing items can be fixed by unchecking and checking again the costing enabled flag and the inventory asset value flag."
But there is one problem with the solution that when i try to uncheck both flags system shows error:
"APP-INV-0557: You can't update this field when:
- On-hand quantities, pending & uncosted transactions exists"
Now there are onhand quantities exists for the item and i cannot uncheck or check the costing and asset value flag. Its working only for items with no onhand quantities as number of items are increasing and i can't clear on-hand quantities for every item.
Plz guide if i can avoid error and process misc. transactions without removing onhand quantities.
Regards,
Fahd -
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 -
Cost distribution not working for -Ve Transactions
Hi,
We are spliting the cost for an misc transaction. The Splitted cost are got cost distributed. But the Reversal expenditure (-ve Transaction) is not get cost distributed.
The cost distribute flag is enabled for the reversal transaction. but no credit or debit account populated. Please let me know what might be the issue.
Thanks In advance
Thanks
RajCheck the cost distribution concurrent request's output. It will tell you the reason. It might be an auto-accounting issue too. Post the error code here.
Sathish Raju
www.projectsaccounting.com -
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 -
UserTransaction or JDBC transaction
Hi,
please give suggestions...
We are using a application server with connection pooling
jsp and servlets are used in project
for transactions Is userTransaction is better or JDBC transaction is better
userTransaction may be implemented like this
try
getUserTransaction
transaction.begin
execute queries
transaction.commit
catch()
transaction.setRollbackOnly
JDBC Transaction may be implemented like this
connection.autoCommit=false
try
execute queries
connection.commit
catch()
connection.rollback
which is better for scalability and performance when we have to use transactins
in jsp/servlets
regardsHi,
You are talking about using programmatic transactions in J2EE applications.
When developing J2EE applications, you are recommended to use the transaction mechanism provided by the application servers.
Sometimes, JDBC transaction can undertake the whole task. However, using JTA (Java Transaction APIs) is the better choice.
Especially when you are going to develop a lot of components (JavaBeans/ EJBs).
Imangine if a transaction is to be finished after the coroperation of serveral objects(JavaBean/ EJB instances).
How can you control the begining and the ending of the transaction by puting codes in these programs?
But it is very easy to input JTA codes (just like userTransaction etc.) to implement it.
Therefore, to use JTA is more convinient.
Additionally, J2EE specifications recommend to use declarative transactions in EJBs. Thus transaction management could be more flexible.
Good luck.
Gary Wang
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support/ -
Costing for Miscellaneous issue transaction for project
We have a different requirement from the business
ours is R&D and we are using Oracle projects to track our projects costing and billing
we procure some material from outside supplier and it will get costed to the project but when any engineer want to use the material they want to reduce the material from the inventory by they dont want the cost to get reduced from the project
usually engineers take the material by doing miscellaneous issue for some testing and they never get in to the project again it will be treated as samples
currently when i do the miscellaneous issue it reduces the inventory from project and also the cost will get reduced.
Can someone help me out since it is very critical for us to acheive this,
Regards
LavanyaD
Dear Lavanya,
The material should be first reeived to Inventort then transferred to projects
Ex 100 Quantity is Received @ 10 Each - Inventory Material value will be 1000 Unit Price 10
Now 10 Quantity is Issued(Samples) @ 0 each - Inventory material Value will be 1000 Unit Price 11.11
Now Transfer the remaining quantity to Projects i,e 90 quantity, & inventory material value will be 1000, unit price will be 11.11 (Use Project related Misc Transaction for Project Issues)
Even though material is issued with 0 unit price A/c entries will be generated
Dr. Given A/c
Cr. Inventory material value A/c
Here first the material is directly received into Inventory (Not related to projects organization) Miscellaneous Issue (For samples) is done with 0 unit cost after that The material is transferred to projects (Project Issues)
For Miscellaneous Issue (Samples Issue) a Personalization is need to done such that the Unit price will be freeze to 0.
Regards
Shaan -
Setup of approval for Miscellaneous issue transaction in Inventory
Dear Experts,
We have a requirement from client to setup approval for Miscellaneous issue/
receipt transaction in Inventory.
Is it possible to fulfill the above requirement using Approval Management Engine (AME)?.
If it is possible, Kindly explain me in detail about the setup steps needed for the
configuration of Miscellaneous issue/receipt transaction in Inventory.
Kindly respond at the earliest as the requirement is needed urgently for our client.
Thanks in advance !
Best Regards,
Naveen.D
Dear Lavanya,
The material should be first reeived to Inventort then transferred to projects
Ex 100 Quantity is Received @ 10 Each - Inventory Material value will be 1000 Unit Price 10
Now 10 Quantity is Issued(Samples) @ 0 each - Inventory material Value will be 1000 Unit Price 11.11
Now Transfer the remaining quantity to Projects i,e 90 quantity, & inventory material value will be 1000, unit price will be 11.11 (Use Project related Misc Transaction for Project Issues)
Even though material is issued with 0 unit price A/c entries will be generated
Dr. Given A/c
Cr. Inventory material value A/c
Here first the material is directly received into Inventory (Not related to projects organization) Miscellaneous Issue (For samples) is done with 0 unit cost after that The material is transferred to projects (Project Issues)
For Miscellaneous Issue (Samples Issue) a Personalization is need to done such that the Unit price will be freeze to 0.
Regards
Shaan -
Rollback a transaction in a session bean BMP?
The following code would work correctly if executed in a stateless session bean BMP?
InitialContext ic = new InitialContext();
javax.sql.DataSource dataSource = (javax.sql.DataSource) ic.lookup("java:comp/env/jdbc/OracleDS");
Connection conn = dataSource.getConnection();
conn.setAutoCommit(false);
Statement stmt = conn.createStatement("UPDATE TABLE_A SET NAME = 'Duke' WHERE ID = 7");
stmt.executeUpdate();
if (someCondition) {
conn.commit();
} else {
conn.rollback();
My question:
It�s possible to rollback a transaction using rollback() from Connection class in a stateless
session bean BMP?Dear JDC member:
With EJB, you can gain the benefit of transactions without performing any transaction programming. That is, your enterprise beans never explicitly issue a begin, commit, or abort statement. The container performs it to you. But you have to tell the container how to do it. As you might know, the deploment descriptor is the place for it.
But nothing prevent you to do do programmatic transaction as you want.. For that case you have to know JTA (Java Transaction API) and more.
Suppose the transaction aborts, you have to throw an exception back to the client or try it again. The issue here is with stateless sesssion beans, there is no in-memory conversational state. You might think to implement javax.ejb.SessionSynchronization interface with your business methods....
You see there is a lot to know. You can take care of transactions in the client code, but it is a bad design.
You have to understand today most application servers (Websphere, Weblogic...) are designed to minimize those issues in order to make developers' tasks easier. The container takes care of transactions.
Be careful when you write stateless session beans BMP (BMP are for entiti beans)
Regards,
Armand Komenan
Maybe you are looking for
-
"podcasts" is not visible in iTunes after software update
iTunes no longer shows "podcasts" as a category. I have several active subscriptions--they seem to have disappeared. All of the other usual categories (e.g., music, TV shows) are still there. This occurred immediately after I downloaded today's iT
-
Application Compatibility does not update the database.
Hi, I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location. I can
-
ICloud Photo Library, some not all photos
Is there a way to set up to store some photos, or photo albums in iCloud but not all? Seems like it's all or none.
-
Is iMovie 11 compatible with Sony DCR HC90?
I've got ImageMixer loaded on the machine, and I'm using the firewire cable, but iMovie just won't recognize that there is a camera connected.
-
Dear Gurus, We are in work of cleaning roles in the systems. For this, I'm using SU10 for deleting a role assigned to 1000 users. But I'm not able to see the changes after this was done. Please do help me in this. Regards, Suren.