Start of Content Area

Background documentation Type-Specific Getter Methods  Locate the document in its SAP Library structure

 

The class JCO.Structure contains type-specific getter methods such as getString() for the data type string. Applications normally use the appropriate getter method, although they can also a different getter method: If this is the case, SAP JCo tries to convert the content of the field to a relevant data type. If this conversion is unsuccessful (for example, if a string field contains the value “John Smith”, and you call getDate() ), an exception is thrown.

The table below lists all the type-specific getter methods. The method getValue() can be used to call the content of a field generically. This method returns a Java object.

 

 Type-Specific Getter Methods

This graphic is explained in the accompanying text

 

End of Content Area