RFCMCRCV SAP Report - Credit Management: Create A/R Summary
RFCMCRCV is a standard ABAP report available within your SAP system (depending on your version and release level). Below is the standard documentation available for this report and a few details of other objects it interacts with such as tables, function modules, includes etc. If you would like to see the full code listing simply enter RFCMCRCV into the relevant SAP transaction such as SE38 or SE80
Although this basic information may have limited use other that for reference, within the comments section below there is also an opportunity for anyone to add useful hints, information and links to existing content specific to this abap report. This page will therfore over time start to contain a useful amount of information that can be found quickly, simply by searching on the object name, RFCMCRCV.
SAP Documentation for program RFCMCRCV
Transaction Code: N/A
DESCRIPTION
This program creates A/R summary data> within a control area per
credit account. This data can then be used either within distributed
credit management, or in a non-distributed system.
Within the context of distributed credit management, a scenario is
supported that enables several decentralized SD systems to run active
credit management for a central FI system. To make this possible, this
program creates A/R summary data> in the FI system. This data
contains (in compressed form) all the credit management data on a
credit account required (in one control area) for credit checks in SD.
This program creates this FI status data and transmits it (if required)
to decentralized SD systems in accordance with the ALE customer
distribution model. This program is to be started periodically. The
decentralized SD systems receive the data and store it in the database.
The checks that are called up on a decentralized basis are not run on
the database (which is only a copy of local activities). Instead, they
run on the A/R summary data, meaning that all open items are checked.
For performance reasons, it may seem worthwhile running the SD credit
check on this A/R summary data in a non-distributed system. This is
because repeated reading of the results of such a check can be
substituted for repeated reading of open items.
PRECONDITION
A/R Summary data can be created for a customer if:
This customer is created in at least one company code of the
corresponding control area.
The credit management customer master table contains control area data
for this customer.
Your preparatory settings for credit management are maintained in
Customizing.
For a given customer, A/R summary data is transferred via ALE from
central FI to decentralized SD, if
the above requirements for its creation are met
the distributino via ALE you require is maintained in Customizing.
OUTPUT
If FI status data was created, this program tells you the number of
customers in the relevant credit control area for which the A/R summary
data was created. It also outputs the time stamp (creation time) and
the logical system stored (the system in which the FI status data was
created).
In the credit overview (RFDKLI40), the credit master sheet (RFDKLI41)
and in the menu "Customer Credit Management" you can display the
relevant A/R summary data.
Documentation extract taken from SAP system, Copyright (c) SAP AG
Includes used within report:
No INCLUDES are used within this report code!
Tables used within report and the associated select statement:
T014
SELECT * FROM T014 WHERE KKBER IN KKBER.
KNKK
SELECT * FROM KNKK WHERE KKBER IN KKBER
AND KUNNR IN KONTO.
KNKK
SELECT COUNT( * ) FROM KNKK WHERE KKBER = WRKTAB-KKBER
AND KNKLI = WRKTAB-KUNNR.
KNKKF1
SELECT SINGLE * FROM KNKKF1 WHERE LOGSYS = LOGSYS
AND KUNNR = WRKTAB-KUNNR
AND KKBER = WRKTAB-KKBER
AND REGUL = 'X'.
KNKKF1
SELECT SINGLE * FROM KNKKF1 WHERE LOGSYS = LOGSYS
AND KUNNR = WRKTAB-KUNNR
AND KKBER = WRKTAB-KKBER
AND REGUL = ' '.
KNKKF2
SELECT * FROM KNKKF2 WHERE LOGSYS = LOGSYS
AND KUNNR = WRKTAB-KUNNR
AND KKBER = WRKTAB-KKBER.
KNKKF2
SELECT * FROM KNKKF2 WHERE LOGSYS = LOGSYS
AND KUNNR = WRKTAB-KUNNR
AND KKBER = WRKTAB-KKBER
AND REGUL = ' '.
KNKKF2
SELECT * FROM KNKKF2 WHERE LOGSYS = LOGSYS
AND KUNNR = WRKTAB-KUNNR
AND KKBER = WRKTAB-KKBER
AND REGUL = 'X'.
t000cm.
SELECT SINGLE * FROM T000CM.
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.
|