SAP Reports / Programs

J_1SNFIL SAP ABAP Report - IS-M/SD CH/S: Create Temporary Files







J_1SNFIL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program J_1SNFIL converts the Swiss postal master data to SAP formats and generates various files that are used as input for the dataset transfer and conversion programs...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_1SNFIL 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

J1S4 - Create Operating System Files


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_1SNFIL. "Basic submit
SUBMIT J_1SNFIL AND RETURN. "Return to original report after report execution complete
SUBMIT J_1SNFIL 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: ANZCOPY = No.of Copies
Selection Text: DECKBL = Cover Sheet?
Selection Text: DECKTXT = Cover Sheet Text
Selection Text: LOESCHN = Delete After Output
Selection Text: PA_MSORT = Mailsort (Letters etc.)
Selection Text: PA_PLZC = Municipality File
Selection Text: PA_PLZP1 = Postal Code File (P1)
Selection Text: PA_PSORT = Packsort (Catalogs from 500g)
Selection Text: PA_STR = Street File
Selection Text: PRINTER = Printer
Selection Text: SOFORT = Print Immediately?
Selection Text: VERWDAU = Spool Retention Period
Title: IS-M/SD CH/S: Create Temporary Files
Text Symbol: 008 = 10 Home and PO Box Addresses
Text Symbol: 007 = PCd Types
Text Symbol: 006 = CH PTT File Path
Text Symbol: 005 = Municipalities Read
Text Symbol: 004 = Postal Codes Read
Text Symbol: 003 = CH PTT Files
Text Symbol: 002 = Create Temp. Files from CH PTT Files
Text Symbol: 001 = Cannot open dataset
Text Symbol: 016 = Temp. Street File Created
Text Symbol: 017 = Mailsort File Read
Text Symbol: 018 = Temp. Carrier File Created
Text Symbol: 019 = Optional Files
Text Symbol: 020 = Munic. File
Text Symbol: 021 = Mailsort (Letters, Newspapers, Magazines)
Text Symbol: 022 = Create Temp. Files from CH PTT Files via
Text Symbol: 023 = Page
Text Symbol: 024 = Start Report Processing:
Text Symbol: 025 = End Report Processing:
Text Symbol: 026 = PCd, Cities, Munics.
Text Symbol: 027 = Streets
Text Symbol: 015 = Streets Read
Text Symbol: 029 = Select File
Text Symbol: 028 = Mailsort File(Letters)
Text Symbol: 911 = Print Cover Sheet
Text Symbol: 910 = Print Imm.





Text Symbol: 909 = Cover Sh.Text
Text Symbol: 908 = Cover Sht
Text Symbol: 907 = Reten.Period
Text Symbol: 906 = Delete After Print
Text Symbol: 905 = Printer
Text Symbol: 904 = No. of Printouts
Text Symbol: 903 = Name of Spool List
Text Symbol: 902 = Print Control
Text Symbol: 034 = Error logging program
Text Symbol: 033 = Packsort File Read
Text Symbol: 032 = Packsort File
Text Symbol: 031 = Packsort (Catalogs from 500g)
Text Symbol: 912 = Text on Cov.Sheet
Text Symbol: 913 = Lang.
Text Symbol: 030 = All Files
Text Symbol: 014 = Temp. PCode File Created
Text Symbol: 013 = Temp. City File Created
Text Symbol: 012 = 80 Internal PCode
Text Symbol: 011 = 40 Company Adds
Text Symbol: 010 = 30 PO Box Adds
Text Symbol: 009 = 20 Home Addresses


INCLUDES used within this REPORT J_1SNFIL

INCLUDE MJV00T16.


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:

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = w_filestr filetype = 'ASC' has_field_separator = 'X' read_by_line = 'X' TABLES data_tab = it_pttplzp1 EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 invalid_type = 5 no_authority = 6 access_denied = 13.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = 'ZISP_PTT_P1_DAT' IMPORTING file_name = dsetname EXCEPTIONS file_not_found = 01.

FILE_VALIDATE_NAME call function 'FILE_VALIDATE_NAME' exporting logical_filename = 'ZISP_PTT_P1_DAT' changing physical_filename = dsetname exceptions others = 4.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = w_filestr filetype = 'ASC' has_field_separator = 'X' read_by_line = 'X' TABLES data_tab = it_pttplzc EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 invalid_type = 5 no_authority = 6 access_denied = 13.

FILE_VALIDATE_NAME call function 'FILE_VALIDATE_NAME' exporting logical_filename = pa_unort changing physical_filename = w_dsetname exceptions others = 4.

FILE_GET_NAME CALL FUNCTION 'FILE_GET_NAME' EXPORTING logical_filename = p_locpfad operating_system = sy-opsys IMPORTING file_name = p_w_dsetname EXCEPTIONS file_not_found = 01.

FILE_VALIDATE_NAME call function 'FILE_VALIDATE_NAME' exporting logical_filename = pa_unplz changing physical_filename = w_dsetname exceptions others = 4.

GUI_UPLOAD





CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = w_filestr filetype = 'ASC' has_field_separator = ' ' read_by_line = 'X' TABLES data_tab = it_pttstr EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 invalid_type = 5 no_authority = 6 access_denied = 13.

FILE_VALIDATE_NAME call function 'FILE_VALIDATE_NAME' exporting logical_filename = pa_unstr changing physical_filename = w_dsetname exceptions others = 4.

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = w_filestr filetype = 'ASC' has_field_separator = ' ' read_by_line = 'X' TABLES data_tab = it_pttsort EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 invalid_type = 5 no_authority = 6 access_denied = 13.

FILE_VALIDATE_NAME call function 'FILE_VALIDATE_NAME' exporting logical_filename = pa_unbot changing physical_filename = w_dsetname exceptions 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 J_1SNFIL or its description.