RFDKLI40_NACC is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Credit Overview You can generate a credit data list to display an overview of the customer master data needed for credit management for a customer...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 RFDKLI40_NACC into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: AEDAT = Changed On
Selection Text: AENAM = Changed By
Selection Text: AETXT = Text Changed On
Selection Text: CASHD = Date of Last Payment
Selection Text: CRBLB = Locked
Selection Text: CTLPC = Risk Category
Selection Text: DBPAY = Payment Index
Selection Text: DBRTG = Rating
Selection Text: DELTA = Excess Amount
Selection Text: DTREV = Last Internal Check
Selection Text: GRUPP = Group
Selection Text: HORDA = Date of Credit Horizon
Selection Text: KDGRP = Customer Group
Selection Text: KKBER = Credit Control Area
Selection Text: KLIMK = Credit Limit Data
Selection Text: KLPRZ = Credit Limit Used
Selection Text: KONTO = Credit Account
Selection Text: KRAUS = Information Number
Selection Text: NXTRV = Next Check
Selection Text: ZLAUF = Line Layout Variant
Selection Text: XSKAL = Scaling Factor
Selection Text: XKOMM = Communication Data
Selection Text: XC70 = Payment History
Selection Text: XC60 = Open Items
Selection Text: XC50 = Special G/L Balance
Selection Text: XC40 = Texts
Selection Text: XC30 = Days in Arrears
Selection Text: XC20 = Dunning Data
Selection Text: XC10 = Balance
Selection Text: XA20 = Central Data
Selection Text: XA10 = Address Lines
Selection Text: WAERS = Currency
Selection Text: VARNR = Line Layout Variant
Selection Text: SRVAR = Sort Version
Selection Text: SBGRP = Clerk Group
Selection Text: SBDAT = Reference Date
Selection Text: REVDB = Last External Check
Selection Text: RASID = Interval
INCLUDE RFDKLID0_NACC.
INCLUDE MF05IND1. " ZL.AUFBAU EINZELP.
INCLUDE MF05IND4. " ZL.AUFBAU KNKK-DATEN
No SAP DATABASE tables are accessed within this REPORT code!
CREDITCONTROL_AUTHORITY_KNKA CALL FUNCTION 'CREDITCONTROL_AUTHORITY_KNKA' EXPORTING I_ACTVT = '03' EXCEPTIONS NO_AUTHORITY = 1.
OPEN_FI_PERFORM_00001540_E CALL FUNCTION 'OPEN_FI_PERFORM_00001540_E' IMPORTING E_ABEZ = OFIWA-XTEXT TABLES T_FTEXTS = FTEXTSTAB.
FI_CM_GET_COMP_CODES CALL FUNCTION 'FI_CM_GET_COMP_CODES' EXPORTING I_KKBER = KKSTAB-KKBER TABLES T_BUKTAB = TCMATAB EXCEPTIONS ERROR_MESSAGE = 1.
FI_COMPANY_CODE_DATA CALL FUNCTION 'FI_COMPANY_CODE_DATA' EXPORTING I_BUKRS = TCMTAB-BUKRS IMPORTING E_T001 = T001 EXCEPTIONS ERROR_MESSAGE = 1.
FI_PERIOD_DETERMINE CALL FUNCTION 'FI_PERIOD_DETERMINE' EXPORTING I_BUDAT = P03_BUDAT I_PERIV = T001-PERIV * I_BUKRS = T001-BUKRS I_GJAHR = P03_GJAHR I_MONAT = P03_MONAT IMPORTING E_GJAHR = P03_GJAHR E_MONAT = P03_MONAT.
CALL FUNCTION 'CREDITCONTROL_AUTHORITY_KNKK' EXPORTING I_ACTVT = '03' I_KKBER = KNKK-KKBER EXCEPTIONS INPUT_MISSING = 1 NO_AUTHORITY = 2.
SD_CREDIT_EXPOSURE CALL FUNCTION 'SD_CREDIT_EXPOSURE' EXPORTING FLAG_OPEN_DELIVERY = 'X' FLAG_OPEN_INVOICE = 'X' FLAG_OPEN_ORDER = 'X' HORIZON_DATE = HORDA KKBER = KNKK-KKBER KNKLI = KNKK-KNKLI * T014 = ' ' IMPORTING OPEN_DELIVERY = S067-OLIKW OPEN_INVOICE = S067-OFAKW OPEN_ORDER = S066-OEIKW.
CUSTOMER_DSO_CALCULATION CALL FUNCTION 'CUSTOMER_DSO_CALCULATION' EXPORTING I_KKBER = IKNKK-KKBER I_KUNNR = IKNKK-KUNNR I_ANZBUPER = T000CM-DSOPP I_XCHILDS = T000CM-DSOCH I_ACTBALANCE = T000CM-DSOAB IMPORTING E_DSOIN = RF02L-DSOIN EXCEPTIONS ERROR_MESSAGE = 1.
CREDITCONTROL_AUTH_KNKK_BED CALL FUNCTION 'CREDITCONTROL_AUTH_KNKK_BED' EXPORTING I_ACTVT = '03' I_BRGRU = KNA1-BEGRU EXCEPTIONS NO_AUTHORITY = 1 OTHERS = 2.
ADDRESS_INTO_PRINTFORM CALL FUNCTION 'ADDRESS_INTO_PRINTFORM' EXPORTING ADRSWA_IN = ADRS IMPORTING ADRSWA_OUT = ADRS.
CUSTOMER_OPEN_ITEMS CALL FUNCTION 'CUSTOMER_OPEN_ITEMS' EXPORTING KUNNR = KBITAB-KUNNR BUKRS = BUKTAB-BUKRS KKBER = space STIDA = STIDA TABLES T_POSTAB = POSTAB EXCEPTIONS NO_OPEN_ITEMS = 4.
CUSTOMER_OPEN_ITEMS CALL FUNCTION 'CUSTOMER_OPEN_ITEMS' EXPORTING KUNNR = KBITAB-KUNNR BUKRS = BUKTAB-BUKRS KKBER = KBITAB-KKBER STIDA = STIDA TABLES T_POSTAB = POSTAB EXCEPTIONS NO_OPEN_ITEMS = 4.
SORT_VARIANT_DISPLAY CALL FUNCTION 'SORT_VARIANT_DISPLAY' EXPORTING PROGN = T021M-PROGN ANWND = T021M-ANWND IMPORTING SRVAR = SRVAR.
LINE_ITEM_DISPLAY CALL FUNCTION 'LINE_ITEM_DISPLAY' EXPORTING KOART = 'D' LSTCL = '2' IMPORTING VARNR = VARNR.
LINE_ITEM_DISPLAY CALL FUNCTION 'LINE_ITEM_DISPLAY' EXPORTING LSTCL = 'C' IMPORTING VARNR = ZLAUF.
SORT_VARIANT_DISPLAY CALL FUNCTION 'SORT_VARIANT_DISPLAY' EXPORTING ANWND = 'KLI40' PROGN = 'RFDKLI*' IMPORTING SRBEZ = T021N-SRBEZ SRVAR = SRVARNEW EXCEPTIONS NOTHING_FOUND = 02.
LINE_ITEM_DISPLAY CALL FUNCTION 'LINE_ITEM_DISPLAY' EXPORTING KOART = ' ' LSTCL = 'C' IMPORTING VARNR = ZLAUFNEW.
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 RFDKLI40_NACC or its description.