SAP ABAP Class CL_EAMS_VB_ESRI_LAYER_QUERY (Retrieve Data from ESRI MapService WS with JSON Form)
Hierarchy
☛
EA-APPL (Software Component) SAP Enterprise Extension PLM, SCM, Financials
⤷
PM (Application Component) Plant Maintenance
⤷
EAMS_BO_MISC (Package) Miscellaneous for Business Object
⤷
⤷
Properties
| Class | CL_EAMS_VB_ESRI_LAYER_QUERY | |
| Short Description | Retrieve Data from ESRI MapService WS with JSON Form | |
| Super Class | ||
| Instantiability of a Class | 2 | Public |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | EAMS_BO_MISC | Miscellaneous for Business Object |
| Created | 20091211 | SAP |
| Last change | 20110908 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_EAMS_VB_ESRI_LAYER_QUERY has no interface implemented.
Friends
Class CL_EAMS_VB_ESRI_LAYER_QUERY has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Constant | Private | Type reference (TYPE) | TABLE_NAME | 'EAMS_CVBEXTDS' | Table Name | 20091211 | ||
| 2 | Constant | Private | Type reference (TYPE) | CHAR3 | '200' | 3-Byte Field | 20091211 | ||
| 3 | Constant | Private | Type reference (TYPE) | STRING | 'json' | Response Format of ESRI Web Service | 20091211 | ||
| 4 | Constant | Private | Type reference (TYPE) | STRING | '9.3' | Response Format Version | 20091211 | ||
| 5 | Static Attribute | Private | Object reference (TYPE REF TO) | CL_EAMS_VB_ESRI_LAYER_QUERY | Retrieve Data from ESRI MapService WS with JSON Form | 20091211 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | TY_T_EXTDS | Table for external data source | 20091211 | |||
| 7 | Instance attribute | Private | Type reference (TYPE) | TY_T_EXT_OBJID | Table for external objects | 20091211 | |||
| 8 | Instance attribute | Private | Type reference (TYPE) | STRING | '4326' | Default WKID: WGS84 | 20091211 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Private | Method | Check for Presence of Error Message in JSON | 20091211 | |
| 2 | Static method | Public | Constructor | 20091211 | ||
| 3 | Instance method | Public | Constructor | 20091211 | ||
| 4 | Instance method | Private | Method | Convert retrieved external data from JSON into tables | 20091211 | |
| 5 | Instance method | Private | Method | Convert internal Tech. Obj. ID to external for logging | 20100202 | |
| 6 | Instance method | Private | Method | Convert Binary Stream into String Format | 20091211 | |
| 7 | Instance method | Private | Method | Create reference for GeoDB as external data source | 20091211 | |
| 8 | Instance method | Private | Method | Create HTTP Client for Sublayer Based on GeoDB Base URL | 20091211 | |
| 9 | Instance method | Private | Method | Fetch data from GeoDB into internal tables | 20091211 | |
| 10 | Instance method | Private | Method | Fill Query Fields for GET Parameters in Query URL | 20091211 | |
| 11 | Instance method | Private | Method | Assign external object id to its data source | 20091211 | |
| 12 | Instance method | Public | Method | Conduct data retrieval from GeoDB as external data source | 20091211 | |
| 13 | Instance method | Private | Method | Retrieve data from GeoDB with layer query in JSON | 20091211 | |
| 14 | Static method | Public | Method | Return with instantiated class object reference | 20091211 |
Events
Class CL_EAMS_VB_ESRI_LAYER_QUERY has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | TTY_MDG_S_IDENTIFIER_BS | Public | See coding | 20100129 | tty_mdg_s_identifier_bs TYPE STANDARD TABLE OF ty_mdg_s_identifier_bs
|
||
| 2 | TY_MDG_S_IDENTIFIER_BS | Public | See coding | compatibile with MDG_S_IDENTIFIER_BS | 20100129 | BEGIN OF ty_mdg_s_identifier_bs,
ident_defining_scheme_code(20) TYPE c,
business_system_id(60) TYPE c,
id_value(120) TYPE c,
END OF ty_mdg_s_identifier_bs
|
|
| 3 | TY_S_DETAILS | Private | See coding | 20091211 | BEGIN OF ty_s_details,
line TYPE i,
text TYPE string,
END OF ty_s_details
|
||
| 4 | TY_S_EXTDS | Private | See coding | 20091211 | BEGIN OF ty_s_extds,
ext_datasource TYPE eams_cvbextds,
http_client TYPE REF TO if_http_client,
END OF ty_s_extds
|
||
| 5 | TY_S_EXT_OBJID | Private | See coding | 20091211 | BEGIN OF ty_s_ext_objid,
ext_objid_value TYPE eams_vb_ext_obj_attr_value,
ext_datasource TYPE eams_cvbextds,
http_client TYPE REF TO if_http_client,
where_condition TYPE ty_t_where_condition,
END OF ty_s_ext_objid
|
||
| 6 | TY_S_REST_ERROR | Private | See coding | 20091211 | BEGIN OF ty_s_rest_error,
code TYPE string,
message TYPE string,
details TYPE ty_t_details,
END OF ty_s_rest_error
|
||
| 7 | TY_T_DETAILS | Private | See coding | 20091211 | ty_t_details TYPE STANDARD TABLE OF ty_s_details WITH KEY line
|
||
| 8 | TY_T_EXTDS | Private | See coding | 20091211 | ty_t_extds TYPE STANDARD TABLE OF ty_s_extds WITH NON-UNIQUE KEY ext_datasource
|
||
| 9 | TY_T_EXT_OBJID | Private | See coding | 20091211 | ty_t_ext_objid TYPE STANDARD TABLE OF ty_s_ext_objid
|
||
| 10 | TY_T_WHERE_CONDITION | Private | See coding | 20091211 | ty_t_where_condition TYPE STANDARD TABLE OF char255 WITH NON-UNIQUE DEFAULT KEY
|
Method Signatures
Method CHECK_ERROR_IN_JSON Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | EAMS_T_BO_VB_GEOLOC_MSG_DATA | EAMS VB: GeoLoc messages data | 20091211 | |||
| 2 | ES_REST_ERROR | Call by reference | Type reference (TYPE) | TY_S_REST_ERROR | 20091211 | ||||
| 3 | IV_ID | Call by reference | Type reference (TYPE) | CHAR30 | 30 Characters | 20100107 | |||
| 4 | IV_JSON_STRING | Call by reference | Type reference (TYPE) | STRING | 20091211 | ||||
| 5 | IV_TRACE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20091211 | ||||
| 6 | IV_TYPE | Call by reference | Type reference (TYPE) | EAMS_TEC_OBJ_TYPE_VALUE | Technical Object Type | 20100107 |
Method CHECK_ERROR_IN_JSON on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_EAMS_VB_ESRI_LAYER_QUERY has no parameter.
Method CLASS_CONSTRUCTOR on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_WKID | Call by reference | Type reference (TYPE) | STRING | WKID for spatial reference of retrieved geolocation data | 20091211 |
Method CONSTRUCTOR on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method CONVERT_DATA_FROM_JSON Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | EAMS_T_BO_VB_GEOLOC_MSG_DATA | Message | 20091211 | |||
| 2 | ET_EXTOBJ_ATTRIBUTES | Call by reference | Type reference (TYPE) | EAMS_VB_T_EXT_OBJ_ATTRIBUTES | Table type for external object attributes | 20091211 | |||
| 3 | ET_GEOLOC | Call by reference | Type reference (TYPE) | EAMS_VB_T_EXT_OBJ_GEOLOC | Structure for external object's geocode | 20091211 | |||
| 4 | IV_DESTINATION | Call by reference | Type reference (TYPE) | RFCDEST | Logical Destination (Specified in Function Call) | 20091211 | |||
| 5 | IV_EXT_LAYER_ID | Call by reference | Type reference (TYPE) | EAMS_VB_EXT_LAYER_ID | External data source layer identifier | 20091211 | |||
| 6 | IV_EXT_OBJID_FIELD | Call by reference | Type reference (TYPE) | EAMS_VB_EXT_OBJ_ATTR_NAME | External object attribute name | 20091211 | |||
| 7 | IV_GEOMETRY_ONLY | Call by reference | Type reference (TYPE) | XFELD | Checkbox | 20091211 | |||
| 8 | IV_ID | Call by reference | Type reference (TYPE) | CHAR30 | 30 Characters | 20100107 | |||
| 9 | IV_JSON | Call by reference | Type reference (TYPE) | STRING | string in JSON format | 20091211 | |||
| 10 | IV_RANK | Call by reference | Type reference (TYPE) | EAMS_VB_EXT_DS_RANK | Ranking for external data sources | 20091211 | |||
| 11 | IV_TRACE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20091211 | ||||
| 12 | IV_TYPE | Call by reference | Type reference (TYPE) | EAMS_TEC_OBJ_TYPE_VALUE | Technical Object Type | 20100107 |
Method CONVERT_DATA_FROM_JSON on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method CONVERT_ID_INT_TO_EXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_ID | Call by reference | Type reference (TYPE) | CHAR30 | ID converted to internal format | 20100202 | |||
| 2 | IV_TYPE | Call by reference | Type reference (TYPE) | EAMS_TEC_OBJ_TYPE_VALUE | Technical Object Type | 20100202 | |||
| 3 | RV_ID | Value transfer | Type reference (TYPE) | CHAR30 | User-readable (external) ID | 20100202 |
Method CONVERT_ID_INT_TO_EXT on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method CONVERT_XSTRING_TO_STRING Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_XSTRING | Call by reference | Type reference (TYPE) | XSTRING | 20091211 | ||||
| 2 | RV_STRING | Value transfer | Type reference (TYPE) | STRING | 20091211 |
Method CONVERT_XSTRING_TO_STRING on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method CREATE_DATASOURCE_REFERENCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IT_EXTDS | Call by reference | Type reference (TYPE) | EAMS_VB_T_EXTDS | Data sources to retrieve external attributes and geolocation | 20091211 |
Method CREATE_DATASOURCE_REFERENCE on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method CREATE_HTTP_CLIENT_BY_RFCDEST Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CO_HTTP_CLIENT | Call by reference | Object reference (TYPE REF TO) | IF_HTTP_CLIENT | HTTP Client Abstraction | 20091211 | |||
| 2 | IV_GEODB_BASE_DEST | Call by reference | Type reference (TYPE) | RFCDEST | Logical Destination (Specified in Function Call) | 20091211 | |||
| 3 | IV_SUBLAYERID | Call by reference | Type reference (TYPE) | EAMS_VB_EXT_LAYER_ID | External data source layer identifier | 20091211 |
Method CREATE_HTTP_CLIENT_BY_RFCDEST on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method FETCH_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | EAMS_T_BO_VB_GEOLOC_MSG_DATA | Message | 20091211 | |||
| 2 | ET_EXTOBJ_ATTRIBUTES | Call by reference | Type reference (TYPE) | EAMS_VB_T_EXT_OBJ_ATTRIBUTES | Table type for external object attributes | 20091211 | |||
| 3 | ET_GEOLOC | Call by reference | Type reference (TYPE) | EAMS_VB_T_EXT_OBJ_GEOLOC | Table for external objects' geocode | 20091211 | |||
| 4 | IV_GEOMETRY_ONLY | Call by reference | Type reference (TYPE) | XFELD | Checkbox | 20091211 | |||
| 5 | IV_ID | Call by reference | Type reference (TYPE) | CHAR30 | 30 Characters | 20100107 | |||
| 6 | IV_TRACE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20091211 | ||||
| 7 | IV_TYPE | Call by reference | Type reference (TYPE) | EAMS_TEC_OBJ_TYPE_VALUE | Technical Object Type | 20100107 |
Method FETCH_DATA on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method MAP_FIELDS_QUERY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_EXT_OBJID_FIELD | Call by reference | Type reference (TYPE) | EAMS_VB_EXT_OBJ_ATTR_NAME | External object attribute name | 20091211 | |||
| 2 | IV_GEOMETRY_ONLY | Call by reference | Type reference (TYPE) | XFELD | Checkbox | 20091211 | |||
| 3 | IV_WHERE | Call by reference | Type reference (TYPE) | STRING | 20091211 | ||||
| 4 | RT_FIELDS | Value transfer | Type reference (TYPE) | TIHTTPNVP | HTTP Framework (iHTTP) Table Name/Value Pairs | 20091211 |
Method MAP_FIELDS_QUERY on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method MAP_OBJECTID_TO_DATASOURCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IS_TECHOBJ | Call by reference | Type reference (TYPE) | ITOB | Generated Table for View | 20091211 | |||
| 2 | IT_EXT_IDS | Call by reference | Type reference (TYPE) | TTY_MDG_S_IDENTIFIER_BS | 20091211 | ||||
| 3 | IV_TYPE | Call by reference | Type reference (TYPE) | EAMS_TEC_OBJ_TYPE_VALUE | 20091211 |
Method MAP_OBJECTID_TO_DATASOURCE on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method RETRIEVE_DATA Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | EAMS_T_BO_VB_GEOLOC_MSG_DATA | Message | 20091211 | |||
| 2 | ET_EXTOBJ_ATTRIBUTES | Call by reference | Type reference (TYPE) | EAMS_VB_T_EXT_OBJ_ATTRIBUTES | Table type for external object attributes | 20091211 | |||
| 3 | ET_GEOLOC | Call by reference | Type reference (TYPE) | EAMS_VB_T_EXT_OBJ_GEOLOC | Table for external objects' geocode | 20091211 | |||
| 4 | IS_TECHOBJ | Call by reference | Type reference (TYPE) | ITOB | Generated Table for View | 20091211 | |||
| 5 | IT_EXTDS | Call by reference | Type reference (TYPE) | EAMS_VB_T_EXTDS | Data sources to retrieve external attributes and geolocation | 20091211 | |||
| 6 | IT_EXT_IDS | Call by reference | Type reference (TYPE) | TTY_MDG_S_IDENTIFIER_BS | IDs of several object identifier sets | 20091211 | |||
| 7 | IV_GEOMETRY_ONLY | Call by reference | Type reference (TYPE) | XFELD | Checkbox | 20091211 | |||
| 8 | IV_ID | Call by reference | Type reference (TYPE) | CHAR30 | 30 Characters | 20091211 | |||
| 9 | IV_TRACE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20091211 | ||||
| 10 | IV_TYPE | Call by reference | Type reference (TYPE) | EAMS_TEC_OBJ_TYPE_VALUE | Technical Object Type | 20091211 |
Method RETRIEVE_DATA on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method RETRIEVE_DATA_JSON Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | CT_MESSAGES | Call by reference | Type reference (TYPE) | EAMS_T_BO_VB_GEOLOC_MSG_DATA | Message | 20091211 | |||
| 2 | EV_JSON_BIN | Call by reference | Type reference (TYPE) | XSTRING | 20091211 | ||||
| 3 | IO_HTTP_CLIENT | Call by reference | Object reference (TYPE REF TO) | IF_HTTP_CLIENT | HTTP Client Abstraction | 20091211 | |||
| 4 | IT_FIELDS | Call by reference | Type reference (TYPE) | TIHTTPNVP | HTTP Framework (iHTTP) Table Name/Value Pairs | 20091211 | |||
| 5 | IV_ID | Call by reference | Type reference (TYPE) | CHAR30 | 30 Characters | 20100107 | |||
| 6 | IV_TRACE | Call by reference | Type reference (TYPE) | ABAP_BOOL | 20091211 | ||||
| 7 | IV_TYPE | Call by reference | Type reference (TYPE) | EAMS_TEC_OBJ_TYPE_VALUE | Technical Object Type | 20100107 |
Method RETRIEVE_DATA_JSON on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
Method S_GET_INSTANCE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_INSTANCE | Value transfer | Object reference (TYPE REF TO) | CL_EAMS_VB_ESRI_LAYER_QUERY | Retrieve data from ESRI MapService WS with JSON form | 20091211 |
Method S_GET_INSTANCE on class CL_EAMS_VB_ESRI_LAYER_QUERY has no exception.
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 605 |