SAP Reports / Programs

RFESR000 SAP ABAP Report - Processing of Incoming Data from OSR or Post and Bank ISR







RFESR000 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use the batch input report RFESR000 to enter customer payment receipts, customer down payments (special G/L transactions, not partial payments), and OSR outgoing check payments delivered in a data medium by the post office (VESR) or bank (BESR) according to the Swiss ISR/OSR procedure...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 RFESR000 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

FESR - Import of ISR File (Switzerland)


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 RFESR000. "Basic submit
SUBMIT RFESR000 AND RETURN. "Return to original report after report execution complete
SUBMIT RFESR000 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: BUDAT = Posting date in BI session
Selection Text: BUKRS = Company code
Selection Text: CREDIT = Debit posting key
Selection Text: DEBIT = Credit posting key
Selection Text: FILE_IN = File name
Selection Text: HSEBANK = House bank
Selection Text: MAPPE = Batch input session name
Selection Text: PAR_ALT = SAP R/3 Standard
Selection Text: PAR_BOTH = Both Search Procedures
Selection Text: PAR_FP1 = Clear when difference in amnt
Selection Text: PAR_FP2 = Post when difference in amnt
Selection Text: PAR_NEU = Non-SAP R/3 Standard
Selection Text: PAR_PCDW = Read from PC
Selection Text: PAR_VASR = OSR
Selection Text: PAR_VESR = ISR
Selection Text: PMNT = Payment methods
Selection Text: XKEEP = Keep session
Selection Text: XTEST = Test run
Title: Processing of Incoming Data from OSR or Post and Bank ISR
Text Symbol: 103 = Doc.Date
Text Symbol: 104 = Typ
Text Symbol: 105 = Amount
Text Symbol: 106 = Curr.
Text Symbol: 107 = Cust.
Text Symbol: 108 = Status
Text Symbol: 110 = Cleared
Text Symbol: 111 = Posted
Text Symbol: 112 = Reference No.
Text Symbol: 113 = Dup. Payment
Text Symbol: 114 = CoCd
Text Symbol: 116 = File to be Import.
Text Symbol: 117 = Bank ISR Procedure
Text Symbol: 118 = File Processing
Text Symbol: 119 = Inpayment Fees
Text Symbol: 120 = Financial Institution Reference
Text Symbol: 000 = General
Text Symbol: 001 = ISR/OSR Selection
Text Symbol: 002 = OSR





Text Symbol: 003 = ISR
Text Symbol: 004 = House bank
Text Symbol: 005 = Debit posting key
Text Symbol: 006 = Pmt meth
Text Symbol: 007 = Credit posting key
Text Symbol: 008 = Keep session
Text Symbol: 009 = Test run
Text Symbol: 010 = Line
Text Symbol: 011 = ISR/OSR-Select.
Text Symbol: 020 = OSR subscriber
Text Symbol: 022 = ISR Subscriber No:
Text Symbol: 023 = Leading Company Code:
Text Symbol: 024 = Total credit memos
Text Symbol: 025 = Total debit memos
Text Symbol: 026 = Total adjustments
Text Symbol: 027 = Total reversals
Text Symbol: 028 = Grand total
Text Symbol: 030 = Credit memo
Text Symbol: 031 = Debit memo
Text Symbol: 032 = Reversal
Text Symbol: 033 = Adjustment
Text Symbol: 034 = Clear
Text Symbol: 040 = Enter following data for OSR procedures:
Text Symbol: 041 = For ISR Procedure: Search Procedure Selection
Text Symbol: 050 = Total calculated
Text Symbol: 051 = is not equal to totals record total
Text Symbol: 052 = is equal to totals record total
Text Symbol: 055 = Microfilm
Text Symbol: 100 = Itm
Text Symbol: 101 = Doc.no.
Text Symbol: 102 = Check no


INCLUDES used within this REPORT RFESR000

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:

KD_GET_FILENAME_ON_F4 CALL FUNCTION 'KD_GET_FILENAME_ON_F4' EXPORTING static = 'X' CHANGING file_name = file_in.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = gc_filename
CHANGING PHYSICAL_FILENAME = file_in EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3.

GUI_UPLOAD





CALL FUNCTION 'GUI_UPLOAD' EXPORTING * filename = disk_datei filename = uc_filename filetype = 'ASC' TABLES data_tab = disk_tab EXCEPTIONS file_open_error = 1 file_read_error = 2.

