SAP Reports / Programs | Payroll | Non Profit Organizations(PY-NPO) SAP PY

HUNUCMT_LOADER SAP ABAP Report - NPO: Loader for CMT Data in XML Format







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


ABAP code to call this SAP report using the submit statement

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.






SUBMIT HUNUCMT_LOADER. "Basic submit
SUBMIT HUNUCMT_LOADER AND RETURN. "Return to original report after report execution complete
SUBMIT HUNUCMT_LOADER VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


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





Text Symbol: 088 = Node
Text Symbol: 086 = Count of
Text Symbol: 085 = Error: field
Text Symbol: 084 = Parsing section
Text Symbol: 083 = Count of tags:
Text Symbol: 082 = Parsing section
Text Symbol: 081 = Processing cancelled
Text Symbol: 080 = Error transforming into DOM (XML parser):
Text Symbol: 047 = Returned from booking process.
Text Symbol: 023 = Return book results
Text Symbol: 022 = with parameters
Text Symbol: 021 = Start booking process
Text Symbol: 020 = Post processing
Text Symbol: 019 = Maximum XML size
Text Symbol: 018 = Namespace
Text Symbol: 017 = Display XML source
Text Symbol: 016 = Display invalid fields
Text Symbol: 015 = Display details
Text Symbol: 014 = Display messages
Text Symbol: 013 = Display
Text Symbol: 012 = Discard err. deliveries
Text Symbol: 011 = Discard invalid fields
Text Symbol: 010 = Discard empty keys
Text Symbol: 009 = Map XML to DDIC names
Text Symbol: 008 = Lazy mode (cut names)
Text Symbol: 007 = Test mode (no import)
Text Symbol: 006 = Attributes
Text Symbol: 005 = Allow reload / out of S.
Text Symbol: 004 = App-server is UNIX
Text Symbol: 003 = File is on workstation
Text Symbol: 002 = File section
Text Symbol: 001 = XML loader for CMT deliveries
Text Symbol: 046 = Calling CMT booker
Text Symbol: 045 = Calling booking process.
Text Symbol: 044 = File already processed at
Text Symbol: 043 = Max filecount exceeded!
Text Symbol: 042 = Matching file found :
Text Symbol: 041 = No matching files found for :
Text Symbol: 040 = Regular end of CMT loader





Text Symbol: 039 = Insertion into table T7UNCMT_LOADS failed(2):
Text Symbol: 038 = Deleted load from:
Text Symbol: 037 = CMT_COMMIT_ROW set to
Text Symbol: 036 = CMT_TABLE_PREFIX set to
Text Symbol: 035 = CMT loader version
Text Symbol: 034 = Created :
Text Symbol: 033 = Error:
Text Symbol: 032 = Created :
Text Symbol: 031 = Error:
Text Symbol: 030 = Created :
Text Symbol: 029 = Error:
Text Symbol: 028 = Generating samples
Text Symbol: 027 = Version
Text Symbol: 026 = Date and time
Text Symbol: 025 = Delete loaded delivery
Text Symbol: 024 = Utilities


INCLUDES used within this REPORT HUNUCMT_LOADER

INCLUDE PUCMTUN_TOP . " GLOBAL DATA


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

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.



Contribute (Add Comments)

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.