SAP Reports / Programs

RFFDKU00 SAP ABAP Report - Transfer Open Item Accounts to Cash Management







RFFDKU00 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program sets up the Cash Management tables FDSR and FDSB with the open items from the customer and vendor accounts and the G/L accounts managed on an open item basis...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 RFFDKU00 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

OT30 - Current Account


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 RFFDKU00. "Basic submit
SUBMIT RFFDKU00 AND RETURN. "Return to original report after report execution complete
SUBMIT RFFDKU00 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: S_SAKNR = G/L Account
Selection Text: S_PYORD = Payment Order Key No.
Selection Text: S_PRKEY = Payment Request Key No.
Selection Text: S_LIFNR = Vendor
Selection Text: S_KUNNR = Customer
Selection Text: S_KOART = Account Type
Selection Text: S_GJAHR = Fiscal Year
Selection Text: S_BUKRS = Company Code
Selection Text: S_BELNR = Document Number
Selection Text: P_TEST = Test Run
Selection Text: P_ALEUP = D .
Title: Transfer Open Item Accounts to Cash Management
Text Symbol: 300 = Error during update of document &BELNR, line &BUZEI, CC &BUKRS, FY &GJAHR
Text Symbol: 242 = or
Text Symbol: 241 = Cash Management not activated in the specified company codes
Text Symbol: 240 = You have no authorization to create data in FDSB or FDSR for the specified company codes
Text Symbol: 238 = You have no authorization to create data in FDSB or FDSR for business area &GSBER
Text Symbol: 236 = You have no authorization to create data in FDSB or FDSR for company code &BUKRS
Text Symbol: 234 = Company code &BUKRS is being edited
Text Symbol: 232 = In T001, entry for company code &BUKRS is missing
Text Symbol: 229 = account type &KOART (document &BELNR, line &BUZEI, CC &BUKRS, FY &GJAHR)
Text Symbol: 228 = Level &EBENE (T036) per source symbol (T039) invalid for
Text Symbol: 226 = In T042, entry for CC &BUKRS is missing
Text Symbol: 224 = In T039, source symbol is missing for level &EBENE from T036
Text Symbol: 222 = In T036, level &EBENE is missing for document &BELNR (CC &BUKRS, FY &GJAHR)
Text Symbol: 220 = Group &GRUPP for document &BELNR (CC &BUKRS, FY &GJAHR) missing from T035
Text Symbol: 218 = Document line is skipped
Text Symbol: 216 = Document line &BUZEI from document &BELNR not found (CC &BUKRS, FY &GJAHR)
Text Symbol: 214 = All document lines of this document are skipped
Text Symbol: 213 = Document header from document &BELNR BK &BUKRS GJ &GJAHR not found (parked document)
Text Symbol: 212 = Document header of document &BELNR CC &BUKRS FY &GJAHR not found
Text Symbol: 210 = Group &GRUPP is missing in T035 for account &KTNRB in CC &BUKRS
Text Symbol: 208 = All documents of account &KTNRB in CC &BUKRS skipped
Text Symbol: 206 = Account &KTNRB in CC &BUKRS not found
Text Symbol: 204 = G/L account lines are being edited
Text Symbol: 202 = Vendor lines are being edited
Text Symbol: 200 = Customer lines are being edited
Text Symbol: 100 = Selections





Text Symbol: 002 = End of Test Run
Text Symbol: 001 = End of Processing


INCLUDES used within this REPORT RFFDKU00

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:

CASH_FORECAST_DET_T034_FILLED call function 'CASH_FORECAST_DET_T034_FILLED' importing ife_x_t034_filled = g_x_t034_filled.

FI_PAYRQ_CROSS_COUNTRY_RESTORE call function 'FI_PAYRQ_CROSS_COUNTRY_RESTORE' changing c_payrq = payrq.

AC_DOCUMENT_PARKING_NO_UPDATE call function 'AC_DOCUMENT_PARKING_NO_UPDATE' importing e_parking_no_update = parking_no_update-flag.

CASH_FORECAST_PR_CHECK call function 'CASH_FORECAST_PR_CHECK' tables tab_cpayrq_new = itab_cpayrq.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = 'S' i_saknr_xopvw = itab_skb1-xopvw importing e_x_build_up_cm = waxfdok.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = itab_cpayrq-koart "D/K * i_saknr_xopvw = importing e_x_build_up_cm = waxfdok.

CASH_FORECAST_PR_POST call function 'CASH_FORECAST_PR_POST' in update task tables tab_cpayrq_new = tab_cpayrq.

