SAP ABAP Class /IWBEP/CL_MGW_DATA_HELPER (OData Channel data conversion routines)
Hierarchy
SAP_GWFND (Software Component) SAP Gateway Foundation
   OPU-BSE-SDE (Application Component) Gateway SAP Data Enablement
     /IWBEP/MGW_GSR_CORE (Package) OData Channel - Service Interface - Core
Properties
Class /IWBEP/CL_MGW_DATA_HELPER  
Short Description OData Channel data conversion routines    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package /IWBEP/MGW_GSR_CORE   OData Channel - Service Interface - Core 
Created 20120902   SAP 
Last change 20141120    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 /IWBEP/IF_MGW_MED_ODATA_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
2 /IWBEP/IF_MGW_ODATA_FW_PROP Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
3 /IWBEP/IF_MGW_ODATA_RE_ETYPE Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
4 /IWBEP/IF_MGW_REQ_ENTITY_P Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
5 ABAP Type group use (TYPE-POOLS tp)  Type group use (TYPE-POOLS tp)
Interfaces
Class /IWBEP/CL_MGW_DATA_HELPER has no interface implemented.
Friends
Class /IWBEP/CL_MGW_DATA_HELPER has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GCS_PROPERTY_SUBTYPE Constant Public See coding 20140131
2 GCS_PROPERTY_TYPE Constant Public See coding 20140131
3 MT_COMPLEX_INFO Static Attribute Private Type reference (TYPE) TY_T_COMPLEX_INFO 20120902
4 MT_NODE_INFO Static Attribute Private Type reference (TYPE) TY_T_NODE_INFO 20120902
Methods
# Method Level Visibility Method type Description Created on
1 CONVERT_COMPLEX_PROPERTY_OUTB Static method Public Method Convert complex property 20120903
2 CONVERT_ENTITYSET_OUTB Static method Public Method Convert entity set 20120903
3 CONVERT_ENTITY_OUTB Static method Public Method Convert entity 20120903
4 CONVERT_PROPERTY_OUTB Static method Private Method Convert property 20120903
5 FORMAT_UNIT_AMOUNT Static method Public Method Format unit amount 20140131
6 GET_CONVERSION_INFO_COMPLEX Static method Private Method Get conversion info for complex property 20120902
7 GET_CONVERSION_INFO_NODE Static method Private Method Get conversion info for node 20120902
8 GET_CURRENCY_CODES Static method Private Method OBSOLETE - Use GET_CURRENCY_UNIT_CODES 20140129
9 GET_CURRENCY_UNIT_CODES Static method Private Method Get currency and unit codes from entity 20140127
10 INTERNAL_COMPLEX_PROPERTY_OUTB Static method Private Method Convert complex property - Internal 20130418
11 INTERNAL_ENTITYSET_OUTB Static method Private Method Convert entity set - Internal 20130418
12 INTERNAL_ENTITY_OUTB Static method Private Method Convert entity - Internal 20130418
13 MOVE_CORRESPONDING Static method Public Method Move-Corresponding 20120902
14 RAISE_FRAMEWORK_EXCEPTION Static method Private Method Raise a framework exception 20140130
15 RESET_GLOBAL_VALUES Static method Private Method Reset for next conversions 20130418
Events
Class /IWBEP/CL_MGW_DATA_HELPER has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_S_COMPLEX_INFO Private See coding 20120902 BEGIN OF ty_s_complex_info, current_object TYPE REF TO /iwbep/if_mgw_odata_fw_cplxtyp, property_infos TYPE ty_t_property_info, END OF ty_s_complex_info
2 TY_S_CURRENCY_CODE Private See coding 20120902 BEGIN OF ty_s_currency_code, external_name TYPE string, value_sap TYPE waers_curc, value_iso TYPE isocd, END OF ty_s_currency_code
3 TY_S_NODE_INFO Private See coding 20120902 BEGIN OF ty_s_node_info, current_object TYPE REF TO /iwbep/cl_mgw_expand_node, property_infos TYPE ty_t_property_info, END OF ty_s_node_info
4 TY_S_PROPERTY_INFO Private See coding 20120902 BEGIN OF ty_s_property_info, external_name TYPE string, abap_name TYPE fieldname, property_type TYPE char1, "E/C/S: simple/complex/subnode property_subtype TYPE char1, "C/U: currency/unit unit_name TYPE string, simple_type TYPE REF TO /iwbep/if_mgw_odata_fw_prop, complex_type TYPE REF TO /iwbep/if_mgw_odata_fw_cplxtyp, multiplicity TYPE /iwbep/if_mgw_med_odata_types=>ty_e_med_cardinality, child_node TYPE REF TO /iwbep/cl_mgw_expand_node, END OF ty_s_property_info
5 TY_S_UNIT_CODE Private See coding 20140127 BEGIN OF ty_s_unit_code, external_name TYPE string, value_sap TYPE msehi, value_iso TYPE isocd_unit, t006_andec TYPE t006-andec, " Round position t006_decan TYPE t006-decan, " No. of decimal places to display END OF ty_s_unit_code
6 TY_T_COMPLEX_INFO Private See coding 20120902 ty_t_complex_info TYPE STANDARD TABLE OF ty_s_complex_info WITH DEFAULT KEY
7 TY_T_CURRENCY_CODE Private See coding 20120902 ty_t_currency_code TYPE SORTED TABLE OF ty_s_currency_code WITH UNIQUE KEY external_name
8 TY_T_NODE_INFO Private See coding 20120902 ty_t_node_info TYPE STANDARD TABLE OF ty_s_node_info WITH DEFAULT KEY
9 TY_T_PROPERTY_INFO Private See coding 20120902 ty_t_property_info TYPE STANDARD TABLE OF ty_s_property_info WITH DEFAULT KEY
10 TY_T_UNIT_CODE Private See coding 20140127 ty_t_unit_code TYPE SORTED TABLE OF ty_s_unit_code WITH UNIQUE KEY external_name
Method Signatures

