Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.