SAP Reports / Programs

RFVIAESP SAP ABAP Report - documentation and ABAP source code







RFVIAESP is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You have to be extremely careful and exact when executing this report! Changes can currently not be reversed...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 RFVIAESP 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 RFVIAESP. "Basic submit
SUBMIT RFVIAESP AND RETURN. "Return to original report after report execution complete
SUBMIT RFVIAESP VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: S_SHEIZZ = DME Settlement Unit
Selection Text: SPERRE = Lock
Selection Text: P_IGNOR = "SU settled" not error
Selection Text: FREIGEB = Release
Selection Text: ENTSPERR = Unlock
Selection Text: DSN_IN = File name
Selection Text: AE_O_H = SUs general
Selection Text: AE_M_H = SUs with heating system
Selection Text: ABGERECH = Settled
Text Symbol: 012 = Locked
Text Symbol: 011 = SETTLED
Text Symbol: 013 = RELEASED
Text Symbol: 014 = Current status:
Text Symbol: 015 = Status heating system S CoCd BE SCK SU Settlement date periods
Text Symbol: 016 = RELEASED/REVERSED
Text Symbol: 020 = Program terminated and status not saved
Text Symbol: 030 = Error
Text Symbol: 040 = Generate cost collector first
Text Symbol: 333 = Issue error message "SU already settled" as I message only
Text Symbol: ART = Type of settlement units to be examined
Text Symbol: 010 = Required status:
Text Symbol: 009 = MALL: Select all
Text Symbol: 008 = MDEL: Delete all selections
Text Symbol: 007 = CHNG: Set selected SUs to "Settled"
Text Symbol: 006 = SAVE: Save change and exit program
Text Symbol: 005 = Dat.Stt. Status Start Period
Text Symbol: 003 = Heat. Coll.SU? Single SU
Text Symbol: 002 = Records update ok
Text Symbol: 001 = Error in update
Text Symbol: F18 = Data conversion error
Text Symbol: STA = Status to be set
Text Symbol: HEI = DME Settlement Unit
Text Symbol: FIL = Data name for upload/download
Text Symbol: F42 = not executable
Text Symbol: F30 = File
Text Symbol: F24 = cannot be proc.
Text Symbol: F23 = Frontend function in batch
Text Symbol: F22 = Incorrect param. FILETYP





Text Symbol: F21 = Invalid table structure in
Text Symbol: F20 = cannot be read
Text Symbol: F19 = cannot be opened


INCLUDES used within this REPORT RFVIAESP

INCLUDE IFVINKAS_MACROS.
INCLUDE IFRE_BEGIN_OF_RE_EA_FIN.
INCLUDE IFRE_END_OF_RE_EA_FIN.


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:

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING objnr = viak25-objnr status = con_istat-ae_abgerechnet EXCEPTIONS object_not_found = 1 status_not_active = 2 OTHERS = 3.

STATUS_CHECK CALL FUNCTION 'STATUS_CHECK' EXPORTING objnr = viak25-objnr status = con_istat-kont_gesperrt EXCEPTIONS object_not_found = 1 status_not_active = 2 OTHERS = 3.

STATUS_CHANGE_FOR_ACTIVITY CALL FUNCTION 'STATUS_CHANGE_FOR_ACTIVITY' EXPORTING objnr = tab_heiz_aes-objnr vrgng = vorgng zeile = '000' EXCEPTIONS activity_not_allowed = 1 object_not_found = 2 status_inconsistent = 3 status_not_allowed = 4 wrong_input = 5 warning_occured = 6 OTHERS = 7.

MESSAGE_GET_TEXT * call function 'MESSAGE_GET_TEXT' * EXPORTING * ieinfo = fld_mesg * ilangu = sy-langu * IMPORTING * etext = mesg_text * EXCEPTIONS * no_t100_found = 1 * others = 2.

VIAK25_UPDATE CALL FUNCTION 'VIAK25_UPDATE' TABLES i_t_xviak25 = t_viak25 EXCEPTIONS error_update = 1 OTHERS = 2.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = ld_filename filetype = ld_filetype IMPORTING filelength = ld_filesize TABLES data_tab = p_tab EXCEPTIONS bad_data_format = 1 file_open_error = 2 file_read_error = 3 * INVALID_TABLE_WIDTH = 4 invalid_type = 5 no_batch = 6 unknown_error = 7 OTHERS = 8.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = con_fname CHANGING physical_filename = p_ifile-dsn EXCEPTIONS OTHERS = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = ld_filename filetype = ld_filetype TABLES data_tab = p_tab 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 gui_refuse_filetransfer = 8 OTHERS = 9.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = con_fname CHANGING physical_filename = p_ifile-dsn EXCEPTIONS OTHERS = 1.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING * ENVIRONMENT = ' ' filename = p_dsn query = 'FE' * WINID = ' ' IMPORTING return = p_flg EXCEPTIONS inv_query = 1 no_batch = 2 frontend_error = 3 OTHERS = 4.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING * DEF_FILENAME = ' ' def_path = 'C:\' mask = ',*.*,*.*.'



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