CONVERT_YEAR_WITH_THRESHOLD CALL FUNCTION 'CONVERT_YEAR_WITH_THRESHOLD' EXPORTING input = numc02 threshold = 50 IMPORTING output = numc04.

FI_MESSAGE_INIT CALL FUNCTION 'FI_MESSAGE_INIT'.

FI_MESSAGE_COLLECT CALL FUNCTION 'FI_MESSAGE_COLLECT' EXPORTING i_fimsg = fimsg.

FI_MESSAGE_PRINT CALL FUNCTION 'FI_MESSAGE_PRINT' EXPORTING i_xskip = ' ' i_cemsg = 6 i_cwmsg = 3 i_comsg = 2.

POSTING_INTERFACE_DOCUMENT CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT' EXPORTING i_tcode = tcode * IMPORTING * E_SUBRC = SUBRC * E_MSGID = MSGID * E_MSGTY = MSGTY * E_MSGNO = MSGNO * E_MSGV1 = MSGV1 * E_MSGV2 = MSGV2 * E_MSGV3 = MSGV3 * E_MSGV4 = MSGV4 TABLES t_ftpost = ftpost t_fttax = fttax t_blntab = xblntab.

POSTING_INTERFACE_CLEARING CALL FUNCTION 'POSTING_INTERFACE_CLEARING' EXPORTING i_auglv = auglv i_tcode = tcode * IMPORTING * E_SUBRC = SUBRC * E_MSGID = MSGID * E_MSGTY = MSGTY * E_MSGNO = MSGNO * E_MSGV1 = MSGV1 * E_MSGV2 = MSGV2 * E_MSGV3 = MSGV3 * E_MSGV4 = MSGV4 TABLES t_ftpost = ftpost t_ftclear = ftclear t_fttax = fttax t_blntab = xblntab.

POSTING_INTERFACE_START CALL FUNCTION 'POSTING_INTERFACE_START' EXPORTING i_function = function i_group = i_mappe * I_HOLDDATE = DATUM i_keep = xkeep * I_MODE = MODE i_user = usnam.

POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING tcode = 'FCH6' TABLES dynprotab = cheque_bdcdata.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = g_repid i_structure_name = gc_structure is_layout = ls_layout it_fieldcat = lt_fieldcat it_sort = lt_sort i_default = 'X' "Note 890330 Changes i_save = 'A' "Note 890330 Changes is_variant = ls_is_variant "Note 890330 Changes it_events = lt_eventtab TABLES t_outtab = gt_list EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = g_repid i_structure_name = gc_structure CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_eventtab_list EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

REUSE_ALV_LIST_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' IMPORTING e_width = lv_width EXCEPTIONS no_infos = 1 program_error = 2 OTHERS = 3.

FI_MESSAGES_ALV CALL FUNCTION 'FI_MESSAGES_ALV' EXPORTING i_headline = lv_log_head is_layout = lv_layout_list.

KD_GET_FILENAME_ON_F4 * CALL FUNCTION 'KD_GET_FILENAME_ON_F4' * EXPORTING * STATIC = 'X' * CHANGING * FILE_NAME = FILE_IN.

GUI_UPLOAD * CALL FUNCTION 'GUI_UPLOAD' * EXPORTING ** filename = disk_datei * FILENAME = UC_FILENAME * FILETYPE = 'ASC' * TABLES * DATA_TAB = DISK_TAB * EXCEPTIONS * FILE_OPEN_ERROR = 1 * FILE_READ_ERROR = 2.

CONVERT_YEAR_WITH_THRESHOLD * CALL FUNCTION 'CONVERT_YEAR_WITH_THRESHOLD' * EXPORTING * INPUT = NUMC02 * THRESHOLD = 50 * IMPORTING * OUTPUT = NUMC04.

FI_MESSAGE_INIT * CALL FUNCTION 'FI_MESSAGE_INIT'.

FI_MESSAGE_COLLECT * CALL FUNCTION 'FI_MESSAGE_COLLECT' * EXPORTING * I_FIMSG = FIMSG.




FI_MESSAGE_PRINT * CALL FUNCTION 'FI_MESSAGE_PRINT' * EXPORTING * I_XSKIP = ' ' * I_CEMSG = 6 * I_CWMSG = 3 * I_COMSG = 2.

