You are on page 1of 31

What's New: Bank feeds - CSV file support

CSV-type bank file formats are used by a number of international banks and o en in
geographical regions. To support our business partners who work with banks that require CSV
files for payment remi ance, we enhanced the bank file definition function (GESTFB) to make
it easier to set up and use CSV-type bank file definitions.
In this course, you'll see the setup and requirements for defining a CSV bank file to use when
you generate payment files. You'll also see how to create a CSV bank file definition.

Duration: 15 minutes

Disclaimer

OVER VIEW AN D B EN EFITS

Overview and bene ts

LESSON S

Set up

Creating a CSV Bank le de nition


CSV Bank le de nition examples

KEY CON CEPT SUMMAR Y

Knowledge challenge

R ESOUR CES

Resources

ACKN OWLEDGEMEN TS

Acknowledgements

CLOSIN G

Sage University
Lesson 1 of 9

Disclaimer

Disclaimer
The course materials provided are the property of The Sage Group plc or its licensors (“Sage”). Please
do not copy, reproduce, modify, distribute or disburse without express consent from Sage.

This material is provided as a general guidance for informational purposes only. Accordingly, Sage does
not provide advice per the information included. The use of this material is not a substitute for the
guidance of a lawyer, tax, or compliance professional. When in doubt, please consult your lawyer, tax, or
compliance professional for counsel. This material is provided on an ”as is” basis. Sage makes no
representations or warranties of any kind, express or implied, about the completeness or accuracy of
this training materials. Whilst Sage may make changes to this training materials at any time without
notice, Sage makes no commitment to update the training materials every time Sage’s products are
updated.

The Sage product(s) described herein is/are governed by the terms and conditions per the Sage End
User License Agreement ("EULA") or other agreement that is provided with or included in the Sage
product(s). Nothing in this document supplements, modifies, or amends those terms and conditions.

© 2021 The Sage Group plc or its licensors. All rights reserved. Sage, Sage logos, and Sage product and
service names mentioned herein are the trademarks of The Sage Group plc or its licensors. All other
trademarks are the property of their respective owners.

C O NT I NU E
Lesson 2 of 9

Overview and benefits

Overview
AP/AR account managers need an easy-to-use function to prepare outbound bank files in CSV format.
In previous versions of the application, if you needed to use a CSV bank file format, you had to create it
manually. The process was complex and time consuming. 

The Bank file definitions function now includes the "CSV" format type, in addition to the existing
 "Fixed" and "Variable" formats. The new "CSV" Format type allows you to create, adjust, and maintain
CSV-type bank file definitions more easily. The CSV format functionality increases usability and
acceptance for banks that require CSV files for payment remi ance. 

Benefits
With the new CSV option in the Format type field, creating and using CSV files is simpler for all users.
Now, when you define a CSV file type, you can:

Specify the character used as the separator between two fields.

 Enter a non-printable character as a field separator.

Specify the separator used between two data records.

