SAP Reports / Programs

RVFTGKMD SAP ABAP Report - Legal Control: Create BAFA Diskette for Germany







RVFTGKMD 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 a file and creates various files that must be reported to the federal export office (BAFA) for a declaration period: The federal export office demands the following files on the disk...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 RVFTGKMD 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

VX17 - Create BAFA diskette


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 RVFTGKMD. "Basic submit
SUBMIT RVFTGKMD AND RETURN. "Return to original report after report execution complete
SUBMIT RVFTGKMD 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: P_ZOLLNR = Customs no.
Selection Text: P_SAG = SAG number
Selection Text: P_PROT = Issue log
Selection Text: P_PFAD = @4H@ Subdirectory
Selection Text: P_MRAUM = @1U@ Decl.period
Selection Text: P_DRIV = @6M@ Disc drive
Selection Text: P_DEL = @11@ Delete source file
Selection Text: P_DATNAM = @32@ Source file
Selection Text: P_COPY = Copy file
Title: Legal Control: Create BAFA Diskette for Germany
Text Symbol: P06 = Target File
Text Symbol: P05 = Source File
Text Symbol: P04 = Use of source file
Text Symbol: P03 = Criteria for output
Text Symbol: P02 = Spec. for creating files
Text Symbol: P01 = Declaration data
Text Symbol: 009 = <-EOR
Text Symbol: 008 = The following files could not be created:
Text Symbol: 007 = The system created the following files:
Text Symbol: 006 = ...
Text Symbol: 005 = Target files
Text Symbol: 004 = Srce file
Text Symbol: 003 = Diskette
Text Symbol: 002 = formatted diskette?
Text Symbol: 001 = Have you inserted a


INCLUDES used within this REPORT RVFTGKMD

INCLUDE RVEXBAFA.
INCLUDE RVEXAULI.
INCLUDE FTGKMDDATA.
INCLUDE FTGKMD01.


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.

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

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename CHANGING physical_filename = p_datnam EXCEPTIONS OTHERS = 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 RVFTGKMD or its description.