RAIMDOLD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The report assists in downloading the structure of a capital investment program from the SAP System...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 RAIMDOLD 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.
Selection Text: DSNIN = Application server file name
Selection Text: PA_FILE = Presentation server file name
Title: Download investment program
Text Symbol: 001 = The following positions were transferred:
Text Symbol: 002 = Position & was transferred
Text Symbol: P00 = Overwrite existing file
Text Symbol: P01 = File exists already
Text Symbol: P02 = Do you want to overwrite the file?
Text Symbol: T01 = Select file
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname CHANGING physical_filename = dsnin EXCEPTIONS OTHERS = 1.
WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' "xls EXPORTING "xls " DEF_FILENAME = ' ' "xls " DEF_PATH = ' ' "xls MASK = ',*.*,*.*.' "xls
AIPA_CHOOSE_TOP_POSID CALL FUNCTION 'AIPA_CHOOSE_TOP_POSID' EXPORTING I_PRNAM = PA_PRNAM I_GJAHR = PA_GJAHR IMPORTING E_OK_CODE = HLP_OK_CODE E_FLG_ONLY_ONE_TOPPOS = FLG_ONLY_ONE_TOPPOS E_POSID = HLP_POSID EXCEPTIONS IMTP_NOT_FOUND = 1 OTHERS = 2.
WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING FILENAME = PA_FILE QUERY = HLP_QUERY IMPORTING RETURN = HLP_RETURN.
POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'N' TITEL = TEXT-P00 TEXTLINE1 = TEXT-P01 TEXTLINE2 = TEXT-P02 * START_COLUMN = 25 * START_ROW = 6 IMPORTING ANSWER = HLP_ANSWER.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname CHANGING physical_filename = dsnin EXCEPTIONS OTHERS = 1.
WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * FILENAME = L_FILE * FILETYPE = L_FORMAT * TABLES * DATA_TAB = OLD_IMPR * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2 * INVALID_FILESIZE = 3 * INVALID_TABLE_WIDTH = 4 * INVALID_TYPE = 5 * NO_BATCH = 6 * UNKNOWN_ERROR = 7 * OTHERS = 8.
GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = FILENAME = l_file FILETYPE = l_format * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES DATA_TAB = old_impr 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.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.