POSTING_INTERFACE_DOCUMENT * CALL FUNCTION 'POSTING_INTERFACE_DOCUMENT' * EXPORTING * I_TCODE = TCODE ** IMPORTING ** E_SUBRC = SUBRC ** E_MSGID = MSGID ** E_MSGTY = MSGTY ** E_MSGNO = MSGNO ** E_MSGV1 = MSGV1 ** E_MSGV2 = MSGV2 ** E_MSGV3 = MSGV3 ** E_MSGV4 = MSGV4 * TABLES * T_FTPOST = FTPOST * T_FTTAX = FTTAX * T_BLNTAB = XBLNTAB.

POSTING_INTERFACE_CLEARING * CALL FUNCTION 'POSTING_INTERFACE_CLEARING' * EXPORTING * I_AUGLV = AUGLV * I_TCODE = TCODE ** IMPORTING ** E_SUBRC = SUBRC ** E_MSGID = MSGID ** E_MSGTY = MSGTY ** E_MSGNO = MSGNO ** E_MSGV1 = MSGV1 ** E_MSGV2 = MSGV2 ** E_MSGV3 = MSGV3 ** E_MSGV4 = MSGV4 * TABLES * T_FTPOST = FTPOST * T_FTCLEAR = FTCLEAR * T_FTTAX = FTTAX * T_BLNTAB = XBLNTAB.

POSTING_INTERFACE_START * CALL FUNCTION 'POSTING_INTERFACE_START' * EXPORTING * I_FUNCTION = FUNCTION * I_GROUP = I_MAPPE ** I_HOLDDATE = DATUM * I_KEEP = XKEEP ** I_MODE = MODE * I_USER = USNAM.

POSTING_INTERFACE_END * CALL FUNCTION 'POSTING_INTERFACE_END'.

CH_ESR_SEARCH * CALL FUNCTION 'CH_ESR_SEARCH' * EXPORTING * REFNR = TEST_REFNR * WRBTR = TEST_WRBTR * VALUT = TEST_DATE * BUKRS = WA_T049E-BUKRS ** BUKRS = BUKRS * TABLES * ITEMTAB = SEARCHTAB.

BDC_INSERT * CALL FUNCTION 'BDC_INSERT' * EXPORTING * TCODE = 'FCH6' * TABLES * DYNPROTAB = CHEQUE_BDCDATA.

REUSE_ALV_LIST_DISPLAY * CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' * EXPORTING * I_CALLBACK_PROGRAM = g_repid * I_STRUCTURE_NAME = gc_structure * IS_LAYOUT = ls_layout * IT_FIELDCAT = lt_fieldcat * IT_SORT = lt_sort * IT_EVENTS = lt_eventtab * TABLES * T_OUTTAB = GT_LIST * EXCEPTIONS * PROGRAM_ERROR = 1 * OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE * CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' * EXPORTING * I_PROGRAM_NAME = g_repid * i_structure_name = gc_structure * CHANGING * ct_fieldcat = xt_fieldcat * EXCEPTIONS * inconsistent_interface = 1 * program_error = 2 * OTHERS = 3.

REUSE_ALV_EVENTS_GET * CALL FUNCTION 'REUSE_ALV_EVENTS_GET' * EXPORTING * i_list_type = 0 * IMPORTING * et_events = xt_eventtab_list * EXCEPTIONS * list_type_wrong = 1 * OTHERS = 2.

REUSE_ALV_LIST_LAYOUT_INFO_GET * CALL FUNCTION 'REUSE_ALV_LIST_LAYOUT_INFO_GET' * IMPORTING * E_WIDTH = LV_WIDTH * EXCEPTIONS * NO_INFOS = 1 * PROGRAM_ERROR = 2 * OTHERS = 3.

FI_MESSAGES_ALV * CALL FUNCTION 'FI_MESSAGES_ALV' * EXPORTING * I_HEADLINE = lv_log_head * IS_LAYOUT = lv_layout_list.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_list_top_of_page.

CH_ESR_SEARCH CALL FUNCTION 'CH_ESR_SEARCH' EXPORTING refnr = test_refnr wrbtr = test_wrbtr valut = test_date bukrs = wa_t049e-bukrs * BUKRS = BUKRS TABLES itemtab = searchtab.



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