SAP Reports / Programs

RAIM_DOWNLOAD SAP ABAP Report - Download of an Investment Program







RAIM_DOWNLOAD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RAIM_DOWNLOAD into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

ORDO - Download of an Investment Program


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 RAIM_DOWNLOAD. "Basic submit
SUBMIT RAIM_DOWNLOAD AND RETURN. "Return to original report after report execution complete
SUBMIT RAIM_DOWNLOAD VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Log of download
Selection Text: PA_ASCII = File name -application server
Selection Text: PA_EXCEL = File name -presentation server
Selection Text: PA_GJAHR = Approval year
Selection Text: PA_LANGU = Logon language
Selection Text: PA_POSID = Point of entry position
Selection Text: PA_PRNAM = Program name
Title: Download of an Investment Program
Text Symbol: ERR = The following messages were generated:
Text Symbol: H01 = Nodes
Text Symbol: NOB = Background processing is not possible
Text Symbol: P00 = Overwrite existing file
Text Symbol: P01 = File exists already
Text Symbol: P02 = Do you want to overwrite the file?
Text Symbol: SUC = The following positions were transferred:
Text Symbol: T01 = Select file
Text Symbol: TES = The following positions were transferred:


INCLUDES used within this REPORT RAIM_DOWNLOAD

INCLUDE RAIMEQU.
INCLUDE RAIM_MESSAGE_LIST_ALV.


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:

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname CHANGING physical_filename = pa_ascii EXCEPTIONS OTHERS = 1.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING MASK = ',*.*,*.*.'

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING FILENAME = PA_EXCEL QUERY = L_QUERY IMPORTING RETURN = L_RETURN.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'N' TITEL = TEXT-P00 TEXTLINE1 = TEXT-P01 TEXTLINE2 = TEXT-P02 IMPORTING ANSWER = L_ANSWER.

BAPI_EXPENDITUREPROGTREE_GTDTL CALL FUNCTION 'BAPI_EXPENDITUREPROGTREE_GTDTL' EXPORTING PROGRAM = PA_PRNAM APPROVALYEAR = PA_GJAHR POSITION = PA_POSID LANGUAGE = PA_LANGU TABLES PROGTREE = IT_PROGTREE RETURN = IT_RETURN.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname CHANGING physical_filename = pa_ascii EXCEPTIONS OTHERS = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING FILENAME = l_filename FILETYPE = l_filetype WRITE_FIELD_SEPARATOR = 'X' TABLES DATA_TAB = it_progtree 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.

AIPA_CHOOSE_TOP_POSID CALL FUNCTION 'AIPA_CHOOSE_TOP_POSID' EXPORTING I_PRNAM = L_PRNAM I_GJAHR = L_GJAHR IMPORTING E_OK_CODE = L_OK_CODE E_POSID = L_POSID.



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 RAIM_DOWNLOAD or its description.