INST_SPAM_IMPORT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Automatic Import of Support Packages Support Packages can be imported in the background as part of the installation...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 INST_SPAM_IMPORT 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: SPAM import during installation
Text Symbol: 015 = Error during import of Support Package &
Text Symbol: 016 = Support Package queue error
Text Symbol: 017 = No Support Packages available
Text Symbol: 018 = Error during creation of component &
Text Symbol: DEF = You cannot execute this report program
Text Symbol: P01 = Parameter & is not table INSTPARA
Text Symbol: 001 = No authorization to run report
Text Symbol: 004 = Existing Suport Packages do not allow import
Text Symbol: 005 = Incorrect system requirements for SPAM import
Text Symbol: 011 = Import up to Support Package & successful
Text Symbol: 012 = Error in uploading
Text Symbol: 013 = Error during unpacking of Support Package &
Text Symbol: 014 = Support Package import successful
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
SPAM_AUTHORITY_CHECK * CALL FUNCTION 'SPAM_AUTHORITY_CHECK' * EXCEPTIONS * MISSING_AUTHORISATION = 1 * FAILURE = 2 * OTHERS = 3.
SPAM_UPLOAD * CALL FUNCTION 'SPAM_UPLOAD' * TABLES * PATCH_LIST = PATCH_LIST * EXCEPTIONS * NOTHING_TO_UPLOAD = 1 * OTHERS = 2.
SPAM_GET_SPAM_FIX * CALL FUNCTION 'SPAM_GET_SPAM_FIX' * IMPORTING * PATCH = SPAM_PATCH * STATUS = SPAM_STATUS * TEXT = SPAM_TEXT * PAT01_ENTRY = SPAM_ENTRY * EXCEPTIONS * OTHERS = 1.
SPAM_GET_SPAM_FIX * CALL FUNCTION 'SPAM_GET_SPAM_FIX' * IMPORTING * PATCH = SPAM_PATCH * STATUS = SPAM_STATUS * TEXT = SPAM_TEXT * PAT01_ENTRY = SPAM_ENTRY * EXCEPTIONS * OTHERS = 1.
SPAM_UPLOAD * CALL FUNCTION 'SPAM_UPLOAD' * TABLES * PATCH_LIST = PATCH_LIST * EXCEPTIONS * NOTHING_TO_UPLOAD = 1 * OTHERS = 2.
OCS_CREATE_COMPONENT * CALL FUNCTION 'OCS_CREATE_COMPONENT' * EXPORTING * IV_ADDONID = PAT03-ADDON_ID * IV_ADDONRL = PAT03-ADDON_REL * IV_CMDFILE = PAT03-PATCH * IV_COMMENT = PAT03-SHORT_TEXT * IV_FULLTASK = 'X' * EXCEPTIONS * COMPONENT_ALREADY_EXISTS = 1 * INTERNAL_ERROR = 2 * OTHERS = 3.
OCS_MODIFY_ADD_ON_TABLE * CALL FUNCTION 'OCS_MODIFY_ADD_ON_TABLE' * EXPORTING * IS_AVERS = IS_AVERS * EXCEPTIONS * PARAMETER_ERROR = 1 * INTERNAL_ERROR = 2 * OTHERS = 3.
OCS_PATCH_DISASSEMBLER * CALL FUNCTION 'OCS_PATCH_DISASSEMBLER' * EXPORTING * IV_PATCH = IPAT01-PATCH * IV_CREATE_DF = 'X' * EXCEPTIONS * CANNOT_DETERMINE_EPS_PARCEL = 1 * CANNOT_DETERMINE_DATA_FILES = 2 * FILE_OPEN_ERROR = 3 * CANNOT_DISASSEMBLE_R_DATA_FILE = 4 * CANNOT_DISASSEMBLE_D_DATA_FILE = 5 * UNKNOWN_BLOCK = 6 * CANNOT_CREATE_COFILE = 7 * PATCH_FILE_ERROR = 8 * OTHERS = 9.
TRINT_TP_INTERFACE * CALL FUNCTION 'TRINT_TP_INTERFACE' * EXPORTING * IV_TP_COMMAND = ZW_TP_COMMAND * IV_SYSTEM_NAME = ZW_SYSID * IV_TRANSPORT_REQUEST = ZW_TRANSPORT * IV_CLIENT = '000' * IV_UMODES = ZW_UMOD * IV_TP_OPTIONS = ZW_OPTION * IMPORTING * EV_TP_RETURN_CODE = ZW_RET_TP * EXCEPTIONS * OTHERS = 1.
OCS_GET_COMPONENT_QUEUE * CALL FUNCTION 'OCS_GET_COMPONENT_QUEUE' * EXPORTING * IV_COMPONENT = SPAM_COMPONENT * IV_RELEASE = SPAM_RELEASE * IV_COMP_TYPE = SPAM_COMP_TYPE * TABLES * ET_PATQ = PATCH_QUEUE * EXCEPTIONS * NO_VALID_QUEUE = 1 * INTERACTIVE_ATTRIBUTE = 2 * BAD_ATTRIBUTE = 3 * UPGRADE_NOT_FINISHED = 4 * PATCH_FILE_ERROR = 5 * FFD_NEEDED = 6 * INTERNAL_ERROR = 7 * OTHERS = 8.
OCS_GET_SORTED_QUEUE * CALL FUNCTION 'OCS_GET_SORTED_QUEUE' * EXPORTING * IV_PATCH = SPAM_PATCH * IMPORTING * EV_OK = SPAM_OKAY ** ES_BAD_PATCH = * TABLES * TT_PATQ = PATCH_QUEUE * TT_MISSING_PATCHES = MISS_QUEUE * EXCEPTIONS * BAD_ATTRIBUTE = 1 * UPGRADE_NOT_FINISHED = 2 * PATCH_FILE_ERROR = 3 * INTERNAL_ERROR = 4 * OTHERS = 5 * .
DELIVERY_UPGRADE_COMPONENT * CALL FUNCTION 'DELIVERY_UPGRADE_COMPONENT' * EXPORTING * IV_COMPNAME = SPAM_COMPONENT * IV_COMPVERS = SPAM_RELEASE * IV_COMPPALV = PATCH_LEVEL * EXCEPTIONS * COMP_NOT_FOUND = 1 * COMP_PROTECTED = 2 * COMP_WRONG_VERSION = 3 ** COMP_WRONG_PATCH_LEVEL = 4 * COMP_WRONG_TYPE = 5 * UPDATE_FAILED = 6 * NOT_PREPARED = 7 * OTHERS = 8.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
INST_SPAM_IMPORT - SPAM import during installation INST_SPAM_IMPORT - SPAM import during installation INST_SET_TMS - Creating the TMS Configuration INST_SET_TMS - Creating the TMS Configuration INST_SET_LANGPROF - Modifying the Instance Profile (Language, Code Page) INST_SET_LANGPROF - Modifying the Instance Profile (Language, Code Page)