EFM Format Definition
EFM Format Definition
PUBLIC
Warning
This document has been generated from the SAP Help Portal and is an incomplete version of the official SAP product
documentation. The information included in custom documentation may not re ect the arrangement of topics in the SAP Help
Portal, and may be missing important aspects and/or correlations to other topics. For this reason, it is not for productive use.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da370… 1/66
10/3/2019
Format Project Abbreviation Source File Target File Embedded File Supports Supports User
Format Format Translation Script
Bank Payment BPP RPT XML, CSV, TXT, An RPT Payment Yes Yes
File Format JSON Wizard Results
Project source le
Bank Statement BFP XML, TXT XML, JSON An XML Bank No Yes
File Format Statement target
Project le
Electronic
Authority
Report
For more information about the usage of each format project in relation to SAP Business One, see Usage of Format Projects in SAP
Business One.
Features
With its user-friendly interface and advanced functions for designing simple or complex electronic format solutions, the Electronic
File Manager: Format De nition add-on provides the following features:
Mapping settings to create mapping rules between source and target les
Test runs to simulate runtime format project execution with sample data or external data
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da370… 2/66
10/3/2019
More Information
Usage of Format Projects in SAP Business One
The following table summarizes the usage of each format project in the SAP Business One client application:
GEP Electronic File Manager window According to the de nition in the format project, a menu entry
is created for a wizard.
SPP
Prerequisites:
For more information about the various windows and functions where these format projects are used, see the online help of SAP
Business One.
Among the four format projects, the GEP and SPP format projects support the same output formats and their usages are also
similar in the SAP Business One client application: After you import a GEP or an SPP format project into SAP Business One, a
menu entry is created for a corresponding wizard. You can then run the wizard to specify selection criteria and generate output
les.
Note
The selection criteria depend on the parameters de ned in the source RPT les.
SQL syntaxes differ between the Microsoft SQL Server and the SAP HANA database. If you want to reuse a format project, be
sure to make necessary adjustments to the commands in the source les.
These two format projects allow XBRL (eXtensible Business Reporting Language) as the target format. XBRL is a widely used
standard for nancial reporting and exchange of business information. After importing the project into SAP Business One, you can
produce XBRL instance documents based on SAP Business One data.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da370… 3/66
10/3/2019
BPP and BFP Format Projects
The other two format projects - the BPP and BFP format projects - are two sides of the same coin. The BPP format project is used
to export payment data from SAP Business One to a payment le (bank le) using the payment wizard in conjunction with the
Payment Engine add-on. When the bank receives the payment le, the bank makes payments accordingly to your suppliers and
reconciles the incoming payments. The bank issues a bank statement to you on a regular basis, which includes the bank transfer
details.
The BFP format project is then used to import the bank statement into SAP Business One using the bank statement processing
(BSP) function. Documents are reconciled with the bank statement and payment documents are created to clear unreconciled
transactions - transactions without payment information in the system; the transactions may or may not have been paid by the
bank.
Recommendation
Execute payment order runs instead of executing payment runs directly. While a payment run creates both a payment le (or
several les, based on the settings) and payment documents, a payment order run creates only a payment le. By executing a
payment order run and then reconciling the bank statement with transactions included in the order run, you can ensure that
the system records only payments that have actually been made by the bank.
The usages of the BPP and BFP format projects are illustrated in the following graph:
More Information
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da370… 4/66
10/3/2019
Electronic File Manager: Format De nition Overview
To create advanced mapping rules, you have learned and can work with the XSLT (Extensible Stylesheet Language
Transformation) language and regular expressions.
[BFP] To create a BFP format project with TXT sources, you have learned and can work with regular expressions in
Microsoft .NET Framework.
Procedure
To create a format project, proceed as follows:
For more information, see Step 2: Adding Source and Target Files.
3. De ne the source and target tree structures. For more information, see Step 3: De ning the Source and Target Tree
Structures.
For more information, see Step 4: Mapping Between the Source and Target Trees.
5. De ne validation rules for the runtime. For more information, see Step 5: Creating Validation Rules for the Runtime.
6. Test run each mapping. If the test run fails, correct the issues.
More Information
Electronic File Manager: Format De nition Overview
You have started the Electronic File Manager: Format De nition add-on. For information about how to install, assign, and
start an add-on, see the online help of SAP Business One.
Procedure
1. To open the Electronic File Manager: Format De nition (EFM) add-on, in the SAP Business One menu bar, choose
Tools Electronic File Manager: Format De nition .
On the start page, under Create a new format project, choose the format project you want to create.
Click in the toolbar, or choose File New from the menu bar.
a. In the Create a New Format window, select the format project you want to create.
For information on the usages of different format projects, see Usage of Format Projects in SAP Business One.
3. If you chose to create a BFP format project, you are prompted to select whether to work in the new designer or the old
designer.
New designer: You will continue to work in the Electronic File Manager: Format De nition window. The new
designer lets you create BFP format projects with XML as well as TXT source les. Some enhancements and bug
xes are available only in the new designer.
Old designer: A new SAP Business One Format De nition window opens for you to design the BFP format project.
The old designer is targeted only for TXT source les.
For more information about the old designer, see its online help. To open the online help, in the SAP Business One
Format De nition window, press F1 or choose Help Online Help .
If you chose to create an SPP format project, select a format subtype and then choose the OK button.
Results
A default mapping is created, with embedded les (if any).
Recommendation
During your design process, save the format project from time to time to prevent data loss. For more information, see Saving a
Format Project
Related Information
How to Create a File Format Project
Usage of Format Projects in SAP Business One
Updating Source or Target Files
Creating an XBRL Target Tree
Among the four types of format projects, it is mandatory to prepare source les for the GEP format projects. For the other types of
format projects, preparation of source les is only required in some cases.
For a GEP format project, you must manually create one or more source les. Each source le must be an RPT le (Crystal report)
which uses the SAP Business One data source.
Each GEP format project is presented as a wizard after it is imported into the SAP Business One client. The welcome page and the
last two steps of this wizard are prede ned; the other steps contain parameters requiring user input and which are determined by
the source RPT le. If you want to group the parameters into several steps, create one source RPT le for each step; or you can
create sub-reports within the main report to achieve the same effect.
For more information about how to create such a Crystal report, search for the following resources at SAP Help Portal:
[SAP HANA version only] "How to Set Up SAP Business One, version for SAP HANA Data Sources for Crystal Reports"
The SPP format project has two subtypes, each of which provides an embedded source XML le.
If the localization of your company supports electronic documents, you can obtain an updated source le in the SAP Business One
client. To do so, in the SAP Business One client menu bar, choose Tools Customization Tools Generate EFM XML Datasource .
The regenerated data source tables vary from localization to localization and include user-de ned elds as well as system elds.
The data source also contains information of the imported certi cate covering a digital seal of the issuing taxpayer. For more
information, see the how-to guide "How to Implement and Use Electronic Documents with SAP Business One" at SAP Help Portal.
The BPP format project provides an embedded source RPT le (Crystal report), which includes SAP Business One database tables
deemed necessary for creating the payment le to be sent to your bank. However, if you want to include data in your user-de ned
elds in the payment le, you must do either of the following:
Create one or more additional RPT les and add them as new source les.
Save the embedded source le to a local device, update the RPT le in SAP Crystal Reports, and then update the original
source le with the new le.
If the bank statement issued by your bank is in the XML format, you can ask your bank for an example XML document or the XML
schema. Otherwise, you need to manually create a source tree in either the TXT or the XML format.
Except for BFP format projects, all format projects support various target formats. The BFP format project provides an embedded
target XML le which you cannot delete or update. For the other three format projects, the need to prepare a target le depends
on the required target format, as below:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da370… 7/66
10/3/2019
XBRL: It is mandatory for you to prepare a taxonomy resource. The resource can be either an XML document or XML
schema, or it can be a URL to the schema.
XML: You can import either the XML schema or the structure directly from an XML document, but you can also create the
structure from scratch.
CSV: You can either import the structure from a CSV document, or create it from scratch.
More Information
How to Create a File Format Project
Note
You can update only XML and XBRL target les.
Procedure
1. Do one of the following:
Right-click the source le under the Source folder and choose Update....
Right-click the target le under the Target folder and choose Update....
2. Select the new source or target le and choose the Open button.
The new source or target le is added under the Source folder or the Target folder, respectively. Its format tree is
automatically added to the mapping tab with an automatic mapping switch:
If the node in the original format nds a matching node in the new format tree, the mapping connection and
mapping setting are switched to the new format tree. Depending on the le format, there are different matching
rules; the match can succeed only if the rules are met, as explained below:
RPT:
RPT eld: A eld with the same object name exists in the new format tree.
RPT section: The section in the same position of the new format tree has the same elds.
XML: In the new format tree, the node with the same tag name and namespace is found in the same path,
and each node in the path has the same tag name and namespace.
XBRL:
Unit: A unit with the same name exists in the new format tree.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da370… 8/66
10/3/2019
Context: A context with the same name exists in the new format tree. The match will also apply to the
period and the scenario in this context.
Item and entity: An item or entity with the same name exists in the same context in the new format
tree.
Tuple: A tuple with the same name exists in the new format tree. The match will also apply to the
subnodes.
If no matching node is found, the mapping connection and the mapping settings are retained in the original format
tree. You can manually adjust the mapping connection and settings.
After update, the mapping status messages are displayed with the following detailed information on the Message tab:
3. After completing the mapping switch, remove the original source le or target le from the Format Explorer area. After you
delete the original les, the corresponding format trees are removed automatically from the mapping tab.
Related Information
How to Create a File Format Project
Preparing Source and Target Files
Context
XBRL (eXtensible Business Reporting Language) is a widely used standard for nancial reporting and exchange of business
information. A report expressed in XBRL is an XBRL instance document and must conform to a particular taxonomy created and
published by the reporting authority. With EFM, you can create GEP or SPP format projects with XBRL as the target format. After
importing the project into SAP Business One, you can produce XBRL instance documents based on SAP Business One data .
Procedure
1. In the Format Explorer, right-click the Target folder, choose Add, and then select XBRL.
2. In the XBRL Taxonomy Selection window, specify one or more taxonomy resources and then choose the Add button. The
schema resource can be either a le (XSD le for a schema or XML le for a linkbase) or a URL link.
Note
If you specify an XBRL linkbase, the linkbase must reference one or more taxonomy schemas. Otherwise, you cannot
create required nodes.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da370… 9/66
10/3/2019
The taxonomy resource is displayed in the lower pane.
4. If you want to use only some of the resources, in the pane below, select the particular resources.
Results
A target tree structure is created with default nodes, and schema information is loaded.
You now can continue to add nodes to the target tree and de ne the properties. For more information, see De ning the Source and
Target File Structures and Properties.
To add more schemas, in the target tree, right-click the Schema References node and choose Add Schema Reference. To add
more linkbases, do likewise with the Linkbase References node.
Depending on the format project, supported formats for the source and the target may differ, as summarized in Electronic File
Manager: Format De nition Overview.
Prerequisites
If necessary, you have prepared the source and target les. For more information, see Preparing Source and Target Files.
You have created or opened a format project. For more information, see Creating a Blank Format Project.
Procedure
To add a source le for the format project, in the format explorer, right-click the Source folder and then choose Add; to add a
target le, right-click the Target folder and then choose Add.
As only one target is allowed, if a default target le has already been loaded, you can either update it with a new le or delete it and
then add a new le.
For the BFP format project, the target le is embedded; you can neither delete nor update the embedded target le.
Depending on the format, you may be able to import a le structure directly, import a le with the required structure, or create the
structure manually.
Note
If you want to test run the format project using the data in a source RPT le, you must ensure that the RPT le has been saved
with data. For more information, see the SAP Crystal Reports online help.
For the XBRL format, you must specify a taxonomy schema. For more information, see Creating an XBRL Target Tree.
Result
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 10/66
10/3/2019
If you import a le or a le structure, the le structure is presented as a tree structure on the mapping tab. If you manually create a
structure, a blank tree structure is created with only the root element.
Report Header Imported, unless hidden or suppressed in the report. Note that only
elds are imported and displayed as a tree node; the other objects
Report Footer (for example, text, charts) are ignored.
Details
Group Header
Group Footer
Pager Footer
You can now proceed to de ne the source and target tree structures. For more information, see De ning the Source and Target File
Structures and Properties.
More Information
How to Create a File Format Project
Note
You cannot modify the structures of embedded les.
Prerequisites
You have added the source and target les in the required formats. For more information, see Step 3: Adding Source and
Target Files.
You have a speci cation at hand and know how the source or target le is structured. For example, to create a BPP format
project, you must know your bank's requirements for the payment le structure (for example, how the transactions are
grouped).
Procedure
You can de ne the properties of nodes after you have created the whole structure, or you can de ne the property of each node
immediately after you create the node. The following procedure provides all the necessary steps.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 11/66
10/3/2019
1. If you created the source or target le from scratch (for example, the le format is TXT), add nodes under the root node in
the appropriate sequence and structure. If you imported a le or a le structure, you can also modify the existing structure.
For more information about the nodes for different formats, see Nodes in Different File Structures.
The format project: For example, specify the menu path for a GEP format project after it is imported into SAP
Business One.
The mapping: For GEP and SPP format projects, you can provide a Javascript or CSharp script to handle heavy
calculations or loop functions.
Each source le: For example, de ne the encoding of an XML source le.
For example, to de ne the properties of the format project, in the format explorer, choose Format and then in the
Properties area, de ne the properties of the format project.
Result
You can now proceed to map between the source les and the target le. For more information, see Step 4: Mapping Between the
Source and Target Trees.
More Information
How to Create a File Format Project
XML
The following table describes the available nodes in an XML tree structure:
Element Simple element, used to describe data; cannot have child Cannot contain child nodes. Must be nested within an order
elements or attributes. indicator node.
Attribute Used to provide additional information that is not relevant Cannot contain child nodes.
to the data.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 12/66
10/3/2019
All An order indicator which speci es that the child elements These nodes are exclusive of each other.
can appear in any order.
Choice An order indicator which speci es that there are only two
child elements and either this or that child element can
occur at one time.
All, Choice, and Sequence nodes specify the order of the child elements of a parent element. To create child elements (whether
they be elements or element containers), you must rst indicate their order by creating an order indicator node.
CSV
The following table describes the available nodes in a CSV tree structure:
TXT
The following table describes the available nodes in a TXT tree structure:
XBRL
The following table describes the available nodes in an XBRL tree structure:
An XBRL taxonomy schema de nes the IDs, names, and other properties of various elements. Each
XBRL instance document requires a taxonomy schema to recognize and understand the elements.
An XBRL taxonomy linkbase de nes the relationship between XBRL taxonomy elements. Note that if
you specify only a taxonomy linkbase for the format project, you must ensure that the linkbase
references the required schema. Otherwise, you cannot de ne the XBRL elements.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 13/66
10/3/2019
Units Containing units of measure that are used within an XBRL document.
Measure A simple unit of measure. For example, "USD", "shares", or "million pounds".
Divisional Measure A complex unit of measure that is represented in a divisional form. For example, "earnings (value) in
USD (numerator) per share (denominator)".
Entity The entity that does the XBRL reporting, for example, a company or a division thereof.
Identi er A code that speci es the scheme identifying the XBRL reporting entity.
Identi cation Scheme A required attribute that is used to identify the XBRL reporting entity. For example,
www.example.com.
Context De nes the background of one or more business concepts (for example, gross pro t): the period type
and the scenario (usually optional). A concept that is placed in a context is a fact, expressed either as
an item or a tuple.
Note
If you add an XBRL fact directly under a Context node (by adding an Item or Presentation Tree
node), this fact is placed in this particular context and you cannot specify a different context for the
fact.
Duration: A speci ed period of time (for example, for change of capital over the year 2015).
Instant: A speci ed point in time (for example, for an asset value on 2015.1.1).
Presentation Tree Various XBRL facts are presented in a tree structure according to a speci ed presentation linkbase
which de nes the relationship between these facts.
Item A simple XBRL fact with a de nite value which does not have to be derived from other element values.
Tuple Contains various items which derive their meaning and value from each other.
Depending on the parent node, you can add only restricted types of child nodes. The child nodes may be XBRL-speci c XML nodes
or regular XML nodes. The following graph illustrates the relationship map of the nodes in an XBRL tree structure:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 14/66
10/3/2019
Note 1: The light-colored nodes are XML nodes, (see the section above about XML nodes). The dark-colored nodes are XBRL-
speci c XML nodes.
Note 2: You can de ne attributes for certain nodes but this relationship map does not include attribute nodes.
More Information
Step 3: De ning the Source and Target File Structures and Prope
1. Select the parent node below which you want to create a node.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 15/66
10/3/2019
Note
For the XML format, you can add both technical nodes and non technical nodes.
3. Right-click the node below which you want to paste and choose Paste.
Note
You cannot paste a node to a leaf node.
Deleting a Node
If you delete a node with child nodes, all the child nodes are automatically deleted.
Duplicating a Node
A duplicated node is added to the same structure level of the format tree. If you duplicate a node with child nodes, all the
child nodes are automatically duplicated.
The name of the duplicated node is the original node name suffixed with "(n)". ("n" is the duplication number of the node.)
For example, Balance(1) is the name of the rst duplicated node for the node: Balance. Balance(2) is the name of the
second duplicated node for the node: Balance, and so on.
You have two options for removing the duplicated nodes of an original node:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 16/66
10/3/2019
More Information
Properties
You can create a connection by dragging a line from a node in the source format tree (source node) and dropping it on the node in
the target format tree (target node). You can map more than one source node to a target node and move connections to other
source nodes or target nodes.
Mapping rules that you specify on the Mapping Setting tab determine the value output in the runtime execution. For each
mapping setting, you can specify one or multiple conditions and one "else" condition. For multiple conditions, the rst condition is
checked rst; if the rst condition is not met, the second condition is checked; and the check continues until one condition is met
or if no condition is met, the "else" condition determines the value output.
Prerequisites
You have de ned the source and target tree structures. For more information, see De ning the Source and Target Tree Structures.
Procedure
Mapping a Source Node to a Target Node
2. Drag and drop on the node to which you want to map in the target format tree. A connection line is created and the
Mapping Setting tab is enabled for the connection.
To create mapping settings for a target node that is not required to be directly mapped to any source node, right-click the
target node and choose Mapping Setting.
4. To change the condition name, choose the Rename eld and specify the new name.
5. To specify details of a condition, specify one or multiple expressions and value output if the condition is met.
You can create multiple expressions by connecting them with logical operators and braces in a tree structure, for
example, expression 1 and (expression 2 or expression 3).
To add an expression, select the condition in the expression tree, choose , and choose Row.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 17/66
10/3/2019
Op: Select the operator.
For arguments as the function type, you can specify functions. For more information, see Using Functions.
To add a brace ("()"), select the condition in the expression tree and choose .
The brace determines the priorities of processing expressions for a condition. The expressions in the brace
have a higher priority. Under a brace, you can add expressions, braces, and logical operators by selecting the
brace and choosing .
To add a logical operator, choose the condition in the expression tree and choose .
Copy Value From Source Node: Uses the value from the source node.
You can specify complex functions with arguments as the results of other expressions. For more information,
see Using Functions.
6. To specify the value output if one condition is not met, select the Else Condition checkbox and specify the value.
7. To move the connection line to another node, click the connection line and do one of the following:
From an original source node to a new source node: click the source end of the connection line on the source format
tree and drag the line to the new source node.
From an original target node to a new target node: click the target end of the connection line on the target format
tree and drag the line to the new target node.
8. To map another source node to a target node that is already mapped, do the following:
a. Click another source node and drag and drop it on the target node.
b. In the message window that appears, choose the Duplicate Node button. Another connection line is created from
the source node to the target node.
To replace the original connection, choose the Replace Connection button. The new connection line from the new
source node to the target node replaces the original connection line.
To display the mapping setting for a target node, right-click a target node and choose Mapping Setting.
Right-click the target node from which you want to clear the mapping settings and choose Clear Mapping Setting.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 18/66
10/3/2019
1. Click the connection line of the mapping settings you want to copy and choose Copy Mapping Settings.
2. Click the connection line of the mapping settings you want to paste and choose Paste Mapping Settings.
1. Click the connection line of the mapping settings you want to cut and choose Cut Mapping Settings.
2. Click the connection line of the mapping settings you want to paste and choose Paste Mapping Settings.
Select the connection line you want to delete and do one of the following:
Both the connection line and the mapping settings are deleted.
More Information
Functions
You have de ned the mapping setting for at least one source node. Nevertheless, we recommend that you use this function
after you have nished de ning the mapping settings for all the source nodes; this helps you avoid missing any nodes, as
well as avoiding going back and forth between the Mapping Setting tab and the Source tab.
Context
If the BFP format project uses TXT as the source, you can validate the mapping settings with data from a sample bank statement
le. This function helps you ensure the source nodes are mapped to the target SAP Business One tables and elds according to
the speci cation.
Procedure
1. Click anywhere in the source tree. The Source tab appears on the right.
2. On the Source tab, choose the browse button (...) and open the bank statement le.
3. To validate the mapping setting made for a source node, click the source node.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 19/66
10/3/2019
Results
Depending on the mapping setting, the corresponding data is highlighted on the Source tab. If the node is repetitive and more
than one record exists, the records are highlighted in alternating colors.
Related Information
How to Create a File Format Project
Step 4: Mapping Between the Source and Target Trees
Note
Except for the Customize type, you can create only one validation rule for each parameter type.
At runtime, the validation rules check the relevant values retrieved from SAP Business One. You can provide a warning or error
message for any error that may occur during runtime validation:
Error message: If any error occurs, the message appears and the validation process fails.
Warning message: If any error occurs, the message appears, but the validation process continues.
A default error message is provided. You can modify the error message or change it to a warning message. You can use functions
to compose the messages.
Procedure
To create a validation rule, do the following:
3. To add a validation rule, click and select one of the following validation types:
Length: Validates if the length of the output value stays within a range.
Number of Occurrences: Validates how many times a value is outputted for the target node.
Customize: You can create advanced validation rules by selecting this type.
If you leave the From eld empty, it means that the value in the From eld is zero. If you leave the To eld empty, it means
that the value in the To eld is in nity.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 20/66
10/3/2019
2. De ne an error message or a warning message.
3. Repeat steps 1 and 2 until you have included all valid values in the list.
To remove a value from the valid value list, select the value and choose .
To include the beginning or ending value within the data range, select the Inclusive checkbox.
If you leave the From eld empty, it means that the value in the From eld is zero. If you leave the To eld empty, it means
that the value in the To eld is in nity.
More Information
Functions
Using Functions
If the test run fails, the relevant messages are displayed on the Message tab. For runtime data validation failure, the messages you
specify on the Validation tab appear.
To save the test run results, right-click any space on the Output tab and choose Export All. Then in the Save As window, specify
the le name, and choose the Save button.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 21/66
10/3/2019
To test run the current mapping using the sample data saved in the source les, do one of the following:
Note
For the BFP format project, you always need an external le for the test run; even if the source is in the XML format, embedded
data is
You can also test run the mappings using some advanced options. To start an advanced test run, do one the following:
If you have translated runtime text (error messages and parameters), you can select different base languages to display
translations.
Depending on the source le type and the speci ed data source option, the data used for test run can be different, as listed in the
table below:
RPT Use sample data in the source Sample data in the source le None.
.rpt le
Use External XML le exported Updated data in an XML le that is For more information about how to
from the source .rpt le exported from the source RPT le update data in an RPT le and how to
export an RPT le to the XML format,
see the SAP Crystal Reports online help.
Preview RPT Data Live data in a connected SAP Business If you are not designing your format
One company project on the landscape server, you
need to provide the System Landscape
Directory server address.
XML Use the embedded XML data Sample data in the source le None.
Use an external XML le Data in a le whose structure matches The structure of the external XML le
the source le must match the source le. For
information about the matching rules,
see Updating Source or Target Files.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 22/66
10/3/2019
More Information
How to Create a File Format Project
Procedure
To save the format project, do one of the following:
Press CTRL + S .
To save the format project under a different name, in the menu bar, choose File Save As... and specify the new format name.
More Information
How to Create a File Format Project
Referencing Nodes
You can use drag-and-drop to reference source and target nodes when de ning mapping conditions or validation rules. The
reference number must be unique for each node.
Procedure
Using Node Values as Arguments
You can directly use the value of a node as an argument in an expression, as follows:
Enter <Reference Number> in the function. For example, if the reference number is "Ref", enter Ref in the
argument eld.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 23/66
10/3/2019
Press Ctrl and drag the node to the argument eld.
You can also reference a node in a function in either of the following ways:
Enter %<Reference Number> in the function. For example, if the reference number is "Ref", enter %Ref in the function.
Press Ctrl and drag the node to the function. A percent sign (%) is automatically added before the reference number.
More Information
How to Create a File Format Project
Using Functions
Procedure
You can use functions in the following scenarios.
2. On the Mapping Setting tab, in the Value area, select the Function radio button.
More Information
Functions
Referencing Nodes
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 24/66
10/3/2019
How to Create a File Format Project
Functions
The following types of functions are supported:
Boolean
Date
Node-set
Number
String
More Information
Using Functions
Functions: Boolean
Functions: Date
Functions: Number
Functions: String
Functions: Boolean
boolean(object)
Description: Returns a boolean value for a number, string, or node-set. This function converts arguments to booleans according to
the following rules:
If the argument is a negative or positive number, it is converted to the boolean value true. If the argument is zero or an NaN
value, it is converted to false.
If the argument is a non empty node-set, it is converted to true. An empty node-set is converted to false.
If the argument is a non-empty string, it is converted to true. An empty string is converted to false.
If the argument is an object of a type other than the four basic types, it is converted to a boolean in a way that is dependent
on that type.
Samples:
boolean(0) = false
boolean(1) = true
boolean(-100) = true
boolean(100) = true
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 25/66
10/3/2019
boolean(NaN) = false
boolean('hello') = true
boolean('') = false
not(boolean)
Sample:
true()
lang(string)
Description: Returns true if the language of the current node matches the language of the speci ed language
Sample:
false()
*equal(object, object)
Sample:
equal(1, 2) = false
*notequal(object, object)
Description: Returns true if argument 1 does not equal argument 2; otherwise false
Sample:
notequal(1, 2) = true
*equal-or-greater(number, number)
Description: Returns true if arg1 is equal to or greater than arg2, otherwise false.
Sample:
equal-or-greater(2, 2) = true
*equal-or-less(number, number)
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 26/66
10/3/2019
Description: Returns true if arg1 is equal to or less than arg2; otherwise false
Sample:
equal-or-less(1, 2) = true
*greater(number, number)
Sample:
greater(1, 2) = false
*less(number, number)
Sample:
less(1, 2) = true
*logical-and(boolean, boolean)
Description: Returns true if arg1 and arg2 are both true; otherwise false
Sample:
*logical-or(boolean, boolean)
Sample:
More Information
Functions
Functions: Date
Functions with "*" are extended functions for the Electronic File Manager: Format De nition add-on.
Parameters suffixed with a question mark "?" have a default value and can be omitted.
*now(string format?)
Description: Returns the current date and time in a speci c format. The default format is ISO8601 "yyyy-MM-ddTHH-mm-ss".
Sample:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 27/66
10/3/2019
now('yyyyMMddhhmmss') returns "20090929094252"
*today(string format?)
Description: Returns the current date in a speci c format. The default format is ISO8601 "yyyy-MM-dd".
Sample:
Sample:
Description: Returns the number of different days between two dates. The default value of format1 and format2 is ISO8601 "yyyy-
MM-dd".
Sample:
Description: Returns a speci ed date with the speci ed number interval (signed integer) added to a speci ed date part of that
date.
Sample:
More Information
Functions
Parameters suffixed with a question mark "?" have a default value and can be omitted.
id(object)
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 28/66
10/3/2019
Description: Selects elements by their unique ID.
Sample:
<Text>
<Persons>
<Person>A</Person>
<Person>B</Person>
<Person>C</Person>
</Persons>
</Text>
Description:
Sample:
<Text>
<Persons>
<Person>A</Person>
<Person>B</Person>
<Person>C</Person>
</Persons>
</Text>
Suppose the reference number of node set Persons is PersonRef. node-concat(%PersonRef, ", ") returns "A,B,C".
More Information
Functions
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 29/66
10/3/2019
Functions: Number
Functions with "*" are extended functions for the Electronic File Manager: Format De nition add-on.
Parameters suffixed with a question mark "?" have a default value and can be omitted.
Description: Converts a number to a string using the format pattern speci ed by the second argument and optionally, to the
decimal-format named by the third argument.
The format pattern string is in the syntax speci ed by the JDK 1.1 DecimalFormat class. For more information, see
https://docs.oracle.com .
Sample:
last()
Description: Returns a number equal to the context size of the expression evaluation context
Sample:
<Text>
<Persons>
<Person>A</Person>
<Person>B</Person>
<Person>C</Person>
</Persons>
</Text>
position()
Description: Returns the position or index number of the node, relative to all the selected nodes in the node list. The position of
the node is 1-based, so the rst node returns a position of 1.
Sample:
<Text>
<Persons>
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 30/66
10/3/2019
<Person>A</Person>
<Person>B</Person>
<Person>C</Person>
</Persons>
</Text>
count(node-set)
Sample:
<Text>
<Persons>
<Person>A</Person>
<Person>B</Person>
<Person>C</Person>
</Persons>
</Text>
Suppose the reference number of node set Persons is PersonRef. count(%PersonRef) returns 3.
number(object?)
sum(node-set)
Description: Returns the sum of all nodes in the node set. Each node is rst converted to a number value before summing.
Sample:
<root>
<a>1</a>
<a>2</a>
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 31/66
10/3/2019
<a>3</a>
</root>
ceiling(number)
Description: Returns the smallest integer that is not less than the argument
Sample:
ceiling(2.5) = 3
ceiling(-2.3) = -2
ceiling(4) = 4
oor(number)
Description: Returns the largest integer that is not greater than the argument
Sample:
oor(3.5) = 3
oor(-1.3) = -2
oor(4) = 4
round(number)
Sample:
round(2.6) = 3
round (2.4) = 2
round(2.5) = 3
round(-1.6) = -2
round(-1.5) = -1
Sample:
roundup(1054.32179, 0) = 1054
roundup(1054.32179, 1) = 1054.3
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 32/66
10/3/2019
roundup(1054.32179, 2) = 1054.32
roundup(1054.32179, 3) = 1054.322
roundup(1054, 3) = 1054.000
Sample:
add(2, 3) = 5
Sample:
subtract(6, 2, 1) = 3
Sample:
multiply(1, 2, 3) = 6
Sample:
divide(6, 3, 2) = 1
Description: Returns the integer that can be divided without a remainder into the difference between num1 and num2
Sample:
modulus(5, 2) = 1
*sum-if(node-set, boolean)
Sample:
<root>
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 33/66
10/3/2019
<a>1</a>
<a>3</a>
<a>2</a>
</root>
*count-if(node-set, boolean)
Sample:
<root>
<a>1</a>
<a>3</a>
<a>2</a>
</root>
*is-number(object value)
More Information
Functions
Functions: String
Functions with "*" are extended functions for the Electronic File Manager: Format De nition add-on.
Parameters suffixed with a question mark "?" have a default value and can be omitted.
string-length(string?)
Sample:
string-length("abcd") returns 4
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 34/66
10/3/2019
local-name(node-set?)
Description: Returns the local part of the expanded name of the node in the node-set argument that is rst in the document order.
Sample:
<Text>
<Persons>
<Person>A</Person>
<Person>B</Person>
<Person>C</Person>
</Persons>
</Text>
namespace-uri(node-set?)
Description: Returns the namespace Uniform Resource Identi er (URI) of the expanded name of the node in the node-set
argument that is rst in the document order.
Sample:
<Text>
<Persons>
<Person>A</Person>
<Person>B</Person>
<Person>C</Person>
</Persons>
</Text>
name(node-set?)
Description: Returns a string containing a QName representing the expanded name of the node in the node-set argument that is
rst in the document order.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 35/66
10/3/2019
Sample:
<Text>
<Persons>
<Person>A</Person>
<Person>B</Person>
<Person>C</Person>
</Persons>
</Text>
string(object?)
Description: Returns the string value of the argument, which could be a number, boolean, or node-set.
Sample:
Sample:
starts-with(string, string)
Description: Returns true if the rst argument string starts with the second argument string; otherwise returns false.
Sample:
contains(string, string)
Description: Checks whether the rst argument string contains the second argument string.
Sample:
substring-before(string, string)
Description: Returns the substring of the rst argument string that precedes the rst occurrence of the second argument string in
the rst argument string, or the empty string if the rst argument string does not contain the second argument string.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 36/66
10/3/2019
Sample:
substring-after(string, string)
Description: Returns the substring of the rst argument string that follows the rst occurrence of the second argument string in
the rst argument string, or the empty string if the rst argument string does not contain the second argument string.
Sample:
Description: Returns the substring of the rst argument starting at the position speci ed in the second argument and having the
length speci ed in the third argument. Index begins from 1.
Sample:
normalize-space(string?)
Description: Returns the argument string with the leading, trailing, and repeating white spaces stripped.
Sample:
Description: Returns the rst argument string with occurrences of characters in the second argument string replaced by the
character at the corresponding position in the third argument string.
Sample:
Sample:
Description: Returns a string lled with argument 2 and with length as argument 1. Sample: padding(10, "abc") = "abcabcabca"
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 37/66
10/3/2019
Sample: align("abc", 'dddd', true) = "abcd"
*padding-align(string target, number length, string padding, boolean alignToLeft, boolean allowTruncate?)
Description: Padding the target string with the speci ed padding character and also aligning and truncating as speci ed. Default
value of allowTruncate is true.
Sample:
Sample:
Description: Reports the index of the rst occurrence of a String. Index begins at 1. If not found, returns 0.
Sample:
nd('ab cd', ' ') returns 3 nd('ab cd ef', ' ', 4) returns 6
Sample:
Sample:
Sample:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 38/66
10/3/2019
*lower(string input)
Sample:
*upper(string input)
Sample:
Description: Finds the position of the sub-string matching the pattern. Index begins at 1. If not found, returns 0
Sample:
Sample:
Description: Replaces all the matches in the input with a replacement string
Sample:
Sample:
*format(string format, object obj1?, object obj2?, object obj3?, object obj4?, object obj5?)
Description: Replaces the format item in a speci ed string with the text equivalent of the value of a speci ed object instance.
Sample:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 39/66
10/3/2019
More Information
Functions
Escape Sequences
The backslash (\) is used as the escape character in the EFM, and the EFM supports a range of escape sequences, as listed in the
table below:
\t 0x09 Tab
\0 0x00 Null
\b 0x08 Backspace
\\ 0x5c Backslash
More Information
Using Functions
XML: Checks the mapping settings of only the nodes required by the imported XML schema and the validation settings of
all the nodes.
You can import an XML schema by selecting one of the following options when you add an XML target le:
CSV: Checks both the mapping settings and validation settings of all the nodes.
Procedure
1. To verify the format, do one of the following:
Click .
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 40/66
10/3/2019
Choose Project Verify .
2. After the veri cation is nished, messages of error, warning, or information appear on the Message tab.
To display different types of messages, choose the Errors, Warning, or Information button. By default, all types of
messages are displayed.
To export messages, right-click any space on the Message tab and choose Export All. In the Save As window, specify the
le name and choose the Save button.
Related Information
How to Create a File Format Project
Procedure
Searching for Nodes in the Mapping Area
Press Ctrl + F .
Click .
3. In the Find window, from the Look In dropdown list, select Mapping and do one of the following:
To search for a node by its name, in the Find eld, specify the node name, and from the Find By dropdown list,
select Name.
To search for a node by its reference number, in the Find eld, specify the reference number, and from the Find By
dropdown list, select Reference No..
4. To use the advanced nd function, select Match Case or Match Whole Word.
6. The found node is highlighted in the le format tree. If more than one node matches the keyword, choose the Find button
repeatedly.
Press Ctrl + F .
Click .
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 41/66
10/3/2019
3. In the Find window, from the Look In dropdown list, select Output, and in the Find eld, specify the text.
4. To use the advanced nd function, select Match Case or Match Whole Word.
6. The found texts are highlighted on the Output tab. If more than one text is found, choose the Find button repeatedly.
More Information
How to Create a File Format Project
Full View
In full view, all the nodes, including the technical nodes, are displayed in the target format tree. A target format tree with XML
schema is opened in full view by default.
In compact view, technical nodes are hidden and not displayed as follows:
Choice: The Choice node is hidden but only the rst child node is displayed by default .
All: The All node is hidden but all the child nodes are displayed.
Sequence: The Sequence node is hidden but all the child nodes are displayed.
You can customize a tree view by displaying or hiding non technical nodes in full view and displaying the customized tree view in
compact view.
When you hide a node, all the child nodes are hidden automatically in the compact view.
After you map a non technical node, you cannot hide the node. If you map a hidden non technical node, it switches to
display automatically in compact view.
For the Choice node, only the rst sub node is displayed by default in compact view. But you can hide the other sub nodes
under the Choice node.
Procedure
Viewing a Format Tree in Full View or Compact View
Right-click the format tree head and choose the view to which you want to switch.
2. To hide a non technical node, click the non technical node until the node is greyed out.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 42/66
10/3/2019
To display the non technical node, click the node until the node is enabled.
Note
Although you can de ne parameters for the RPT source les of a BPP format project, these parameters are ignored.
Therefore, EFM does not support translation of RPT le parameters for BPP format projects.
Validation messages
You can translate these strings into all languages supported by SAP Business One.
Note
EFM supports translation into the Hebrew language, but does not support the right-to-left writing convention.
All the translatable strings are displayed. The RPT le parameters are grouped by each source RPT le. Neither the RPT le
parameters nor the validation messages are grouped by different mappings.
3. Select the menu name, an RPT le parameter, or a validation message, and the Translation tab is automatically displayed
in the work space.
4. In the Text eld of the corresponding language, enter the translation of the string in the base language.
After saving the translations, you can export them to an XML or CSV le.
Exporting Translations
For a GEP or BPP format project, you can export the translatable strings in the base language and their translations to an XML or
CSV le. The export procedure is as follows:
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 43/66
10/3/2019
3. In the Save As dialog box, specify the le path, name, and type, and choose the Save button.
After export, you can modify the translations and then import the XML or CSV le back into the format project or other format
projects with the same structure.
Caution
The export XML or CSV le cannot be imported back into the original format project if you change the following items:
Menu
RPT le parameters
Importing Translations
You can import translations in an XML or CSV le into a GEP or BPP format project.The import procedure is as follows:
3. In the Open dialog box, nd and select the XML or CSV le and choose the Open button.
Procedure
Adding a Mapping
Click .
Displaying a Mapping
If the mapping tab is open, choose Project Window <Mapping Name> , or right-click the icon of the mapping in the
format explorer and choose Open....
If the mapping tab is closed, right-click the icon of the mapping and choose Open....
Deleting a Mapping
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 44/66
10/3/2019
To delete a mapping, right-click the icon of the mapping and choose Delete.
Note
Closing the mapping tab does not delete the mapping.
Moving a Mapping
To move a mapping up or down, right-click the icon of the mapping and choose Move Up or Move Down.
Menu bar Displays menu commands for working with a format project.
Toolbar Displays easy access to common functions for working with a format project.
Format Explorer Displays a format project with source and target les.
Property Displays the properties of a format project, a mapping, a source or target tree, or a node.
Start Page: You can create a new format project or open an existing format project. Recently opened
projects are displayed.
One or multiple mapping tabs for a format project. Each mapping tab displays the relevant source tree and
target tree.
Translation tab for a mapping, where you can enter translations for runtime text. For more information, see
Translating Runtime Text of GEP and BPP Format Projects.
Message tab Displays error, warning, or information messages resulting from veri cation and test runs. You can export all the
messages.
Output tab Displays test run results. You can export the test run results.
Mapping Setting tab You specify mapping conditions for a target node on this tab.
For more information, see Mapping Between the Source and Target Trees.
Validation tab You specify validation rules for a target node on this tab.
For more information, see Creating Validation Rules for the runtime.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 45/66
10/3/2019
Area Description
Source tab For a BFP format project with a TXT le source, you can validate the mapping settings with data from a sample TXT
bank statement le.
For more information, see BFP: Validating Mapping Settings with TXT Source Data.
Menu Bar
The area at the top of the Electronic File Manager: Format De nition window containing commands and functions that enable
you to work with the tool.
File Menu
File
Edit Menu
Edit
View Menu
View
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 46/66
10/3/2019
Project Menu
Advanced Test Run Test runs each mapping with different data sources
Import Translation Available for GEP and BPP format projects only
Export Translation Available for GEP and BPP format projects only
Help Menu
Online Help Opens the online help of the Electronic File Manager: Format
De nition add-on
About... Displays the exact version number and build information of the
Electronic File Manager: Format De nition add-on
Toolbar
The toolbar, located below the menu bar, is a collection of icons that provide quick access to commonly used functions. Active
functions are shown in color, while inactive ones are grayed out.
The functions represented by the buttons are also available in the menu bar.
Toolbar Icons
Icon Description/Activity
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 47/66
10/3/2019
Icon Description/Activity
Test runs each mapping with one of the following data sources:
External data in the XML format, which is exported from the source .rpt le
Veri es a format
Adds a mapping
Opens the online help of the Electronic File Manager: Format De nition add-on
Format Explorer
The Format Explorer area displays the format project in a tree structure.
Format Structure
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 48/66
10/3/2019
Source File: Third Level Displays the names of the source les. A
mapping can contain more than one source
le. Each source le has a corresponding
format tree on its mapping tab in the
Mapping area.
Target File: Third Level Displays the name of the target le. The
target le has a corresponding format tree
on its mapping tab in the Mapping area.
Translation Explorer
The Translation Explorer area displays the translatable strings of a format project in a tree structure.
Menu Name First level Available for GEP format projects only
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 49/66
10/3/2019
RPT File First level Available for GEP format projects only
Parameters
Groups all RPT le parameters by the RPT le to which they belong
> Validation Second level Displays the name of the validation message
message
The default naming convention of a message is
Msg_<Validation Type>_<Sequential number>, for example,
Msg_Occurrence_1. The sequence of the numbers is determined by the creation order
of the validation messages, but not according to the position of the node in the structure.
Properties
The Properties area displays all the properties available for de ning the entire format project, each mapping, each source or
target le, and each source or target node. As a rule, we recommend that you de ne the properties following the order below:
2. Mapping Properties
More Information
How to Create a File Format Project
To de ne the properties of the format project, in the format explorer, choose the format project node (icon: ) and the
properties of the format project are displayed in the Properties area.
Deployment Properties
All Version Version of the format project, The initial value is 1.0.
speci ed for the convenience of
future maintenance. You can de ne two digits for a
minor version, such as 1.11.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 50/66
10/3/2019
Note
When you import the format
project into a different
version of SAP Business One,
the application warns you
that the format project is not
intended for this version.
However, SAP Business One
does not prevent you from
importing the format project
if you insist on doing so.
All Last Changed On Date on which the format project 6/11/2010 3:19 PM
was last changed; includes the
time.
GEP Menu Path Menu path of the format project Financials Financial
after it is imported into SAP Reports Electronic Financial
Business One. Report EU Sales Report
General Properties
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 51/66
10/3/2019
All [Optional] Description Description of the format The report lists the
project. goods and services sold
by a company to
customers in European
Union countries,
grouped by the country
and tax ID of the
customers.
Note
When you import the format
project into an SAP Business
One company with different
local settings, SAP Business
One warns you that the
format project is not
intended for this localization.
However, SAP Business One
does not prevent you from
importing the format project
if you insist on doing so.
More Information
Properties
Mapping Properties
You can give each mapping a more appropriate name or a detailed description, which would be bene cial for future maintenance.
For GEP and SPP format projects, it is even possible to write a user script to handle computing-intensive tasks (for example, heavy
calculations and loop functions).
To de ne the properties of a mapping, in the format explorer, choose the mapping node (icon: ) and the properties of the
mapping are displayed in the Properties area.
General Properties
Property Description
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 52/66
10/3/2019
[GEP and SPP] User Script
Property Description
Script Type The EFM supports the following two types of user script:
CSharp
JavaScript
Note
Both types of script are based on MSXSL scripts.
Functions Click the ellipsis button in the eld to write functions in the user
script editor.
More Information
Properties
To de ne the properties of a le, in the format explorer, choose the le node (under the Source or the Target folder node) and the
properties of the le are displayed in the Properties area.
General Properties
General
Description Description of the le. RPT file with database tables for
the payment wizard
Each format has its unique properties to de ne and the property section title may also be different from others.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 53/66
10/3/2019
Data
XML, XBRL File Output File Name Name of the output le de-eusales-1.0.xml
generated at runtime.
Note
Encoding Encoding of the output UTF-8; ISO-8859-1
For BFP format le.
projects, these
properties are Indent Indicates whether to True
prede ned and indent the XML elements
cannot be edited. in the output le.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 54/66
10/3/2019
To de ne a collection of
namespaces, do the
following:
1. Click the
Namespaces
eld and choose
the ellipsis
button.
2. In the
Namespaces
Editor window,
enter the pre x
and URI for the
rst namespace.
3. To de ne more
namespaces,
press ENTER
and repeat step
2.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 55/66
10/3/2019
Example
You have de ned "\t"
(tab) as the eld
separator. In some
exceptional cases,
"\t" is part of a
character sequence
(for example,
"...\tab").
More Information
Properties
To de ne the properties of a tree node, in the workspace, in the particular tree, choose the node; the properties of the node are
displayed in the Properties area.
General Properties
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 56/66
10/3/2019
Regardless of their le format and of whether they are in the source or the target tree, the tree nodes share some common
properties.
The RPT eld nodes hold actual data and have the following RPT-speci c properties (grouped in the RPT section):
Formula Name Formula name, taken from the RPT le. {CINF.LawsSet}
Use Original Formatted Value Indicates whether to use the original False: The original value of the eld will be
formatted value in the target document. used.
Original Formatted Value Original value formatted from the data 15.03.2015
source according to the format.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 57/66
10/3/2019
Source TXT nodes and target TXT nodes have different properties. Different node types also have different properties.
All (except for the root node) Is Mandatory Indicates whether or not the False
node must exist in the source
le.
By some keywords
By a separator
By a regular expression
Field Data Type Speci es the data type of the String, Date, Numeric
eld.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 58/66
10/3/2019
Padding Character Specify the character to be used Zero (0) is the padding
to ll empty spaces of a eld character and the text is aligned
when its text is shorter than the to the left. If the eld value is
required length. "123", the output will be
"12300000".
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 59/66
10/3/2019
More Information
Properties
2. In the Properties area, in the Data section, click in the Locating Method eld and then choose the browse button.
3. In the Locating Method window, select a method from the dropdown list and then specify all necessary attributes.
For details about these methods, refer to the descriptions in the sections below.
Use this method when you locate the segment or eld by its absolute position within its parent segment.
Field Description
Position Starting position of the segment or eld within its parent segment.
Must be an integer number larger than 0.
Example
A segment group contains several segments. The rst segment
starts at the rst character within the segment group. If you
locate this segment by its position within the segment group,
you need to de ne the position as 1.
Fixed Length Select this checkbox to de ne a xed length for the segment or
eld.
Length Available only if you have selected the Fixed Length eld.
Min. Length Available only if you have not selected the Fixed Length eld.
Max. Length
Use this method when you locate the segment or eld by some keywords.
Field Description
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 60/66
10/3/2019
Field Description
Fixed Length Select this checkbox to de ne a xed length for the segment or
eld.
Length Available only if you have selected the Fixed Length eld.
Min. Length Available only if you have not selected the Fixed Length eld.
Max. Length
Use this method when you locate the segment or eld by a separator.
Field Description
Index
If the eld or segment is not repetitive ( Is Repetitive =
False), you can de ne this attribute to specify the relative
position of the segment or eld within the parent segment.
The position is determined by the separator.
Use Regular Expression to Identify Separator Select this checkbox if you want to use a regular expression to
identify the separator. For example, (\r?\n|\r)+ treats a
sequence of consecutive line breaks as one line break.
Example
There are 4 elds in each line of a TXT le. These elds are separated by tab characters and are not repetitive. If you want to
locate the second eld by the separator, enter \t in the Separator eld and 2 in the Index eld.
Use this method when you locate the segment or eld by a regular expression.
The EFM supports Microsoft .NET Framework regular expressions. For more information, see the Microsoft documentation at
https://msdn.microsoft.com/library .
More Information
Tree Node Properties
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 61/66
10/3/2019
Name Description
Example
A left-aligned eld has a xed length of 5 characters and uses zero (0) as the padding character. If the source eld value is
BOE00, SAP Business One ignores the two ending zeroes.
YYYYMMDD Four-digit year number (YYYY), two-digit month number (MM), and
two-digit day number (DD), with no separators.
DDMMYYYY
MMDDYYYY
YYMMDD Two-digit year number (YY), two-digit month number (MM), and
two-digit day number (DD), with no separators.
DDMMYY
MMDDYY
YYYY.MM.DD Four-digit year number (YYYY), two-digit month number (MM), and
two-digit day number (DD), with a period (.) as the separator.
DD.MM.YYYY
MM.DD.YYYY
YY.MM.DD Two-digit year number (YY), two-digit month number (MM), and
two-digit day number (DD), with a period ( . ) as the separator.
DD.MM.YY
MM.DD.YY
YYYY/MM/DD Four-digit year number (YY), two-digit month number (MM), and
two-digit day number (DD), with a slash ( / ) as the separator.
DD/MM/YYYY
MM/DD/YYYY
YY/MM/DD Two-digit year number (YY), two-digit month number (MM), and
two-digit day number (DD), with a slash ( / ) as the separator.
DD/MM/YY
MM/DD/YY
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 62/66
10/3/2019
YYDDD Two-digit year number (YY) and the day-of-year number (DDD), with
no separators.
Example
"15101" represents 1 April, 2015.
YY.DDD Two-digit year number (YY) and the day-of-year number (DDD), with
a period (.) as the separator.
YY/DDD Two-digit year number (YY) and the day-of-year number (DDD), with
a slash (/) as the separator.
MMDD Two-digit month number (MM) and two-digit day number (DD), with
no separators.
DDMMMYY Two-digit day number (DD), three-letter form of month (MMM) and
two-digit year number (YY), with no separators.
Example
"12JAN06" represents 12 January, 2006.
In SAP Business One, the standard date format is YYYY-MM-DD. If a source date eld has a different format, SAP Business One
converts the date format automatically to the standard one, as follows:
Example
YYMMDD is automatically converted to 20YY-MM-DD.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 63/66
10/3/2019
Example
MMDD is automatically converted to MM-DD.
For source elds that do not use the complete date format (that is, the year, the month or the day is missing), you must use
functions to get the complete date information. For more information, see Functions.
Example
The EntryDate eld uses MMDD as its date format. The ValueDate eld, with the reference number ValueDate, uses YYMMDD as
its date format. The system automatically converts EntryDate and ValueDate to the date format MM-DD and YYYY-MM-DD,
respectively.
To get the complete date information for EntryDate, use concat(substring(%ValueDate,1,5),.) as the mapping
method. Substring (%ValueDate,1,5) returns the year of ValueDate with dash "-" as the separator.
Concat(substring(%ValueDate,1,5),.) concatenates the result of substring(%ValueDate,1,5) with the
converted value of EntryDate.
00123456.XX Right-aligned, with or without leading zeroes, dot (.) as the decimal
point, number of decimal places not xed.
__123456.XX Right-aligned, with or without leading spaces, dot (.) as the decimal
point, number of decimal places not xed.
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 64/66
10/3/2019
123456.XX00 Left-aligned, with or without ending zeroes, dot (.) as the decimal
point, number of decimal places not xed.
123456.XX__ Left-aligned, with or without ending spaces, dot (.) as the decimal
point, number of decimal places not xed.
More Information
Tree Node Properties
Field Field
XML Node
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 65/66
10/3/2019
CSV Node
Field Field
TXT Node
Field Field
https://help.sap.com/http.svc/dynamicpdfcontentpreview?deliverable_id=20464774&topics=712b8e10c2e3473f978671da37… 66/66









