SAP Reports / Programs | Financial Accounting | Accounts Receivable | Basic Functions(FI-AR-AR) SAP FI

RFCMCRCV SAP ABAP Report - Credit Management: Create A/R Summary







RFCMCRCV is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program creates A/R summary data within a control area per credit account...see full standard documentation available for this report. Also check out 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 RFCMCRCV into the relevant SAP transactions such as SE38 or SE80

Contribute (Add Comments)
Below is the basic information available for SAP report RFCMCRCV and is provided for your convenience to access as and when required. Although the 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 RFCMCRCV or its description.

ABAP code:

INCLUDES USED WITHIN REPORT:

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:

ALE_ASYNC_BAPI_GET_RECEIVER CALL FUNCTION 'ALE_ASYNC_BAPI_GET_RECEIVER' EXPORTING OBJECT = 'BUS1010' METHOD = 'REPLICATESTATUS' TABLES * RECEIVER_INPUT = RECEIVERS = TRECEIVERS FILTEROBJECT_VALUES = TFILTOBJ_VAL EXCEPTIONS ERROR_IN_FILTEROBJECTS = 1 ERROR_IN_ALE_CUSTOMIZING = 2 OTHERS = 3.

CUSTOMER_HIGHEST_DUNNING_LEVEL CALL FUNCTION 'CUSTOMER_HIGHEST_DUNNING_LEVEL' EXPORTING I_KKBER = WRKTAB-KKBER I_KUNNR = WRKTAB-KUNNR I_REGUL = REGUL I_DUNNG = '0' I_XCRCV = 'X' I_ERLTA = ERLTA I_ERLST = ERLST IMPORTING E_BUKRS = KNKKF1TAB-BUKRSM E_KUNNR = KNKKF1TAB-KUNNRM E_MABER = KNKKF1TAB-MABER E_MAHNS = KNKKF1TAB-MAHNS E_XDATAAKT = XDATAAKT EXCEPTIONS INVALID_CALL = 1 MISSING_KNB1 = 2 OTHERS = 3.

CUSTOMER_OPEN_ITEMS_STRUCTURE CALL FUNCTION 'CUSTOMER_OPEN_ITEMS_STRUCTURE' EXPORTING I_KKBER = WRKTAB-KKBER I_KUNNR = WRKTAB-KUNNR I_PDTOL = '000' I_REGUL = REGUL I_XCRCV = 'X' I_LOGSYS = LOGSYS I_TMSTMP = TMSTMP I_ERLTA = ERLTA I_ERLST = ERLST IMPORTING E_SFAEL = KNKKF1TAB-SFAEL * E_SUMOP = E_WAERS = KNKKF1TAB-WAERS E_XDATAAKT = XDATAAKT TABLES E_KNKKF2 = KNKKF2TAB EXCEPTIONS INVALID_CALL = 1 NO_BUKRS = 2 NO_ITEMS = 3 OTHERS = 4.

CUSTOMER_OLDEST_OPEN_ITEM CALL FUNCTION 'CUSTOMER_OLDEST_OPEN_ITEM' EXPORTING I_KKBER = WRKTAB-KKBER I_KUNNR = WRKTAB-KUNNR I_REGUL = REGUL I_XCRCV = 'X' I_ERLTA = ERLTA I_ERLST = ERLST IMPORTING E_BELNR = KNKKF1TAB-BELNR E_BUKRS = KNKKF1TAB-BUKRSOOI E_FAEDT = KNKKF1TAB-FAEDT E_GJAHR = KNKKF1TAB-GJAHR E_INFAE = KNKKF1TAB-INFAE E_KUNNR = KNKKF1TAB-KUNNROOI E_VERZN = KNKKF1TAB-VERZN E_WAERS = KNKKF1TAB-WAERSOOI E_WRBTR = KNKKF1TAB-WRBTR E_XDATAAKT = XDATAAKT EXCEPTIONS INVALID_CALL = 1 NO_BUKRS = 2 NO_ITEMS = 3 OTHERS = 4.

