cancel
Showing results for 
Search instead for 
Did you mean: 

Explain flow of standard cheque print program

Former Member
0 Kudos

Hi All,

Can anybody explain the flow of standard cheque print program RFFOUS_C.

The standard cheque print program will use Z form layout to print cheque and remittance advice.I have to add few form routines for RFFOUS_C. Also explain the functions of below mentioned form routines.

Form routines:

FM_CHQ_AMT

Move protective u201C*u201D from field REGUD-SWNES and load value into AMOUNT_CHEQUE.

FM_REMOVE_STAR

Move protective u201C*u201D from field REGUD-SWNES and load value into AMOUNT_FIXED.

Append the currency to the end of the value in AMOUNT_FIXED (if Currency = ZAR u2013 append the value R)

FM_CHQ_AMT_WORDS

u2022 Remove extra spaces from the amount in words

u2022 If currency = ZAR insert the word RANDS after the Rands amount else insert the value in field REGUD-WAERS

u2022 Combine Rands value and the cents value with the text -AND- (i.e. Rands value u2013AND- cents value)

u2022 End the cents value with the text CENTS

u2022 End the amount in words with the text u201C-ONLYu201D.

u2022 If the amount text is longer than 52 characters split the text into two lines (line 1 (AMOUNT_WORD_1) may hold 52 characters and line 2 (AMOUNT_WORD_2) may hold 62 characters u2013 maximum capacity for writing cheques).

u2022 Overlay any spaces with the character u201C|u201D

Accepted Solutions (1)

Accepted Solutions (1)

former_member196280
Active Contributor
0 Kudos

International Payment Medium - Check (with check management)

Description

This program prints prenumbered check forms or non-prenumbered checks whose number is to be assigned from a predefined number range, and links the check number to SAP payment document number or the check number to the settlement result.

In addition to the checks, you can print their payment advice notes and payment summaries in one program run.

Requirements

Check lots

The checks which are ready for printing are divided up into lots. The user can freely define the criteria by which lots are formed (for example, location of check storage, accounting clerk or printer). The check numbers of a lot must be consecutive.

A lot is assigned to the checks to be printed via a parameter whose number you define via the corresponding check lot management in the system.

After entering the lot number, the print program independently searches for the first free check number (even if this is in the next lot rather than in the lot specified).

Payment Program Configuration

The parameters that control the way in which the payment medium programs function are configured in Customizing. For more information on configuring the payment program, refer to the Implementation Guide.

1. Here you need to make specifications for the paying company code. To do this, select the relevant paying company code by choosing Paying Company Codes ->.

If payment advices are to be printed, define a SAPscript payment advice form for use with all company code payment methods. You will find the form F110_D_AVIS as an example in the standard system.

You need to create and enter text modules in which the texts for the header, footer, signature and sender are stored. These modules can be included in the forms when they are used. To do this, choose Sender Details, from where you can also branch into text maintenance by selecting the modules. The names of the text can be defined by the user, for example F_0001_HEADER for the letter header in company code 0001.

2. Here you need to allocate the name of the payment medium program RFFOUS_C to the payment method to avoid incorrect payment media being issued with another program by mistake.

Furthermore, you can enter a short name (or 'print dataset', for example LIST1S) which makes it easier to find the generated forms in the print manager.

To do this, first choose Payment methods in country, then select the country of your paying company code and the payment method you require, and then maintain the data necessary for printing the form.

3. Here you need to make company code specifications for the payment method. To do this, choose Payment Methods In Company Code, then select the paying company code and the payment method. In this menu maintain the following data by choosing Form data or Payment Advice Control:

The SAPscript form for payment media (F110_PRENUM_CHCK in the standard system).

The issuer data.

Sorting the correspondence.

Sorting the line items.

The number of note to payee lines on the form and the payment advice note output in accordance with the specified number of lines

If you specify as many as required note to payee lines on the form then Payment Advice Output According to Number of Lines controls whether in addition a payment advice is always created or not.

Note: The issuer details are used on the payment medium for city and signature in the standard system:

Line 1 Name 1 of issuer

Line 2 Name 2 of issuer

Line 3 Blank

Line 4 City.

Setting up and changing the SAPscript forms (layout sets)

The following describes the layout of the SAPscript forms in brief. If the forms available in the standard system are sufficient for your requirements, you can skip this part of the documentation.

