SAP Reports / Programs | Cross-Application Components | General Application Functions | Print Workbench(CA-GTF-PWB) SAP CA

REFG_UPLOAD_DOWNLOAD_FORMF01 SAP ABAP INCLUDE - REFGUPLOADDOWNLOADFORMF01







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


INCLUDES used within this REPORT REFG_UPLOAD_DOWNLOAD_FORMF01

FORM APPEND_INCLUDES USING X_FORM TYPE EFG00_FORM .
FORM EXTRACT_INCLUDES TABLES XT_FILETAB LIKE GT_FILETAB
FORM RENAME_INCLUDES.
FORM SAVE_INCLUDES TABLES XT_INCLUDES TYPE T_INCLUDE


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:

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING client = x_form-efrm-client id = co_text_id language = l_efrmlan-tdspras name = l_efrmstr-text_name object = co_text_object * ARCHIVE_HANDLE = 0 IMPORTING header = l_text-thead TABLES lines = l_text-t_lines EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

HELP_VALUES_GET CALL FUNCTION 'HELP_VALUES_GET' EXPORTING display = ' ' fieldname = 'MANDT' input_value = l_help_info-fldvalue tabname = 'T000' * SHOW_ALL_VALUES_AT_FIRST_TIME = ' ' IMPORTING select_value = l_client * SELECT_INDEX = EXCEPTIONS OTHERS = 1.

EFG_CHECK_INCLUDE_EXISTENCE CALL FUNCTION 'EFG_CHECK_INCLUDE_EXISTENCE' EXPORTING x_name = x_form-efrm-exit_bibl IMPORTING y_tadir = l_include-tadir TABLES yt_source = l_include-t_lines EXCEPTIONS not_found = 1 not_qualified = 2 OTHERS = 3.

EFG_CHECK_INCLUDE_EXISTENCE CALL FUNCTION 'EFG_CHECK_INCLUDE_EXISTENCE' EXPORTING x_name = x_form-efrm-user_top IMPORTING y_tadir = l_include-tadir TABLES yt_source = l_include-t_lines EXCEPTIONS not_found = 1 not_qualified = 2 OTHERS = 3.

READ_FORM CALL FUNCTION 'READ_FORM' EXPORTING client = x_form-efrm-client form = x_form-efrm-tdform language = l_efrmlan-tdspras * olanguage = 'X' * OSTATUS = ' ' * STATUS = ' ' * THROUGHCLIENT = ' ' * READ_ONLY_HEADER = ' ' * throughlanguage = 'X' IMPORTING form_header = l_tdform-form_header found = l_found header = l_tdform-thead TABLES form_lines = l_tdform-t_form_lines pages = l_tdform-t_pages page_windows = l_tdform-t_page_windows paragraphs = l_tdform-t_paragraphs strings = l_tdform-t_strings tabs = l_tdform-t_tabs windows = l_tdform-t_windows EXCEPTIONS OTHERS = 1.

EFG_DB_FORM_SELECT CALL FUNCTION 'EFG_DB_FORM_SELECT' EXPORTING x_client = p_client x_formkey = p_fkey X_ACTUAL = 'X' IMPORTING y_form = l_form EXCEPTIONS not_found = 1 not_qualified = 2 failed = 3 OTHERS = 4.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING bin_filesize = l_size filename = l_filename filetype = 'BIN' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' * WRITE_LF = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * IMPORTING * FILELENGTH = TABLES data_tab = gt_xtab 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 .

EFG_DB_FORMCLASS_SELECT CALL FUNCTION 'EFG_DB_FORMCLASS_SELECT' EXPORTING x_formclass = xy_form-efrm-formclass x_langu = sy-langu * X_ACTUAL = * IMPORTING * Y_FCLASS = EXCEPTIONS not_found = 1 not_qualified = 2 failed = 3 OTHERS = 99.

EFG_DB_EFRM_SELECT CALL FUNCTION 'EFG_DB_EFRM_SELECT' EXPORTING * X_CLIENT = SY-MANDT x_formkey = efrmd-new_form X_ACTUAL = 'X' * X_LANGU = SY-LANGU * X_THROUGHCLIENT = ' ' IMPORTING y_efrm = l_efrm * TABLES * YT_EFRMSTR = * YT_EFRMTE = * YT_EFRMSTRTE = * YT_EFRM = EXCEPTIONS not_found = 1 structure_not_found = 2 system_error = 3 not_qualified = 4 OTHERS = 5.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = text-302 textline2 = text-304 titel = l_title start_column = 20 start_row = 10 cancel_display = ' ' IMPORTING answer = l_answer EXCEPTIONS OTHERS = 1.

