ERP Integrator V2 - Online Help
ERP Integrator V2
Questions / Feedback?

QueryFieldType Property

The ABAP type of query result property.

Syntax

 sapquery.getQueryFieldType(index, [callback])

Possible Values

  0 (qtCharacters), 
  1 (qtDate), 
  2 (qtPackedDecimal), 
  3 (qtTime), 
  4 (qtBinary), 
  5 (qtTable), 
  6 (qtNumber), 
  7 (qtFloat), 
  8 (qtInteger), 
  9 (qtShort), 
  10 (qtByte), 
  14 (qtNull), 
  17 (qtStructure), 
  23 (qtDecF16), 
  24 (qtDecF34), 
  28 (qtXMLData), 
  29 (qtString), 
  30 (qtXString)

Default Value

0


Callback

The 'callback' parameter specifies a function which will be called when the operation completes (or an error is encountered). If the 'callback' parameter is not specified, then the method will block and will not return until the operation completes (or an error is encountered).

The callback for the getQueryFieldType([callback]) method is defined as:

function(err, data){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'data' is the value returned by the method.

The callback for the setQueryFieldType([callback]) method is defined as:

function(err){ }

'err' is the error that occurred. If there was no error, then 'err' is 'null'.

'err' has 2 properties which hold detailed information:

err.code
err.message

Remarks

The ABAP type of query result property. The valid values are as follows:

qtCharacters (0) Character data.
qtDate (1) A date in the format YYYYMMDD.
qtPackedDecimal (2) Packed decimals are unique to the SAP system, and are treated as binary data by the class.
qtTime (3) A time in the format HHMMSS.
qtBinary (4) Raw binary data.
qtTable (5) Handle to a table in memory.
qtNumber (6) Numeric data formatted as a String.
qtDouble (7) An 8-byte floating-point number (double).
qtInteger (8) A 4-byte integer (int).
qtShort (9) A 2-byte integer (short).
qtByte (10) A 1-byte integer (byte).
qtNull (14) An unsupported data type
qtStructure (17) ABAP structure
qtDecF16 (23) 754r decimal floating point, 8 bytes
qtDecF34 (24) 754r decimal floating point, 16 bytes
qtXMLData (28) Null terminated string containing an ABAP structure with XML
qtString (29) Null terminated string
qtXString (30) Null terminated string with length property in bytes

Note that the QueryFieldValue property will always contain a string representation of integer or floating point data. The class will convert between this string representation and the actual integer and float data expected by the SAP system.

The size of the array is controlled by the QueryFieldCount property.

This property is read-only and not available at design time.

Data Type

Integer

 
 
Copyright (c) 2017 /n software inc. - All rights reserved.
Build 2.0.6240.0