SAP ABAP Class CL_MDG_TRANSFORMATION_APPL (File Transformation application)
Hierarchy
SAP_BS_FND (Software Component) SAP Business Suite Foundation
   CA-MDG-ML (Application Component) Mass Load
     MDG_BS_FILE_UPLOAD (Package) Master Data Processes Service Based File Upload
Properties
Class CL_MDG_TRANSFORMATION_APPL  
Short Description File Transformation application    
Super Class    
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package MDG_BS_FILE_UPLOAD   Master Data Processes Service Based File Upload 
Created 20090930   SAP 
Last change 20130531   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
Class CL_MDG_TRANSFORMATION_APPL has no forward declaration.
Interfaces
Class CL_MDG_TRANSFORMATION_APPL has no interface implemented.
Friends
Class CL_MDG_TRANSFORMATION_APPL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 MC_TYPE_CUSTOMIZING Constant Private Type reference (TYPE) CHAR1 'C' Single-Character Flag 20091028
2 MC_TYPE_OBJECT Constant Private Type reference (TYPE) CHAR1 'M' Single-Character Flag 20091028
3 MO_LOG_HELPER Instance attribute Public Object reference (TYPE REF TO) CL_MDP_IL_LOG_HELPER simplified logging support 20101215
4 MO_LOG_INSTANCE Instance attribute Private Object reference (TYPE REF TO) CL_MDP_IL_LOG_HELPER simplified logging support 20091016
5 MT_CONVERTED_FILES Instance attribute Private Type reference (TYPE) MDG_TT_EXTRACTED_FILE MDG_TT_EXTRACTED_FILE 20101216
6 MV_FILENAME_PREFIX Instance attribute Public Type reference (TYPE) MDG_DATALOAD_FILE_PREFIX Filename Prefix 20110323
7 MV_FILE_SYSTEM Instance attribute Private Type reference (TYPE) MDP_FILE_SYSTEM File system 20091016
8 MV_LOG_HANDLE Instance attribute Public Type reference (TYPE) BALLOGHNDL Application Log: Log Handle 20091016
9 MV_LOG_OBJ Instance attribute Private Type reference (TYPE) BALSUBOBJ Application Log: Subobject 20091016
10 MV_LOG_SUBOBJ Instance attribute Private Type reference (TYPE) BALSUBOBJ Application Log: Subobject 20091016
11 MV_MAX_PROCESSES Instance attribute Public Type reference (TYPE) INT4 Natural number 20100921
12 MV_OBJECT_TYPE Instance attribute Public Type reference (TYPE) MDG_DATALOAD_OBJ_TYPE Data Load Object Type 20101228
13 MV_PARALLEL_SRV_GROUP Instance attribute Private Type reference (TYPE) SPTA_RFCGR Server Group for Parallel Processing 20100921
14 MV_XML_PORT Static Attribute Public Type reference (TYPE) EDI_PVRCVP 'XML_PORT' Port 20091029
Methods
# Method Level Visibility Method type Description Created on
1 ADD_MESSAGE_TO_LOG Instance method Public Method Add message to log 20091013
2 CONVERT_FILES Instance method Public Method Convert the files 20101215
3 FILE_TRANSFORM Instance method Public Method File transformation 20091022
4 GET_FILENAME Instance method Private Method Get file name 20091028
5 GET_FILE_CONTENT Instance method Private Method Get the XString content of the file 20101215
6 GET_HISTORICAL_LOGS Instance method Public Method Get history logs 20091013
7 GET_MDT Instance method Public Method Get message data type 20091013
8 GET_MESSAGE_DATA_TYPE Instance method Private Method Get Message Data Type 20101215
9 LOG_CREATE Instance method Public Method Create Log 20091013
10 MOVE_TO_ARCHIVE Instance method Private Method Move file to Archive directory after processing 20110401
11 PREPARE_XML Instance method Private Method Prepare xml 20091028
12 REMOVE_TRAILING_ZEROS Instance method Private Method Remove Trailing Zeros from the end of the converted file 20101220
13 SAVE_CONVERTED_FILES Instance method Private Method Save the converted files 20101216
14 SET_ATTRIBUTES Instance method Public Method Set attribute 20091013
15 UPLOAD_FILE_TO_XSTRING Instance method Public Method Upload file to xstring 20091013
Events
Class CL_MDG_TRANSFORMATION_APPL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TS_IXML_DOCUMENT Public See coding 20091028 ts_ixml_document(255) TYPE x
2 TS_MDT Public See coding 20091016 BEGIN OF ts_mdt, mdt TYPE string, namespace TYPE string, END OF ts_mdt
3 TS_MDT_HANDLER Public See coding 20091016 BEGIN OF ts_mdt_handler, mdt TYPE string, namespace TYPE string, fileloader TYPE REF TO cl_mdg_fileloader, END OF ts_mdt_handler
4 TT_IXML_DOCUMENT Public See coding 20091028 tt_ixml_document TYPE STANDARD TABLE OF ts_ixml_document
5 TT_MDT Public See coding 20091016 tt_mdt TYPE STANDARD TABLE OF ts_mdt
6 TT_MDT_HANDLER Public See coding 20091016 tt_mdt_handler TYPE STANDARD TABLE OF ts_mdt_handler
Method Signatures

