SAP Reports / Programs | Financial Accounting | Consolidation | Basic Functions(FI-LC-LC) SAP FI

RGCEDR20 SAP ABAP Report - Download Extract to R/2 RF-KONS







RGCEDR20 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Using this program you can download an extract file from the FI System onto a disk, which the parent company with an R/2 System can then transfer to the RF-KONS System via PC upload...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 RGCEDR20 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 RGCEDR20. "Basic submit
SUBMIT RGCEDR20 AND RETURN. "Return to original report after report execution complete
SUBMIT RGCEDR20 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: P_GJAHR = D Fiscal year
Selection Text: P_PERID = D Period
Selection Text: P_PRTKL = Log
Selection Text: P_VERSN = D Version
Selection Text: SO_BUKRS = D Company codes
Title: Download Extract to R/2 RF-KONS
Text Symbol: 100 = no authorization for company code
Text Symbol: 101 = File
Text Symbol: 102 = transferred to PC
Text Symbol: 200 = Download
Text Symbol: 201 = You are downloading onto an
Text Symbol: 202 = UNIX system.
Text Symbol: 203 = Are you sure you want to
Text Symbol: 204 = save under UNIX?
001 Item TTy TrPr Curr. AYr Trans currency Local curr. S Check digit


INCLUDES used within this REPORT RGCEDR20

INCLUDE RGCMBUD0.
INCLUDE RGCPCUD1.


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:

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * BIN_FILESIZE = SPACE ** FILENAME = DATEINAME "vhs059271 ** FILETYPE = 'ASC' "vhs059271 * FILENAME = LD_FILENAME "vhs059271 * FILETYPE = LD_FILETYPE "vhs059271 * WK1_N_FORMAT = SPACE * WK1_N_SIZE = SPACE * WK1_T_FORMAT = SPACE * WK1_T_SIZE = SPACE * IMPORTING * FILELENGTH = FILELENGTH * TABLES * DATA_TAB = PCSATZ02 * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2 * INVALID_TYPE = 3 * UNKNOWN_ERROR = 4. "end xrp101003

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING ENVIRONMENT = SPACE FILENAME = SPACE QUERY = 'WS' WINID = SPACE IMPORTING RETURN = UMGEBUNG EXCEPTIONS INV_QUERY.

POPUP_TO_CONFIRM_WITH_MESSAGE CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE' EXPORTING DEFAULTOPTION = 'Y' DIAGNOSETEXT1 = TEXT-201 DIAGNOSETEXT2 = TEXT-202 DIAGNOSETEXT3 = SPACE TEXTLINE1 = TEXT-203 TEXTLINE2 = TEXT-204 TITEL = TEXT-200 IMPORTING ANSWER = ANSWER.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING I_CALLBACK_PROGRAM = GV_REPID IS_LAYOUT = LS_LAYOUT IT_FIELDCAT = LT_FIELDCAT * I_CALLBACK_PF_STATUS_SET = gc_setpfstatus IT_EVENTS = LT_EVENTTAB TABLES T_OUTTAB = gt_alv_output EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = lc_strname_list "'FKALV_S_RGCEDR20_LIST' CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 1 IMPORTING et_events = xt_eventtab EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_top_of_page.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_top_of_page.



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