CASH_FORECAST_PR_POST call function 'CASH_FORECAST_PR_POST' in update task tables tab_cpayrq_new = tab_cpayrq.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = bseg-koart * Nur für Koart 'S' relevant und dann ist es hier * immer 'X', da nur solche Belegzeilen * vom RFFDKU00 bearbeitet werden i_saknr_xopvw = 'X' importing e_x_build_up_cm = waxfdok.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = 'D' importing e_x_build_up_cm = waxfdok.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = 'K' importing e_x_build_up_cm = waxfdok.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = 'S' * ist hier immer 'X', da nur solche Belegzeilen * vom RFFDKU00 bearbeitet werden i_saknr_xopvw = 'X' importing e_x_build_up_cm = waxfdok.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = bseg-koart * nur für bseg-koart 'S' relevant und dann * ist es hier immer 'X', da nur solche Belegzeilen * vom RFFDKU00 bearbeitet werden i_saknr_xopvw = 'X' importing e_x_build_up_cm = waxfdok.

OPEN_FI_PERFORM_00005011_P call function 'OPEN_FI_PERFORM_00005011_P' exporting i_chgtype = 'U' i_origin = 'RFFDKU00 UPDATE_BSEG' i_tabname = 'BSEG' i_structure = bseg exceptions error = 0 "set to zero to avoid problems others = 0. "with the next if-statement

CASH_FORECAST_SUMMARY_REC_UPD

CASH_FORECAST_SUMMARY_REC_UPD * CALL FUNCTION 'CASH_FORECAST_SUMMARY_REC_UPD' call function 'CASH_FORECAST_SUMMARY_REC_UPD' in update task tables tab_rf40s = vbtab tab_fdfiep = it_fdfiep.

CASH_FORECAST_SUMMARY_REC_UPD

CASH_FORECAST_SUMMARY_REC_UPD * CALL FUNCTION 'CASH_FORECAST_SUMMARY_REC_UPD' call function 'CASH_FORECAST_SUMMARY_REC_UPD' in update task tables tab_rf40s = vbtab tab_fdfiep = it_fdfiep.






FI_PAYRQ_CROSS_COUNTRY_RESTORE call function 'FI_PAYRQ_CROSS_COUNTRY_RESTORE' changing c_payrq = payrq.

CASH_FORECAST_PR_CHECK call function 'CASH_FORECAST_PR_CHECK' tables tab_cpayrq_new = itab_cpayrq.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = 'S' i_saknr_xopvw = itab_skb1-xopvw importing e_x_build_up_cm = waxfdok.

CASH_FORECAST_PR_POST call function 'CASH_FORECAST_PR_POST' in update task tables tab_cpayrq_new = tab_cpayrq.

CASH_FORECAST_BUILD_UP_RESTRIC call function 'CASH_FORECAST_BUILD_UP_RESTRIC' exporting i_fdbuildup = p_restr i_koart = 'S' i_saknr_xopvw = itab_skb1-xopvw importing e_x_build_up_cm = waxfdok.

CASH_FORECAST_SUMMARY_REC_UPD

CASH_FORECAST_SUMMARY_REC_UPD * CALL FUNCTION 'CASH_FORECAST_SUMMARY_REC_UPD' call function 'CASH_FORECAST_SUMMARY_REC_UPD' in update task tables tab_rf40s = vbtab.

FI_IDOC_PREPARE call function 'FI_IDOC_PREPARE' tables t_bkpf = l_t_bkpf t_bseg = l_t_bseg.

CASH_FORECAST_ALE_CHECK_IF_REL call function 'CASH_FORECAST_ALE_CHECK_IF_REL' exporting i_bkpf_extract = l_st_bkpf_extract i_bseg_extract = l_st_bseg_extract i_x_dialog = 'X' importing e_x_ale_relevant = st_t_ale-xale. "X-falls per ALE versendet

FI_FC_GET_PARAMETERS_CC call function 'FI_FC_GET_PARAMETERS_CC' exporting i_bukrs = u_payrq-bukrs importing e_s_t042 = l_s_t042 exceptions entry_not_found = 1 others = 2.

CASH_FORECAST_LEVEL_AND_DATE call function 'CASH_FORECAST_LEVEL_AND_DATE' exporting i_bkpf = bkpf i_bseg = bseg i_t001 = t001 payment_history = wazv importing e_bseg = bseg exceptions not_found_t035 = 1 not_found_t036 = 2 not_found_t039 = 3 not_found_t042 = 4 wrong_level = 5.

CASH_FORECAST_AMOUNT call function 'CASH_FORECAST_AMOUNT' exporting i_bkpf = bkpf i_bseg = bseg i_t001 = t001 i_xposting = space "da vorerfasster Beleg importing e_bseg = bseg e_fdwaers = l_fdwaers.

CASH_FORECAST_AMOUNT call function 'CASH_FORECAST_AMOUNT' exporting i_bkpf = bkpf i_bseg = bseg i_t001 = t001 i_xposting = 'X' "gebuchter Beleg importing e_bseg = bseg e_fdwaers = l_fdwaers.

