Q
Problem solve Get help with specific problems with your technologies, process and projects.

Getting BAPIs to commit work

How to get BAPIs to commit work with a wrapper function or service copying

I've done this: Retrieving WSDL (http:///sap/bc/soap/wsdl services=RFC_SYSTEM_INFO) to get the WSDL for the RFC RFC_SYSTEM_INFO. Older WAS: (http:///sap/bc/soap/wsdl11?services=RFC_SYSTEM_INFO to get the WSDL for the RFC RFC_SYSTEM_INFO). Making the Call: When you manage to build a proper SOAP document from the description, you can make the call: http:///sap/bc/soap/rfc?services=RFC_SYSTEM_INFO to invoke the service ]. But I have had trouble with BAPIs which do not commit work. I know there is a separate BAPI for commit work, but since the Web service call is stateless, how do I call a commit work subsequent to calling the functional BAPI? Do I need to 'wrap' the BAPI to enable one call to do two things?
Since release 4.0, BAPIs are designed not to do any COMMIT WORK. This is done on purpose to allow for "workflow chains", or sequences of BAPI calls. Normally you can make calls to BAPI_TRANSACTION_COMMIT thereafter to force the COMMIT WORK. Depending on how your SICF is set up, this will not work when you share a connection between users. In that case, you might need to create a wrapper function: a function module that does the BAPI call plus the commit work in one shot. Another idea is, to simply copy the service behind http:///sap/bc/soap/rfc (i.e the class that executes when the node is called) and add a COMMIT WORK, but that is quite a challenge.
This was last published in August 2008

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close