SAP Reports / Programs

RFDM3000 SAP ABAP Report - Automatic Creation of Dispute Cases







RFDM3000 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for trados = fn Program RFDM3000 creates dispute cases for residual items arising during automatic incoming payments (account statement, lockbox), during check presentation, or in postprocessing...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 RFDM3000 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

FDM_AUTO_CREATE - Create Dispute Cases Automatically


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 RFDM3000. "Basic submit
SUBMIT RFDM3000 AND RETURN. "Return to original report after report execution complete
SUBMIT RFDM3000 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: SO_KUKEY = ID
Selection Text: PA_ANWND = D .
Selection Text: PA_CHECT = D .
Selection Text: PA_DESTN = D .
Selection Text: PA_LCKBX = D .
Selection Text: PA_ORIGN = D .
Selection Text: PA_TEST = D .
Selection Text: SO_AZDAT = D .
Selection Text: SO_AZNUM = D .
Selection Text: SO_BELNR = D .
Selection Text: SO_BLART = D .
Selection Text: SO_BLDAT = D .
Selection Text: SO_BSCHL = D .
Selection Text: SO_BUDAT = D .
Selection Text: SO_BUKRI = D .
Selection Text: SO_BUKRS = D .
Selection Text: SO_CPUDT = D .
Selection Text: SO_EMKEY = D .
Selection Text: SO_HBKID = D .
Selection Text: SO_HKTID = D .
Selection Text: SO_KUNNR = D .
Selection Text: SO_MABER = D .
Selection Text: SO_MANSP = D .
Selection Text: SO_MANST = D .
Selection Text: SO_REBZG = D .
Selection Text: SO_RSTGR = D .
Selection Text: SO_SHKZG = D .
Selection Text: SO_VBELN = D .
Selection Text: SO_XREF1 = D .
Selection Text: SO_XREF2 = D .
Selection Text: SO_XREF3 = D .
Selection Text: SO_ZLSCH = D .
Selection Text: SO_ESNUM = Single Record Number
Selection Text: SO_DMBTR = Amount
Selection Text: SO_BUZEI = D .
Selection Text: PA_WAERS = ... In Currency
Selection Text: PA_STTXT = Notes with Standard Text
Title: Automatic Creation of Dispute Cases





Text Symbol: 000 = General Selections
Text Symbol: 001 = Specifications for Automatic Incoming Payment
Text Symbol: 002 = Technical Selection
Text Symbol: 003 = Selections for Residual Item
Text Symbol: 005 = Output Control
Text Symbol: 006 = Grouping of Items for Dispute Cases
Text Symbol: 007 = Dispute Case per Residual Item
Text Symbol: 008 = Dispute Case per Reason Code
Text Symbol: 009 = Dispute Case per Incoming Payment
Text Symbol: 012 = Data in Dispute Case
Text Symbol: 013 = Dispute Case Was Created Automatically with Program &
Text Symbol: 014 = Notes in Dispute Case
Text Symbol: 015 = Further Selections
Text Symbol: 016 = Selections for Line Item
Text Symbol: 017 = Dispute Case per Line Item
Text Symbol: 100 = Payments
Text Symbol: 101 = Reason Code
Text Symbol: 102 = Reason Code Empty
Text Symbol: 103 = Check deposit trans.
Text Symbol: 104 = Lockbox
Text Symbol: 105 = Account Statement
Text Symbol: 106 = Items
Text Symbol: 107 = Customer
Text Symbol: 110 = Automatic Incoming Payment
Text Symbol: 111 = Open Items
Text Symbol: 120 = Selection for Automatic Incoming Payment
Text Symbol: 121 = Enhance Selection for Open Items


INCLUDES used within this REPORT RFDM3000

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:

GET_ACCESSIBILITY_MODE CALL FUNCTION 'GET_ACCESSIBILITY_MODE' IMPORTING accessibility = gc_accessibility EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_SPACE' text = text-110 info = text-120 IMPORTING result = gc_110 EXCEPTIONS OTHERS = 0.

ICON_CREATE CALL FUNCTION 'ICON_CREATE' EXPORTING name = 'ICON_SPACE' text = text-111 info = text-121 IMPORTING result = gc_111 EXCEPTIONS OTHERS = 0.

