Concurrency with transactions
Hi,
My requirement tells that my program should maintain transactions and also it needs concurrent read and write on the same database object.With concurrency document "http://www.oracle.com/technology/documentation/berkeley-db/db/ref/cam/intro.html" clearly tells that transactions are not allowed with concurrency.What should be my approach for this requirement?
Regards
Nandish
Hi Nandish,
I think that you are saying about "It is an error to specify any of the other DB_ENV->open subsystem or recovery configuration flags, for example, DB_INIT_LOCK, DB_INIT_TXN, or DB_RECOVER." - this means that is an error to specify those flags when configuring the environment as Concurrent Data Store. You can see the differences between the Berkeley DB products in here: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/intro/products.html
Also, you can see what a Transactional Data Store is about, in here: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/app.html
Please also consider the other thread that you had opened: Concurrency with multiprocess application
Thanks,
Bogdan Coman
Similar Messages
-
(BUG?) Oracle Apps Adapter - Unable to setup Concurrent with no parameter
Hi all.
I'm facing a problem when using Oracle Apps Adapter 10.1.3.1
In JDev Adapter Configuration Module Browser, when I want to configure it to execute a concurrent program that has no input parameter, the Module Browser does not work (the OK button does nothing)
Examples of concurrent with no parameters are:
1) Discrete Manufacturing->Inventory->Material Transaction->Open Interfaces->Inventory Transaction Open Interface->Concurrent Programs->Material Transactions Interface Manager (This one is the main issue I'm facing)
2) Supply Chain Management->Shop Floor Management->Lot Based Job->Open Interfaces->Lot Based Job Open Interface->Concurrent Programs->Manager: Lot Move Transactions
Other concurrents that have parameters all seems to pass in the configuration wizard.
Does any one know about this issue?
Thanks.
DenisWe've already been in conversation with the AppsAdapter developers about this.
Part of the problem is that you have to have NLS_LANG set correctly on your PC. So if the NLS_LANG on your Apps install is US then the PC needs to be set like this also.
I have some documentation which I can forward if you send me your contact details to [email protected]
Not saying that this will solve all your problems, as we found a few with this adapter but hopefully will put you on the right track. -
Method annotated with transaction "REQUIRES_NEW" always hit ConcurrentAccessTimeoutException
Hi all, i have a stateful session bean where the transaction set in the class level is "REQUIRED", inside the session bean there is a public method which annotated with transaction "REQUIRES_NEW". According to Java spec, by right when reach that method, the existing transaction will be suspended and create with a new one. However every time calling that method i will get ConcurrentAccessTimeoutException, I wonder why that could happened? Any idea?
I'm using JBoss AS7.1.1.Final + seam 2.3.0.Final + EJB 3.1, below is the exception stacktrace:
11:03:01,095 ERROR [org.jboss.ejb3.invocation] (http--10.3.10.211-28927-1) JBAS014134: EJB Invocation failed on component TestManagerBean for method public abstract boolean com.test.session.TestManager.validateUniqueName(com.test.entity.TestEntity,java.lang.String): javax.ejb.ConcurrentAccessTimeoutException: JBAS014360: EJB 3.1 FR 4.3.14.1 concurrent access timeout on org.jboss.invocation.InterceptorContext@212a34e6 - could not obtain lock within 5000 MILLISECONDS
at org.jboss.as.ejb3.component.stateful.StatefulSessionSynchronizationInterceptor.processInvocation(StatefulSessionSynchronizationInterceptor.java:117) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.stateful.StatefulComponentInstanceInterceptor.processInvocation(StatefulComponentInstanceInterceptor.java:66) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.requiresNew(CMTTxInterceptor.java:328) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:192) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ejb3.component.stateful.StatefulComponentIdInterceptor.processInvocation(StatefulComponentIdInterceptor.java:52) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]
at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]
at com.test.session.TestManager$$$view15.validateUniqueName(Unknown Source) [test.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_09]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_09]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_09]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_09]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.ejb.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:43) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.javassist.tmp.java.lang.Object_$$_javassist_seam_15.validateUniqueName(Object_$$_javassist_seam_15.java)
at com.test.validation.TestValidatorManager.validate(TestValidatorManager.java:65) [test.jar:]
at javax.faces.component.UIInput.validateValue(UIInput.java:1153) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIInput.validate(UIInput.java:971) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIInput.executeValidate(UIInput.java:1237) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIInput.processValidators(UIInput.java:702) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at org.richfaces.context.PartialViewExecuteVisitCallback.visit(PartialViewExecuteVisitCallback.java:55) [richfaces-core-impl-4.3.2.Final.jar:4.3.2.Final]
at org.richfaces.context.BaseExtendedVisitContext.invokeVisitCallback(BaseExtendedVisitContext.java:321) [richfaces-core-impl-4.3.2.Final.jar:4.3.2.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1612) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at org.richfaces.component.AbstractTogglePanel.visitTree(AbstractTogglePanel.java:924) [richfaces-components-ui-4.3.2.Final.jar:4.3.2.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIForm.visitTree(UIForm.java:371) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at org.richfaces.component.AbstractTogglePanel.visitTree(AbstractTogglePanel.java:924) [richfaces-components-ui-4.3.2.Final.jar:4.3.2.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIForm.visitTree(UIForm.java:362) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at javax.faces.component.UIComponent.visitTree(UIComponent.java:1623) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at org.richfaces.context.ExtendedPartialViewContextImpl.executeComponents(ExtendedPartialViewContextImpl.java:278) [richfaces-core-impl-4.3.2.Final.jar:4.3.2.Final]
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartialExecutePhase(ExtendedPartialViewContextImpl.java:258) [richfaces-core-impl-4.3.2.Final.jar:4.3.2.Final]
at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.java:215) [richfaces-core-impl-4.3.2.Final.jar:4.3.2.Final]
at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:1162) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:76) [jsf-impl-2.1.21-jbossorg-1.jar:]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.1.21-jbossorg-1.jar:]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.21-jbossorg-1.jar:]
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.1.21.Final.jar:2.1.21.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at com.test.server.TestFilter.doFilter(TestFilter.java:54) [test.jar:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [jboss-seam-2.3.0.Final.jar:2.3.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:397)
at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50) [jboss-as-jpa-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]I forgot : when i try to shut the server down i get the message :
Shutting down...
Error serializing bean: Deadlock detected, timing out call after 15 seconds wait for transaction [Transaction d9:fa:4f:b6:ff:ff:ff:ff:4a:0:0:0:0:0:0:0:0:4b:0:ec:6d:ce:c0:16]
Error serializing bean: Deadlock detected, timing out call after 15 seconds wait for transaction [Transaction d9:fa:4f:b6:ff:ff:ff:ff:4c:0:0:0:0:0:0:0:0:4d:0:ec:6d:d2:d9:d2]
Error serializing bean: Deadlock detected, timing out call after 15 seconds wait for transaction [Transaction d9:fa:4f:b6:ff:ff:ff:ff:4e:0:0:0:0:0:0:0:0:4f:0:ec:6d:d4:21:a3]
and it doesn't shutdown. -
While trying to change a BOM with transaction CS02, a runtime error appears
While trying to change a BOM with transaction CS02, a runtime error appears.
In intial screen he entered material ,plant BOM usage and date valid from after executed then id displayed item list in that he wantu2019s delete one item, he has been deleted selected item after that when he was saving he is getting runtime error
Developer trace
ABAP Program SAPLKED1_WRITE_CE4_BPS1 .
Source LKED1_WRITE_CE4_BPS1U01 Line 30.
Error Code SAPSQL_ARRAY_INSERT_DUPREC.
Module $Id: //bas/640_REL/src/krn/runt/absapsql.c#17 $ SAP.
Function HandleRsqlErrors Line 775.
RABAX: level LEV_RX_STDERR completed.
RABAX: level LEV_RX_RFC_ERROR entered.
RABAX: level LEV_RX_RFC_ERROR completed.
RABAX: level LEV_RX_RFC_CLOSE entered.
RABAX: level LEV_RX_RFC_CLOSE completed.
RABAX: level LEV_RX_IMC_ERROR entered.
RABAX: level LEV_RX_IMC_ERROR completed.
RABAX: level LEV_RX_DATASET_CLOSE entered.
RABAX: level LEV_RX_DATASET_CLOSE completed.
RABAX: level LEV_RX_RESET_SHMLOCKS entered.
RABAX: level LEV_RX_RESET_SHMLOCKS completed.
RABAX: level LEV_RX_ERROR_SAVE entered.
RABAX: level LEV_RX_ERROR_SAVE completed.
RABAX: level LEV_RX_ERROR_TPDA entered.
RABAX: level LEV_RX_ERROR_TPDA completed.
RABAX: level LEV_RX_PXA_RELEASE_RUDI entered.
RABAX: level LEV_RX_PXA_RELEASE_RUDI completed.
RABAX: level LEV_RX_LIVE_CACHE_CLEANUP entered.
RABAX: level LEV_RX_LIVE_CACHE_CLEANUP completed.
RABAX: level LEV_RX_END entered.
RABAX: level LEV_RX_END completed.
RABAX: end RX_RFC
In sm21
Perform rollback
Run-time error "SAPSQL_ARRAY_INSERT_DUPREC" occurred
Short dump "090618 110101 donalda 11557 " generated
Runtime Error SAPSQL_ARRAY_INSERT_DUPREC
Exception CX_SY_OPEN_SQL_DB
Occurred on 18.06.2009 at 11:01:01
The ABAP/4 Open SQL array insert results in duplicate database records.
What happened?
Error in ABAP application program.
The current ABAP program "SAPLKED1_WRITE_CE4_BPS1" had to be terminated because
one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
What can you do?
Print out the error message (using the "Print" function)
and make a note of the actions and input that caused the
error.
To resolve the problem, contact your SAP system administrator.
You can use transaction ST22 (ABAP Dump Analysis) to view and administer
termination messages, especially those beyond their normal deletion
date.
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
neither
caught nor passed along using a RAISING clause, in the procedure
"RKE_WRITE_CE4__BPS1" "(FUNCTION)"
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
If you use an ABAP/4 Open SQL array insert to insert a record in
the database and that record already exists with the same key,
this results in a termination.
(With an ABAP/4 Open SQL single record insert in the same error
situation, processing does not terminate, but SY-SUBRC is set to 4.)
How to correct the error
The exception must either be prevented, caught within the procedure
"RKE_WRITE_CE4__BPS1"
"(FUNCTION)", or declared in the procedure's RAISING clause.
To prevent the exception, note the following:
Use an ABAP/4 Open SQL array insert only if you are sure that none of
the records passed already exists in the database.
You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
use the following search criteria:
"SAPSQL_ARRAY_INSERT_DUPREC" CX_SY_OPEN_SQL_DBC
"SAPLKED1_WRITE_CE4_BPS1" or "LKED1_WRITE_CE4_BPS1U01"
"RKE_WRITE_CE4__BPS1"
If you cannot solve the problem yourself, please send the
following documents to SAP:
1. A hard copy print describing the problem.
To obtain this, select the "Print" function on the current screen.
2. A suitable hardcopy prinout of the system log.
To obtain this, call the system log with Transaction SM21
and select the "Print" function to print out the relevant
part.
3. If the programs are your own programs or modified SAP programs,
supply the source code.
To do this, you can either use the "PRINT" command in the editor or
print the programs using the report RSINCL00.
4. Details regarding the conditions under which the error occurred
or which actions and input led to the error.Hi ,
you are getting beacuse u are trying to do mass update to database.
Please check that below note are applicable to your system.
Note 453313 - DBIF_RSQL_ERROR_INTERNAL for mass insert
Note 869534 - AFS MRP doesn't work properly with all BOM item categories
Thanks Rishi Abrol -
How to configure Oracle 10g Advanced Security to use SSL concurrently with
How to configure Oracle 10g Advanced Security to use SSL concurrently with database User names and passwords
In Oracle Advanced Security Documentation it is mentioned that i can use SSL concurrently with DB user names and passwords. But when i configure the client certificate on the client my DB connection is getting authenticated using the certificate, which out passing user id or password.
We want to connect to Oracle DB over SSL channel so that the data packets are not in clear text. Also we want the user to make a connection using user id and password.
Basically we want SSL with out authentication.
Need your expert adviceRead the documentation (I have given following links assuming you are running a 32 bit architecture)
Server installations:
http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14316%2Ftoc.htm&remark=portal+%28Books%29
Client installations:
http://www.oracle.com/pls/db102/to_toc?pathname=install.102%2Fb14312%2Ftoc.htm&remark=portal+%28Books%29
You can find the required books (if not using 32 bit architecture) from
http://www.oracle.com/pls/db102/portal.portal_db?selected=3 -
Character # at the end of line with transaction AL11
Hi gurus,
In version 46c if I upload a file to application server with program RC1TCG3Z and in mode BIN when I display the file with transaction AL11 the file is correct.
In version 60 if I upload a file to application server with the same program and in mode BIN when I display the file with transaction AL11 appears character # at the end of some lines. How it is possible?
Thanks,> I don't have access to OS level.
Check the file on OS level (ask the admin to copy that file), it may be a display issue in the GUI.
Markus -
ABSO - Miscellaneous with transaction type 158
I create an posting on an new asset (capitalized) with transaction type 158 Gross
interco.transf.acquis. prior-yr acq.
I fill in:
Aquisition value
Ord dep Cumulat (By area)
Ord dep current year (By area)
When I look to the asset AW01N - Asset Explorer I see that the values from the depreciation are placed in value adjustments and not in Ordinary depreciation.
The result from this is that the system calculate 12 months
depreciation and not 12 months -/- Ord dep current year.
THIS IS WRONG
When you do an Intercompany Asset Transfer (ABT1N) than the values are
correct. With transaction type 158 a do only step 2?
I have to read in arround 5000 assets in an existing company codes with
assets during the fiscal year.
Do I some thing wrong ore do I have to make a setting for this. I look in the transaction type but I can't found a setting what can help me. Or is there some thing for second hands that can do this for me?
Thanks,
PaulUsed an other transaction type wityh old year and plase the capitalization date on the last day of last fiscal year and used the correct depreciation start date
-
Posting with transaction type 160 is not possible at MR8M
MODERATOR: Do not post (or request) email address or links to copyrighted or confidential information on these forums. If you do, the thread will be LOCKED and all points UNASSIGNED. If you have some information, please consider posting it to the [Wiki|https://wiki.sdn.sap.com/wiki/display/ERPFI/Home] rather than sharing via email. Thank you for your assistance.
Hi All,
We raised a PO w.r.t CWIP asset and posted GRN (MIGO - Transaction typr:100) and Invoice (MIRO).
Here, Invoice posted wrongly, So we are trying to reverse the invoice with MR8M (which is posted thru MIRO).
But system populating one message as per the following:
Posting with transaction type 160 is not possible here, see long text
Message no. AAPO 177
Diagnosis:
Transaction type 160 has a depreciation limitation, although posting is not mandatory in all of the depreciation areas entered However, it is not possible to select depreciation areas in the current transactions.
Procedure:
Check the specification of transaction type 160 or use transaction MR8M to enter the transaction
Please help
Sairavi
kumarfi9gmailcomWelcome to the forum.
As a newbie you should understand the forum rules where you are not suppose to post any basic or repeated question. To avoid this, you should make a search here
[Forum Search|http://forums.sdn.sap.com/search!default.jspa?objID=f327]
Type the same error text in Search Terms so that you will find the solution.
thanks
G. Lakshmipathi -
Batch Input with transaction ME58
Hello SAP:
We are trying to do a Batch Input Session with transaction ME58
(Creating Service Entry Sheets) by using a FrameWork Order.
After the batch input selects the purchase order and mark all
the requisitions related with that order and confirms the selection,
the system calls program SAPLMLSR dynpro 400, where the tab "Basic
Data" appears and the error "Make an entry in all required fields"
(00 055) is displayed. Althought we had put all the obligatory
fields required by the Batch Input in that particular
screen SAPLMLSR - 400 (we also tried with subscreen 410), the fields
indicated in the Batch Input were lost.
It seems the flow control of the Batch Input is lost because of the
error message 00 055.
Thank You - And we will be waiting for Your answer.
Frinee ParedesHi Christian!!
The error that is displayed is because of a mandatory field, the problem is that it appears before the screen is displayed, I mean the validation occurs before I can input data.
It's very interesting what you said about enjoy transactions and there might be the problem, a few minutes ago, while debugging transaction ME58, I found that it calls function module MS_SERVICE_ENTRY2, which calls transaction ML81N, which I think is an enjoy sap transaction, I guess I'm in a big trouble because I've already looked for a BAPI and it seems there aren't any.
If you like to reproduce the error you could record transaction ME58 with transaction SHDB,you would need a framework order (FO) for the selection screen and purchase requisitions (PO) created asociated to that FO.
What I want to do with ME58 is to run a job periodically which creates service entry sheets with the FO and PR as input.
Thank you very much!!
Frinee -
Connected Digital AV Adapter from my iPad (64 GB 4G) to my HD TV. Tried playing slideshow (with sound off) concurrently with playing iTunes playlist. Video plays fine but no audio. iTunes volume indicator not showing any volume.
Just following-up on this posting from a week or two ago and another a few days later about the problems with catch-up TV. We were disappointed with the lack of service, but as we can get most of the catch-up we want on the Sony Bravia TV, hadn't pursued it with BT perhaps hoping things would improve.
Got a phone call last week from BT asking if we'd been able to set up the YouView Box OK, which we had. Mentioned the unsatisfactory service. She immediately put me through to the BT technical call centre in India where I spoke to guy called Rajiv or something like that. Asked a few questions and then asked me to switch off the YouView Box (back panel switch) and do a hard-reset on the Homehub Router. Once this had been done, and the YouView box switched back on. The service ran fine and has done so since. I don't know if Rajiv did anything in the network or whether this is just some problem (he called it a "glitch") in the router/YouView box. Funny that that the speedtest and streaming to the Sony TV works OK.
He phoned back a couple of days later to see if we'd had any further problems. Overall good service. It would be interesting to know from a technical point of view what the problem was and how it was solved. It shouldn't be necessary to reset boxes in this way. -
Audit Vault 12.1.1 error creating audit trail with TRANSACTION LOG
Hi,
i installed AV 12.1.1 , the DB target is with Data Guard.
when i run the script oracle_user_setup with the mode REDO_COLL the final message is that was succesfull , but when i go to the AV console and try to create an audit trail with TRANSACTION LOG the AV console shows me an error and the log shows me this :
[2013-10-16T03:37:18.593-05:00] [collfwk] [ERROR] [] [] [tid: 10] [ecid: 192.168.56.8:78800:1381912639433:0,0] RedoCollector : runSourceScript : Error while running script on source for REDO collector.
[2013-10-16T03:37:19.528-05:00] [collfwk] [ERROR] [] [] [tid: 10] [ecid: 192.168.56.8:78800:1381912639433:0,0] OAV-8004: Failed to start collector {0}:{1}CollectionFactory : createCollection : Exception while creating collection. [[
Failed to start collector {0}:{1}
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollector.runSourceScript(RedoCollector.java:816)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollector.sourceSetup(RedoCollector.java:579)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollector.setup(RedoCollector.java:454)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollector.startCollector(RedoCollector.java:216)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollectorManager.startTrail(RedoCollectorManager.java:199)
at oracle.av.platform.agent.collfwk.impl.factory.CollectionFactory.createCollection(CollectionFactory.java:504)
at oracle.av.platform.agent.collfwk.impl.factory.CollectionFactory.createCollection(CollectionFactory.java:354)
at oracle.av.platform.agent.StartTrailCommandHandler.processMessage(StartTrailCommandHandler.java:63)
at oracle.av.platform.agent.AgentController.processMessage(AgentController.java:325)
at oracle.av.platform.agent.AgentController$MessageListenerThread.run(AgentController.java:1859)
at java.lang.Thread.run(Thread.java:679)
Nested Exception:
java.sql.SQLSyntaxErrorException: ORA-01031: insufficient privileges
ORA-06512: at line 1
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:445)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:396)
at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:879)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:450)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:192)
at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:531)
at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:207)
at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:1044)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1329)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3584)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3685)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1376)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at oracle.ucp.jdbc.proxy.StatementProxyFactory.invoke(StatementProxyFactory.java:230)
at oracle.ucp.jdbc.proxy.PreparedStatementProxyFactory.invoke(PreparedStatementProxyFactory.java:124)
at $Proxy2.execute(Unknown Source)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollector.runSourceScript(RedoCollector.java:747)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollector.sourceSetup(RedoCollector.java:579)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollector.setup(RedoCollector.java:454)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollector.startCollector(RedoCollector.java:216)
at oracle.av.platform.agent.collfwk.impl.redo.RedoCollectorManager.startTrail(RedoCollectorManager.java:199)
at oracle.av.platform.agent.collfwk.impl.factory.CollectionFactory.createCollection(CollectionFactory.java:504)
at oracle.av.platform.agent.collfwk.impl.factory.CollectionFactory.createCollection(CollectionFactory.java:354)
at oracle.av.platform.agent.StartTrailCommandHandler.processMessage(StartTrailCommandHandler.java:63)
at oracle.av.platform.agent.AgentController.processMessage(AgentController.java:325)
at oracle.av.platform.agent.AgentController$MessageListenerThread.run(AgentController.java:1859)
at java.lang.Thread.run(Thread.java:679)
i don't understand why the issue because the user has the privileges given by the script and i tried with grant as sysdba but without any result
i don't understand what are the privileges that the collector needs.
any idea?
thnks for any helpHi
Just run the script $AV_AGENT/av/plugins/com.oracle.av.plugin.oracle/config/oracle_user_setup.sql USER_NAME REDO_COLL
This will grant the user some privileges and roles like DBA and CREATE Database Link
I hope this answer your question
Thanks
Ahmed Moustafa -
How can i declare a selection screen in a DP program with transaction code.
hi friends,
How can i declare a selection screen in a DP program with transaction code. What are the events and flow logic..Search in SCN/Google for Module-pool programming basics.
-
Check in BAdi if delivery processed with IDOC or with transaction
Hello to everyone!
I have encountered an issue and hopefully you could help me in solving this.
I have developed an enhancement (BAdi) in delivery processing.
Every time delivery is being changed - method is triggered and line item is being validated against some conditions
But now I would like to prevend BAdi from being launched when delivery comes in IDOC.
For this purpose I just put a simple condition in BAdi method:
IF sy-batch NE 'X'.
//here perform validation.
ENDIF.
Unfortunately validation is still performed. Looks like when IDOC is being sent to ECC from PI, sy-batch is empty.
I would also like to prevent validation from being launched when IDOC re-processed manually (BD87 or sth.)
But then sy-batch is also empty.
Could you please advise some solution for this?
How to check in BAdi if delivery is being processed with IDOC or with transaction (VL32N, VL31N, VL32, ...)
I would appreciate every comment on this.
Kind Regards,
P.
Edited by: Piotr Wojciechowski on Jul 28, 2011 8:59 PMHi Max,
Thanks a lot for your reply!
Yes, indeed, IDOC is processed by FModule IDOC_INPUT_DELVRY.
You mean I should for example
find some place in this FModule (exit/enhancement point/...) where I could put-Z-code
and raise a delivery number (or just some flag) to memory (EXPORT TO MEMORY..)
and later on catch it from memory in my BAdi method (IMPORT FROM MEMORY ...)
to check if delivery processed by IDOC/not IDOC ?
Kind Regards,
Piotr.
PS. Maybe you also have some idea how to debug such communication triggered from PI to ECC?
I have posted this in separate [thread|PI-ECC connection (IDOC scenario), how to debug? (External BP);. -
Error in posting with transaction ABAA - unplanned depn (Error msg: AA 666)
Dear All,
My client is posting unplanned depreciation with transaction ABAA. He is not able to post in one company code where as he is able to post in another company code. Both the assets have same date of acquisition, depreciation key & useful life
These two company codes have different chart of depreciation, however same chart of accounts
Is there any customisation that needs to be done to rectify the error?
Following is the error message
Transaction in area 01 contradicts the net book value rule
Message no. AA660
Diagnosis
The document cannot be posted, as it is contrary to the net book value rule which is checked in area 01
Procedure
This error usually occurs when you enter proportional values. The proportional values exceed the amount posted, for example, post capitalization of 100 but proportional epreciation to the amount 110.
Check your entries and correct them if necessary.
Please let me know if there is any solution.
Regards
HariDear Pavan,
In Asset master -> Depreciation Areas
Double click on depreciation key field in the relevant depreciation area (Eg: 01). In the additional specifications tab tick against 'Negative values allowed'
Let me know your result
Regards
Hari -
Can change GL account code with transactions
In Canadian Localization in CoA with segments I can change account code in account with transactions.
An issue found in 2007 PL 35 and 41.
Is it a bug oe new functionality?
Thanks,
OlgaHi Olga,
If the G/L Accounts are set up as segmented accounts then it is
possible to change the account codes. The code field of the G\L Accounts
is a description field (non unique, the unique key is internal, this is
only the case with segmented G/L accounts) and can be changed. This
will not affect the reports, only the name/code will change. System will identify the accounts with an internal code.
Regards,
Vijay kumar
SAP Business One Forums Team
Maybe you are looking for
-
How to use interface and abstract class in the real time sennario ?
how to validate password and reenter password fields in the struts through the xml files?
-
I'm using the Keynote Widget in iBooks Author, and the Keynote presentation uses the Magic move transition between slides. When I preview the iBook on a new iPad, the Magic move transitions don't show up (i.e. the transition from slide to slide is s
-
MY DISPLAY IS DARKER ON ONE SIDE AND CONTRAST HIGHER
HPG42 NOTEBOOK. WINDOWS 7 HOME PREMIEM 64 BIT. ALL DRIVERS UPDATED. OCCURS IN BIOS STARTUP TOO.
-
WRT54G Wireless G--Pressed Cisco Logo by Mistake
I've had my WRT54G working perfectly with my home network, now I was dusting off my computer and by mistake pressed the Cisco Systems button on the router. It started to flash bright white and then stopped. I haven't reconfigured my router in awhil
-
Problems with Finder in Lion OS 10.7
I can't view the Finder window to access any of my folders. It shows up when sliding between "desktops" when using the "three finger scroll gesture", but is not manipulable, and disappears when it settles on the next "desktop".