SELECT_FORM CALL FUNCTION 'SELECT_FORM' EXPORTING * CLIENT = SY-MANDT form = efrmd-new_tdform language = '*' * STATUS = ' ' * THROUGHCLIENT = ' ' * THROUGHLANGUAGE = '*' * IMPORTING * ENTRIES = TABLES selections = lt_thead EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = text-312 textline2 = text-314 titel = l_title start_column = 20 start_row = 12 cancel_display = 'X' IMPORTING answer = l_answer EXCEPTIONS OTHERS = 1.

EFG_CHECK_INCLUDE_EXISTENCE CALL FUNCTION 'EFG_CHECK_INCLUDE_EXISTENCE' EXPORTING x_name = efrmd-new_bibl * IMPORTING * Y_EXISTS = * Y_TRDIR = * Y_TADIR = * TABLES * YT_SOURCE = EXCEPTIONS not_found = 1 not_qualified = 2 OTHERS = 3.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = text-332 textline2 = text-334 titel = l_title start_column = 20 start_row = 11 * CANCEL_DISPLAY = 'X' IMPORTING answer = l_answer EXCEPTIONS OTHERS = 1.

EFG_CHECK_INCLUDE_EXISTENCE CALL FUNCTION 'EFG_CHECK_INCLUDE_EXISTENCE' EXPORTING x_name = efrmd-new_top * IMPORTING * Y_EXISTS = * Y_TRDIR = * Y_TADIR = * TABLES * YT_SOURCE = EXCEPTIONS not_found = 1 not_qualified = 2 OTHERS = 3.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING * DEFAULTOPTION = 'Y' textline1 = text-342 textline2 = text-344 titel = l_title start_column = 20 start_row = 11 * CANCEL_DISPLAY = 'X' IMPORTING answer = l_answer EXCEPTIONS OTHERS = 1.

SELECT_TEXT CALL FUNCTION 'SELECT_TEXT' EXPORTING * CLIENT = SY-MANDT * DATABASE_ONLY = ' ' id = co_text_id language = '*' name = gt_ctrltexts-new_text_name object = co_text_object * TEXTMEMORY_ONLY = ' ' * ARCHIVE_HANDLE = 0 * IMPORTING * ENTRIES = TABLES selections = lt_thead EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

EFG_SELECTION_LIST CALL FUNCTION 'EFG_SELECTION_LIST' EXPORTING x_title = l_title * X_POPUP = 'X' x_select_mode = 'M' * X_HOTSPOT = x_comment1 = text-c11 * X_COMMENT2 = * X_COMMENT3 = x_suppress_type = 'X' x_suppress_key = 'X' * X_MINLEN_TYPE = 0 * X_MINLEN_KEY = 0 * X_MINLEN_TEXT = 10 * X_CALLBACK_PROGRAM = * X_CALLBACK_USER_COMMAND = * X_CALLBACK_STATUS = * X_CUA_STATUS = * X_ALLOW_CLIPBOARD = * X_SHOW_EXPORT_ICON = * IMPORTING * Y_SELECTIND = TABLES t_selectlist = lt_sellist EXCEPTIONS cancelled = 1 OTHERS = 2.

EFG_AUTHORITY_CHECK





CALL FUNCTION 'EFG_AUTHORITY_CHECK' EXPORTING x_formclass = x_form-efrm-formclass x_wmode = co_create EXCEPTIONS not_authorized = 1 OTHERS = 2.

EFG_AUTHORITY_CHECK CALL FUNCTION 'EFG_AUTHORITY_CHECK' EXPORTING x_formclass = x_form-efrm-formclass x_wmode = co_change EXCEPTIONS not_authorized = 1 OTHERS = 2.

EFG_DB_FORM_UPDATE CALL FUNCTION 'EFG_DB_FORM_UPDATE' EXPORTING x_form = x_form x_upd_mode = co_upd_delete EXCEPTIONS update_failed = 1 not_qualified = 2 OTHERS = 3.

EFG_TRANSPORT_TEXT CALL FUNCTION 'EFG_TRANSPORT_TEXT' EXPORTING x_text_name = l_text-thead-tdname x_tdid = l_text-thead-tdid x_langu = l_text-thead-tdspras x_system_check = 'X' x_req_type = 'SYST' x_suppress_dialog = 'X' * X_KORRNUM = x_logkz = 'X' * X_ONLY_RETURN_E071 = x_korrtype = 'T' * IMPORTING * Y_KORRNUM = * Y_NO_TRANSPORT_REQUIRED = * Y_E071 = * Y_APPENDED = EXCEPTIONS cancelled = 1 system_error = 2 failed = 3 not_qualified = 4 OTHERS = 5 .

