SAP Reports / Programs | Sales and Distribution | Foreign Trade | Basic Functions(SD-FT-PRO) SAP SD

RVEXNAID SAP ABAP Report - Data Medium Exchange with Disk (INTRA/EXTRA/KOBRA/AERP/VAR)







RVEXNAID is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report reads in data from a previously created file and writes it onto a diskette...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 RVEXNAID 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

VE15 - Create disk - INTRA/EXTRA/KOBRA/VAR
VEIW - Create file INTRA/EXTRA/KOBRA
VEIX - Create file INTRA/EXTRA/KOBRA
VEIY - Create file INTRA/EXTRA/KOBRA
VEIZ - Create file INTRA/EXTRA/KOBRA


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


Text pool values


File for data medium exchange with disk )
Selection Text: PAR_PRIN = Issue log
Selection Text: PAR_PFAD = @4H@ Subdirectory
Selection Text: PAR_PATH = @32@ Name of source file
Selection Text: PAR_MTYP = @6K@ Type of data file
Selection Text: PAR_FILE = @32@ Name of target file
Selection Text: PAR_DRIV = @6M@ TgtDiskDrive
Selection Text: PAR_DELE = Delete source file
Selection Text: PAR_COPY = Copy file
Title: Data Medium Exchange with Disk (INTRA/EXTRA/KOBRA/AERP/VAR)
Text Symbol: K15 = Data record log EXTRSTAT - Austria
Text Symbol: K14 = Data record log EXTRSTAT - France
Text Symbol: K13 = Data record log INTRASTAT - Luxembourg
Text Symbol: K12 = Data record log for INTRASTAT - Finland
Text Symbol: K11 = Data record log INTRASTAT - Netherlands
Text Symbol: K10 = Data Record Log INTRASTAT - Denmark
Text Symbol: K09 = Data record log INTRASTAT - Belgium
Text Symbol: K08 = Data record log AERP - USA
Text Symbol: K07 = Data record log INTRASTAT - Italy
Text Symbol: K06 = Data record log INTRASTAT - France
Text Symbol: K05 = Data record log INTRASTAT - Spain
Text Symbol: K04 = Data record log EXTRASTAT - Germany
Text Symbol: K03 = Data record log KOBRA - Germany
Text Symbol: K16 = Data record log - Collective cust.decl. - France
Text Symbol: K17 = Data record log INTRASTAT - Czech Rep.
Text Symbol: K18 = Data record log INTRASTAT - Hungary
Text Symbol: K50 = Source data ;
Text Symbol: K51 = Target data ;
Text Symbol: K52 = Srce file
Text Symbol: K53 = Subdirectory
Text Symbol: K54 = Tgt file
Text Symbol: K55 = Type of data file
Text Symbol: K56 = Target drive
Text Symbol: K57 = @6K@
Text Symbol: K58 = @6M@
Text Symbol: T01 = Path name for file...
Text Symbol: K02 = Data record log INTRASTAT - Germany
Text Symbol: 001 = Have you inserted a





Text Symbol: 002 = formatted diskette?
Text Symbol: 003 = Diskette
Text Symbol: 010 = ; No.;Data record on diskette ;
Text Symbol: 012 = ;Data record for control file ;
Text Symbol: 020 = <-End of data record
Text Symbol: 101 = INTRASTAT declaration - Germany
Text Symbol: 102 = INTRASTAT declaration - Spain
Text Symbol: 103 = INTRASTAT declaration - France
Text Symbol: 104 = INTRASTAT declaration - Italy
Text Symbol: 105 = KOBRA declaration - Germany
Text Symbol: 106 = EXTRASTAT declaration - Germany
Text Symbol: 107 = VAR Decl. - Switzerland
Text Symbol: 108 = AERP declar. - USA
Text Symbol: 109 = INTRASTAT declaration - Belgium
Text Symbol: 110 = INTRASTAT declaration - Denmark
Text Symbol: 111 = INTRASTAT declaration - Netherlands
Text Symbol: 112 = INTRASTAT declaration - Finland
Text Symbol: 113 = INTRA-message- Luxembourg
Text Symbol: 114 = EXTRA declaration - France
Text Symbol: 115 = EXTRA declaration-Austria
Text Symbol: 116 = Collective cust.decl. - France
Text Symbol: 117 = INTRA Decl. - Czech Rep.
Text Symbol: 118 = INTRA Decl. - Hungary
Text Symbol: 119 = INTRA Decl. - Portugal
Text Symbol: 210 = File &FILE was deleted
Text Symbol: 211 = File &FILE could not be deleted
Text Symbol: B01 = Specific additional data
Text Symbol: E00 = Spec. for creating files
Text Symbol: E01 = Criteria for issuing output
Text Symbol: E02 = Use of source file
Text Symbol: E03 = @6K@
Text Symbol: E04 = @6M@
Text Symbol: E05 = Source File
Text Symbol: E06 = Target File
Text Symbol: K01 = Data record log VAR - Switzerland


INCLUDES used within this REPORT RVEXNAID

INCLUDE RVEXSEUS.
INCLUDE RVEXF0ST.


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_QUERY call function 'WS_QUERY' exporting query = 'OS' importing return = operating_system exceptions inv_query = 1 no_batch = 2 frontend_error = 3 others = 4.

