SAP ABAP Class CL_MDG_VALUE_MAPPING_API (API for Value MApping Configuration)
Hierarchy
SAP_BS_FND (Software Component) SAP Business Suite Foundation
   CA-MDG-VM (Application Component) Value Mapping
     MDG_BS_VALUE_MAPPING_API (Package) MDG: Value Mapping API
Properties
Class CL_MDG_VALUE_MAPPING_API  
Short Description API for Value MApping Configuration    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package MDG_BS_VALUE_MAPPING_API   MDG: Value Mapping API 
Created 20090814   SAP 
Last change 20110908   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_ESF_CODE_LIST_PROVIDER Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_MDG_VALUE_MAPPING_API has no interface implemented.
Friends
Class CL_MDG_VALUE_MAPPING_API has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 GD_SIMULATION Instance attribute Public Type reference (TYPE) BOOLEAN X = Simulation, Space = Commit 20091106
2 GD_VIEWNAME Instance attribute Protected Type reference (TYPE) STRING Viewname 20090814
Methods
# Method Level Visibility Method type Description Created on
1 COMPARE_VALUES Instance method Protected Method Compares field values 20090826
2 CREATE Instance method Public Method Create entry in the maintainane view MDGV_ELEMENT 20090828
3 CREATE_CODEMAP Instance method Protected Method Creates entries in the codemap 20090828
4 CREATE_MAPPING_CONTEXT Instance method Protected Method Creates entries in mapping context 20090828
5 CREATE_MDGD_ELEMENT Instance method Protected Method Creates the mdgv_element 20090828
6 FETCH_CODE_VALUES Instance method Public Method Fetches the code values 20090814
7 FETCH_MDGD_ELEMENT Instance method Public Method Fetches all the values from mdgd_element 20091112
8 PERFORM_MAPPER_CONVERSION Instance method Protected Method Performs inbound or outbound conversion 20090814
9 READ Instance method Public Method Reads view MDGV_ELEMENT and returns code values 20090915
10 RETRIEVE_MAPPED_DATA Instance method Protected Method Fetches data for client dependent = X 20090814
11 RETRIEVE_VIEW_DATA Instance method Protected Method Returns the sub view data included in view cluster 20090824
12 UPDATE Instance method Public Method Updates view MDGV_ELEMENT from an internal table 20090824
13 UPDATE_CODEMAP Instance method Protected Method Updates the Value mapping codes 20090826
14 UPDATE_MAPPING_CONTEXT Instance method Protected Method Updates the structures for mapping context 20090826
15 UPDATE_MDGD_ELEMENT Instance method Protected Method Updates the structures for update for the proxy element def 20090825
16 VALIDATE_INPUT Instance method Protected Method Validates inputs 20090904
Events
Class CL_MDG_VALUE_MAPPING_API has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 EXT_CODEMAP Public See coding 20090825 BEGIN OF ext_codemap, object TYPE prx_r3obj, obj_name TYPE prx_r3name, mapcontext TYPE mdg_mapcontext, mapcode TYPE mdg_mapcode, internal_code TYPE mdg_internal_code, external_code TYPE mdg_external_code, in_map_default TYPE mdg_in_map_default, out_map_default TYPE mdg_out_map_default, END OF ext_codemap
2 EXT_CODETAB Public See coding 20090814 BEGIN OF ext_codetab, object TYPE prx_r3obj , obj_name TYPE prx_r3name, mapcontext TYPE mdg_mapcontext, mapcode TYPE mdg_mapcode, int_list_id TYPE mdg_list_id, ext_list_id TYPE mdg_list_id, list_agency_id TYPE mdg_list_agency_id, list_version TYPE mdg_list_version, internal_code TYPE mdg_internal_code, external_code TYPE mdg_external_code, in_map_default TYPE mdg_in_map_default, out_map_default TYPE mdg_out_map_default, END OF ext_codetab
3 EXT_MAPPING_CONTEXT Public See coding 20090825 BEGIN OF ext_mapping_context, object TYPE prx_r3obj, obj_name TYPE prx_r3name, mapcontext TYPE mdg_mapcontext, list_id TYPE mdg_list_id, list_agency_id TYPE mdg_list_agency_id, list_version TYPE mdg_list_version, internal_list_id TYPE mdg_list_id, out_map_default TYPE mdg_out_map_default, out_no_map TYPE mdg_out_no_map, mapper TYPE mdg_mapper, END OF ext_mapping_context
4 OBJ_DATA Public See coding 20090915 BEGIN OF obj_data, object TYPE prx_r3obj, obj_name TYPE prx_r3name, langu_key TYPE spras , list_id TYPE string, conv_flag TYPE boolean ,"X = outbound END OF obj_data
5 S_MESSAGE Private See coding 20090909 BEGIN OF s_message, id TYPE id, msgid TYPE symsgid, msgty TYPE symsgty, msgno TYPE symsgno, msgv1 TYPE symsgv, msgv2 TYPE symsgv, msgv3 TYPE symsgv, msgv4 TYPE symsgv, text TYPE c LENGTH 250, END OF s_message
6 TT_EXT_CODEMAP Public See coding 20090825 tt_ext_codemap TYPE STANDARD TABLE OF ext_codemap
7 TT_EXT_CODETAB Public See coding 20090814 tt_ext_codetab TYPE STANDARD TABLE OF ext_codetab WITH DEFAULT KEY
8 TT_EXT_MAPPING_CONTEXT Public See coding 20090825 tt_ext_mapping_context TYPE STANDARD TABLE OF ext_mapping_context
9 TT_MDGD_ELEMENT Public See coding 20090826 tt_mdgd_element TYPE STANDARD TABLE OF mdgd_element
10 TT_OBJ_DATA Public See coding 20090915 tt_obj_data TYPE STANDARD TABLE OF obj_data
Method Signatures