Method ADD_MESSAGE_TO_LOG Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_GEN_LOG Call by reference Object reference (TYPE REF TO) CL_MDP_IL_LOG_HELPER simplified logging support 20091016

Method ADD_MESSAGE_TO_LOG on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method CONVERT_FILES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MESSAGE_TYPE Call by reference Type reference (TYPE) BAPI_MTYPE Type of messages encountered during Conversion 20110602
2 Importing IT_FILE_TABLE Call by reference Type reference (TYPE) FILETABLE File name table 20101215
3 Importing IV_ARCHIVE_DIR Call by reference Type reference (TYPE) MDG_ARCHIVE_FILEPATH Archive directory for processed files 20110401
4 Importing IV_DESTINATION_DIR Call by reference Type reference (TYPE) MDG_DATALOAD_FILEPATH Data load file path 20101216
# Exception Resumable Description Created on
1 CX_MDG_TRANS_APPL Exception class for Converter 20101224

Method FILE_TRANSFORM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_FILE_CONTENT Call by reference Type reference (TYPE) MDG_FILECONTENT_T File Content 20100921
2 Exporting ET_EXTRACTED_FILE Call by reference Type reference (TYPE) MDG_TT_EXTRACTED_FILE MDG_TT_EXTRACTED_FILE 20091028
3 Changing ET_LOGS Call by reference Type reference (TYPE) BAL_T_LOGH Application Log: Log Handle Table 20091022
4 Changing ET_RETURN Call by reference Type reference (TYPE) BAPIRET2_T Return parameter table 20091022
5 Importing IT_FILE Call by reference Type reference (TYPE) FILETABLE File name table 20091022
6 Importing IT_FILE_CONTENT Call by reference Type reference (TYPE) MDG_FILECONTENT_T File Content 20091022
7 Importing IV_REMARK Call by reference Type reference (TYPE) TEXT60 Text Field of Length 60 20091022
# Exception Resumable Description Created on
1 CX_MDG_UPLOAD_UI_ASSIST File Upload Exception 20091023

Method GET_FILENAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_FILENAME Call by reference Type reference (TYPE) STRING 20091028
2 Importing IV_DT_NAME Call by reference Type reference (TYPE) MDG_EXTR_DT_NAME Data type in ESR (Message data type or GTD) 20091028
3 Importing IV_FILE_TYPE Call by reference Type reference (TYPE) CHAR1 Single-Character Flag 20091028
4 Importing IV_SEQUENCE_NO Call by reference Type reference (TYPE) INT2 2 byte integer (signed) 20091028

Method GET_FILENAME on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method GET_FILE_CONTENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_CONTENT Call by reference Type reference (TYPE) XSTRING 20101215
2 Importing IV_FILE Call by reference Type reference (TYPE) FILE_TABLE-FILENAME File name 20101215
# Exception Resumable Description Created on
1 CX_MDG_UPLOAD 20101215