You can find further information on forms and the SAPscript editor in the guides on styles and form maintenance and word-processing in the SAPscript editor: Select the menu path Help -> SAP Library.

1. When setting up SAPscript forms (layout sets), symbols are included in the text; these are then replaced by actual values when the payment medium programs are run. The fields which can be used for this are defined in the Repository and contained in the following structures:

REGUH Settlement data from the payment program

REGUP Edited invoice items from the payment program

REGUD Formatted data for printing the forms

SPELL Amounts and digits in words.

FSABE Data on accounting clerk.

Note that check forms can be issued in foreign currency only if the currency key is also printed on them. If forms are only to be filled out for local currency checks (on which no space is defined for the currency key) then you should remove the symbol for the currency key &REGUD-WAERS& from the check window. The program then prevents you from printing foreign currency checks.

2. If you want the document long text for an accounting invoice document to be printed on the payment advice form, you must make the following enhancement in element "Long text for invoice document" (specially designed for this purpose):

/: DEFINE &TXT& := '&REGUP-BUKRS()&&REGUP-BELNR(RF0)&&REGUP-GJAHR&'

/: INCLUDE &TXT& OBJECT BELEG ID xyz

The text ID that you must enter for this text (xyz) is defined in the configuration menu and can be read from there. In the standard system, text ID 0003 is predefined for the payment advice information.

Periodic processing

Before the payment medium programs can be started, the payment program run must have been successfully completed. Check the status of the payment run, or schedule the payment medium programs by specifying one or more variants.

Note: If you want to use th 'Payment document update' option, the payment documents must be updated between the time of the payment program run and the time of the payment medium program run.

Output

Forms and lists

Printout files are created per company code and house bank. These can either be printed via the print manager or immediately. Depending on the parameter you select, you can print out one or more of the following:

Payment medium

Payment advice notes (if the information cannot be sent via EDI)

Payment summary

Error log

The number of output files is specified in the flow trace; this makes finding and allocating them within the print manager easier.

Note: If the program was started online, then you reach the print manager from the list by selecting one of the output files displayed.

Payment Advice Notes

In addition to being able to print payment advice notes, you can also send these via EDI, fax or email.

1. To send a business partner a payment advice note via EDI, you need to select the indicator Payment advice note per EDI and maintain the partner agreement on screen "Payment Transactions Accounting" in the master record.

Using an external converter, the IDoc created by the program can be converted into the EDI format you require (REMADV for example) and then sent.

2. To send a business partner a payment advice note by fax or email, you must use the process interface 00002040 (Business Transaction Events) to define the selection of the message type (printout, fax or email). Before you can do this, however, you must have carried out the necessary technical (Basis) settings for faxing or sending emails.

Process interface 00002050 can also be used to change or configure the print parameters and the parameters for optical archiving for payment advice notes.

Check management

You can access information about the issued checks via check management, line item display for sub-ledger or bank accounts, or invoice and payment document display. A check register list can also be created for the respective payment run. Errors occurring during check number and document number allocation can also be rectified using check management. You can find check management within Accounts Receivable or Accounts Payable, both parts of Financial Accounting, as well as under the "Environment" menu option in the payment program.

For more information on check management, esp. about detailed solutions to possible error situations, refer to the FI Accounts Payable manual under Help->R/3 Library.

Error messages and error log

Termination of processing

You can find out the reason why processing was terminated (for example, production run not yet carried out, form does not exist or is not active) by looking at the error message or the related long text.

Internal SAPscript error

Check the layout of the forms. It must fulfil the above-mentioned conditions. You cannot, for example, create a bank transfer with the check print program, since bank transfers and checks have a completely different layout structure.

Error log

If errors which do not terminate the payment medium program occur when creating the output, the system lists them in the error log. If such a log is created, you must look it over because only you can decide whether the payment medium or payment advices are useless due to the errors the system finds, and decide whether they must be recreated after the errors have been rectified.

During background processing, the system outputs the error log twice, in the flow trace for the job and in a printout file. The flow trace contains information on how to rectify the errors (from the error message long texts).

You can display the long text online by choosing the error log from the list of generated output files and then the error message in question.

Close the thread once your question is answered.

Rgds,

SaiRam

Answers (1)

Answers (1)

Firoz_Ashraf
Contributor
0 Kudos

Hi,

If the purpose of writing the form routine is to manipulate or display the desired output on the cheque, then try calling these subroutines in the form itself. The actual form routines you can write in some other Z program.

Regards,