Skip to Content
avatar image
Former Member

BAPI_TRANSACTION_COMMIT

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Mar 04, 2004 at 06:14 PM

    Hi Alexandre,

    Please let me know the version you are using. Is it Sneak Preview II?

    Best regards,

    Karin

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 05, 2004 at 08:23 AM

    Hi Alexandre,

    please check if you have bound a Commit_InputElement to the corresponding context node. This is usually done in the wdDoInit() method of the controller. There should be a statement like: <i>wdContext.nodeCommit().bind(new Commit())</i> in wdDoInit() of the TestCommitController.

    By the way, in the BAPI_TRANSACTION_COMMIT import parameters there is an optional WAIT parameter, which should be set to 'X', since otherwise you won't get any errors results from the R/3 backend. The commit will return immediate and always silently otherwise.

    Hope that helps.

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded