!--a11y-->
Reusing BAPI Data 
If you want to reuse existing business functions in the Web Dynpro application, you must create an Adaptive RFC model using the Web Dynpro model tools. The tools provide a wizard for the automatic generation of RFC adapter classes from Business APIs (BAPIs) and function modules delivered by SAP or developed by yourself. The generated classes are conventional Java classes; the generation itself is triggered and executed by the integrated tool SAP Enterprise Connector.
For the controller context, you must define model nodes and model attributes. The mapping – that is, data transfer by copy – then takes place between the proxy classes and the nodes or attributes. A Web Dynpro tool is available that provides graphical support when defining the data that is to be mapped.
The following table shows the naming conventions for the model files and their properties: The example is based on the SAP function module BAPI_FLIGHT_GETLIST, which is available in your SAP System.
SAP Back End |
Web Dynpro Model |
Context |
Reference type/BAPI structure BAPISFLDAT |
Model adapter class (Java) Bapisfldat.java + Web Dynpro metamodel data for this model class (XML) Bapisfldat.modelclass |
Model node <myModelNodeName> (references model class Bapisfldat) |
Components AIRLINE AIRLINEID ... |
Properties AIRLINE AIRLINEID ... |
Attributes AIRLINE AIRLINEID ... |
