RFKORD80 SAP Report - Print Program: Cash Documents

RFKORD80 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 the object name( RFKORD80 ) into the relevant SAP transaction such as SE38 or SE80 Within the comments section below there is also an opportunity for anyone to be able add useful hints and information specific to this SAP object. This means that you and other users will be able to find these details quickly by simply searching on the object name.

SAP Documentation for program RFKORD80

DESCRIPTION You can use this program to print cash documents. The program can only be used in conjunction with the cash jounal transaction. It uses the cash journal data for selection and printing. FI documents are therefore not necessary. The print program is usually only carried out directly for test purposes during system configuration. Otherwise the program is automatically called up by the cash journal transaction or other higher level correspondence programs. PRECONDITION The following prerequisites must be fulfilled before you can print cash documents: System configuration You make the basic settings for correspondence in "Financial Accounting Global Settings" in Customizing. For more information about standard configuration, see details below in this program documentation. Defining forms Forms must be defined and activitated in the system so that they can print the correspondence required. A form is delivered with the standard system. You can copy this form and adapt it in accordance with your requirements. The form F140_CASH_DOC_01 is used in the standard system. OUTPUT Each cash document is printed separately. A separate spool request is created for each company code. You can display the document on screen for test purposes. If, in the print program, you do not specify the printer on which correspondence should be printed, either the printer from the user master of the person that started the program, or the printer specified when the job was scheduled is selected. If minor errors occur during the program run, these are displayed in an error list at the end of the program run. The program does not terminate. If you want error lists to be printed on a specific printer, define the printer for the log in the print program or the variant for the print program. If you do not specify a printer, the system selects either the printer from the user master of the person that started the program, or the printer specified when the job was scheduled. If the program is run online, the error list is displayed on the screen. If the program was scheduled as a job, the spool request name of the error list consists of the indicator F140ER, the printer name, and possibly the correspondence type, and/or the company code. If the print program is run directly with print output, a log of the spool requests is output per program run. If you do not specify a printer for the log in the print program, the system selects either the printer from the user master of the person that started the program, or the printer specified when the job was scheduled. If the program is run online, the

Examples for correspondence types: SAP18 Cash document X Document necessary 1. The correspondence types.3. the spool request name consists of the indicator F140. CoCd Program Fo Form -------------------------------------0001 RFKORD80 F140_CASH_DOC_01 Using transaction SE71. the printer name. and/ or as a default for blank company code. CoCde CorID Program Variant Default text ---------------------------------------------------0001 SAP18 RFKORD80 SAP18 1. check whether the standard form is available in the client for which you need the form. and standard texts that begin with Z are examples of customer-specific objects that are not delivered with the standard system. There you can maintain the suboptions for the following programs. the log output is triggered by the higher level program (for example. you should only make table entries that specify the company code. You do not have to maintain the call options since the correspondence request has to be triggered by the cash journal transaction.2. there is a note below about the blank company code default entry. and the program ID KORD. 1. forms. Information about the standard form and the available text symbols INCLUDE FI_RFFO_SAPSCRIPT_LAYOUT_SET OBJECT DOKU ID TX Information about form layout Information about the text symbols INCLUDE FI_RFFO_SAPSCRIPT_MAINTAIN OBJECT DOKU ID TX RESET N1 EXAMPLE Customizing for cash documents is explained below using the standard system. Your forms must start with 'Y' or 'Z'. If the program is started by a higher level correspondence program. The form name should contain the identifier F140. (Menu -> Utilities -> Copy from client). you can copy the missing forms from client 000 using transaction SE71. Note: For tables in which a default entry without company code is permitted. trigger for correspondence or internal documents). if no specific company code has been entered. the issue date. For the relevant tables. If the program is planned as a job. Your own and standard forms in clients other than 000 must be adapted to correspond with the standard form in client . If this is not what you require. You can also create your own forms by copying the standard forms and changing the text of the form (usually in MAIN window). Customizing: You make the basic settings for correspondence in Customizing for Financial Accounting Global Settings. If the standard forms are not available.log is displayed on the screen. and/or as a default for blank company code. the system uses the default entry. Examples for program assignment: Make entries either for individual or all company codes explicitly. Financial Accounting Global Settings: Correspondence: Maintain the base parameters for cash documents as follows.1. Examples for forms: Make the entries either for individual or for all company codes explicitly. 1.

