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

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

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

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

TCJ_DOCUMENTS SELECT WHERE AND AND AND * FROM TCJ_DOCUMENTS IN RBUKRS IN Rcajon IN Rgjahr IN RBELNR. TSP03 SELECT SINGLE * FROM TSP03 WHERE PADEST EQ TDDEST. BKPF * SELECT * FROM BKPF * * * WHERE BUKRS IN RBUKRS AND AND BELNR IN RBELNR GJAHR IN RGJAHR.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 .

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 . = 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 .E_TCJ_CJ_NAMES EXCEPTIONS * = tcj_cj_names CAJO_NOT_EXISTENT = 1 OTHERS .

= 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 . CORRESPONDENCE_GET_LEADING_CC = save_langu = save_bukrs .* NOT_FOUND 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 .

= 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. 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.

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 ./Fax ID Title/Fax No. Output Pages. Text Symbol: 200 = Log Text Symbol: 201 = Overview of generated output requests Text Symbol: 202 = CC Correspondence Spool No.. .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..

Sign up to vote on this title
UsefulNot useful