Method COMPARE_VALUES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EB_UPD_FLAG Call by reference Type reference (TYPE) BOOLEAN Flag if structure should be updated or not 20090826
2 Exporting ES_CODEMAP Call by reference Type reference (TYPE) EXT_CODEMAP 20090826
3 Exporting ES_MAPPING_CONTEXT Call by reference Type reference (TYPE) EXT_MAPPING_CONTEXT Compared structure : Modified values 20090826
4 Exporting ES_MDGD_ELEMENT Call by reference Type reference (TYPE) MDGD_ELEMENT Compared structure : Modified values 20090826
5 Importing IB_FLAG Call by reference Type reference (TYPE) STRING Flag for comparison 20090826
6 Importing IS_CODEMAP_DB Call by reference Type reference (TYPE) EXT_CODEMAP 20090826
7 Importing IS_CODEMAP_INP Call by reference Type reference (TYPE) EXT_CODEMAP 20090826
8 Importing IS_MAPPING_CONTEXT_DB Call by reference Type reference (TYPE) EXT_MAPPING_CONTEXT Structure for mapping context DB 20090826
9 Importing IS_MAPPING_CONTEXT_INP Call by reference Type reference (TYPE) EXT_MAPPING_CONTEXT Structure for mapping context input 20090826
10 Importing IS_MDGD_ELEMENT_DB Call by reference Type reference (TYPE) MDGD_ELEMENT Structure for mdgd_element in db 20090826
11 Importing IS_MDGD_ELEMENT_INP Call by reference Type reference (TYPE) MDGD_ELEMENT Structure for mdgd_element input 20090826
# Exception Resumable Description Created on
1 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MSG Call by reference Type reference (TYPE) BAPIRETTAB Table of messages 20090828
2 Importing IT_MDGD_ELEMENT Call by reference Type reference (TYPE) TT_MDGD_ELEMENT Proxy element defnition 20090828
3 Importing IT_MDGV_CODEMAP Call by reference Type reference (TYPE) TT_EXT_CODEMAP Value mapping table 20090828
4 Importing IT_MDGV_MAPPING_CONTEXT Call by reference Type reference (TYPE) TT_EXT_MAPPING_CONTEXT Mapping context tables for the view 20090828
5 Importing IV_SIMULATION Call by reference Type reference (TYPE) BOOLEAN 'X' X= Simulation , Space = Commt 20091106
# Exception Resumable Description Created on
1 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method CREATE_CODEMAP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CODEMAP Call by reference Type reference (TYPE) TT_EXT_CODEMAP Created table of Codes 20090828
2 Exporting ET_MSG Call by reference Type reference (TYPE) BAPIRETTAB Table of messages 20091217
3 Importing IT_CODEMAP Call by reference Type reference (TYPE) TT_EXT_CODEMAP Code Table sent as input 20090828
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20091005
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method CREATE_MAPPING_CONTEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MAPPING_CONTEXT_INP Call by reference Type reference (TYPE) TT_EXT_MAPPING_CONTEXT Updated table 20090828
2 Exporting ET_MSG Call by reference Type reference (TYPE) BAPIRETTAB Table of messages 20091217
3 Importing IT_MAPPING_CONTEXT_INP Call by reference Type reference (TYPE) TT_EXT_MAPPING_CONTEXT Table sent as input 20090828
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20091005
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method CREATE_MDGD_ELEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MDGD_ELEMENT_CREATE Call by reference Type reference (TYPE) TT_MDGD_ELEMENT Created table 20090828
2 Importing IT_MDGD_ELEMENT_INP Call by reference Type reference (TYPE) TT_MDGD_ELEMENT Structure passed as input 20090828
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20091005
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method FETCH_CODE_VALUES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CODE_VALUES Call by reference Type reference (TYPE) IF_ESF_CODE_LIST_PROVIDER=>TT_CODE_VALUES Code values exporting 20090814
2 Exporting ET_CODE_VALUES_W_DESCRIPTIONS Call by reference Type reference (TYPE) IF_ESF_CODE_LIST_PROVIDER=>TT_CODE_VALUES_W_DESCRIPTIONS 20091124
3 Importing IS_MDGD_ELEMENT Call by reference Type reference (TYPE) MDGD_ELEMENT 20090814
4 Importing IV_LANGU_KEY Call by reference Type reference (TYPE) SY-LANGU Language Key of Current Text Environment 20090814
5 Importing IV_LIST_ID Call by reference Type reference (TYPE) STRING Lidt ID 20090814
# Exception Resumable Description Created on
1 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method FETCH_MDGD_ELEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MDGD_ELEMENT Call by reference Type reference (TYPE) TT_MDGD_ELEMENT 20091112

