‎2008 Jul 09 3:24 PM
I execute the BAPI and get a material docno and a material doc year. No errors. I do an MB51 and it says the doc does not exist?
What should I check?
Thank-You.
‎2008 Jul 09 3:25 PM
‎2008 Jul 09 3:25 PM
‎2008 Jul 09 3:28 PM
So I assume from your response that a test run of the BAPI will not do a commit work? It must put it in code and "COMMIT WORK"?
Thank-You.
‎2008 Jul 09 3:29 PM
Yep. Although you can get the BAPI COMMIT WORK to run in test mode but I cannot remember how to using SE37.
‎2008 Jul 09 3:30 PM
Yes Tom.
YOu are right.
Here is an excerpt from the BAPI FM's documentation in SE37:
"Transaction control is not implemented. The calling program therefore
has to execute the Commit Work itself after this method has been
successfully called (in other words, if no errors were reported in the
Return parameter)."
‎2008 Jul 09 3:33 PM
I think the path changed innext versions and this is a rough translation. but...
In se37 go to menu function module->Verify->Sequential test.
You put the bapi you want to use and bapi_commit_work. After the first bapi when you try to return you'll get to the second function to commit
‎2008 Jul 09 3:27 PM
Hi Tom,
Do you call the BAPI : 'BAPI_TRANSACTION_COMMIT' after your call to BAPI_GOODSMVT_CREATE?
Kind Regards