HUNUCMT_LOADER is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report reads the file containing any customizing changes as sent by the authorities, and updates the intermediary tables accordingly...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter HUNUCMT_LOADER into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Title: NPO: Loader for CMT Data in XML Format
Text Symbol: 078 = Parse XML text:
Text Symbol: 077 = XML parse error at line/column :
Text Symbol: 076 = General XML parse error:
Text Symbol: 075 = Error: illegal data type:
Text Symbol: 074 = No XML file write to local workstation!
Text Symbol: 073 = Writing XML file:
Text Symbol: 072 = Reading XML file:
Text Symbol: 071 = Error writing to table
Text Symbol: 070 = Error: field seqnr not available
Text Symbol: 060 = Error: table
Text Symbol: 059 = Ignoring record for :
Text Symbol: 058 = not available
Text Symbol: 057 = Empty value for key field:
Text Symbol: 056 = No DB field for XML tag:
Text Symbol: 055 = Error: Illegal month identifier:
Text Symbol: 054 = Node name / value / type:
Text Symbol: 053 = Deteced filename :
Text Symbol: 052 = System command authority failure:
Text Symbol: 051 = cannot prefetch T7UNCMT_MAP !
Text Symbol: 050 = Regular end of CMT loader
Text Symbol: 049 = Insertion into table T7UNCMT_LOADS failed(1):
Text Symbol: 048 = Returned from CMT booker
Text Symbol: 079 = Error transforming into XSTRING:
Text Symbol: 102 = bytes.
Text Symbol: 101 = File read. Length is
Text Symbol: 100 = Error
Text Symbol: 099 = Cannot delete file :
Text Symbol: 098 = Cannot create file :
Text Symbol: 097 = Bytes read:
Text Symbol: 096 = Lines read:
Text Symbol: 095 = Cannot open file:
Text Symbol: 094 = bytes.
Text Symbol: 093 = File written. Length is
Text Symbol: 092 = Error
Text Symbol: 091 = Deleted from
Text Symbol: 090 = Nothing deleted from
Text Symbol: 089 = Deleting selected delivery from intermediate tables
INCLUDE PUCMTUN_TOP . " GLOBAL DATA
No SAP DATABASE tables are accessed within this REPORT code!
AUTHORITY_CHECK_C_FUNCTION * CALL FUNCTION 'AUTHORITY_CHECK_C_FUNCTION' * EXPORTING * ACTIVITY = SABC_ACT_CALL * FUNCTION = 'SYSTEM' * EXCEPTIONS * NO_AUTHORITY = 1 * ACTIVITY_UNKNOWN = 2 * OTHERS = 3.
SCMS_BINARY_TO_XSTRING CALL FUNCTION 'SCMS_BINARY_TO_XSTRING' EXPORTING * INPUT_LENGTH = 100000 "AT Bug Fix - Int. Msg. 4797156 2007
SDIXML_XML_TO_DOM CALL FUNCTION 'SDIXML_XML_TO_DOM' EXPORTING XML = xs * SIZE = size IMPORTING DOCUMENT = document EXCEPTIONS INVALID_INPUT = 1 OTHERS = 2.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = filename FILETYPE = 'ASC' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = true IMPORTING FILELENGTH = filelength TABLES DATA_TAB = xml_as_table EXCEPTIONS FILE_WRITE_ERROR = 1 NO_BATCH = 2 GUI_REFUSE_FILETRANSFER = 3 INVALID_TYPE = 4 NO_AUTHORITY = 5 UNKNOWN_ERROR = 6 HEADER_NOT_ALLOWED = 7 SEPARATOR_NOT_ALLOWED = 8 FILESIZE_NOT_ALLOWED = 9 HEADER_TOO_LONG = 10 DP_ERROR_CREATE = 11 DP_ERROR_SEND = 12 DP_ERROR_WRITE = 13 UNKNOWN_DP_ERROR = 14 ACCESS_DENIED = 15 DP_OUT_OF_MEMORY = 16 DISK_FULL = 17 DP_TIMEOUT = 18 FILE_NOT_FOUND = 19 DATAPROVIDER_EXCEPTION = 20 CONTROL_FLUSH_ERROR = 21 OTHERS = 22.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_logical_filename CHANGING physical_filename = filenameRead EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3.
GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = filename FILETYPE = 'ASC' HAS_FIELD_SEPARATOR = ' ' * READ_BY_LINE = true * DAT_MODE = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' IMPORTING FILELENGTH = filelength * HEADER = TABLES DATA_TAB = xml_as_table EXCEPTIONS FILE_OPEN_ERROR = 1 FILE_READ_ERROR = 2 NO_BATCH = 3 GUI_REFUSE_FILETRANSFER = 4 INVALID_TYPE = 5 NO_AUTHORITY = 6 UNKNOWN_ERROR = 7 BAD_DATA_FORMAT = 8 HEADER_NOT_ALLOWED = 9 SEPARATOR_NOT_ALLOWED = 10 HEADER_TOO_LONG = 11 UNKNOWN_DP_ERROR = 12 ACCESS_DENIED = 13 DP_OUT_OF_MEMORY = 14 DISK_FULL = 15 DP_TIMEOUT = 16 OTHERS = 17.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name HUNUCMT_LOADER or its description.
HUNUCMT_LOADER - NPO: Loader for CMT Data in XML Format HUNUCMT_LOADER - NPO: Loader for CMT Data in XML Format HUNUCMT_CLEAR_RETRO_TAB - Program HUNUCMT_CLEAR_RETRO_TAB HUNUCMT_CLEAR_RETRO_TAB - Program HUNUCMT_CLEAR_RETRO_TAB HUNUCMT_CLEAN_XREF_TAB - Program HUNUCMT_CLEAN_XREF_TAB HUNUCMT_CLEAN_XREF_TAB - Program HUNUCMT_CLEAN_XREF_TAB