I am using JCO to interact with SAP. In that I need to create one Sevice Contract from Java application by calling...
a BAPI. But the SAP system doesn't have the related BAPI to create the contract. Is it necessary to create a BAPI? If so, how should I go about it? Any suggestions are welcome.
Using JCo, you are not limited solely to calling R/3 BAPIs. The power of JCo allows you to call ANY RFC-enabled ABAP application within SAP.
You can import your ABAP application into SAP's Function Builder, describe the required set of input/output parameters, and call your new RFC using JCo. However, a major caveat here is that SAP does not allow you to directly call existing R/3 function modules even from within an ABAP application. The purpose of the BAPI interface is to provide prescribed methods for calling SAP function modules from outside SAP. Calling these modules directly, even if a BAPI doesn't exist, is done so at your own risk.
Dig Deeper on SAP Java and J2EE
Related Q&A from Austin Sincock
How to provide an SAP R/3 4.5B application server with a Web service interfacecontinue reading
A reader wants to know how to consume a Web service from an SAP 4.6c R/3 application server.continue reading
Are you a Java/J2EE developer interested in SAP? This expert tip lists the most relevant SAP modules and technologies for you.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.