Skip to Content
0
Former Member
Mar 04, 2004 at 03:52 PM

BAPI_TRANSACTION_COMMIT

39 Views

Hi!

I created a WebDynpro project to create sales orders. I call the Bapi_Salesorder_createfromdat2 and it works well.

But when I try to use the COMMIT, with the BAPI_TRANSACTION_COMMIT Model, it doesn't work.

///////////////////////////////////////////////////////

wdContext.currentBapi_Salesorder_createfromdat2Element().modelObject().execute();

wdContext.currentCommit_InputElement().modelObject().execute();

///////////////////////////////////////////////////////

I don't have exceptions and the log file:

java.lang.NullPointerException

at com.aegis.testcommit.TestCommitController.createSalesOrder(TestCommitController.java:155)

at com.aegis.testcommit.wdp.InternalTestCommitController.createSalesOrder(InternalTestCommitController.java:9000)

at com.aegis.testcommit.First.onActionCreate(First.java:115)

at com.aegis.testcommit.wdp.InternalFirst.wdInvokeEventHandler(InternalFirst.java:279)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)

at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:94)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:80)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvents(WebDynproMainTask.java:284)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:473)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:48)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:201)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:114)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:80)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:43)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.RunServlet.runSerlvet(RunServlet.java:171)

at com.sap.engine.services.servlets_jsp.server.ServletsAndJspImpl.startServlet(ServletsAndJspImpl.java:387)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:375)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:355)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:721)

at com.sap.engine.services.httpserver.server.RequestAnalizer.checkFilename(RequestAnalizer.java:418)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:223)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:79)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:152)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)

at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:60)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:55)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:115)

Any help?

Thanks in advance.

AG