SAP Reports / Programs | Migration | SAP Utilities | Migration(IS-U-TO-MI) SAP IS

REMIG_FILE_TRANSFORM SAP ABAP Report - File conversion to migration format







REMIG_FILE_TRANSFORM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Restructures migration files Using this report, you can restructure migration files in the binary layout required for the IS-U migration workbench...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_TRANSFORM 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_TRANSFORM. "Basic submit
SUBMIT REMIG_FILE_TRANSFORM AND RETURN. "Return to original report after report execution complete
SUBMIT REMIG_FILE_TRANSFORM 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: CPG_WS = D .
Selection Text: SERV_OUT = Server name for output file
Selection Text: SERV_IN = Server name for input file
Selection Text: P_WS = Input is local file (WS)
Selection Text: P_TEXT = Input is text file
Selection Text: P_TAB = Input is a tab-delimited file
Selection Text: P_FOUR = Input has 4-byte field length
Selection Text: P_BIN = Input is a binary file
Selection Text: PATH_WS = Input directory
Selection Text: PATH_OUT = Output directory
Selection Text: PATH_IN = Input directory
Selection Text: OBJECT = Migration Object
Selection Text: FIRMA = Migration company
Selection Text: FILE_WS = Input file name
Selection Text: FILE_OUT = Name
Selection Text: FILE_IN = Input file name
Selection Text: CPG_IN = D .
Title: File conversion to migration format
Text Symbol: 909 = Migration Object
Text Symbol: 908 = Work station
Text Symbol: 907 = Input is local file (WS)
Text Symbol: 906 = Input has 4-byte field length
Text Symbol: 905 = Input is text file
Text Symbol: 904 = Application server
Text Symbol: 903 = Output file
Text Symbol: 902 = Input file (local)
Text Symbol: 901 = Input file (application server)
Text Symbol: 900 = File type
Text Symbol: 002 = Input file name (workstation/local) missing
Text Symbol: 001 = Input file name (application server) missing


INCLUDES used within this REPORT REMIG_FILE_TRANSFORM

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:

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

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

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = co_log_filename CHANGING physical_filename = filepath_out 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 = knz_unicode.

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

ISU_M_DATASET_BINARY_OPEN CALL FUNCTION 'ISU_M_DATASET_BINARY_OPEN' EXPORTING x_dataset = filepath_in x_mode = 'I' EXCEPTIONS file_open_error = 1.

ISU_M_DATASET_BINARY_WRITE CALL FUNCTION 'ISU_M_DATASET_BINARY_WRITE' EXPORTING x_dataset = filepath_out x_record = lv_xstring EXCEPTIONS file_write_error = 1.

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

ISU_M_UNICODE_CHECK CALL FUNCTION 'ISU_M_UNICODE_CHECK' EXPORTING x_codepage = cpg_in IMPORTING y_is_uc_system = knz_unicode.

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

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = loc_file codepage = lv_codepage TABLES data_tab = ws_file EXCEPTIONS OTHERS = 9.

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

ISU_M_DATASET_BINARY_WRITE CALL FUNCTION 'ISU_M_DATASET_BINARY_WRITE' EXPORTING x_dataset = filepath_out x_record = lv_xstring EXCEPTIONS file_write_error = 1.

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

ISU_M_DATASET_BINARY_READ CALL FUNCTION 'ISU_M_DATASET_BINARY_READ' EXPORTING x_dataset = filepath_in x_length_field = 4 IMPORTING y_record = lv_xstring EXCEPTIONS file_eof_reached = 1.

ISU_M_DATASET_BINARY_WRITE CALL FUNCTION 'ISU_M_DATASET_BINARY_WRITE' EXPORTING x_dataset = filepath_out x_record = lv_xstring EXCEPTIONS file_write_error = 1.

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

ISU_M_DATASET_BINARY_WRITE





CALL FUNCTION 'ISU_M_DATASET_BINARY_WRITE' EXPORTING x_dataset = p_file x_record = lv_xstring EXCEPTIONS file_write_error = 1.

ISU_M_CSTRUC_GET CALL FUNCTION 'ISU_M_CSTRUC_GET' EXPORTING x_firma = firma x_object = object TABLES xy_info = gt_strucinfo EXCEPTIONS not_found = 1 OTHERS = 2.

ISU_M_CUSTOMER_STRUCTURE CALL FUNCTION 'ISU_M_CUSTOMER_STRUCTURE' EXPORTING x_firma = firma x_object = object x_inpstruct = wa_strucinfo-inpstruct TABLES y_source = lt_struc_code[] EXCEPTIONS field_not_found = 1.



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