Define a field delimiter (usually double-quotes, " ) that is added in the first and last position for
alphanumeric fields.

Define the format of the file, either ASCII or UTF-8.

C O NT I NU E
Lesson 3 of 9

Set up

The Bank file definition function


You use the same function to create a CSV bank file definition as you use for other formats:
    (GESTFB)  Setup -> A/P-A/R accounting -> Files

The Bank file definition function includes a new Format type option, CSV. When you select the format
type CSV, new fields that support the format become active.

Select the "i" icons on the image below to learn more about the enhanced function.

  


Character encoding

Choose a character encoding for the file:


- ASCII
- UTF-8

This is a required field.


Format type

CSV is the newly added format type option. 

The format type defines the structure you use to manage the data in the bank file you export.

These other new fields are active only when you select the CSV format type:
- Field separator
- Field delimiter
- Character coding

The "Fixed" and Variable" options are still available.


Field separator

Use this field to enter the character that separates two fields of a line.

Typically, for CSV files, you use either a semi-colon ( ; ) or a comma ( , ).

To enter a non-printable character, enter a backslash ( \ ) followed by the 3 numbers  and the decimal base
representing the ASCII code of the character.

This is a required field.


Field delimiter

The field delimiter indicates where the alphanumeric characters in the field start and end. 

Use this field to enter the character that is in the first and last position for alphanumeric fields. It
encapsulates the contents in the field. Typically the field delimiter is a double-quote ( " ) or a single-quote ( '
). 

For numeric and date fields there is no requirement for a delimiter.

This is an optional field.

Setup notes

Supported record types



Supported record types for CSV bank files are:

Header record - You can define only one per file.


Footer record - You can define only one per file.

Detail record - You can define multiple per file.

Total record - You can define only one per file.

CSV format se ings



The system applies the CSV format se ings equally to all record types of one bank file definition.

For example, it is not possible to define different field separators for header and detail records.

The system applies all other general bank file definition se ings in the same manner for a CSV file
as for other format types.

Field separator characters



If the field separator character appears within an alphanumeric field, for example as a part of a
BP name or remi ance information, the system removes the character when the file is generated
to ensure integrity of the file structure.

For example, you might use a comma as a field separator. If there is text in a field that includes a
comma, such as " Miller, Meyer, Johnson & Partners," when you generate the file, the text will
appear as, "Miller Meyer Johnson & Partners." The commas are removed.

C O NT I NU E
Lesson 4 of 9

Creating a CSV Bank file definition

Create a bank file definition of CSV type


Follow the process below to see how to create a bank file definition using the new CSV format type.
You'll see that the basic process is the same as for other formats; the new CSV fields are included in the
process.

Note: This process shows only the new elements for creating a bank file with the CSV format type. For
detailed learning about working with bank file definitions, try these Sage University courses: "X3 - Sage
X3 - AP Specialist: AP Setup;" "X3 - Sage X3 - AP Specialist: AP Setup."
Bank file definition - CSV format type

(GESTFB)  Setup -> A/P-A/R accounting -> Files

NOTE: Click the image in each step to zoom in.


Step 1

Enter the general se ings, as with any other bank file definition, such as bank file name and
code, record type, and so on.
Step 2

Select the CSV format type.


Step 3

Enter values for the CSV specific se ings. This example shows the Field separator as ( ; ), the
Field delimiter as ( " ), and the Character coding as UTF-8. 
Step 4

In the Records section, enter a definition for each field of the CSV file. Each line in the grid
represents one field. 

Grid columns:
Field type: controls the data type of the field
Formula: defines the content (data) of the field. The options are the same as for other format
types, for example, reference to a database field, a function, fixed text. See the online help for
information about the supported definitions.
Description: Internal notes, optional
Step 5

It is important that you enter the end of line delimiter character as a binary field and as the last
record. EOL characters are not added automatically.
C O NT I NU E
Lesson 5 of 9

CSV Bank file definition examples

The Records grid


For every record type (header, details, footer), each line in the Records grid is a field in the CSV file for
the file generation. 

The definitions in this records grid  will produce this output:


    Batch description ;  234AB3222XYZ945 ; 20201051200 ; <CR><LF>
This example shows a semi-colon ( ; ) as the field separator. The quote marks indicate actual fixed text
which prints as it was entered.
Select the tabs to see the descriptions of the lines. Click each image to zoom in.

L I NE 1 L I NE 2 L I NE 3 L I NE 4

The first line represents the first field. It is fixed text as indicated by the qupote marks.

L I NE 1 L I NE 2 L I NE 3 L I NE 4
The second line represents the second field. This is a function that generates the date in the specified
format.

L I NE 1 L I NE 2 L I NE 3 L I NE 4

The third line represents the third field. This filed is populated directly from a database filed. In this
instance, the customer ID is "234AB3222XYZ945."

L I NE 1 L I NE 2 L I NE 3 L I NE 4
The last line, in this case line 4, is the end of line character. It must be in binary format. In this instance,
the the result is carriage return + line feed.

Headers and footers

Header records
When you create a bank file definition, you must include a header record. 

If no header record is required for the output file, a "dummy header" record must be included in
the bank file definition.

To create the "dummy header," enter a condition that will not be met during the creation of the
output file.

For example, you could enter [F:TFB]BAN = 'DUMMY,' or even more simply 1=2, in the condition
field. In addition, create at least a single record line.

Click image to zoom in.


"Dummy" headers or footers
For each file, you can define only one header and footer record. 

If your header or footer consists of several lines, you can define the multiple lines structure within
the single header/footer bank file definition requirements. 

Example of records for a two line header structure:

Field formula, function,


(field type) Header line 1, field 1
definition 1 or text

Field formula, function,


(field type) Header line 1, field 2
definition 2 or text

Field End of line delimiter header line


Binary chr$(13)+chr$(10)
definition 3 2 (CR+LF)

Field formula, function,


(field type) Header line 2, field 1
definition 4 or text

Field formula, function,


(field type) Header line 2, field 2
definition 5 or text

Field End of line delimiter header line


Binary chr$(13)+chr$(10)
definition 6 2 (CR+LF)

C O NT I NU E
Lesson 6 of 9

Knowledge challenge

Challenge yourself!
Use the flashcards below to review the key concepts for creating CSV bank file definitions. See if you
can answer the questions before turning over the cards. There are nine questions.

Which new fields become


- Field separator
active when you select the
- Field delimiter
CSV format type for a bank
- Character encoding
file definition?

1 of 9

The field separator is a


character that separates
two fields of a line.
What is the purpose of a field Typically, for CSV files, you
separator?
use either a semi-colon ( ; )
or a comma ( , ).

2 of 9

Which Character codes can


- ASCII
you choose when you create
- UTF-8
a CSV bank file definition?

3 of 9

All files require a header. If


your output file does not
What is one way that you can include a header, you can
use the Condition field? use the Condition field to
create a "dummy header"
condition.
4 of 9

Which function do you use to


create a bank file definition (GESTFB)  Setup -> A/P-A/R
with the new CSV format accounting -> Files
type?

5 of 9

What happens to the


output file data if the field
separator character that The character is removed
you defined also appears from the output data.

as part of the data in the


file?

6 of 9
What does each line in the Each line in the grid
records grid represent? represents one field.

7 of 9

It is important that you


enter the end of line
What should you define as delimiter character as a
the last line in the records binary field, as the last
grid?
record. EOL characters
are not added
automatically.

8 of 9

To enter a non-printable
character for a field
separator, enter a the
How do you define a non-
printable character to use as
backslash ( \ ) followed by
a field separator? the 3 numbers and the
decimal base
representing the ASCII

9 of 9

C O NT I NU E
Lesson 7 of 9

Resources

PDF of course to be a ached

Whats New CSVbanf file support.pdf


3.5 MB

C O NT I NU E
Lesson 8 of 9

Acknowledgements

Photography and graphics


Sage Brand Library and Articulate
Lesson 9 of 9

Sage University

You have completed the course.  Thank you for participating. 

Sage University: h ps://sageu.com


             Sage City: htps://sagecity.com

You might also like