CUSTOMER_CONTROL_AREA_DATA CALL FUNCTION 'CUSTOMER_CONTROL_AREA_DATA' EXPORTING I_KUNNR = WRKTAB-KUNNR I_KKBER = WRKTAB-KKBER I_XCRCV = 'X' I_ERLTA = ERLTA I_ERLST = ERLST IMPORTING E_KNKK = KNKK E_XDATAAKT = XDATAAKT EXCEPTIONS NO_KNKK_DATA = 4 OTHERS = 5.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING MODE_RSTABLE = 'E' TABNAME = 'KNKKF1' VARKEY = L_VARKEY _SCOPE = 1 EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING MODE_RSTABLE = 'E' TABNAME = 'KNKKF2' VARKEY = L_VARKEY _SCOPE = 1 EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

UPDATE_CREDITVECTOR

< CALL FUNCTION 'UPDATE_CREDITVECTOR' IN UPDATE TASK TABLES T_KNKKF1U = KNKKF1U T_KNKKF1I = KNKKF1I T_KNKKF2D = KNKKF2D T_KNKKF2I = KNKKF2I.

CREDIT_ACCOUNT_CONV_SING_F_SAP CALL FUNCTION 'CREDIT_ACCOUNT_CONV_SING_F_SAP' EXPORTING * I_KNKKF1 = ALE_KNKKF1 I_KUNNR = WRKTAB-KUNNR I_KKBER = WRKTAB-KKBER * IMPORTING * CREDIT_ACCOUNT_DETAIL = ALE_BAPI_KNKKF1 TABLES CREDIT_ACCOUNT_DETAIL = ALE_BAPI_KNKKF1 CREDIT_ACCOUNT_OPEN_ITEMS = ALE_BAPI_KNKKF2 T_KNKKF2 = ALE_KNKKF2 T_KNKKF1 = ALE_KNKKF1.

ALE_CREDIT_ACCOUNT_REP_STATUS CALL FUNCTION 'ALE_CREDIT_ACCOUNT_REP_STATUS' EXPORTING CREDITCONTROLAREA = KKBTAB-KKBER TABLES CREDIT_ACCOUNT_OPEN_ITEMS = ALE_BAPIG_KNKKF2 CREDIT_ACCOUNT_DETAIL = ALE_BAPIG_KNKKF1 RECEIVERS = TRECEIVERS * COMMUNICATION_DOCUMENTS = EXCEPTIONS ERROR_CREATING_IDOCS = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

OWN_LOGICAL_SYSTEM_GET CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET' IMPORTING OWN_LOGICAL_SYSTEM = LOGSYS EXCEPTIONS OWN_LOGICAL_SYSTEM_NOT_DEFINED = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

CREDITCONTROL_READ_KNKKF1 CALL FUNCTION 'CREDITCONTROL_READ_KNKKF1' EXPORTING I_KUNNR = WRKTAB-KUNNR I_KKBER = WRKTAB-KKBER I_REGUL = 'X' I_LOGSYS = LOGSYS IMPORTING E_KNKKF1 = IKNKKF1 * TABLES * T_KNKKF2 = EXCEPTIONS DATA_NOT_AVAILABLE = 1 OTHERS = 2.

CREDITCONTROL_READ_KNKKF1 CALL FUNCTION 'CREDITCONTROL_READ_KNKKF1' EXPORTING I_KUNNR = WRKTAB-KUNNR I_KKBER = WRKTAB-KKBER I_REGUL = ' ' I_LOGSYS = LOGSYS IMPORTING E_KNKKF1 = IKNKKF1 * TABLES * T_KNKKF2 = EXCEPTIONS DATA_NOT_AVAILABLE = 1 OTHERS = 2.

CREDITCONTROL_ANALYSE_KNKKFI CALL FUNCTION 'CREDITCONTROL_ANALYSE_KNKKFI' EXPORTING I_PROTOCOL = SPACE TABLES T_RANGE_MANDT = RANGE_MANDT T_RANGE_LOGSYS = RANGE_LOGSYS.

