SAP Reports / Programs

J_1AF027 SAP ABAP Report - Data Medium Exchange with Disk







J_1AF027 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program loads DME files onto a disk or hard drive...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 J_1AF027 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 J_1AF027. "Basic submit
SUBMIT J_1AF027 AND RETURN. "Return to original report after report execution complete
SUBMIT J_1AF027 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: S_COPY = Copy source file
Selection Text: S_DELETE = Delete source file
Selection Text: S_DRIVE = Target disk drive
Selection Text: S_SFILE = Source file
Selection Text: S_TFILE = Target file
Selection Text: S_TPATH = Subdirectory
Title: Data Medium Exchange with Disk
Text Symbol: M01 = Have you inserted a formatted disk?
Text Symbol: M03 = Disk
Text Symbol: M20 = File has been copied successful
Text Symbol: M21 = Processing was terminated - no file was created
Text Symbol: M22 = Source file is empty - no file was created
Text Symbol: M25 = File has been deleted successful
Text Symbol: M26 = File could not be deleted
Text Symbol: S01 = Selection


INCLUDES used within this REPORT J_1AF027

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 = gc_filename PARAMETER_1 = sy-cprog CHANGING PHYSICAL_FILENAME = S_SFILE EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING DEFAULTOPTION = 'Y' TEXTLINE1 = TEXT-M01 TITEL = TEXT-M03 IMPORTING ANSWER = HLP_ANSWER.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = gc_filename PARAMETER_1 = sy-cprog CHANGING PHYSICAL_FILENAME = S_SFILE EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' " begin of UNICODE - modification EXPORTING BIN_FILESIZE = HLP_LENGTH FILENAME = HLP_FILENAME FILETYPE = 'ASC' TABLES DATA_TAB = DTATAB 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.

DOWNLOAD * CALL FUNCTION 'DOWNLOAD' * EXPORTING * BIN_FILESIZE = HLP_LENGTH * FILENAME = HLP_FILE * FILETYPE = 'ASC' * IMPORTING * ACT_FILENAME = HLP_FILE * TABLES * DATA_TAB = DTATAB. " end of UNICODE - modification

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = gc_filename PARAMETER_1 = sy-cprog CHANGING PHYSICAL_FILENAME = S_SFILE EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .



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