You create BAPI and RFC OTDs with the SAP BAPI wizard in the Netbeans IDE.
In the Explorer tab of the Netbeans IDE, right click the Project, click New, and click Object Type Definition. The New Object Type Definition Wizard dialog box appears.
Click SAP BAPI and click Next. The Select SAP Object page appears.
To convert a BAPI object to OTD, select the BAPI option.
To convert an RFC object to OTD, select the RFC option.
Click Next. The System Parameters page appears.
Enter the information for the SAP system for the SAP Adapter to connect to:
For this option |
Enter |
---|---|
System ID |
System ID of the SAP system. |
Application server |
Host name of the SAP system. |
System number |
System number of the SAP system. |
SAP Routing String |
Router string of hostnames/IP addresses of all SAP routers between the Application Server and the SAP gateway host (optional). |
Language |
Language used for SAP access. |
RFC Trace |
NO to disable RFC tracing (default); YES to enable RFC tracing, which creates the trace files in: \netbeans\bin |
Click Next. The Login Parameters page appears.
Enter the information to log into the SAP system:
For this option |
Enter |
---|---|
Client Number |
Client number of the SAP system. |
User name |
User name. |
Password |
Login password. |
Click Next. The Select BAPI/RFC page appears, showing the application components
In the BAPI tree, you can navigate to a particular SAP application component and select a BAPI object.
Expand the SAP application component folder, click a BAPI, and click Finish. The OTD Editor window appears, displaying the OTD.
For information about the BAPI and RFC OTDs, refer to the section below.
You can now built the Collaborations or Business Processes as described in Building and Deploying the prjBAPIOutbound Sample Project and Building and Deploying the prjIDocInbound Sample Project. The section below describes the BAPI methods (operations) that are available for you to use in the Java Collaborations or Business Process.