Method CONVERT_COMPLEX_PROPERTY_OUTB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_TARGET_STRUCTURE Call by reference Type reference (TYPE) ANY 20120903
2 Importing IO_COMPLEX_TYPE Call by reference Object reference (TYPE REF TO) /IWBEP/IF_MGW_ODATA_FW_CPLXTYP OData Complex Type Read Interface 20120903
3 Importing IS_SOURCE_STRUCTURE Call by reference Type reference (TYPE) ANY 20120903
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_MED_EXCEPTION Meta data exception 20140130
2 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method CONVERT_ENTITYSET_OUTB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_TARGET_TABLE Call by reference Type reference (TYPE) ANY TABLE 20120903
2 Importing IO_EXPAND_NODE Call by reference Object reference (TYPE REF TO) /IWBEP/CL_MGW_EXPAND_NODE 20120903
3 Importing IT_SOURCE_TABLE Call by reference Type reference (TYPE) ANY TABLE 20120903
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_MED_EXCEPTION Meta data exception 20140130
2 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method CONVERT_ENTITY_OUTB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_TARGET_STRUCTURE Call by reference Type reference (TYPE) ANY 20120903
2 Importing IO_EXPAND_NODE Call by reference Object reference (TYPE REF TO) /IWBEP/CL_MGW_EXPAND_NODE OData Channel Expand Node 20120903
3 Importing IS_SOURCE_STRUCTURE Call by reference Type reference (TYPE) ANY 20120903
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_MED_EXCEPTION Meta data exception 20140130
2 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method CONVERT_PROPERTY_OUTB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_TARGET_PROPERTY Call by reference Type reference (TYPE) ANY 20120903
2 Importing IO_PROPERTY Call by reference Object reference (TYPE REF TO) /IWBEP/IF_MGW_ODATA_FW_PROP OData Property FPI 20120903
3 Importing IS_PROPERTY_INFO Call by reference Type reference (TYPE) TY_S_PROPERTY_INFO 20140130
4 Importing IT_CURRENCY_CODE Call by reference Type reference (TYPE) TY_T_CURRENCY_CODE 20120903
5 Importing IT_UNIT_CODE Call by reference Type reference (TYPE) TY_T_UNIT_CODE 20140127
6 Importing IV_SOURCE_PROPERTY Call by reference Type reference (TYPE) ANY 20120903

Method CONVERT_PROPERTY_OUTB on class /IWBEP/CL_MGW_DATA_HELPER has no exception.

Method FORMAT_UNIT_AMOUNT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_OUTPUT Call by reference Type reference (TYPE) ANY Output 20140131
2 Importing IV_INPUT Call by reference Type reference (TYPE) ANY Input 20140131
3 Importing IV_T006_ANDEC Call by reference Type reference (TYPE) T006-ANDEC No. of decimal places to which rounding should be performed 20140131
4 Importing IV_T006_DECAN Call by reference Type reference (TYPE) T006-DECAN Number of decimal places for number display 20140131

Method FORMAT_UNIT_AMOUNT on class /IWBEP/CL_MGW_DATA_HELPER has no exception.