CREDITCONTROL_DELETE_KNKKFI CALL FUNCTION 'CREDITCONTROL_DELETE_KNKKFI' EXPORTING I_PROTOCOL = SPACE I_UPDATE = 'X' TABLES T_RANGE_MANDT = RANGE_MANDT T_RANGE_LOGSYS = RANGE_LOGSYS T_RANGE_KKBER = RANGE_KKBER T_RANGE_KUNNR = RANGE_KUNNR.

BAL_LOG_CREATE CALL FUNCTION 'BAL_LOG_CREATE' EXPORTING i_s_log = ls_log IMPORTING e_log_handle = lv_log_handle EXCEPTIONS log_header_inconsistent = 1 OTHERS = 2.

BAL_LOG_MSG_ADD CALL FUNCTION 'BAL_LOG_MSG_ADD' EXPORTING i_log_handle = lv_log_handle i_s_msg = ls_msg EXCEPTIONS OTHERS = 1.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gc_repid is_layout = ls_layout it_fieldcat = lt_fieldcat it_events = lt_events TABLES t_outtab = gt_output_alv EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gc_repid i_structure_name = gc_output_struc CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.

BAL_DSP_PROFILE_STANDARD_GET CALL FUNCTION 'BAL_DSP_PROFILE_STANDARD_GET' IMPORTING e_s_display_profile = ls_display_profile.

BAL_DSP_LOG_DISPLAY CALL FUNCTION 'BAL_DSP_LOG_DISPLAY' EXPORTING i_s_display_profile = ls_display_profile EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.

BAL_DSP_LOG_PRINT CALL FUNCTION 'BAL_DSP_LOG_PRINT' EXPORTING i_s_list_append = gc_x i_s_display_profile = ls_display_profile EXCEPTIONS profile_inconsistent = 1 internal_error = 2 no_data_available = 3 no_authority = 4 OTHERS = 5.


Text pool values


Selection Text: ANZCUST = Number of customers
Selection Text: ERLST = Permitted age in hours
Selection Text: ERLTA = Permitted age in days
Selection Text: ERSTELLA = All payers
<
Selection Text: ERSTELLX = Current payer only
Selection Text: ERSTELOX = All (except current payer)
Selection Text: KKBER = Credit control area
Selection Text: KONTO = Customer
Selection Text: VERTA = All payers
Selection Text: VERTN = No ALE distribution
Selection Text: VERTOX = All (except current payer)
Selection Text: VERTX = Current payer only
Title: Credit Management: Create A/R Summary
Text Symbol: P02 = ALE distribution parameters
Text Symbol: P01 = Creation parameters
Text Symbol: AL2 = Log Text
Text Symbol: AL1 = Number of Customers
Text Symbol: 032 = No ALE distribution desired, missing logical system name is determined automatically: &
Text Symbol: 031 = Control area data not distributed
Text Symbol: 030 = No data was selected
Text Symbol: 029 = No A/R summary information created
Text Symbol: 028 = Log text
Text Symbol: 001 = Table KNKKF1 is currently blocked by another user
Text Symbol: 002 = System error blocking table KNKKF2
Text Symbol: 003 = Table KNKKF2 is currently blocked by another user
Text Symbol: 004 = System error blocking table KNKKF2
Text Symbol: 010 = Program started at:
Text Symbol: 011 = Start date
Text Symbol: 012 = Start time
Text Symbol: 013 = Stop date
Text Symbol: 014 = Stop time
Text Symbol: 015 = Time stamp set
Text Symbol: 016 = Logical system
Text Symbol: 017 = Number of customers for which FI status data was created:
Text Symbol: 018 = Control area
Text Symbol: 019 = Total
Text Symbol: 020 = Error determining dunning data
Text Symbol: 021 = Error determining open item data
Text Symbol: 022 = Error determining the oldest open item
Text Symbol: 023 = Error deteriming control area data
Text Symbol: 024 = Customer is not created in any company code of the control area
Text Symbol: 025 = Error during distribution of A/R summary information
Text Symbol: 026 = CCARA
Text Symbol: 027 = Cust.
<