Simple and Complex Data Structures
Advanced knowledge of BAPIs is required for understanding the concepts in this topic. A full discussion of BAPIs is beyond the scope of this help file. Consult the SAP documentation for further details.
The SAP BAPIs may require one or two parameters or a single row table structure. You must determine what the input requirements are.
To return data from a BAPI you must pass data parameters into the BAPI structure. The BAPI, even in it's simplest form, is still a complex data structure. When the data is returned via the service broker layer and into the SmartObject, the ADO.NET provider can be leveraged to flatten the data structure into a structure useable by the SmartObject. Another option is to set the structure of properties of a field in the BAPI to an XML type, which will create a SmartObject for the field with serialization methods. These methods can Serialize or Deserialize the data structures when executed.