DELETE_TEXT CALL FUNCTION 'DELETE_TEXT' EXPORTING * CLIENT = SY-MANDT id = l_text-thead-tdid language = l_text-thead-tdspras name = l_text-thead-tdname object = l_text-thead-tdobject * SAVEMODE_DIRECT = ' ' * TEXTMEMORY_ONLY = ' ' EXCEPTIONS not_found = 1 OTHERS = 2.

EFG_SAVE_TEXT CALL FUNCTION 'EFG_SAVE_TEXT' EXPORTING x_thead = l_text-thead x_transportkz = space "previously done x_req_type = 'SYST' x_logkz = 'X' x_insert = 'X' * X_STTXTINFO = TABLES xt_lines = l_text-t_lines EXCEPTIONS not_qualified = 1 failed = 2 cancelled = 3 OTHERS = 4 .

DELETE_FORM CALL FUNCTION 'DELETE_FORM' EXPORTING * CLIENT = SY-MANDT form = l_tdform-form_header-tdform language = l_tdform-form_header-tdspras IMPORTING found = l_found EXCEPTIONS OTHERS = 1.

SAVE_FORM CALL FUNCTION 'SAVE_FORM' EXPORTING form_header = l_tdform-form_header IMPORTING save_form_header = l_form_header TABLES form_lines = l_tdform-t_form_lines pages = l_tdform-t_pages page_windows = l_tdform-t_page_windows paragraphs = l_tdform-t_paragraphs strings = l_tdform-t_strings tabs = l_tdform-t_tabs windows = l_tdform-t_windows EXCEPTIONS OTHERS = 1.

EFG_CHECK_INCLUDE_EXISTENCE CALL FUNCTION 'EFG_CHECK_INCLUDE_EXISTENCE' EXPORTING x_name = l_name * IMPORTING * Y_EXISTS = * Y_TRDIR = * Y_TADIR = * TABLES * YT_SOURCE = EXCEPTIONS not_found = 1 not_qualified = 2 OTHERS = 3.

EFG_COPY_PROGRAM CALL FUNCTION 'EFG_COPY_PROGRAM' EXPORTING x_prog = l_name x_source_prog = 'IEFEXPOO' x_suppress_dialog = 'X' x_overwrite = 'X' * CHANGING * XY_CORRNO = * XY_DEVCLASS = EXCEPTIONS not_qualified = 1 not_found = 2 existing = 3 check_cancelled = 4 insert_cancelled = 5 check_failed = 6 insert_failed = 7 cancelled = 8 foreign_lock = 9 failed = 10 OTHERS = 11 .

EFG_PROGRAM_INSERT CALL FUNCTION 'EFG_PROGRAM_INSERT' EXPORTING x_prog = l_name * X_APPEND = ' ' x_operation = l_operation TABLES xt_sourcecode = l_include-t_lines * YT_OLD_SOURCECODE = * CHANGING * XY_CORRNO = * XY_DEVCLASS = EXCEPTIONS not_qualified = 1 not_found = 2 foreign_lock = 3 cancelled = 4 failed = 5 OTHERS = 6.

EFG_SAPFORM_TRANSPORT_DIALOG CALL FUNCTION 'EFG_SAPFORM_TRANSPORT_DIALOG' EXPORTING x_tdform = xt_tdforms-form_header-tdform x_langu = xt_tdforms-form_header-tdospras * X_OPERATION = * X_ONLY_CHECK = * CHANGING * XY_CORRNO = * XY_DEVCLASS = EXCEPTIONS not_qualified = 1 check_cancelled = 2 check_failed = 3 insert_cancelled = 4 insert_failed = 5 OTHERS = 6.

EFG_PROG_TRANSPORT_DIALOG CALL FUNCTION 'EFG_PROG_TRANSPORT_DIALOG' EXPORTING x_prog = l_name * X_OPERATION = * X_ONLY_CHECK = * CHANGING * XY_CORRNO = * XY_DEVCLASS = EXCEPTIONS not_qualified = 1 check_cancelled = 2 check_failed = 3 insert_cancelled = 4 insert_failed = 5 OTHERS = 6.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = x_filename filetype = 'BIN' * HAS_FIELD_SEPARATOR = ' ' * HEADER_LENGTH = 0 IMPORTING filelength = l_length * HEADER = TABLES data_tab = yt_xtab EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.



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