SAP Reports / Programs

RFEBKAT3 SAP ABAP Report - Generate test data (IDoc)







RFEBKAT3 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program for Testing IDoc Settings for Bank Statement and for Account Balance (Polling Info)...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 RFEBKAT3 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 RFEBKAT3. "Basic submit
SUBMIT RFEBKAT3 AND RETURN. "Return to original report after report execution complete
SUBMIT RFEBKAT3 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: ANZAHL = Number of customer invoices
Selection Text: BUKRS = Company code
Selection Text: DATUM = Baseline date
Selection Text: DEBI1 = Customer 1
Selection Text: DEBI2 = Customer 2
Selection Text: DEBI3 = Customer 3
Selection Text: DEBI4 = Incorrect customer specs
Selection Text: DEBIERR = with incorrect customer
Selection Text: FUNCTION = Function (do not change)
Selection Text: HBKID = House bank (ID)
Selection Text: HKTID = Account (ID)
Selection Text: KTOADJ01 = Adjustment amount
Selection Text: KTOPRES1 = 1st Presentment Amount
Selection Text: KTOPRES2 = 2nd Presentment Amount
Selection Text: KTOTOTAL = Total Amount
Selection Text: MODE = Process mode (do not change)
Selection Text: SNDPORT = Sender port
Selection Text: SNDPRTN = Sender partner number
Selection Text: UPDATE = Update mode (do not change)
Selection Text: XACP = Account balance (Polling Info)
Selection Text: XBANK = Bank postings
Selection Text: XDET = Acct balance and transactions
Selection Text: XFIN = Bank statement
Selection Text: XIDOC = Create IDoc
Selection Text: XPAYP = With DME deposit
Title: Generate test data (IDoc)
Text Symbol: 169 = In account balance only (Polling Info)
Text Symbol: 168 = In bank statement only
Text Symbol: 167 = Bank statment and accont balance (Polling Info)
Text Symbol: 001 = Table KNBK contains no bank details for the customer
Text Symbol: 003 = IDocs created for bank statements
Text Symbol: 005 = Sales in acct statement
Text Symbol: 006 = No IDocs generated.
Text Symbol: 007 = Not in table T001
Text Symbol: 008 = Not in table T012
Text Symbol: 009 = Not in table T012K
Text Symbol: 010 = Bank and bank account in table T012K and T012 twice
Text Symbol: 011 = Account CoCd HBKID HKTID





Text Symbol: 012 = DME check deposit
Text Symbol: 013 = Check debit
Text Symbol: 014 = Check &RN&
Text Symbol: 015 = Check debit
Text Symbol: 016 = Check deposit
Text Symbol: 017 = Test co.
Text Symbol: 018 = Your &RN&
Text Symbol: 019 = From &RD&
Text Symbol: 020 = Pymt date &RD&
Text Symbol: 021 = Pymt no. &RN&
Text Symbol: 022 = Pymnt date Pymt no.
Text Symbol: 023 = &RD& &RN&
Text Symbol: 027 = There is no customer number in table KNA1
Text Symbol: 028 = DME deposit transfer
Text Symbol: 030 = Test bank
Text Symbol: 031 = Test site
Text Symbol: 032 = Electronic bank statement
Text Symbol: 033 = EB generated
Text Symbol: 034 = Enter customer 1-3
Text Symbol: 166 = IDoc


INCLUDES used within this REPORT RFEBKAT3

INCLUDE RFEBKAT9 .
INCLUDE: RFEBKATC, RFEBKATM. "HW661400
INCLUDE: RFEBKATC, RFEBKATM. "HW661400


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:

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 = blntab.

POSTING_INTERFACE_START CALL FUNCTION 'POSTING_INTERFACE_START' EXPORTING i_function = function i_mode = mode i_update = update i_user = p_user.

POSTING_INTERFACE_END CALL FUNCTION 'POSTING_INTERFACE_END'.

IDOC_INBOUND_WRITE_TO_DB CALL FUNCTION 'IDOC_INBOUND_WRITE_TO_DB' EXPORTING pi_status_message = i_edi_ds IMPORTING pe_idoc_number = docnum pe_state_of_processing = stproc pe_inbound_process_data = i_tede2 TABLES t_data_records = i_edi_dd CHANGING pc_control_record = i_edi_dc EXCEPTIONS idoc_not_saved = 1 OTHERS = 2.

IDOC_START_INBOUND CALL FUNCTION 'IDOC_START_INBOUND' EXPORTING pi_inbound_process_data = i_tede2 * PI_CALLED_ONLINE = ' ' * PI_DO_COMMIT = 'X' * PI_START_EVENT_ENABLED = 'X' * PI_NO_ALE = ' ' * PI_ORG_UNIT = ' ' TABLES t_control_records = t_edi_dc * T_DATA_RECORDS = EXCEPTIONS invalid_document_number = 1 error_before_call_application = 2 inbound_process_not_possible = 3 old_wf_start_failed = 4 wf_task_error = 5 serious_inbound_error = 6 OTHERS = 7.

EDI_DOCUMENT_TREE_DISPLAY CALL FUNCTION 'EDI_DOCUMENT_TREE_DISPLAY' EXPORTING docnum = docnum EXCEPTIONS no_idoc_found = 1 OTHERS = 2.

GET_BANKCODE CALL FUNCTION 'GET_BANKCODE' EXPORTING i_banks = banks i_bankl = bankl IMPORTING e_bkcode = bkcode EXCEPTIONS 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 RFEBKAT3 or its description.