number. and/or as default for blank company code. you can transfer fields that do not yet exist in table RF140U to table RF140UZZ. 1. You can obtain a list of fields that you can sort by using the possible entries help (F4). you have to activate table RF140UZZ. for example. 1. number. you can translate the form using transaction SE63.000 when there is a new release. you should still make a default entry in the table to avoid error messages being issued (company code = blank and name of print program). you do not want to use a text. The sort variants determine the sequence in which the documents are output. If you need the standard or one of your own forms in a language that the form has not yet been translated into. Usually. you can leave the fields blank in the table. you can copy missing texts from client 000 using transaction SO10. Sort variant Name Sequence Field name Name Offset Length B1 Doc.4. The text ID is ADRS. per . year 1 BLART Document type 2 2 BELNR Document number 10 3 GJAHR Fiscal year 4 The sorting is first carried out by company code. You can expand the list of fields for selection in accordance with your requirements. and then in the field sequence of the relevant sort variant. doc. at least the standard text for the signature is required. If however. the header and footer text. Sender details: Make the entries either for individual or all company codes explicitly. CoCd Program TXTID Header text Footer text Signature Sender ----------------------------------------------------------------------0001 RFKORD80 ADRS ADRS_HEADER ADRS_FOOTER ADRS_SIGNATURE ADRS_SENDER Using transaction SO10. (Menu -> Utilities -> Copy from client). After you have expanded the fields. Examples for sort variants: For cash documents. fiscal year 1 BELNR Document number 10 2 GJAHR Fiscal year 4 B2 Reference. 1.type. Using a repair correction. that you are using the field names and data elements from the standard tables. If you do not require certain details because they are already on the company stationery. you have to define at least one sort variant. since the fields from table RF140UZZ are provided with information corresponding to the name from the document header table. If standard texts are not available.6 Create report variants Examples for report variants: Program RFKORD80 SAP18 Sorting correspondence B1 Output to printer Define printer. The list contains a selection of fields from the document header table BKPF. check whether the standard texts are available in the clients for which you require them. You must ensure however. fiscal year 1 XBLNR Reference 16 2 GJAHR Fiscal year 4 B3 Doc.5.

RFKORI50. RFKORI81. per company code if required Documentation extract taken from SAP system. RFKORI70. . T048 SELECT SINGLE * FROM T048 ANWND = 'KORB' SRVAR = SORTVK. RFKORI91.company code if required Log to printer Define printer for error log. RFKORI04. RFKORI93. RFKORI90. RFKORI92. T021M SELECT SINGLE * FROM T021M WHERE PROGN = 'RFKORD*' AND AND T048 SELECT SINGLE * FROM T048 WHERE EVENT = REVENT. RFKORI80. Copyright (c) SAP AG Includes used within report: INCLUDE INCLUDE INCLUDE INCLUDE INCLUDE INCLUDE INCLUDE INCLUDE INCLUDE INCLUDE RFKORI00. Tables used within report and the associated select statement: T048 SELECT SINGLE * FROM T048 WHERE EVENT = REVENT.

TSP03 SELECT SINGLE * FROM TSP03 WHERE PADEST EQ TDDEST. TCJ_DOCUMENTS SELECT WHERE AND AND AND * FROM TCJ_DOCUMENTS IN RBUKRS IN Rcajon IN Rgjahr IN RBELNR.WHERE EVENT = REVENT. COMP_CODE CAJO_NUMBER fisc_year POSTING_NUMBER Function Modules used within report and the associated call statement: FCJ_GET_CAJO_DATA2 CALL FUNCTION 'FCJ_GET_CAJO_DATA2' EXPORTING I_COMP_CODE I_CAJO_NUMBER I_LANGU IMPORTING E_TCJ_C_JOURNALS = tcj_c_journals = save_bukrs = hcajo_number = save_langu . BKPF * SELECT * FROM BKPF * * * WHERE BUKRS IN RBUKRS AND AND BELNR IN RBELNR GJAHR IN RGJAHR.