CASH_FORECAST_DOC_SPLIT_RLVNT call function 'CASH_FORECAST_DOC_SPLIT_RLVNT' exporting ifi_bukrs = u_bukrs importing ife_x_no_ds = l_x_no_ds exceptions exc_newgl_not_active = 1 exc_doc_split_not_active_in_fi = 2 others = 3.

FI_DOC_TO_ACC_TRANSFORM call function 'FI_DOC_TO_ACC_TRANSFORM' tables t_bkpf = lt_bkpf t_bseg = lt_bseg t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr.

FAGL_SPL_ACCIT_GET call function l_funcname "call function 'FAGL_SPL_ACCIT_GET' exporting id_posnr_max = l_posnr ib_bal_items = 'X' importing eb_splexist = l_splexist changing ct_acchd = lt_acchd_spl ct_accit = lt_accit_spl ct_acccr = lt_acccr_spl.

CASH_FORECAST_DOC_SPLIT_ITEMS call function 'CASH_FORECAST_DOC_SPLIT_ITEMS' tables t_acchd = lt_acchd t_accit = lt_accit t_acccr = lt_acccr t_accit_spl = lt_accit_spl t_acccr_spl = lt_acccr_spl.

CASH_FORECAST_DOC_SPLIT_POST call function 'CASH_FORECAST_DOC_SPLIT_POST' exporting i_awtyp = lt_acchd-awtyp i_awref = lt_acchd-awref i_aworg = lt_acchd-aworg i_awsys = lt_acchd-awsys i_x_docno_known = gc_x.

CASH_FORECAST_CHECK_LEVEL_GRP call function 'CASH_FORECAST_CHECK_LEVEL_GRP' exporting fdlev = l_t_fica_sk-fdlev koart = 'S'.

CASH_FORECAST_SUMMARY_REC_UPD

CASH_FORECAST_SUMMARY_REC_UPD



* CALL FUNCTION 'CASH_FORECAST_SUMMARY_REC_UPD' call function 'CASH_FORECAST_SUMMARY_REC_UPD' in update task tables tab_rf40s = vbtab.

CASH_FORECAST_SUMMARY_REC_UPD

CASH_FORECAST_SUMMARY_REC_UPD * CALL FUNCTION 'CASH_FORECAST_SUMMARY_REC_UPD' call function 'CASH_FORECAST_SUMMARY_REC_UPD' in update task tables tab_rf40s = vbtab.

CASH_FORECAST_CHECK_LEVEL_GRP call function 'CASH_FORECAST_CHECK_LEVEL_GRP' exporting fdgrp = l_t_fica_pk-fdgrp fdlev = l_t_fica_pk-fdlev koart = 'D'. "'D' oder 'K', ist egal

CASH_FORECAST_SUMMARY_REC_UPD

CASH_FORECAST_SUMMARY_REC_UPD * CALL FUNCTION 'CASH_FORECAST_SUMMARY_REC_UPD' call function 'CASH_FORECAST_SUMMARY_REC_UPD' in update task tables tab_rf40s = vbtab.

CASH_FORECAST_SUMMARY_REC_UPD

CASH_FORECAST_SUMMARY_REC_UPD * CALL FUNCTION 'CASH_FORECAST_SUMMARY_REC_UPD' call function 'CASH_FORECAST_SUMMARY_REC_UPD' in update task tables tab_rf40s = vbtab.

BAL_LOG_CREATE call function 'BAL_LOG_CREATE' exporting i_s_log = xs_log importing e_log_handle = es_log_handle exceptions log_header_inconsistent = 1 others = 2.

BAL_LOG_MSG_ADD_FREE_TEXT call function 'BAL_LOG_MSG_ADD_FREE_TEXT' exporting i_log_handle = is_log_handle i_msgty = iv_msgty i_probclass = iv_probclass i_text = iv_add_text exceptions log_not_found = 1 msg_inconsistent = 2 log_is_full = 3 others = 4.

BAL_GLB_MSG_DEFAULTS_GET call function 'BAL_GLB_MSG_DEFAULTS_GET' importing e_s_msg_defaults = ls_log_def.

BAL_DSP_LOG_PRINT call function 'BAL_DSP_LOG_PRINT' exporting i_s_list_append = gc_checked i_s_display_profile = gs_prof * i_t_log_handle = lt_log_hdl exceptions profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 others = 5.

BAL_DSP_PROFILE_SINGLE_LOG_GET call function 'BAL_DSP_PROFILE_SINGLE_LOG_GET' importing e_s_display_profile = gs_display_profile exceptions others = 1.

BAL_DSP_LOG_DISPLAY call function 'BAL_DSP_LOG_DISPLAY' exporting i_s_display_profile = gs_display_profile exceptions others = 1.



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