Method FETCH_MDGD_ELEMENT on class CL_MDG_VALUE_MAPPING_API has no exception.

Method PERFORM_MAPPER_CONVERSION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_EXT_CODETAB Call by reference Type reference (TYPE) TT_EXT_CODETAB 20090814
2 Exporting ET_MAPPED_CODES Call by reference Type reference (TYPE) MDGT_CODELIST Code List 20090814
3 Importing IB_CONV_FLG Call by reference Type reference (TYPE) BOOLEAN X = Outbound, Space = Inbound 20090814
4 Importing IS_MDGV_CMAPCONTEXT Call by reference Type reference (TYPE) ANY Generated Table for View 20090814
5 Importing IT_CODE_VALUES Call by reference Type reference (TYPE) IF_ESF_CODE_LIST_PROVIDER=>TT_CODE_VALUES 20090814
6 Importing IV_LIST_ID Call by reference Type reference (TYPE) MDG_LIST_ID List ID of Code List 20090814
7 Importing IV_LIST_VERSION Call by reference Type reference (TYPE) MDG_LIST_VERSION CCT List Version ID, like UKM_E_CCT_ID_SV_ID 20090814
8 Importing IV_OBJ Call by reference Type reference (TYPE) PRX_R3OBJ Proxy Generation: Name of an Object in R/3 20090814
9 Importing IV_OBJ_NAME Call by reference Type reference (TYPE) PRX_R3NAME Proxy Generation: Object Type in R3 (DTEL, TABL,...) 20090814
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20090814
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method READ Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_EXT_CODETAB Call by reference Type reference (TYPE) TT_EXT_CODETAB Output of the view MDGV_ELEMENT 20090915
2 Exporting ET_MDGD_ELEMENT Call by reference Type reference (TYPE) TT_MDGD_ELEMENT Specifies proxy elements where core data type is code 20091016
3 Exporting ET_MDGV_CODEMAP Call by reference Type reference (TYPE) TT_EXT_CODEMAP Value mapping table 20090915
4 Exporting ET_MDGV_MAPPING_CONTEXT Call by reference Type reference (TYPE) TT_EXT_MAPPING_CONTEXT Mapping context tables for the view 20090915
5 Importing IT_OBJ_DATA Call by reference Type reference (TYPE) TT_OBJ_DATA 20090915
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20090915
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090915

