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

RFDKLI40_NACC SAP ABAP Report - Credit Overview







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


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 RFDKLI40_NACC. "Basic submit
SUBMIT RFDKLI40_NACC AND RETURN. "Return to original report after report execution complete
SUBMIT RFDKLI40_NACC 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: 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





Title: Credit Overview
Text Symbol: T01 = Query Company Code
Text Symbol: SVC = Sort Version
Text Symbol: SVB = Line Layout Variant
Text Symbol: SVA = Line Layout
Text Symbol: SRA = Grid
Text Symbol: SA2 = Central Data
Text Symbol: S70 = Payment History
Text Symbol: S61 = Open at Key Date
Text Symbol: S60 = Open Items
Text Symbol: S50 = Special G/L Balance
Text Symbol: S40 = Texts
Text Symbol: 028 = Previous Year Sales
Text Symbol: 027 = Current Year Sales
Text Symbol: 026 = Arrears w/o Csh Dsc.
Text Symbol: 025 = Period
Text Symbol: 024 = Highest Balance at Months End (12 M)
Text Symbol: 023 = Highest Balance at Month End (6 M)
Text Symbol: 022 = Total In
Text Symbol: 021 = No. of Items
Text Symbol: 020 = Credit Act Name Tel. Fax Creat.Data
Text Symbol: 016 = CCA Customer
Text Symbol: 015 = Total
Text Symbol: 014 = Due Since Due In
Text Symbol: 013 = Dunning Area
Text Symbol: 012 = Company Code
Text Symbol: 011 = Selected Control Area Data:
Text Symbol: 010 = Control Area Data Read:
Text Symbol: 009 = Central Data Read:
Text Symbol: 008 = Customers Read:
Text Symbol: 007 = Statistics
Text Symbol: 006 = Central Data
Text Symbol: 005 = Area
Text Symbol: 004 = Customer
Text Symbol: 003 = Currency
Text Symbol: 002 = Name
Text Symbol: 001 = Control Area
Text Symbol: S30 = ArrearsDays
Text Symbol: S10 = Bal.





Text Symbol: F01 = Addit. Components
Text Symbol: COM = Communication Data
Text Symbol: C60 = Open Items
Text Symbol: C50 = Special G/L Balance
Text Symbol: C40 = Texts
Text Symbol: C31 = Days in Arrears/Cash Discount Due
Text Symbol: C30 = Days in Arrears by Net Due Date
Text Symbol: C20 = Dunn.Data
Text Symbol: C10 = Bal.
Text Symbol: B03 = Further Selections
Text Symbol: B02 = List Scope
Text Symbol: B01 = ListFormat
Text Symbol: A10 = Address Lines
Text Symbol: 107 = Line Layout:
Text Symbol: 106 = Credit Account/Control Area
Text Symbol: 105 = Sorting:
Text Symbol: 104 = Custom. CCAr Name Tel Fax Total Limit Single Limit Info
Text Symbol: 103 = Scaling :
Text Symbol: 038 = Changed:
Text Symbol: 037 = Created:
Text Symbol: 036 = Arrears w. Csh Dsc
Text Symbol: 033 = Customer&V1&
Text Symbol: 029 = Disputed


INCLUDES used within this REPORT RFDKLI40_NACC

INCLUDE RFDKLID0_NACC.
INCLUDE MF05IND1. " ZL.AUFBAU EINZELP.
INCLUDE MF05IND4. " ZL.AUFBAU KNKK-DATEN


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:

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.

CREDITCONTROL_AUTHORITY_KNKK



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.



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