SAP Reports / Programs | Public Sector Management | Funds Management | Funds Management-Specific Postings(PSM-FM-PO) SAP PSM

RFBIBLK1 SAP ABAP Report - Batch Input Documents







RFBIBLK1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The Batch Input report RFBIKRK0 serves to enter financial accounting documents and to clear open items...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 RFBIBLK1 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 RFBIBLK1. "Basic submit
SUBMIT RFBIBLK1 AND RETURN. "Return to original report after report execution complete
SUBMIT RFBIBLK1 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: FCR_PC = D .
Selection Text: FCR_NAME = D .
Selection Text: FCR_CRT = D .
Selection Text: BDC_USER = D .
Selection Text: BDC_SIZE = D .
Selection Text: BDC_NAME = D .
Selection Text: BDC_CRT = D .
Selection Text: XCALL = Call transaction .. using
Selection Text: UPDATE = Update session
Selection Text: PCUP = Read from PC
Selection Text: PCDOWN = Write to PC
Selection Text: PA_XPROT = Extended log
Selection Text: NAME_PRO = File path name
Selection Text: MAX_COMM = No. of docs per commit work
Selection Text: FL_CHECK = Check file only
Selection Text: DS_NAME = File path name
Selection Text: CALLMODE = Data transfer type
Selection Text: ANZ_MODE = Display mode
Title: Batch Input Documents
Text Symbol: 201 = Direct Input Log (Update Run)
Text Symbol: 200 = Direct Input Log (Update Run)
Text Symbol: 104 = for WRITE to UNIX File:
Text Symbol: 103 = In CLOSE from UNIX file:
Text Symbol: 102 = In OPEN from UNIX file:
Text Symbol: 101 = Authorization in UNIX file:
Text Symbol: 100 = Errors:
Text Symbol: 008 = Incorrect Clearing Requests
Text Symbol: 004 = The File Already Exists. Should the File be Overwritten?
Text Symbol: 003 = Parameters
Text Symbol: 002 = Entries for Generating Batch Input Session
Text Symbol: 001 = Entries for reading input file


INCLUDES used within this REPORT RFBIBLK1

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:

FM_PSO_BDC_CLOSE CALL FUNCTION 'FM_PSO_BDC_CLOSE'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING funcname = 'FI_TECH_ACCNO_CHECK' EXCEPTIONS function_not_exist = 1 OTHERS = 2.

NAMETAB_GET CALL FUNCTION 'NAMETAB_GET' EXPORTING langu = sy-langu tabname = table TABLES nametab = nametab EXCEPTIONS no_texts_found = 1.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname CHANGING physical_filename = ds_name EXCEPTIONS OTHERS = 1.

WS_QUERY CALL FUNCTION 'WS_QUERY' EXPORTING filename = ds_name query = 'FE' "abbrev. for 'file exists'

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = uc_filename filetype = 'ASC' * HAS_FIELD_SEPARATOR = ' ' * HEADER_LENGTH = 0 * READ_BY_LINE = 'X' * IMPORTING * FILELENGTH = * HEADER = TABLES data_tab = tfile EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.

FI_PSO_PAYAC07_READ3 CALL FUNCTION 'FI_PSO_PAYAC07_READ3' EXPORTING i_bukrs = l_f_bbkpf-bukrs IMPORTING e_payac07 = l_f_payac07.

FI_PSO_PAYAC05_READ CALL FUNCTION 'FI_PSO_PAYAC05_READ' EXPORTING i_bukfm = l_f_payac07-bukfm IMPORTING e_payac05 = l_f_payac05.

FI_PSO_DOC_DIRECT_INPUT CALL FUNCTION 'FI_PSO_DOC_DIRECT_INPUT' EXPORTING i_nodata = nodata i_intlot = l_intlot i_nrkrs_lot = l_nrrangenr i_lotkz_alloc = l_lotkz_alloc i_date_convert = 'X' i_no_fi_number = 'X' IMPORTING e_bukrs = l_bukrs e_gjahr = l_gjahr e_belnr = l_belnr e_lotkz = l_lotkz TABLES t_bbkpf = t_bbkpf t_bbseg = t_bbseg t_bbtax = t_bbtax EXCEPTIONS error_message = 01.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

BI_GET_STARTING_NUMBER CALL FUNCTION 'BI_GET_STARTING_NUMBER' IMPORTING jobid = jobid actual_number = startnum action = action EXCEPTIONS wrong_status_found = 02 not_found = 03.

BI_END_AKT_NUMBER CALL FUNCTION 'BI_END_AKT_NUMBER' EXPORTING jobname = jobid actual_number = all_commit number_of_errors = numerror "Anzahl Fehler seit dem letzem(!) COMMIT, wird im FB "kumuliert.

BI_CLOSE_ENTRY CALL FUNCTION 'BI_CLOSE_ENTRY' EXPORTING jobname = jobid EXCEPTIONS internal_error = 01 not_found = 02.

BI_CLOSE_ENTRY * call function 'BI_CLOSE_ENTRY' * exporting * jobname = jobid * exceptions * internal_error = 01 * not_found = 02.

NAMETAB_GET CALL FUNCTION 'NAMETAB_GET' EXPORTING langu = sy-langu tabname = tabname TABLES nametab = nametab EXCEPTIONS no_texts_found = 1.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = l_f_bal_s_log "LOG header IMPORTING e_log_handle = c_f_balloghndl "LOG handle EXCEPTIONS OTHERS = 1.

BAL_LOG_MSG_ADD





CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = u_f_balloghndl "LOG handle i_s_msg = l_f_bal_s_msg "Message EXCEPTIONS log_is_full = 1 OTHERS = 2.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_in_update_task = con_true i_save_all = con_true i_t_log_handle = l_t_bal_t_logh EXCEPTIONS OTHERS = 1.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = l_f_dspl_profile "Display profile i_t_log_handle = l_t_bal_t_logh "LOG handle EXCEPTIONS OTHERS = 1.

FM_PSO_BDC_CLOSE CALL FUNCTION 'FM_PSO_BDC_CLOSE'.

FM_PSO_BDC_GET_NAME CALL FUNCTION 'FM_PSO_BDC_GET_NAME' EXPORTING i_bdc_name = bdc_name IMPORTING e_bdc_name = l_bdc_name.

FM_PSO_BDC_CREATE CALL FUNCTION 'FM_PSO_BDC_CREATE' EXPORTING u_bdc_name = l_bdc_name u_dbc_user = bdc_user.

FM_PSO_BDC_FILL CALL FUNCTION 'FM_PSO_BDC_FILL' EXPORTING u_t_bbkpf = t_bbkpf u_t_bbseg = t_bbseg u_t_bbtax = t_bbtax u_reset_request = i_flg_reset_request.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname CHANGING physical_filename = l_fcr_name EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = fcr_name text_question = text-004 popup_type = 'ICON_MESSAGE_QUESTION' IMPORTING answer = l_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname CHANGING physical_filename = l_fcr_name EXCEPTIONS OTHERS = 1.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_fname CHANGING physical_filename = u_fcr_name EXCEPTIONS OTHERS = 1.

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING filename = l_filename TABLES data_tab = wa_t_fcr_all EXCEPTIONS OTHERS = 1.

CONVERSION_EXIT_ABPSP_INPUT CALL FUNCTION 'CONVERSION_EXIT_ABPSP_INPUT' EXPORTING input = bbseg_fm-projk IMPORTING output = bbseg_fm-projk EXCEPTIONS not_found = 1 OTHERS = 2.



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