The properties of the attributes of a top-level business object differ depending on whether the attribute represents a simple value, or a child or an array of child business objects.
SAPODA generates the attribute properties as described in each
table.
Table 10. Simple attributes properties: Top-level business object
Property name | Description |
---|---|
Name | Derived from the description or name of the BAPI parameter. |
Type | Specifies the type of data. SAPODA sets the value to String. |
MaxLength | Specifies the field length of the BAPI parameter. |
IsKey |
Specifies whether the attribute is the key. The first simple
attribute of a business object defaults to the key attribute. For a
single BAPI object, SAPODA inserts the Dummy_key attribute as the
first attribute, marks it as the key attribute, and sets appropriate
values. For BAPI transactions and ResultSets, SAPODA uses the first
attribute as the key.
|
IsForeignKey | SAPODA sets the value to false. |
IsRequired | Specifies whether an attribute must contain a value. SAPODA sets the value to false. |
AppSpecificInfo | Contains the name of the BAPI parameter that corresponds to the
associated attribute. The format is:
IABAPFieldName:EABAPFieldName For more information on the application-specific information, see "Business object application-specific information". |
DefaultValue | Specifies the value to assign to this attribute if there is no run-time value. SAPODA does not set a value for this property. |
Table 11 lists and describes the attributes that represent a child or
array of child business objects. SAPODA generates the properties
described below.
Table 11. Properties of an attribute that represents a child or children
Property name | Description |
---|---|
Name | The value is the name of the structure or table parameter. The format is: BOprefix_BAPIParameterName. Any special characters that exist in the business object name will be replaced with an underscore character _. |
Type | The value is the type of child business object; in other words, the type is BOprefix_BAPIParameterName. |
ContainedObjectVersion | SAPODA sets the value to 3.0.0. |
Relationship | SAPODA sets the value to containment. |
IsKey |
For a BAPI transaction or ResultSet, SAPODA sets the value of the first
attribute to true, and the value of all other attributes to
false.
|
IsForeignKey | SAPODA sets the value to false. |
IsRequired | Specifies whether an attribute must contain a value. SAPODA sets the value to false. |
AppSpecificInfo | Contains the name of the BAPI parameter that corresponds to the
associated attribute. The format is:
IBAPIParameterName:EBAPIParameterName For more information on the application-specific information, see "Attribute-level ASI". |
Cardinality | BAPI structure parameters have single cardinality (1) and BAPI table parameters have multiple cardinality (n). |
Every field in SAP has an initial value. When the connector receives a service call request, the business object handler populates most of the BAPI interface parameters with the values listed in Table 12. The one exception is the character data type. The business object handler converts a CxIgnore in the business object attribute to a space in the SAP field. If you want any other value to be converted to CxIgnore, the component that creates the business object must perform the conversion. For example, when the WebSphere Inter Change Server is the integration broker, modify the map to handle this conversion.
Table 12 provides initial values set by the business object
handler.
Table 12. Initial field values in SAP
Data type | Description | Initial value set by business object handler |
---|---|---|
C | Character | space |
N | Numeric string | 000... |
D | Date (YYYYMMDD) | 00000000 |
T | Time (HHMMSS) | 000000 |
X | Byte (hexadecimal) | X00 |
I | Integer | 0 |
P | Packed number | 0 |
F | Floating point number | 0.0 |