RV_FTT_GOV_MEMORY_HANDLING call function 'RV_FTT_GOV_MEMORY_HANDLING' exporting mode = 'I' program = con_repid_saplv50g tables no_log = no_log exceptions illegal_mode = 1 export_failed = 2 import_failed = 3 others = 4.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename CHANGING physical_filename = par_path EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' exporting defaultoption = 'Y' textline1 = text-001 textline2 = text-002 titel = text-003 importing answer = hlp_answer.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename CHANGING physical_filename = par_path EXCEPTIONS OTHERS = 1.

RV_FTT_GOV_ENJOY_LOG_TEXTS_GET call function 'RV_FTT_GOV_ENJOY_LOG_TEXTS_GET' exporting medium = 'D' log_type = log_type mode = mode file_name = full_name records_selected = 1 tables enjoy_log = enjoy_log.

WS_FILENAME_GET call function 'WS_FILENAME_GET' exporting def_filename = hlp_finam mask = filemask mode = 'S' title = text-t01 importing filename = hlp_finam exceptions inv_winsys = 1 no_batch = 2 selection_cancel = 3 selection_error = 4 others = 5.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename CHANGING physical_filename = par_path EXCEPTIONS OTHERS = 1.

SYSTEM_FORMAT call function 'SYSTEM_FORMAT' importing codep = act_codepage exceptions no_codep = 1 others = 4.

DOWNLOAD * CALL FUNCTION 'DOWNLOAD' * EXPORTING * CODEPAGE = 'IBM' * FILENAME = HLP_FINAM * FILETYPE = HLP_FITYP_ASC * ITEM = HLP_ITEM * FILETYPE_NO_SHOW = TRUE * SILENT = FALSE * IMPORTING * ACT_FILENAME = HLP_FINAM * CANCEL = FLG_CANCEL * TABLES * DATA_TAB = HLP_DATA_TAB_5.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * CODEPAGE = 'IBM' * FILENAME = HLP_FINAM * FILETYPE = HLP_FITYP_ASC * TABLES * DATA_TAB = HLP_DATA_TAB_5 * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2 * INVALID_FILESIZE = 3 * INVALID_TYPE = 4 * NO_BATCH = 5 * UNKNOWN_ERROR = 6 * INVALID_TABLE_WIDTH = 7 * GUI_REFUSE_FILETRANSFER = 8 * CUSTOMER_ERROR = 9 * OTHERS = 10.

DOWNLOAD * CALL FUNCTION 'DOWNLOAD' * EXPORTING * BIN_FILESIZE = HLP_LENGTH * FILENAME = HLP_FINAM * FILETYPE = HLP_FITYP_BIN * ITEM = HLP_ITEM * FILETYPE_NO_SHOW = TRUE * SILENT = FALSE * IMPORTING * ACT_FILENAME = HLP_FINAM * FILESIZE = HLP_LENGTH * CANCEL = FLG_CANCEL * TABLES * DATA_TAB = DATA_TAB.

WS_DOWNLOAD * CALL FUNCTION 'WS_DOWNLOAD' * EXPORTING * BIN_FILESIZE = HLP_LENGTH * FILENAME = HLP_FINAM * FILETYPE = HLP_FITYP_BIN * TABLES * DATA_TAB = DATA_TAB * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_WRITE_ERROR = 2 * INVALID_FILESIZE = 3 * INVALID_TYPE = 4 * NO_BATCH = 5 * UNKNOWN_ERROR = 6 * INVALID_TABLE_WIDTH = 7 * GUI_REFUSE_FILETRANSFER = 8 * CUSTOMER_ERROR = 9 * OTHERS = 10.

RV_FTT_GOV_ISSUE_LOG_DIS_REP call function 'RV_FTT_GOV_ISSUE_LOG_DIS_REP' exporting i_source = lv_source i_dest_usa = lv_finam1 i_dest = lv_hlp_finam i_type = lv_mtyp i_send_success_message = lv_send_success_message i_filename = stripped_name tables data_tab = data_tab.

RV_FTT_GOV_MEMORY_HANDLING call function 'RV_FTT_GOV_MEMORY_HANDLING' exporting mode = 'E' program = con_repid_saplv50g tables destination_file_usa = destination_file_usa exceptions illegal_mode = 1 export_failed = 2 import_failed = 3 others = 4.

RV_FTT_GOV_MEMORY_HANDLING call function 'RV_FTT_GOV_MEMORY_HANDLING' exporting mode = 'E' program = con_repid_saplv50g tables destination_file = destination_file exceptions illegal_mode = 1 export_failed = 2 import_failed = 3 others = 4.

RV_FTT_GOV_MEMORY_HANDLING call function 'RV_FTT_GOV_MEMORY_HANDLING' exporting mode = 'E' program = con_repid_saplv50g tables source_file = source_file exceptions illegal_mode = 1 export_failed = 2 import_failed = 3 others = 4.

RV_FTT_GOV_MEMORY_HANDLING call function 'RV_FTT_GOV_MEMORY_HANDLING' exporting mode = 'E' program = con_repid_saplv50g tables record_log = p_record_log exceptions illegal_mode = 1 export_failed = 2 import_failed = 3 others = 4.

RV_FTT_GOV_MEMORY_HANDLING call function 'RV_FTT_GOV_MEMORY_HANDLING' exporting mode = 'E' program = con_repid_saplv50g tables par_mtyp_tab = par_mtyp_tab exceptions illegal_mode = 1 export_failed = 2 import_failed = 3 others = 4.

SYSTEM_FORMAT



call function 'SYSTEM_FORMAT' importing codep = act_codepage exceptions no_codep = 1 others = 4.



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