Method RETRIEVE_MAPPED_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_EXT_CODETAB Call by reference Type reference (TYPE) TT_EXT_CODETAB value mapping table 20090814
2 Exporting ET_MDGV_CODEMAP Call by reference Type reference (TYPE) TT_EXT_CODEMAP 20090825
3 Exporting ET_MDGV_MAPPING_CONTEXT Call by reference Type reference (TYPE) TT_EXT_MAPPING_CONTEXT 20090825
4 Importing IB_CONV_FLG Call by reference Type reference (TYPE) BOOLEAN X = Outbound , Space = Inbound 20090814
5 Importing IS_MDGD_ELEMENT Call by reference Type reference (TYPE) MDGD_ELEMENT Specifies proxy elements where core data type is code 20090814
6 Importing IV_LANGU_KEY Call by reference Type reference (TYPE) SY-LANGU Language Key of Current Text Environment 20090814
7 Importing IV_LIST_ID Call by reference Type reference (TYPE) STRING Internal list ID 20090814
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20090814
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method RETRIEVE_VIEW_DATA Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MDGV_CODEMAP Call by reference Type reference (TYPE) ANY 20090824
2 Exporting ET_MDGV_MAPPING_CONTEXT Call by reference Type reference (TYPE) ANY 20090824
3 Importing IB_FLG Call by reference Type reference (TYPE) BOOLEAN 'X' X = mapping context details , Space = Value mapping details 20090824
4 Importing IS_MDGD_ELEMENT Call by reference Type reference (TYPE) MDGD_ELEMENT Specifies proxy elements where core data type is code 20091023
5 Changing IT_DBA_SELLIST Call by reference Type reference (TYPE) VIMSELLIST Selection range for view maintenance 20090824
6 Importing IV_VIEWNAME Call by reference Type reference (TYPE) STRING Name of the view 20090824
# Exception Resumable Description Created on
1 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method UPDATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MSG Call by reference Type reference (TYPE) BAPIRETTAB Table of messages 20090825
2 Importing IT_MDGD_ELEMENT Call by reference Type reference (TYPE) TT_MDGD_ELEMENT Proxy element defnition 20090826
3 Importing IT_MDGV_CODEMAP Call by reference Type reference (TYPE) TT_EXT_CODEMAP Value mapping table 20090825
4 Importing IT_MDGV_MAPPING_CONTEXT Call by reference Type reference (TYPE) TT_EXT_MAPPING_CONTEXT Mapping context tables for the view 20090825
5 Importing IV_SIMULATION Call by reference Type reference (TYPE) BOOLEAN 'X' X= Simulation , Space = Commt 20091106
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20090824
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method UPDATE_CODEMAP Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CODEMAP Call by reference Type reference (TYPE) TT_EXT_CODEMAP Updated table of Codes 20090826
2 Exporting ET_MSG Call by reference Type reference (TYPE) BAPIRETTAB Table of messages 20091217
3 Importing IT_CODEMAP Call by reference Type reference (TYPE) TT_EXT_CODEMAP Code Table sent as input 20090826
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20091005
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method UPDATE_MAPPING_CONTEXT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MAPPING_CONTEXT_INP Call by reference Type reference (TYPE) TT_EXT_MAPPING_CONTEXT Updated table 20090826
2 Exporting ET_MSG Call by reference Type reference (TYPE) BAPIRETTAB Table of messages 20091217
3 Importing IT_MAPPING_CONTEXT_INP Call by reference Type reference (TYPE) TT_EXT_MAPPING_CONTEXT Table sent as input 20090826
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20091005
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method UPDATE_MDGD_ELEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_MDGD_ELEMENT_UPD Call by reference Type reference (TYPE) TT_MDGD_ELEMENT Updated structure 20090826
2 Importing IT_MDGD_ELEMENT_INP Call by reference Type reference (TYPE) TT_MDGD_ELEMENT Structure passed as input 20090826
# Exception Resumable Description Created on
1 CX_MDG_CODE_MAPPING Exception Class for Value Mapping 20091005
2 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909

Method VALIDATE_INPUT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EB_INPUT_CHK_FLAG Call by reference Type reference (TYPE) BOOLEAN Flag if input is valid or not 20090904
2 Exporting ET_MSG Call by reference Type reference (TYPE) BAPIRETTAB Table of messages 20091223
3 Importing IB_FLAG Call by reference Type reference (TYPE) STRING 20090904
4 Importing IB_UPD_CREATE_FLG Call by reference Type reference (TYPE) STRING 'U' C = Create , U = Update 20090904
5 Importing IS_MAPPING_CONTEXT Call by reference Type reference (TYPE) ANY 20091105
6 Importing IS_MDGD_ELEMENT_CODEMAP Call by reference Type reference (TYPE) MDGD_ELEMENT For 'E' 20090904
7 Importing IS_MDGD_ELEMENT_INP Call by reference Type reference (TYPE) MDGD_ELEMENT Structure to be compared 20090904
8 Importing IV_DEFAULT_MAPPER Call by reference Type reference (TYPE) MDG_MAPPER Name of Mapping Class That Implements IF_MDG_CODE_MAPPER 20090904
9 Importing IV_INTERNAL_CODE Call by reference Type reference (TYPE) MDG_INTERNAL_CODE Internal Code Value 20090904
# Exception Resumable Description Created on
1 CX_MDG_VALUE_MAPPING_API Exception for value mapping API 20090909
History
Last changed by/on SAP  20110908 
SAP Release Created in 702