SELECT_OPTIONS_RESTRICT CALL FUNCTION 'SELECT_OPTIONS_RESTRICT' EXPORTING program = 'RFDM3000' restriction = ls_restrict EXCEPTIONS too_late = 1 repeated = 2 selopt_without_options = 3 selopt_without_signs = 4 invalid_sign = 5 empty_option_list = 6 invalid_kind = 7 repeated_kind_a = 8 OTHERS = 9.

BUKRS_AUTHORITY_CHECK





CALL FUNCTION 'BUKRS_AUTHORITY_CHECK' "n1270866 EXPORTING "n1270866 xdatabase = 'B' "n1270866 TABLES "n1270866 xbukreis = so_bukrs. "n1270866

BUKRS_AUTHORITY_CHECK CALL FUNCTION 'BUKRS_AUTHORITY_CHECK' "n1270866 EXPORTING "n1270866 xdatabase = 'B' "n1270866 TABLES "n1270866 xbukreis = so_bukri. "n1270866

FDM_AR_FEB_CHECK CALL FUNCTION 'FDM_AR_FEB_CHECK' EXPORTING i_febep = ps_febep IMPORTING e_febko = ls_febko e_open_item_found = l_item_found TABLES et_bseg_fdm = lt_bseg_fdm.

RS_TEXTPOOL_READ CALL FUNCTION 'RS_TEXTPOOL_READ' EXPORTING objectname = 'RFDM3000' action = 'SHOW' "n1083106 TABLES tpool = gt_textpool EXCEPTIONS OTHERS = 4.

FDM_AR_DOC_CHECK_DISPUTED CALL FUNCTION 'FDM_AR_DOC_CHECK_DISPUTED' EXPORTING i_bukrs = ls_bseg_fdm-bukrs i_belnr = ls_bseg_fdm-belnr i_gjahr = ls_bseg_fdm-gjahr i_buzei = ls_bseg_fdm-buzei IMPORTING e_is_disputed = l_is_disputed e_is_cust_disputed = l_is_cust_disputed e_is_solved = l_is_solved.

CONVERT_FOREIGN_TO_FOREIGN_CUR CALL FUNCTION 'CONVERT_FOREIGN_TO_FOREIGN_CUR' EXPORTING date = sy-datum from_amount = ls_bseg_fdm-wrbtr from_currency = ls_bseg_fdm-waers to_currency = pa_waers local_currency = ls_bseg_fdm-hwaer IMPORTING to_amount = l_amount EXCEPTIONS OTHERS = 4.

FDM_AR_DOC_DISPUTE_BUILD CALL FUNCTION 'FDM_AR_DOC_DISPUTE_BUILD' EXPORTING i_single = l_single i_dialog = space i_save = space it_attributes = lt_attributes it_notes = lt_notes i_caller = '4' "automatic creation TABLES t_bseg_fdm = pt_bseg_fdm EXCEPTIONS no_items = 2 error_message = 4 OTHERS = 4.

FDM_AR_DISPUTE_DATA_SAVE CALL FUNCTION 'FDM_AR_DISPUTE_DATA_SAVE' EXPORTING i_no_rfc_test = pa_norfc EXCEPTIONS error_message = 4.

FDM_AR_DOC_DEQUEUE CALL FUNCTION 'FDM_AR_DOC_DEQUEUE'.

FDM_AR_DISPUTE_DATA_GET * CALL FUNCTION 'FDM_AR_DISPUTE_DATA_GET' * IMPORTING * et_dispute_data = lt_dispute_data.

FDM_AR_DISPUTE_DATA_SET * CALL FUNCTION 'FDM_AR_DISPUTE_DATA_SET' * EXPORTING * it_dispute_data = lt_dispute_data.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = g_log_handle.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = ls_msg i_log_handle = g_log_handle.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_s_msg = ps_msg i_log_handle = g_log_handle.

BAL_DB_SAVE CALL FUNCTION 'BAL_DB_SAVE' EXPORTING i_t_log_handle = lt_log_handle.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXCEPTIONS no_data_available = 0.

CONVERT_ITF_TO_STREAM_TEXT CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT' TABLES itf_text = gt_linetab text_stream = gt_text_tab.

CONVERT_STREAM_TO_ITF_TEXT CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT' TABLES text_stream = gt_text_tab itf_text = gt_linetab.



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