Method GET_HISTORICAL_LOGS Signature

Method GET_HISTORICAL_LOGS on class CL_MDG_TRANSFORMATION_APPL has no parameter.
Method GET_HISTORICAL_LOGS on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method GET_MDT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MDT Call by reference Type reference (TYPE) STRING 20091016
2 Exporting EV_NAMESPACE Call by reference Type reference (TYPE) STRING 20091016
3 Importing IV_CONTENT Call by reference Type reference (TYPE) MDG_FILECONTENT-FILECONTENT 20091016
4 Importing IV_FILE Call by reference Type reference (TYPE) FILE_TABLE-FILENAME File name 20091016

Method GET_MDT on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method GET_MESSAGE_DATA_TYPE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_MDT Call by reference Type reference (TYPE) STRING 20101215
2 Exporting EV_NAMESPACE Call by reference Type reference (TYPE) STRING 20101215
3 Importing IV_CONTENT Call by reference Type reference (TYPE) MDG_FILECONTENT-FILECONTENT 20101215
4 Importing IV_FILE Call by reference Type reference (TYPE) FILE_TABLE-FILENAME File name 20101215

Method GET_MESSAGE_DATA_TYPE on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method LOG_CREATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_LOG_OBJ Call by reference Type reference (TYPE) BALSUBOBJ Application Log: Subobject 20091016
2 Importing IV_SUBOBJ Call by reference Type reference (TYPE) BALSUBOBJ Application Log: Subobject 20091016

Method LOG_CREATE on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method MOVE_TO_ARCHIVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_ARCHIVE_PATH Call by reference Type reference (TYPE) FILE_TABLE-FILENAME File name 20110401
2 Importing IV_FILENAME Call by reference Type reference (TYPE) FILE_TABLE-FILENAME File name 20110401

Method MOVE_TO_ARCHIVE on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method PREPARE_XML Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_EXTRACTED_FILE Call by reference Type reference (TYPE) MDG_TT_EXTRACTED_FILE MDG_TT_EXTRACTED_FILE 20091028
2 Exporting EV_NO_NEXT_OBJECTS Call by reference Type reference (TYPE) INT4 Natural number 20091028
3 Importing IT_OBJECTS_XML Call by reference Type reference (TYPE) MDG_EXTR_TT_OBJECTS_XML MDG Extractor: XML Data provided by the object impl. 20091028

Method PREPARE_XML on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method REMOVE_TRAILING_ZEROS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_OUT_XSTRING Call by reference Type reference (TYPE) XSTRING 20101220
2 Importing IV_IN_XSTRING Call by reference Type reference (TYPE) XSTRING 20101220

Method REMOVE_TRAILING_ZEROS on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method SAVE_CONVERTED_FILES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_DESTINATION_DIR Call by reference Type reference (TYPE) MDG_DATALOAD_FILEPATH Data load file path 20101216

Method SAVE_CONVERTED_FILES on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method SET_ATTRIBUTES Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_FILE_SYSTEM Call by reference Type reference (TYPE) MDP_FILE_SYSTEM File system 20091029
2 Importing IV_MAX_PROCESSES Call by reference Type reference (TYPE) INT4 Natural number 20100921
3 Importing IV_PARALLEL_SRV_GROUP Call by reference Type reference (TYPE) SPTA_RFCGR Server Group for Parallel Processing 20100921
4 Importing IV_XML_PORT Call by reference Type reference (TYPE) EDI_PVRCVP Port 20091029

Method SET_ATTRIBUTES on class CL_MDG_TRANSFORMATION_APPL has no exception.

Method UPLOAD_FILE_TO_XSTRING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_CONTENT Call by reference Type reference (TYPE) XSTRING 20091016
2 Importing IV_FILE Call by reference Type reference (TYPE) FILE_TABLE-FILENAME File name 20091016
# Exception Resumable Description Created on
1 CX_MDG_UPLOAD 20100830
History
Last changed by/on SAP  20130531 
SAP Release Created in 702