SAP Reports / Programs | Financial Accounting(FI) SAP FI

SAPF120R SAP ABAP Report - Main Program for SAPF120







SAPF120R is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The control report SAPF120R contains the processing logic of the report SAPF120...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 SAPF120R 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 SAPF120R. "Basic submit
SUBMIT SAPF120R AND RETURN. "Return to original report after report execution complete
SUBMIT SAPF120R 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: ALLGCOMM = Batch input session update
Selection Text: AUSFDATE = Calculation period
Selection Text: AUSFPLAN = Run schedule
Selection Text: BDC_KEEP = Hold processed session
Selection Text: BDC_USER = Batch input user name
Selection Text: BENUTZER = User
Selection Text: BLDAT = Document Date
Selection Text: BR_BELNR = ?...(BR_BELNR)
Selection Text: BR_BLART = ?...(BR_BLART)
Selection Text: BR_BUDAT = ?...(BR_BUDAT)
Selection Text: BR_BUKRS = ?...(BR_BUKRS)
Selection Text: BR_GJAHR = ?...(BR_GJAHR)
Selection Text: BR_XBLNR = ?...(BR_XBLNR)
Selection Text: BUDAT = Posting Date
Selection Text: HOLDDATE = Blocking date for BI session
Selection Text: MAPNAME = Batch input session name
Title: Main Program for SAPF120


INCLUDES used within this REPORT SAPF120R

INCLUDE RKASMAWF.


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:

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING FUNCNAME = 'FM00_CHECK_JFMIP_MODE' EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.

FM00_CHECK_JFMIP_MODE CALL FUNCTION 'FM00_CHECK_JFMIP_MODE' IMPORTING E_JFMIP_MODE_ACTIVE = JFM_MODE.

FI_PROC_CURR_CHANGE_ACTIVE CALL FUNCTION 'FI_PROC_CURR_CHANGE_ACTIVE' IMPORTING E_ACTIVE = pcccheck EXCEPTIONS NOT_ACTIVE = 1 ERROR_OCCURRED = 2 OTHERS = 3.

CURRENCY_GET_SUBSEQUENT cALL FUNCTION 'CURRENCY_GET_SUBSEQUENT' EXPORTING CURRENCY = bkpf-waers PROCESS = 'SAPF121' DATE = BKDF-DBATR BUKRS = bkpf-bukrs IMPORTING CURRENCY_NEW = new_waers.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING I_BUKRS = BKPF-BUKRS IMPORTING E_X001 = X001 EXCEPTIONS CURRENCY_2_NOT_DEFINED = 01 CURRENCY_3_NOT_DEFINED = 02.

FI_CURRENCY_INFORMATION CALL FUNCTION 'FI_CURRENCY_INFORMATION' EXPORTING I_BUKRS = BSEG-BUKRS IMPORTING E_X001 = X001 EXCEPTIONS CURRENCY_2_NOT_DEFINED = 01 CURRENCY_3_NOT_DEFINED = 02.

BDC_OPEN_GROUP CALL FUNCTION 'BDC_OPEN_GROUP' EXPORTING CLIENT = MANDT GROUP = GROUP USER = BI_USER KEEP = BDC_KEEP HOLDDATE = HOLDDATE DATFM = SY_DATFM DCPFM = SY_DCPFM.

BDC_CLOSE_GROUP CALL FUNCTION 'BDC_CLOSE_GROUP'.

NEXT_DYNPRO_SEARCH CALL FUNCTION 'NEXT_DYNPRO_SEARCH' EXPORTING I_BSCHL = *BSEG-BSCHL I_BUKRS = *BSEG-BUKRS I_TCODE = TCODE I_UMSKZ = *BSEG-UMSKZ I_WINFK = HWINFK * I_MWART = SPACE * I_MWSKZB = SPACE I_MWSKZS = MWSKZS * I_BSTAT = SPACE IMPORTING E_DYNNRA = HDYNNR1 E_MPOOL = HPROGN E_WINNRZ = HDYNNR2.

FI_TECH_ACCNO_CHECK CALL FUNCTION 'FI_TECH_ACCNO_CHECK' EXPORTING I_BANKN = *BSEC-BANKN IMPORTING E_XTECH = GX_TECH_BANKN.

FI_TECH_ACCNO_CHECK CALL FUNCTION 'FI_TECH_ACCNO_CHECK' EXPORTING I_BANKN = *BSEC-BANKN IMPORTING E_XTECH = GX_TECH_BANKN.

FI_CHECK_EXTENDED_WT CALL FUNCTION 'FI_CHECK_EXTENDED_WT' EXPORTING I_BUKRS = BKPF-BUKRS EXCEPTIONS COMPONENT_NOT_ACTIVE = 1 NOT_FOUND = 2 OTHERS = 3.