E_TCJ_CJ_NAMES EXCEPTIONS * = tcj_cj_names CAJO_NOT_EXISTENT = 1 OTHERS . = 2 FCJ_GET_DOCUMENT CALL FUNCTION 'FCJ_GET_DOCUMENT' EXPORTING I_COMP_CODE I_CAJO_NUMBER = save_bukrs = hcajo_number I_POSTING_NUMBER = save_belnr IMPORTING E_TCJ_DOCUMENTS EXCEPTIONS * NOT_FOUND OTHERS . FCJ_GET_POSITIONS CALL FUNCTION 'FCJ_GET_POSITIONS' EXPORTING I_COMP_CODE I_CAJO_NUMBER = save_bukrs = hcajo_number = 1 = 2 = tcj_documents I_POSTING_NUMBER = save_belnr TABLES ITCJ_POSITIONS EXCEPTIONS = htcj_positions .

= 1 = 2 FCJ_GET_WT CALL FUNCTION 'FCJ_GET_WT' EXPORTING I_COMP_CODE I_CAJO_NUMBER I_FISC_YEAR I_POSTING_NUMBER * = = = = save_bukrs hcajo_number save_gjahr save_belnr I_POSITION_NUMBER = TABLES ITCJ_WTAX_ITEMS EXCEPTIONS = htcj_wtax_items * NO_WTAX_ITEMS_GET = 1 OTHERS . = 2 FCJ_GET_TRANSACTION_NAMES CALL FUNCTION 'FCJ_GET_TRANSACTION_NAMES' EXPORTING I_LANGU I_COMP_CODE TABLES ITCJ_TRANS_NAMES = hTCJ_TRANS_NAMES . CORRESPONDENCE_GET_LEADING_CC = save_langu = save_bukrs .* NOT_FOUND OTHERS .

CORRESPONDENCE_TEXT CALL FUNCTION 'CORRESPONDENCE_TEXT' EXPORTING I_BUKRS I_EVENT I_SPRAS IMPORTING E_FUNCTION E_TDNAME E_TDSPRAS E_THEAD TABLES LINES EXCEPTIONS NO_EVENT_FOUND = 02 NO_SPRAS SAVE_TEXT CALL FUNCTION 'SAVE_TEXT' EXPORTING HEADER * INSERT = HTHEADER = 'X' = 06. = HTLINES = HFUNKTION = HTDNAME = HTDSPRAS = HTHEADER = HHEAD-HDBUKRS = REVENT = RSPRAS .CALL FUNCTION 'CORRESPONDENCE_GET_LEADING_CC' EXPORTING I_BUKRS = tcj_documents-comp_code IMPORTING E_BUKRS = SAVE_BUKRS.

Text Symbol: 203 = Name is missing in logon language Text Symbol: 204 = Cash document Text Symbol: 205 = Error list Text Symbol: 300 = Incoming payment Text Symbol: 301 = Payment . ..SAVEMODE_DIRECT = 'X' IMPORTING NEWHEADER TABLES LINES = HTLINES. = HTHEADER Text pool values Selection Text: RCAJON = Cash journal number Selection Text: RDATUM = Date of request Selection Text: RERLDT = Repeat printing from Selection Text: REVENT = Correspondence Selection Text: RFORID = Form set Selection Text: RGJAHR = Fiscal year Selection Text: RINDKO = Individual correspondence Selection Text: RSPRAS = Language key Selection Text: RUNAME = Created by Selection Text: RUSNAM = User Selection Text: RUZEIT = Time of request Selection Text: RXBKOR = Data from trigger table Selection Text: SORTKZ = Sorting of output Selection Text: SORTVK = Sorting of cash documents Selection Text: TDDEST = Output to printer Selection Text: TITLE = Additional heading Selection Text: RBUKRS = Company code Selection Text: RBLART = Document type Selection Text: RBELNR = Document number Selection Text: PRDEST = Log to printer Selection Text: DSPRAS = Print in logon language Selection Text: DANZZL = Number of Lines in Address Title: Print Program: Cash Documents Text Symbol: 110 = Output to printer Text Symbol: 111 = Print Imm. Text Symbol: 200 = Log Text Symbol: 201 = Overview of generated output requests Text Symbol: 202 = CC Correspondence Spool No./Fax ID Title/Fax No.. Output Pages.

Sign up to vote on this title
UsefulNot useful