SAP Reports / Programs

REMIG_FILE_PARSE SAP ABAP Report - Split up a Migration File







REMIG_FILE_PARSE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Structure of a migration file Using this report, an import file can be divided up into several smaller 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 REMIG_FILE_PARSE 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 REMIG_FILE_PARSE. "Basic submit
SUBMIT REMIG_FILE_PARSE AND RETURN. "Return to original report after report execution complete
SUBMIT REMIG_FILE_PARSE 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: FILE_IN = Input file name
Selection Text: FILE_OUT = Output file name
Selection Text: FIRMA = D Company
Selection Text: OBJECT = D Migration Object
Selection Text: PATH_IN = Input directory
Selection Text: PATH_OUT = Output directory
Selection Text: SPLITNR = No. of data records per file
Title: Split up a Migration File
Text Symbol: 001 = Error file contains no generic character
Text Symbol: 002 = Data recs.
Text Symbol: 900 = File ty.
Text Symbol: C02 = Generic info: "&" is replaced by "001", "002", etc.
Text Symbol: T01 = Input file (directory/name)
Text Symbol: T02 = Output file (directory/name)


INCLUDES used within this REPORT REMIG_FILE_PARSE

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:

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = co_log_filename CHANGING physical_filename = infile EXCEPTIONS OTHERS = 1.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = co_log_filename CHANGING physical_filename = outfile EXCEPTIONS OTHERS = 1.

SCP_GET_CODEPAGE_NUMBER CALL FUNCTION 'SCP_GET_CODEPAGE_NUMBER' IMPORTING appl_codepage = scp EXCEPTIONS OTHERS = 1.

ISU_M_UNICODE_CHECK CALL FUNCTION 'ISU_M_UNICODE_CHECK' EXPORTING x_codepage = temus-cpgfs IMPORTING y_is_uc_system = gv_unicode.

ISU_M_DATASET_BINARY_OPEN CALL FUNCTION 'ISU_M_DATASET_BINARY_OPEN' EXPORTING x_dataset = infile EXCEPTIONS file_open_error = 1.

ISU_M_DATASET_BINARY_READ CALL FUNCTION 'ISU_M_DATASET_BINARY_READ' EXPORTING x_dataset = infile IMPORTING y_record = gv_xstring EXCEPTIONS file_eof_reached = 1.

ISU_M_TRANSLATE_CODEPAGE_IN CALL FUNCTION 'ISU_M_TRANSLATE_CODEPAGE_IN' EXPORTING x_codepage = gv_codepage_tmp x_data = gv_xstring IMPORTING y_data = gv_info.

ISU_M_TRANSLATE_DATA_TYPE CALL FUNCTION 'ISU_M_TRANSLATE_DATA_TYPE' EXPORTING x_codepage = lv_codepage x_dttyp = '&ENDE' IMPORTING y_dttyp = lv_dttyp_xstring y_offset_dttyp = lv_dttyp_offset y_length_dttyp = lv_dttyp_length.

ISU_M_DATASET_BINARY_READ CALL FUNCTION 'ISU_M_DATASET_BINARY_READ' EXPORTING x_dataset = infile IMPORTING y_record = gv_xstring EXCEPTIONS file_eof_reached = 1.

ISU_M_DATASET_BINARY_WRITE CALL FUNCTION 'ISU_M_DATASET_BINARY_WRITE' EXPORTING x_dataset = outfile x_record = gv_xstring EXCEPTIONS file_write_error = 1.

ISU_M_DATASET_BINARY_DELETE CALL FUNCTION 'ISU_M_DATASET_BINARY_DELETE' EXPORTING x_dataset = outfile EXCEPTIONS others = 1.

ISU_M_DATASET_BINARY_OPEN CALL FUNCTION 'ISU_M_DATASET_BINARY_OPEN' EXPORTING x_dataset = file x_mode = 'O' EXCEPTIONS file_open_error = 1.

ISU_M_DATASET_BINARY_WRITE CALL FUNCTION 'ISU_M_DATASET_BINARY_WRITE' EXPORTING x_dataset = file x_record = gv_xstring EXCEPTIONS file_write_error = 1.

ISU_M_DATASET_BINARY_CLOSE CALL FUNCTION 'ISU_M_DATASET_BINARY_CLOSE' EXPORTING x_dataset = p_file x_write_eof = co_marked.



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