SAP Reports / Programs

RMDATSHO SAP ABAP Report - Matl Master Data Transfer: Display/Change Content of Sequential File







RMDATSHO is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this program to display or change batch input or direct input files...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 RMDATSHO 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

OMY0 - Display Material Transfer File


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 RMDATSHO. "Basic submit
SUBMIT RMDATSHO AND RETURN. "Return to original report after report execution complete
SUBMIT RMDATSHO 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: PHY_NAME = or physical file name
Selection Text: OS_NAME = Physical file name
Selection Text: MIN_LINE = Output transactions from no.
Selection Text: MAX_LINE = Output transactions up to no.
Selection Text: LDS_NAME = Logical file name
Title: Matl Master Data Transfer: Display/Change Content of Sequential File
Text Symbol: 854 = NON-Unicode
Text Symbol: 853 = UTF-8
Text Symbol: 852 = Code Page of File
Text Symbol: 851 = or
Text Symbol: 850 = Transactions/checks
Text Symbol: 813 = Presentation server
Text Symbol: 812 = Application server
Text Symbol: 810 = Server name
Text Symbol: 809 = Location of file to be imported
Text Symbol: 808 = External application server
Text Symbol: 806 = Read file from application server
Text Symbol: 709 = File access via application server
Text Symbol: 103 = Physical file name
Text Symbol: 102 = Read file from presentation server
Text Symbol: 101 = Logical file name
Text Symbol: 033 = Info
Text Symbol: 031 = Trans.
Text Symbol: 030 = Unknown
Text Symbol: 029 = Error!
Text Symbol: 028 = Add. EANs
Text Symbol: 027 = Long texts
Text Symbol: 026 = Units of measure
Text Symbol: 025 = Descriptions
Text Symbol: 024 = Consumption data
Text Symbol: 023 = Forecast data
Text Symbol: 022 = Country data
Text Symbol: 021 = Main data
Text Symbol: 020 = New Folder
Text Symbol: 011 = I--- More transactions exist
Text Symbol: 010 = -E- Incorrect record sequence or record type
Text Symbol: 006 = Save?
Text Symbol: 005 = No





Text Symbol: 004 = Yes
Text Symbol: 003 = Data changed
Text Symbol: 002 = Save data file?
Text Symbol: 001 = & transactions in file &


INCLUDES used within this REPORT RMDATSHO

No INCLUDES are used within this REPORT code!


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:

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = d020s-prog dynumb = d020s-dnum TABLES dynpfields = dynp_value_tab EXCEPTIONS invalid_abapworkarea = 04 invalid_dynprofield = 08 invalid_dynproname = 12 invalid_dynpronummer = 16 invalid_request = 20 no_fielddescription = 24 undefind_error = 28.

WS_FILENAME_GET CALL FUNCTION 'WS_FILENAME_GET' EXPORTING def_filename = space def_path = os_name mask = mask mode = 'O' title = text-005
IMPORTING filename = os_name * RC = DUMMY
EXCEPTIONS inv_winsys = 04 no_batch = 08 selection_cancel = 12 selection_error = 16.

FILE_LOGFILE_ALIAS_PAI CALL FUNCTION 'FILE_LOGFILE_ALIAS_PAI' EXPORTING ed_logfile_appl = lds_const_for_log_name CHANGING cd_logfile = lds_name EXCEPTIONS OTHERS = 1.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = lds_name IMPORTING file_name = ds_name EXCEPTIONS file_not_found = 01.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "#EC EXISTS EXPORTING logical_filename = lds_const_for_phy_name CHANGING physical_filename = phy_name EXCEPTIONS others = 1.

TH_SELECT_SERVER CALL FUNCTION 'TH_SELECT_SERVER' EXPORTING services = msxxlist-msgtypes IMPORTING server = server EXCEPTIONS no_server_list_received = 04 no_server_selected = 08.

BI_EDIT_DATA CALL FUNCTION 'BI_EDIT_DATA' EXPORTING list_title = title alter_allowed = alter_allowed create_tables_statement = x nodata_sign = nodata display_only_data = ' ' IMPORTING save_pressed = save_p TABLES disp_data = datedit CHANGING data_altered = altered EXCEPTIONS no_tables_statement = 1 OTHERS = 2.

POPUP_TO_DECIDE CALL FUNCTION 'POPUP_TO_DECIDE' EXPORTING defaultoption = '1' textline2 = 'Datenfile zurückschreiben?'(002) textline1 = 'Die Daten wurden geändert'(003) * TEXTLINE3 = ' ' text_option1 = 'Ja'(004) text_option2 = 'Nein'(005) titel = 'Sichern ?'(006) * START_COLUMN = 25 * START_ROW = 6 IMPORTING answer = antwort EXCEPTIONS OTHERS = 1.

CLBA_UPDATE_FILE_REMOTE_HOST CALL FUNCTION 'CLBA_UPDATE_FILE_REMOTE_HOST' DESTINATION server EXPORTING file_name = ds_name logical_filename = lds_name_int TABLES data_tab = datedit EXCEPTIONS open_failure = 1 OTHERS = 2.

CLBA_UPDATE_FILE_REMOTE_HOST CALL FUNCTION 'CLBA_UPDATE_FILE_REMOTE_HOST' DESTINATION server EXPORTING file_name = ds_name TABLES data_tab = datedit EXCEPTIONS open_failure = 1 OTHERS = 2.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' "Unicode EXPORTING FILENAME = ds_filename * FILETYPE = rlgrap-filetype TABLES DATA_TAB = pc_data_tab 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 .

TH_SERVER_LIST CALL FUNCTION 'TH_SERVER_LIST' EXPORTING services = msxxlist-msgtypes TABLES list = server_tab.

MG_GET_FILE_REMOTE_HOST CALL FUNCTION 'MG_GET_FILE_REMOTE_HOST' DESTINATION server EXPORTING file_name = ds_name logical_filename = lds_name_int "note 1500050 TABLES classif_file = pc_data_tab EXCEPTIONS open_failure = 04 file_contains_no_data = 08 others = 10. "note 1500050

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = ds_filename * FILETYPE = rlgrap-filetype TABLES DATA_TAB = pc_data_tab 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.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "#EC EXISTS EXPORTING logical_filename = lds_name_int CHANGING physical_filename = ds_name EXCEPTIONS OTHERS = 1.

FUNCTION_IMPORT_INTERFACE CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE' EXPORTING funcname = 'CLBA_UPDATE_FILE_REMOTE_HOST' TABLES exception_list = lt_excep_pa export_parameter = lt_export_pa import_parameter = lt_import_pa tables_parameter = lt_tables_pa EXCEPTIONS error_message = 1 function_not_found = 2 invalid_name = 3 OTHERS = 4.






FILE_LOGFILE_ALIAS_PBO CALL FUNCTION 'FILE_LOGFILE_ALIAS_PBO' EXPORTING ed_logfile_appl = lds_const_for_log_name ed_parameter_name = 'LDS_NAME' CHANGING cd_logfile_param = lds_name.

FILE_LOGFILE_ALIAS_F4 CALL FUNCTION 'FILE_LOGFILE_ALIAS_F4' EXPORTING ed_logfile_appl = lds_const_for_log_name ed_parameter_name = 'LDS_NAME' CHANGING cd_logical_file = lds_name.



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