Method GET_CONVERSION_INFO_COMPLEX Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_COMPLEX_INFO Call by reference Type reference (TYPE) TY_S_COMPLEX_INFO Conversion infor for complex property 20120902
2 Importing IO_COMPLEX_TYPE Call by reference Object reference (TYPE REF TO) /IWBEP/IF_MGW_ODATA_FW_CPLXTYP OData Complex Type FPI 20120902
3 Importing IS_SOURCE_STRUCTURE Call by reference Type reference (TYPE) ANY Source strucure 20120902
4 Importing IS_TARGET_STRUCTURE Call by reference Type reference (TYPE) ANY Target structure 20120902
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_MED_EXCEPTION Meta data exception 20140130
2 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method GET_CONVERSION_INFO_NODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ES_NODE_INFO Call by reference Type reference (TYPE) TY_S_NODE_INFO Conversion info for node 20120902
2 Importing IO_EXPAND_NODE Call by reference Object reference (TYPE REF TO) /IWBEP/CL_MGW_EXPAND_NODE OData Channel Expand Node 20120902
3 Importing IS_SOURCE_STRUCTURE Call by reference Type reference (TYPE) ANY Source strucure 20120902
4 Importing IS_TARGET_STRUCTURE Call by reference Type reference (TYPE) ANY Target structure 20120902
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_MED_EXCEPTION Meta data exception 20140130
2 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method GET_CURRENCY_CODES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IS_STRUCTURE Call by reference Type reference (TYPE) ANY 20140129
2 Importing IT_PROPERTY_INFO Call by reference Type reference (TYPE) TY_T_PROPERTY_INFO 20140129
3 Returning RT_CURRENCY_CODE Value transfer Type reference (TYPE) TY_T_CURRENCY_CODE 20140129

Method GET_CURRENCY_CODES on class /IWBEP/CL_MGW_DATA_HELPER has no exception.

Method GET_CURRENCY_UNIT_CODES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CURRENCY_CODE Call by reference Type reference (TYPE) TY_T_CURRENCY_CODE 20140127
2 Exporting ET_UNIT_CODE Call by reference Type reference (TYPE) TY_T_UNIT_CODE 20140127
3 Importing IS_STRUCTURE Call by reference Type reference (TYPE) ANY 20140127
4 Importing IT_PROPERTY_INFO Call by reference Type reference (TYPE) TY_T_PROPERTY_INFO 20140127

Method GET_CURRENCY_UNIT_CODES on class /IWBEP/CL_MGW_DATA_HELPER has no exception.

Method INTERNAL_COMPLEX_PROPERTY_OUTB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_TARGET_STRUCTURE Call by reference Type reference (TYPE) ANY 20130418
2 Importing IO_COMPLEX_TYPE Call by reference Object reference (TYPE REF TO) /IWBEP/IF_MGW_ODATA_FW_CPLXTYP OData Complex Type Read Interface 20130418
3 Importing IS_SOURCE_STRUCTURE Call by reference Type reference (TYPE) ANY 20130418
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_MED_EXCEPTION Meta data exception 20140130
2 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method INTERNAL_ENTITYSET_OUTB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_TARGET_TABLE Call by reference Type reference (TYPE) ANY TABLE 20130418
2 Importing IO_EXPAND_NODE Call by reference Object reference (TYPE REF TO) /IWBEP/CL_MGW_EXPAND_NODE 20130418
3 Importing IT_SOURCE_TABLE Call by reference Type reference (TYPE) ANY TABLE 20130418
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_MED_EXCEPTION Meta data exception 20140130
2 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method INTERNAL_ENTITY_OUTB Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CS_TARGET_STRUCTURE Call by reference Type reference (TYPE) ANY 20130418
2 Importing IO_EXPAND_NODE Call by reference Object reference (TYPE REF TO) /IWBEP/CL_MGW_EXPAND_NODE OData Channel Expand Node 20130418
3 Importing IS_SOURCE_STRUCTURE Call by reference Type reference (TYPE) ANY 20130418
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_MED_EXCEPTION Meta data exception 20140130
2 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method MOVE_CORRESPONDING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ER_TARGET_DATA Call by reference Object reference (TYPE REF TO) DATA Target Data 20120903
2 Importing IR_SOURCE_DATA Call by reference Object reference (TYPE REF TO) DATA Source Data 20120902

Method MOVE_CORRESPONDING on class /IWBEP/CL_MGW_DATA_HELPER has no exception.

Method RAISE_FRAMEWORK_EXCEPTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_ROOT Call by reference Object reference (TYPE REF TO) CX_ROOT Abstract Superclass for All Global Exceptions 20140130
# Exception Resumable Description Created on
1 /IWBEP/CX_MGW_TECH_EXCEPTION Technical Exception 20140130

Method RESET_GLOBAL_VALUES Signature

Method RESET_GLOBAL_VALUES on class /IWBEP/CL_MGW_DATA_HELPER has no parameter.
Method RESET_GLOBAL_VALUES on class /IWBEP/CL_MGW_DATA_HELPER has no exception.
History
Last changed by/on SAP  20141120 
SAP Release Created in 200