FI_POSTING_KEY_DATA CALL FUNCTION 'FI_POSTING_KEY_DATA' EXPORTING I_BSCHL = *bseg-bschl X_BSCHL_ONLY = 'X' IMPORTING E_xzahl = hxzahl.

RKE_CONVERT_PAOBJNR_BDCDATA CALL FUNCTION 'RKE_CONVERT_PAOBJNR_BDCDATA' EXPORTING BUKRS = *BSEG-BUKRS * KOKRS = I_COBL = HCOBL PAOBJNR = *BSEG-PAOBJNR TABLES I_BDCDATA = FTE EXCEPTIONS NO_ERKRS_FOUND = 1 PAOBJNR_WRONG = 2 OTHERS = 3.

BDC_INSERT CALL FUNCTION 'BDC_INSERT' EXPORTING TCODE = TCODE TABLES DYNPROTAB = DYNPROTAB.

FAGL_CHECK_GLFLEX_ACTIVE CALL FUNCTION 'FAGL_CHECK_GLFLEX_ACTIVE' EXPORTING id_bukrs = *bseg-bukrs IMPORTING e_glflex_active = lx_newgl.

FUNCTION_EXISTS CALL FUNCTION 'FUNCTION_EXISTS' EXPORTING FUNCNAME = 'SCMA_JOB_STARTED_FROM_SCMA' * IMPORTING * GROUP = * INCLUDE = * NAMESPACE = * STR_AREA = EXCEPTIONS FUNCTION_NOT_EXIST = 1 OTHERS = 2.

SCMA_JOB_STARTED_FROM_SCMA call function 'SCMA_JOB_STARTED_FROM_SCMA' exporting BEFORE_INIT = 'X' WF_WITEM = WF_WITEM importing E_SCMA = G_SCMA.

KPEP_MONI_INIT_RECORD





call function 'KPEP_MONI_INIT_RECORD' exporting ls_detail = ls_detail LS_WITEM = ls_witem * LS_APPL = * LD_WORKLIST_FLAG = ' ' importing ls_key = ls_key_static tables lt_selkrit = lt_selkrit lt_param = lt_param.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING * I_IN_UPDATE_TASK = I_SAVE_ALL = ' ' I_T_LOG_HANDLE = LT_LOG_HANDLE EXCEPTIONS LOG_NOT_FOUND = 1 SAVE_NOT_ALLOWED = 2 NUMBERING_ERROR = 3 OTHERS = 4.

KPEP_MONI_CLOSE_RECORD call function 'KPEP_MONI_CLOSE_RECORD' exporting ls_key = ls_key_static LS_MESSAGE = ls_message * LD_OBJECTS = * LS_EXT = * LS_RL = LS_SCMA_EVENT = ls_scma_event * TABLES * lt_spool = gt_spono changing ld_aplstat = ld_aplstat exceptions * NO_ID_GIVEN = 1 others = 0.

BAL_LOG_CREATE call function 'BAL_LOG_CREATE' EXPORTING i_s_log = l_s_log IMPORTING E_LOG_HANDLE = g_log_handle EXCEPTIONS LOG_HEADER_INCONSISTENT = 1 OTHERS = 2.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING I_LOG_HANDLE = g_log_handle I_S_MSG = l_s_msg * IMPORTING * E_S_MSG_HANDLE = * E_MSG_WAS_LOGGED = * E_MSG_WAS_DISPLAYED = EXCEPTIONS LOG_NOT_FOUND = 1 * MSG_INCONSISTENT = 2 * LOG_IS_FULL = 3 OTHERS = 4.

OPEN_FI_PERFORM_00000119_P CALL FUNCTION 'OPEN_FI_PERFORM_00000119_P' EXPORTING IV_PROCESS = process IV_DATE = BKDF-DBATR IV_TABNAME = 'BSEG' IV_FLDNAME = 'WRBTR' IS_LINE = bseg * IS_KNA1 = * IS_LFA1 = * IS_BSEC = IS_BKPF = bkpf * IS_T001 = * IV_NOCHECK = CHANGING CV_AMOUNT = *bseg-wrbtr CV_CURRENCY = *bkpf-waers.

OPEN_FI_PERFORM_00000119_P CALL FUNCTION 'OPEN_FI_PERFORM_00000119_P' EXPORTING IV_PROCESS = process IV_DATE = BKDF-DBATR IV_TABNAME = 'BSEG' IV_FLDNAME = 'PYAMT' IS_LINE = bseg * IS_KNA1 = * IS_LFA1 = * IS_BSEC = IS_BKPF = bkpf * IS_T001 = * IV_NOCHECK = CHANGING CV_AMOUNT = *bseg-pyamt CV_CURRENCY = *bseg-pycur.



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