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 ABAP 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 GC_EXTATTR_DATASRC Constant Private Type reference (TYPE) TABLE_NAME 'EAMS_CVBEXTDS' Table Name 20091211
2 GC_HTTP_OK Constant Private Type reference (TYPE) CHAR3 '200' 3-Byte Field 20091211
3 GC_RESPONSE_FORMAT Constant Private Type reference (TYPE) STRING 'json' Response Format of ESRI Web Service 20091211
4 GC_RESPONSE_VERSION Constant Private Type reference (TYPE) STRING '9.3' Response Format Version 20091211
5 GO_INSTANCE 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 MT_DATASOURCE Instance attribute Private Type reference (TYPE) TY_T_EXTDS Table for external data source 20091211
7 MT_EXT_OBJID Instance attribute Private Type reference (TYPE) TY_T_EXT_OBJID Table for external objects 20091211
8 MV_WKID Instance attribute Private Type reference (TYPE) STRING '4326' Default WKID: WGS84 20091211
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_ERROR_IN_JSON Instance method Private Method Check for Presence of Error Message in JSON 20091211
2 CLASS_CONSTRUCTOR Static method Public Constructor 20091211
3 CONSTRUCTOR Instance method Public Constructor 20091211
4 CONVERT_DATA_FROM_JSON Instance method Private Method Convert retrieved external data from JSON into tables 20091211
5 CONVERT_ID_INT_TO_EXT Instance method Private Method Convert internal Tech. Obj. ID to external for logging 20100202
6 CONVERT_XSTRING_TO_STRING Instance method Private Method Convert Binary Stream into String Format 20091211
7 CREATE_DATASOURCE_REFERENCE Instance method Private Method Create reference for GeoDB as external data source 20091211
8 CREATE_HTTP_CLIENT_BY_RFCDEST Instance method Private Method Create HTTP Client for Sublayer Based on GeoDB Base URL 20091211
9 FETCH_DATA Instance method Private Method Fetch data from GeoDB into internal tables 20091211
10 MAP_FIELDS_QUERY Instance method Private Method Fill Query Fields for GET Parameters in Query URL 20091211
11 MAP_OBJECTID_TO_DATASOURCE Instance method Private Method Assign external object id to its data source 20091211
12 RETRIEVE_DATA Instance method Public Method Conduct data retrieval from GeoDB as external data source 20091211
13 RETRIEVE_DATA_JSON Instance method Private Method Retrieve data from GeoDB with layer query in JSON 20091211
14 S_GET_INSTANCE 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 Changing CT_MESSAGES Call by reference Type reference (TYPE) EAMS_T_BO_VB_GEOLOC_MSG_DATA EAMS VB: GeoLoc messages data 20091211
2 Exporting ES_REST_ERROR Call by reference Type reference (TYPE) TY_S_REST_ERROR 20091211
3 Importing IV_ID Call by reference Type reference (TYPE) CHAR30 30 Characters 20100107
4 Importing IV_JSON_STRING Call by reference Type reference (TYPE) STRING 20091211
5 Importing IV_TRACE Call by reference Type reference (TYPE) ABAP_BOOL 20091211
6 Importing 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 Importing 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 Changing CT_MESSAGES Call by reference Type reference (TYPE) EAMS_T_BO_VB_GEOLOC_MSG_DATA Message 20091211
2 Exporting ET_EXTOBJ_ATTRIBUTES Call by reference Type reference (TYPE) EAMS_VB_T_EXT_OBJ_ATTRIBUTES Table type for external object attributes 20091211
3 Exporting ET_GEOLOC Call by reference Type reference (TYPE) EAMS_VB_T_EXT_OBJ_GEOLOC Structure for external object's geocode 20091211
4 Importing IV_DESTINATION Call by reference Type reference (TYPE) RFCDEST Logical Destination (Specified in Function Call) 20091211
5 Importing IV_EXT_LAYER_ID Call by reference Type reference (TYPE) EAMS_VB_EXT_LAYER_ID External data source layer identifier 20091211
6 Importing IV_EXT_OBJID_FIELD Call by reference Type reference (TYPE) EAMS_VB_EXT_OBJ_ATTR_NAME External object attribute name 20091211
7 Importing IV_GEOMETRY_ONLY Call by reference Type reference (TYPE) XFELD Checkbox 20091211
8 Importing IV_ID Call by reference Type reference (TYPE) CHAR30 30 Characters 20100107
9 Importing IV_JSON Call by reference Type reference (TYPE) STRING string in JSON format 20091211
10 Importing IV_RANK Call by reference Type reference (TYPE) EAMS_VB_EXT_DS_RANK Ranking for external data sources 20091211
11 Importing IV_TRACE Call by reference Type reference (TYPE) ABAP_BOOL 20091211
12 Importing 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 Importing IV_ID Call by reference Type reference (TYPE) CHAR30 ID converted to internal format 20100202
2 Importing IV_TYPE Call by reference Type reference (TYPE) EAMS_TEC_OBJ_TYPE_VALUE Technical Object Type 20100202
3 Returning 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 Importing IV_XSTRING Call by reference Type reference (TYPE) XSTRING 20091211
2 Returning 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 Importing 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 Changing CO_HTTP_CLIENT Call by reference Object reference (TYPE REF TO) IF_HTTP_CLIENT HTTP Client Abstraction 20091211
2 Importing IV_GEODB_BASE_DEST Call by reference Type reference (TYPE) RFCDEST Logical Destination (Specified in Function Call) 20091211
3 Importing 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 Changing CT_MESSAGES Call by reference Type reference (TYPE) EAMS_T_BO_VB_GEOLOC_MSG_DATA Message 20091211
2 Exporting ET_EXTOBJ_ATTRIBUTES Call by reference Type reference (TYPE) EAMS_VB_T_EXT_OBJ_ATTRIBUTES Table type for external object attributes 20091211
3 Exporting ET_GEOLOC Call by reference Type reference (TYPE) EAMS_VB_T_EXT_OBJ_GEOLOC Table for external objects' geocode 20091211
4 Importing IV_GEOMETRY_ONLY Call by reference Type reference (TYPE) XFELD Checkbox 20091211
5 Importing IV_ID Call by reference Type reference (TYPE) CHAR30 30 Characters 20100107
6 Importing IV_TRACE Call by reference Type reference (TYPE) ABAP_BOOL 20091211
7 Importing 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 Importing IV_EXT_OBJID_FIELD Call by reference Type reference (TYPE) EAMS_VB_EXT_OBJ_ATTR_NAME External object attribute name 20091211
2 Importing IV_GEOMETRY_ONLY Call by reference Type reference (TYPE) XFELD Checkbox 20091211
3 Importing IV_WHERE Call by reference Type reference (TYPE) STRING 20091211
4 Returning 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 Importing IS_TECHOBJ Call by reference Type reference (TYPE) ITOB Generated Table for View 20091211
2 Importing IT_EXT_IDS Call by reference Type reference (TYPE) TTY_MDG_S_IDENTIFIER_BS 20091211
3 Importing 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 Changing CT_MESSAGES Call by reference Type reference (TYPE) EAMS_T_BO_VB_GEOLOC_MSG_DATA Message 20091211
2 Exporting ET_EXTOBJ_ATTRIBUTES Call by reference Type reference (TYPE) EAMS_VB_T_EXT_OBJ_ATTRIBUTES Table type for external object attributes 20091211
3 Exporting ET_GEOLOC Call by reference Type reference (TYPE) EAMS_VB_T_EXT_OBJ_GEOLOC Table for external objects' geocode 20091211
4 Importing IS_TECHOBJ Call by reference Type reference (TYPE) ITOB Generated Table for View 20091211
5 Importing IT_EXTDS Call by reference Type reference (TYPE) EAMS_VB_T_EXTDS Data sources to retrieve external attributes and geolocation 20091211
6 Importing IT_EXT_IDS Call by reference Type reference (TYPE) TTY_MDG_S_IDENTIFIER_BS IDs of several object identifier sets 20091211
7 Importing IV_GEOMETRY_ONLY Call by reference Type reference (TYPE) XFELD Checkbox 20091211
8 Importing IV_ID Call by reference Type reference (TYPE) CHAR30 30 Characters 20091211
9 Importing IV_TRACE Call by reference Type reference (TYPE) ABAP_BOOL 20091211
10 Importing 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 Changing CT_MESSAGES Call by reference Type reference (TYPE) EAMS_T_BO_VB_GEOLOC_MSG_DATA Message 20091211
2 Exporting EV_JSON_BIN Call by reference Type reference (TYPE) XSTRING 20091211
3 Importing IO_HTTP_CLIENT Call by reference Object reference (TYPE REF TO) IF_HTTP_CLIENT HTTP Client Abstraction 20091211
4 Importing IT_FIELDS Call by reference Type reference (TYPE) TIHTTPNVP HTTP Framework (iHTTP) Table Name/Value Pairs 20091211
5 Importing IV_ID Call by reference Type reference (TYPE) CHAR30 30 Characters 20100107
6 Importing IV_TRACE Call by reference Type reference (TYPE) ABAP_BOOL 20091211
7 Importing 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 Returning 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