Professional Documents
Culture Documents
Page 1
Document Control
Change Record
5
7
Reviewers
Name Position
Audience
Name Position
12.1 & Above Product Support Team External
12.1 & Above Customers External
Contents
Document Control ......................................................................................... 2
1. Installations ......................................................................................... 4
2. Introduction ......................................................................................... 4
3. Legal Requirement .............................. Error! Bookmark not defined.
4. Overview of SAFT Functionality in Oracle ... Error! Bookmark not defined.
4.1 Prerequisites ....................................................................................... 6
4.2 Assumptions ....................................................................................... 7
4.3 Mandatory Setups .............................................................................. 9
4.4 Transaction Flow .............................................................................. 20
4.5 Report Submission and Parameters ........................................... 23
4.6 File Structure and Reporting Levels ........................................... 26
4.7 Report Output Analysis .................................................................. 28
4.8 Important Notes with regard to SAFT-PT Functionality ......... 59
5. Invoice Printing for Portugal Invoices ........................................ 60
6. References ......................................................................................... 61
These Add-On Localization Features are installed after the base install of Oracle E-Business Suite.
Following is the step by step process for installation of EMEA Add on - Portugal Localizations:
I) The Portugal Add-On Localization mandatory patches are available for download from MOS (R12
EMEA Add-on Localizations - Portugal (Doc ID 473622.1)). Please ensure the prerequisites are followed
before installing the patch, especially the product splicing for CLE (EMEA Consulting Localizations). For
any CLE patch, the pre-requisite patch creates and installs the product EMEA Consulting Localizations.
This process is called product splicing. In the readme for this splicing patch, detailed instructions are
given for splicing. Once the patches are installed, please ensure that the Post-installation steps are
completed.
II) Once the Patchset for Portugal Add-on Localizations are applied, go to the SAFT Extract File &
Invoice Printing section of the same Note ID and the latest patches mentioned for these features are to
be applied. These patches creates the Localization Descriptive Flexfields (LDFFs) definitions for users to
store additional information required for those features. The details are specified in the Readme of each
Add-On Localizations Feature Patch.
III) After that, follow the steps in the 'Portugal Add-On Localization Installation Manual' (Download
Installation Instructions Document from Section: Portugal Add-on Localizations - Complete Set on the
same Note ID) to enable the Localization Descriptive Flexfields. These installation steps are required to
invoke Localization Descriptive Flexfield from the additional Menu extension on the related application
forms/ pages.
IV) Once above Installation steps are completed, the setups explained in 'General Setups' section of
this Document are to be completed to enable the specific segments that capture the additional
information. It is necessary to provide the additional information for these Localization Descriptive
Flexfield segments either as a setup prerequisite or during the transaction entry depending on where
this additional information is required.
2. Introduction
This Technical Brief provides detailed information about the SAFT Functionality for Portugal in Oracle,
mandatory setups, transaction flow and process to generate the XML Output.
SAFT-PT(Standard Audit File for Tax Purposes) is the adoption to the Portuguese law of a directive from
OCDE and is applied to all information register after January 1st 2008. The details of SAFT-PT were first
described in Portuguese law n. º 321-A/2007 of 26 of March. According to this law every organization
needs to submit information to tax authority regarding transactions in the prescribed SAFT-PT file
format (XML format) to the local tax authority for tax audit purpose. This is a legal requirement in
Portugal.
Later, the necessity to adapt the file to the System Accounting Standards (Sistema de Normalização
Contabilística - SNC), as well as the certification of billing software, required changes in data structure.
The Decree 1192/2009 of 8th October approved a new file structure, with effective date of 1st January
2010. After structure introduced by Decree 160/2013 of the 23rd April , the latest XML structure has
been introduced by Decree 274/2013 of the 21st August and it is effective as off the 1st of October
2013.
Decree 302/2016 of 2nd December 2016 approved a new file structure and then after 1st July 2017
onwards-new file structure is introduced according to Certification Law Portaria nº302/2016. The new
requirement, including the mapping between SNC accounts and Taxonomy codes, is mandatory only
from 1st July 2017.
Until 1st July, customers don’t need to have the taxonomy setup as they are exporting the “old
structure” without taxonomy.
Oracle E-Business Suite 12 satisfies the "Portuguese Billing Software Certification" requirements if all
components/patches listed below are applied and if the required setup is completed. Customers who would like
to use only PT-SAFT solution can download the relevant patch.
The SAF-T Audit File [CLE: Generate SAFT-PT Audit File XML Data] in Oracle has been developed in order to meet
the above-mentioned requirement. The concurrent program is used to meet the following business
requirements:
• Generation of an SAFT-PT Audit File XML format for electronic submission to the tax authorities.
• Display of the information regarding transactions from General Ledger Module, customers, receivables
transactions, Shipping documents, suppliers, product (Inventory items/Receivables Memo Lines) and tax.
• Display of additional information stored in Localization Descriptive Flex fields (LDFF).
• Selection of the data based on the GL period from and period to.
• The XML needs to be generated either for a particular Ledger/legal entity. This must be depending on the
respective parameter values.
• Based on profile options address structure should be displayed in the file.
• Meeting the legal/statutory needs for reporting accounting information and transactions data
• Showing the detailed information of accounting and transactions data, which is under Portuguese law in
two different sections.
4.1 Prerequisites
Please refer to the MOS note 1274628.1 for JE (Oracle Financials for EMEA) for Portuguese Billing Software
Certification. Please note that this solution is mandatory prerequisite before installing SAFT-PT solution provided
by EMEA Add on Localization Development.
Please refer to the note 1597808.1 for Import Externally Signed Transactions.
Please refer to the note 1603994.1 for Portuguese Billing Software Certification-Shipping (Please install this patch
if using Oracle EBS Shipping for Portugal only).
For 12.2, please make sure that the Seed patch is applied before applying the individual feature patch.
4.2 Assumptions
• Accounting data is created at Reporting Ledger level and transactional data either at Reporting Ledger
level or at a Primary Ledger level, depending on existing setup and parameters entered on Concurrent
Program.
• It is not possible to filter data by Operating Unit.
• Ledger functional currency should be EUR and chart of accounts should be in line with SNC.
• Posting from Sub-ledgers to General Ledger is done in DETAIL mode only.
8
EMEA Add On- Technical Brief for Portugal
• All customers and suppliers are expected to have a taxpayer ID assigned to them.
• Only the documents (journal entries and source documents) whose GL Date / Transaction Date is
comprised between the periods expressed by the parameters “Period From”/”Period To” are considered.
• Only posted journal entries / transactions are included.
• Users are responsible for choosing the correct value for the Report Generation Level parameter, as well
for the remaining parameters, including period/date ranges.
• Start / End date is represented by full accounting periods. It is not possible to enter date ranges;
• Account hierarchies are defined.
• All accounts 1% to 8% are considered to belong to SNC. All the remaining are considered to be Analytical.
• 1st degree GL accounts are represented by 2 digits. Single digit GL parent accounts can be excluded.
• 1st degree Analytical accounts are identified as being the top level account.
• For every account having more than 1 parent account, a Localization Descriptive Flexfield (LDFF) is
populated with the parent account chosen to be reported in SAFT. If the child has multiple parents then
it is mandatory to provide the LDFF details on Key Account Flexfield (KFF) Values.
• Each customer bill to site / supplier site is represented as a different party.
• For VAT exempt tax codes, exemption reason is entered in tax description field.
• Stamp values code and description are entered in printed name in description fields.
• Customers who have the Billing Certification patch installed must enter ‘Yes’ on parameter ‘Billing
certification Installed’ in order to get certification information exported on the file.
• Customers using shipping documents and who have the Shipping Certification patch installed must enter
‘Yes’ on parameter ‘Shipping certification Installed’ in order to get shipping documents information
exported on the file.
• Receipts should have sequential numbering assigned, either by standard document sequences or by
Receipt Acknowledgment Letter sequence setup.
• Cash VAT regimes are setup by using VAT tax rates with Deferred Recovery Settlement.
• Cash VAT Regimes are identified at customer level and for specific situations at receipt level.
• Tax information on Receipts depends on Miscellaneous System Option ‘Application Rule Set’ which
should be set to ‘Prorate All’.
• When a receipt doesn’t have active applications at the time of export, it is not exported, but it can be
exported later, if SAFT-PT runs again for the same receipt date period, if active applications are done on
subsequent months.
In other words, SAFT-PT exports receipts for each period based on the receipt date, with the situation it
has at the time it is exported, regardless of the dates of the active applications. Hence to be fully
compliant with SAFT requisites and its validation by Tax Authorities, users should create a new receipt
for new applications instead of creating new applications on different periods for the same receipts.
9
EMEA Add On- Technical Brief for Portugal
4.3 Mandatory Setups
The following steps need to be completed in order to generate “CLE: Generate SAFT-PT Audit File XML Data‟
output successfully.
10
EMEA Add On- Technical Brief for Portugal
2. General Setups:
1. Setup for CAE Primary Activity Code: Navigate to Accounting Setup Manager -> Legal Entities -> Country:
Portugal -> Tab General -> Update -> CAE Primary Activity.
CAE Activities are selected from AR lookup code "LEGAL_ACTIVITY_CODE_PT", User needs to insert CAE codes in
order to populate the value set and setup the LE accordingly.
2. Functions: User should check if functions ‘CLE_F220_PG’ and ‘CLE Localization DFF Form’ (CLE_F220_DFFX)
are inserted on the menu associated to the responsibility being used.
11
EMEA Add On- Technical Brief for Portugal
3. User should compile the menus using ADADMIN utility from UNIX.
4. User should ensure that Profiles defined at the responsibility (GL) level has same values which are mentioned
below:
JG: Application - General Ledger
JG: Product - European Localizations
JG: Territory – Portugal
5. Change profile FND: Enable Industry Editing profile is set to Yes and check if all CLE Forms personalization are
created (Navigate to Setup -> Transaction Types -> Help / Diagnostics / Custom code / Personalize).
6. Users should compile LDFF's and ensure that programs are finished with success.
12
EMEA Add On- Technical Brief for Portugal
3. Profile Options
System Administrator Responsibility > Profile > System
Setup of profile options is mandatory in order to generate a correct SAFT file. These profiles indicate which table
column (customer and supplier sites addresses) will be used to populate the Postal Code, District, City, Address
and Country elements and which Tax Type is used to identify Tax “Imposto de Selo”.
Define and check the values of the following CLE profile options:
ADDRESS1
ADDRESS1 + ADDRESS2
ADDRESS1 + ADDRESS2 + ADDRESS3
ADDRESS1 + ADDRESS2 + ADDRESS3 + ADDRESS4
ADDRESS2
ADDRESS3
ADDRESS4
CITY
COUNTRY
COUNTY
POSTAL_CODE
PROVINCE
STATE
Possible values for profile 11 are the Tax types defined on Lookup “ZX_TAX_TYPE_CATEGORY” and from that list,
tax type currently being used for the purpose of Stamp Tax should be picked for this profile.
If no specific TAX_TYPE is being used, you may create Tax Type “Imposto de Selo” as a lookup value that should
be added to lookup “ZX_TAX_TYPE_CATEGORY”.
13
EMEA Add On- Technical Brief for Portugal
Regarding Profile 12, "CLE: PT Tax Code not subject to VAT" is used when AR transactions doesn't have tax lines.
Since SAFT legal requirement, Portuguese Law changed and it is mandatory to have tax details.
As the old transactions or upgraded transactions do not have this information, SAFT program will associate these
transactions to the tax rate associated to this profile option.
In this case we should setup the tax rate LDFF 'CLE: Additional Information' as 'NS' - Not Subject to VAT or IS.
Context Value = PT
LDFF on Tax rates for PT = NS
*Tax value = NS
*Country = PT
Export to SAFT = Yes
Profile 13 has the possible values of Yes or No, to indicate if AR transaction number will be used for SAFT.
Profile 14: CLE: PT SAFT Taxonomy Reference - Users need to assign Taxonomy Reference that will be used by
Portuguese Legal Entity.
Please ensure that the following Localization Descriptive Flexfields (LDFFs) are in place when the patch is
installed. These needs to be verified once the patch installation has been completed.
Query for the below mentioned Localization DFF titles and enable the ‘PT’ context for them, in case
it is not already enabled.
a) AR: LDFF that already exist for AR, invoice type. We need to include the following codes on AR LDFF -
CM/CC/FC/PF/RP/RE/CS/LD….
If the AR trx have this LDFF then it will not be printed on AR block, but on this block.
If AR trx have this LDFF with the old values, then it will be printed on the AR side. b)
OM: Codes NE/OR (Debit Memos not signed- pending from AT)
c) Shipment: It will print OU if ship trx date is > 30.06.2017
14
EMEA Add On- Technical Brief for Portugal
• CLE: Additional Info On HZ Parties
• CLE: Additional Info On ZX Tax Rates
• CLE: Additional Info On Receipt Methods
• CLE: Additional Info On Memo Lines
• CLE: Additional Info On Transaction Lines – This new LDFF will have the Administrative Reference number
to be printed on ARCNo Tag in case of an Exempt tax
• CLE: Additional Information on Inventory Item to identify the Excise Duty item.
So, if set up of DFF is done, program will export the setup, if not it will export account's hierarchy definition.
Responsibility: Receivables > Setup > Financials > Flexfields > Key > Values>
Select the SNC Accounts Flexfield and for each account, enter the LDFF information.
Note: If SNC Chart of accounts setup is not available, SAFT-PT Extract file still works and produce XML output in
desired format, but it may not be accepted by the legal authorities, as SNC COA is mandatory legal requirement
in Portugal since 2010.
Responsibility: Receivables
Navigation: Customers > Standard
Query for the existing customer or define a new customer. Click on Account Name and then click on “CLE:
Additional Information” to enter the LDFF values.
16
EMEA Add On- Technical Brief for Portugal
8. Define LDFF values at Tax Rate Level
Query for the tax rates defined for Portugal. Click on Tax Rate Name and then click on “CLE: Additional
Information” to enter the LDFF values.
17
EMEA Add On- Technical Brief for Portugal
9. Define LDFF values at Supplier Level
Responsibility: Payables
Navigation: Suppliers > Entry
Query for the existing supplier defined for Portugal. Move cursor Right to CLE: Foreign Supplier
18
EMEA Add On- Technical Brief for Portugal
10. OAF Page Personalization Steps
Localization DFF’s, Global DFF’s and Form based personalizations are automated and are part of the patch. OAF
page personalizations needs to be created manually at Customers, Suppliers and Tax Rates Level by following the
steps mentioned in the user guide (Refer section - OA Page Personalization Steps).
11. AR Transaction Source
Responsibility: Receivables
Navigation: Setup > Transactions > Sources
Enter all the mandatory details and click on GDFF to enter the details as shown below:
19
EMEA Add On- Technical Brief for Portugal
11. AR Transaction Type
Responsibility: Receivables
Navigation: Setup > Transactions > Transaction Types
Enter all the mandatory details and click on Actions > CLE: Additional Info on Transaction Type to enter the
details as shown below:
20
EMEA Add On- Technical Brief for Portugal
Note: For more details on the setup, please refer the User Guide for R12 EMEA Add-on Localizations - Portugal
21
EMEA Add On- Technical Brief for Portugal
b. Enter the values in GDFF at Transaction Header Level
c. Enter the values in LDFF – Actions > CLE: Additional Info on Transactions
22
EMEA Add On- Technical Brief for Portugal
d. Complete the Transaction
23
EMEA Add On- Technical Brief for Portugal
4.5 Report Submission and Parameters
The users will be provided with a concurrent request that will generate the SAFT File in XML format for
electronic submission to the Tax authorities.
The XML output will be generated on server and placed in the utl_file_dir based on the parameters entered
in the concurrent request.
24
EMEA Add On- Technical Brief for Portugal
25
EMEA Add On- Technical Brief for Portugal
Parameters:
Legal Entity Yes N/A It shows associated legal entities of the selected ledger.
Balancing Segment No N/A It shows associated balancing segments of selected legal entity
and it is filtered based on the legal entity selection.
Inventory No N/A It shows all Inventory organizations available in the environment.
Organization
Business Name Yes N/A This field needs to be entered by the user.
26
EMEA Add On- Technical Brief for Portugal
Report Yes N/A The List of Values(LOV) contains:
Generation Level C – Contabilidade
(C – Accounting)
F – Facturação
(F – Billing)
I – Integrado
(I – Integrated)
P1 - Dados parciais de Facturação – Integrado
(P1 – Partial data Billing – Integrated)
P2 - Dados parciais de Facturação – Não Integrado
(P2 – Partial data Billing – Not Integrated)
S – Autofacturação
(S – Selfbilling)
R – Receipts
T – Shipping Documents
E – Billing issued by third parties
File Version Yes N/A This parameter shows a constant value “1.04_01‟ as
default.
Company Name Yes N/A This field needs to be entered by the user.
Registration Yes N/A This field needs to be entered by the user.
Number
Fiscal Yes NA This field needs to be entered by the user.
Registration
Number
Address Yes N/A This field needs to be entered by the user.
City Yes N/A This field needs to be entered by the user.
Postal Code Yes N/A This field needs to be entered by the user.
Region Yes N/A This field needs to be entered by the user.
Country Yes N/A This field needs to be entered by the user.
Period From Yes N/A The List of Values (LOV) for the periods attached to ledger.
Period To Yes N/A The List of Values (LOV) for periods attached to ledger.
First Period of the Yes Yes It should show all the periods not Future neither Never Opened
Fiscal Year based on the ‘Ledger Name’ parameter selection.
By default it should show the first non adjustment period of the
Fiscal year containing the period inserted on parameter Period
From
Comments No N/A This field needs to be entered by the user.
Telephone No N/A This field needs to be entered by the user.
Fax No N/A This field needs to be entered by the user.
Email No N/A This field needs to be entered by the user.
Website No N/A This field needs to be entered by the user.
XML solves PT Yes Yes By default this parameter is set to YES, but If for some reason
Char Set the XML is not being able to generate Portuguese characters this
parameter should be set to NO.
Billing Yes N/A For environments which do not have the billing
certification certification installed, it should be set to NO, if certification
Installed is installed it should be set to YES.
27
EMEA Add On- Technical Brief for Portugal
Shipping Yes N/A For environments which do not have the Shipping certification
certification installed, it should be set to NO, if certification is installed it
installed should be set to YES. This parameter determines if shipping
documents information is exported on SAFT file. When set to
‘YES’, SAFT blocks 4.2 and 4.3 will be exported, when set to ‘NO’,
these 2 blocks will not be exported.
Receipts Yes N/A This parameter defines whether type of Receipts Sequence
Sequence numbering is from either standard document sequences or
numbering type Receipt acknowledgment Letter sequence setup.
File Directory No N/A It is not a mandatory parameter .PT Saft XML output file is saved
in the path specified in the parameter and can be moved to only
one directory at a time.
Reporting Levels:
The SAFT-PT file has the following reporting generation levels:
a. Accounting (C)
b. Billing (F)
c. Self-billing (S)
d. Integrated (I)
e. Partial data billing – Integrated (P1)
f. Partial data billing - Not Integrated (P2)
g. Receipts (R)
h. Shipping documents (T)
i. Billing issued by third parties (E)
4.7 Report Output Analysis
28
EMEA Add On- Technical Brief for Portugal
SAFT-PT_7378269.x
ml
XML Tags
The following table describes the XML tags generated as a part of the XML file and relative description of
the tags.
<CompanyID> This tag contains the value of the parameter 'Registration Number
'.
<TaxRegistrationNumber> This tag contains the value of the parameter 'Fiscal Registration
Number'.
<TaxAccountingBasis> This tag contains the value of the parameter 'Report Generation
Level'.
<CompanyName> This tag contains the value of the parameter ‘Company Name'.
<BusinessName> This tag contains the value of the parameter 'Business Name'.
<PostalCode> This tag contains the value of the parameter 'Postal Code '.
29
EMEA Add On- Technical Brief for Portugal
<FiscalYear> This tag is the year of the 'Period From and Period To' parameters.
<StartDate> This tag contains the value of the parameter 'Period From '.
<EndDate> This tag contains the value of the parameter ' Period To'.
<DateCreated> This is the date of creation (sys date) in the format 'YYYY-MM-
DD”.
<TaxEntity> This tag contains a value depending on the Tag:
'<TaxAccountingBasis>'
1. If the tag Tax Accounting Basis is having the values “F”,
“C”, or “S”, or “P1”, this tag contains a value as “Global”.
2. If Tax Accounting Basis is having the value “I” or “P2”,
it will display the value “Sede”.
<ProductCompanyTaxID> This tag shows constant value as “502186771”.
<SoftwareCertificateNumber> This tag shows constant value as “0” If the parameter value is null.
Otherwise, it shows value from parameter “Software Certificate
Number”.
<ProductID> This tag shows constant value as “ORACLE/EBUSINESS SUITE”.
<ProductVersion> This tag contains the value of software version of the product.
<AccountID> This tag shows every natural account segment values whether it
allows posting or not.
<AccountDescription> This tag shows the description of the above account.
30
EMEA Add On- Technical Brief for Portugal
<OpeningDebitBalance> This tag contains value of the opening debit balance for the first
non adjustment period of the Fiscal year chosen on parameter
“First Period of the Fiscal Year”
<OpeningCreditBalance> This tag contains value of the opening credit balance for the first
non adjustment period of the Fiscal year chosen on parameter
“First Period of the Fiscal Year”
<ClosingDebitBalance> This tag contains value of the closing debit balance (for the Last
non adjustment period of the fiscal year chosen on
parameters).
<ClosingCreditBalance> This tag contains value of the closing credit balance (for the Last
non adjustment period of the fiscal year chosen on parameters).
<GroupingCategory> It will identify both the account types (General Ledger and
Analytical) and whether if it is a 1st degree account (“Conta do
Razão”),parent account (“Conta Agregadora”) or a movement
account (“Conta de Movimento”):
- GR – 1st degree GL account;
- GA – GL parent account;
- GM – GL movement account;
- AR – 1st degree analytical account;
- AA – Analytical parent account;
- AM - Analytical movement account.
<GroupingCode> This tag contains value of the parent account (AccountID).
<CustomerID> This tag contains the concatenated value of the customer’s account
number and party site ID.
<AccountID> This tag shows Receivables natural account segment value setup at
customer site level.
<CustomerTaxID> This tag contains a constant value “999999990‟, if the customer is
generic customer. Otherwise, it shows customer’s taxpayer ID for
normal customers.
<CompanyName> This tag contains a constant value “Final consumer, “l”, if the
customer is generic customer. Otherwise, it shows customer’s
taxpayer name for normal customers.
<Contact> This tag contains a value of customer’s contact name, which is
concatenated of Title, First name and Last name.
<BillingAddress> This is billing address element started tag.
31
EMEA Add On- Technical Brief for Portugal
<AddressDetail> This tag is the address details of the active customer and its
structure depends on the CLE: PT Customer Address Style Profile
value.
<City> This tag is the City of the active customer and its structure depends
on the CLE: PT Customer City Profile value.
<PostalCode> This tag is the Postal code of the active customer and its structure
depends on the CLE: PT Customer Postal Code Profile value.
<Region/> This tag is the Region of the active customer and its structure
depends on the CLE: PT Customer Region Profile value.
<AddressDetail> This tag is the address details of the active customer and its
structure depends on the CLE: PT Customer Address Style Profile
value.
<City> This tag is the city of the active customer and its structure depends
on the CLE: PT Customer City Profile value.
<PostalCode> This tag is the postal code of the active customer and its structure
depends on the CLE: PT Customer Postal Code Profile value.
<Region/> This tag is the region of the active customer and its structure
depends on the CLE: PT Customer Region Profile value.
32
EMEA Add On- Technical Brief for Portugal
<SelfBillingIndicator> This tag contains either one of the following values depending on
the
Localization DFF for customer information on the customer’s OA
page:
0
<Supplier> This is the supplier’s block started tag.
<SupplierID> This tag contains the concatenated value of the supplier’s number
and site ID.
<AccountID> This tag shows Liability natural account segment value setup at
supplier site level.
<AddressDetail> This tag is the address details of the active Supplier and its structure
depends on the CLE: PT Supplier Address Style Profile value.
<City> This tag is the City of the active Supplier and its structure depends on
the CLE: PT Supplier City Profile Value.
<PostalCode> This tag is the Postal code of the active Supplier and its structure
depends on the CLE: PT Supplier Postal Code Profile Value.
<Region> This tag is the Region of the active Supplier and its structure depends
on the CLE: PT Supplier Region Profile Value.
33
EMEA Add On- Technical Brief for Portugal
<BuildingNumber> This is the empty tag.
<AddressDetail> This tag is the address details of the active Supplier and its structure
depends on the CLE: PT Supplier Address Style Profile value.
<City> This tag is the city of the active Supplier and its structure depends on
the CLE: PT Supplier City Profile value.
<PostalCode> This tag is the postal code of the active Supplier and its structure
depends on the CLE: PT Supplier Postal Code Profile value.
<Region> This tag is the region of the active Supplier and its structure depends
on the CLE: PT Supplier Region Profile value.
<SelfBillingIndicator> This tag contains either one of the following values depending on the
Localization DFF for Supplier Information on the supplier’s OA page:
34
EMEA Add On- Technical Brief for Portugal
<ProductType> This tag contains one of the following values:
P (If the data comes from inventory items and item is stockable or
AR memo lines that line type is “Line” and it has no setup on memo
Lines LDFF. IF Memo lines LDFF is setup it will export value setup on
LDFF).
S (If the data comes from inventory items and item is not stockable
or if the data comes from AR memo lines, which are having the line
type as “Freight”).
O (If the data comes from AR memo line, which is having the line
type as “Charges” or it is dummy product).
<ProductCode> This tag is the one of the following concatenated values: INV-
(Generic Article)
<ProductDescription> This tag is the one of the following values:
35
EMEA Add On- Technical Brief for Portugal
<TaxTableEntry> This is the tax tables entry element started tag.
<TaxCountryRegion> This tag contains the value depending on the Localization DFF for Tax
Rate Code Information on the standard Tax rates OA page.
<TaxCode> This tag contains the value depending on the Localization DFF for Tax
Rate Code Information on the standard Tax rates OA page.
<TaxExpirationDate> This is the end date of the inactive tax rate codes.
<TaxPercentage> This is the percentage rate of the Tax and instead of this if
the taxable_basis is QUANTITY only the <TaxAmount> tag
will be filled mentioned below.
<TaxAmount> This is the Tax amount of the Tax rate code, if the taxable basis is
QUANTITY. Otherwise, only <TaxPercentage> tag will be displayed.
<TotalDebit> This is the total debits in EUR for the journals running totals of the
debit.
<TotalCredit> This is the total credit in EUR for the journals running totals of the
credit.
36
EMEA Add On- Technical Brief for Portugal
<Transaction> This is the transactions element beginning tag. It contains AR
and AP subledger transactions when journals are transferred
to General Ledger in detail mode.
<DocArchivalNumber> This is the Customer trx ID, invoice ID or Journal ID depending on the
origin of the entry.
<TransactionType> This tag contains a value depending on the Localization DFF for
Journal Category Information of the journal category.
<CustomerID> This tag contains concatenated the customer’s account number and
party site ID with reference to Receivables Invoices, Credit Memos
or Debit
Memos, Deposits and Guarantees. . Otherwise, it will not show.
<RecordID> This tag contains a unique ID for each GL line on the file.
37
EMEA Add On- Technical Brief for Portugal
<SystemEntryDate> This is the date, which is captured by the system at the time of
journal creation.
<Description> This tag contains concatenated value of the Journal Header ID and
Journal Line number and journal line description.
<DebitAmount> This is the debit amount of the journal line. The credit amount
mentioned below will not be shown, if it exists.
<CreditAmount> This is the credit amount of the journal line. The debit amount will
not be shown, if it exists.
<SourceDocuments> This is the beginning block of the source documents, which shows
information relating to following receivable transactions only:
Invoices Debit
Memo Credit
Memo Deposit
Guarantee
Charge Back
<TotalDebit> This tag contains total debit amount (Only Line, Freight and Charges)
of the transactions and it will not include tax values.
<TotalCredit> This tag contains Total Credit amount (Only Line, Freight and
Charges) of the transactions and it will not include tax values.
'||nvl(RA_CUSTOMER_TRX_ALL.doc_sequence_id,
RA_BATCH_SOURCES_ALL.batch_source_id)||'/'||
nvl(RA_CUSTOMER_TRX_ALL.doc_sequence_value,
RA_CUSTOMER_TRX_ALL.customer_trx_id)
38
EMEA Add On- Technical Brief for Portugal
<DocumentStatus> This is the beginning element of the sales invoice document status
info.
'N' - Normal;
'A' - Voided;
<InvoiceStatusDate> Date and time of the last update of the InvoiceStatus (YYYY-MMDD
Thh:mm:ss)
<Reason> This tag shows the reason for the status change.
-'M' for invoices created manually outside the system (in paper) and
then replicated in the system.
<Cash VAT Scheme Indicator> This tag contains values based on the Localization DFF for Customer
Information of the bill to customer OA page.
<ThirdPartiesBillingIndicator> This tag contains values based on the Localization DFF for Customer
Information of the bill to customer OA page.
39
EMEA Add On- Technical Brief for Portugal
<Hash> This tag contains value “0” if the transaction is not certified.
Otherwise, if transaction is certified, this tag shows transaction
signature.
40
EMEA Add On- Technical Brief for Portugal
Tag Name Description
<InvoiceType> This tag contains values based on the Localization DFF for AR
Transaction Type Information of the AR transaction form.
<SelfBillingIndicator> This tag contains values based on the Localization DFF for Customer
Information of the bill to customer OA page.
<EACCode> This tag contains value of ‘CAE Primary Activity’ Code (CAE)
retrieved from the Legal Entity definition page. ‘CAE Primary activity
code’ Lov values are retrieved from AR_LOOKUPS where
LOOKUP_TYPE is 'LEGAL_ACTIVITY_CODE_PT'.
<SystemEntryDate> This is the transaction creation date and its format is 'YYYY-MM-
DD'T'hh24: mi:ss’.
<TransactionID> This tag contains the same value of the <TransactionID> tag of the
general ledger entries block.
<CustomerID> This tag contains the customer ID, which will match in the entire file.
Element 2.2.1 should match elements 3.4.3.9 and 4.1.4.11.
<ShipTo> This is the “Ship To” address details beginning element. These
cannot be empty tags. If no information exists for any tag of this
block, then it will not show tags.
<DeliveryID> This is the delivery ID number if no reference exists, and then it will
not show in the file.
<DeliveryDate> This is the Delivery Date if no reference exists, and then it will not
show at all in the file.
<City> This tag is the city of the active customer and its structure depends
on the CLE: PT Customer City profile value. If Address does not exist,
tag will not be exported.
<PostalCode> This tag is the postal code of the active customer and its structure
depends on the CLE: PT Customer Postal Code profile value. If
Address does not exist, tag will not be exported.
<Region> This tag is the region of the active customer and its structure
depends on the CLE: PT Customer Region profile value. If
Address does not exist, tag will not be exported.
<Country> This tag shows a constant value as “PT”. If Address does not exist, tag
will not be exported.
<ShipFrom> This is the “Ship From” address details beginning element. These
cannot be empty tags if no information exists for any tags of this
block, and then it will not show tags.
<DeliveryID/> This is the delivery ID number if no reference exists, and then it will
not show tags in the file.
<DeliveryDate/> This is the delivery date if no reference exists, and then it will not be
shown in the file.
<AddressDetail/> This tag is the address details of the active customer and its
structure depends on the CLE: PT Customer Address Style profile
value.
If Address does not exist, tag will not be exported.
42
EMEA Add On- Technical Brief for Portugal
<City> This tag is the city of the active customer and its structure depends
on the CLE: PT Customer City profile value. If Address does not exist,
tag will not be exported.
<PostalCode> This tag is the postal code of the active customer and its structure
depends on the CLE: PT Customer Postal Code.
<Region> This tag is the region of the active customer and its structure
depends on the CLE: PT Customer Region profile value. If
Address does not exist, tag will not be exported.
<Country> This tag shows a constant value as “PT‟. If Address does notexist,
tag will not be exported.
<OriginatingON> This is the sales order number if exists. Otherwise, it will not be
exported.
<OrderDate> This is the sales order date if exists. Otherwise, it will not be
exported.
<ProductCode> This tag is the one of the following concatenated values: INV-
43
EMEA Add On- Technical Brief for Portugal
<UnitOfMeasure> This is the above quantity of measure.
<UnitPrice> This is unit price of the selected quantity of goods and services
supplied (absolute value).
<TaxPointDate> This is the date of supply of goods (transaction date) and its
format as YYYY-MM-DD.
<Reason> This is the credit note reason. If no information exists, then it will
not be exported.
<TaxType> This tag is the one of the following values related to transaction:
<TaxCountryRegion> This tag contains the value related to tax of transaction, which
depends on the Localization DFF for Tax Rate Code Information
on the standard Tax rates OA page.
<TaxCode> This tag contains the value related to tax of transaction, which
depends on the Localization DFF for Tax Rate Code Information
on the standard Tax rates OA page.
44
EMEA Add On- Technical Brief for Portugal
<TaxPercentage> This is the percentage rate of the Tax and instead of this if
the taxable_basis is QUANTITY, only the <TaxAmount> tag
mentioned below, will be filled.
<TaxAmount> This is the Tax amount of the Tax rate code if the taxable basis is
QUANTITY. Otherwise, <TaxPercentage> tag is displayed only.
<TaxExemptionReason> This is the tax exemption reason, which is mandatory only, if Tax
Percentage or Tax Amount is 0. Otherwise, it is not shown at all.
<NetTotal> This tag contains a value total sales excluding tax (absolute
value).
<GrossTotal> This tag contains a value of gross total of sales (tax payable + total
sales excluding tax) (absolute value).
<Currency> This is the beginning tag of the currency for foreign currency
transactions.
<SettlementDiscount> This is the settlement discount. If the references do not exist, tag will
not be exported.
<SettlementAmount> This is the settlement amount. If the references do not exist, tag will
not be exported.
45
EMEA Add On- Technical Brief for Portugal
<PaymentTerms> Payment terms negotiated (text).
Structure will not pick up any values. Tag will not be exported.
<MovementOfGoods>
<StockMovement>
46
EMEA Add On- Technical Brief for Portugal
<DocumentStatus>
<MovementStatusDate> Date and time of the last update of the document status (YYYY-MM-
DD
Thh:mm:ss)
<SourceBilling> Value ‘P’ by default if Additional Delivery Information DFF not filled
47
EMEA Add On- Technical Brief for Portugal
Tag Name Description
48
EMEA Add On- Technical Brief for Portugal
45
EMEA Add On- Technical Brief for Portugal
<EACCode> This tag contains value of ‘CAE Primary Activity’ Code (CAE) retrieved
from the Legal Entity definition page. ‘CAE Primary activity code’ Lov
values are retrieved from AR_LOOKUPS where LOOKUP_TYPE is
'LEGAL_ACTIVITY_CODE_PT'.
<ShipTo> Information about the place and date of the delivery of the goods.
<Address>
<AddressDetail> Must include the street name, number and floor (if applicable).
<City> City.
<Region> Region.
<Country> Filled with the 2 digit country code (ISO 3166 1-alpha-2).
<ShipFrom> Information about the place and loading date for the shipping of the
goods.
<Address>
50
EMEA Add On- Technical Brief for Portugal
<BuildingNumber> This tag is empty.
47
EMEA Add On- Technical Brief for Portugal
<AddressDetail> Must include the street name, number and floor (if applicable).
<City> City.
<Region> Region
<Country> Filled with the 2 digit country code (ISO 3166 1-alpha-2).
<Line>
<LineNumber> Line number (ordered by ascending order).
52
EMEA Add On- Technical Brief for Portugal
<OrderDate> Date of the order.
<Quantity> Quantity.
<DebitAmount> Filled if the document is valued for incoming items. If not valued
filled with "0.00".
<CreditAmount> Filled if the document is valued for outgoing items. If not valued
filled with "0.00".
53
EMEA Add On- Technical Brief for Portugal
<TaxCode> Similar to 4.1.4.18.13.3 – Tax Code.
<SettlementAmount> Sum of all given discounts that influence the value of 4.2.3.20.3 –
GrossTotal.
<DocumentTotals>
<TaxPayable> Sum of taxes in the document. If the document is not values filled
with "0.00".
<GrossTotal> Gross total of the document. If the document is not valued filled
with "0.00".
<Currency>
54
EMEA Add On- Technical Brief for Portugal
<CurrencyAmount> Similar to 4.1.4.19.4.2 – Currency Amount.
<WorkingDocuments>
<WorkDocument>
<WorkStatus>
55
EMEA Add On- Technical Brief for Portugal
<WorkStatusDate> Date and time of the last update of the document status (YYYY-
MM- DD Thh:mm:ss).
-'M' for invoices created manually outside the system (in paper) and
then replicated in the system.
56
EMEA Add On- Technical Brief for Portugal
<EACCode> This tag contains value of ‘CAE Primary Activity’ Code (CAE)
retrieved from the Legal Entity definition page. ‘CAE Primary activity
code’ Lov values are retrieved from AR_LOOKUPS where
LOOKUP_TYPE is 'LEGAL_ACTIVITY_CODE_PT'.
<SystemEntryDate> Entry date at the time of the document signature generation (YYYY-
MMDD Thh:mm:ss).
<Line>
<Quantity> Quantity.
57
EMEA Add On- Technical Brief for Portugal
<UnitOfMeasure> Unit of measure.
<Tax> This structure is filled only if the document is valued, if not it will not
be filled for Working Documents.
58
EMEA Add On- Technical Brief for Portugal
<TaxExemptionReason> Similar to 4.1.4.18.14 – Tax Exemption Reason.
<DocumentTotals>
59
EMEA Add On- Technical Brief for Portugal
Tag Name Description
<Currency> This block will not be exported as Working documents are not
valued.
60
EMEA Add On- Technical Brief for Portugal
<Period> This tag contains the accounting period number.
<TransactionID> Filled with the unique reference of the General Ledger entry used
to post the corresponding entry (TransactionID).
<PaymentType> RC' for VAT Cash Regime ; 'RG' for the basic VAT regime; Vat Cash
Regime is set at customer/receipt level (through DFF’s as
described previously on the DFF’s section).
<Description> Null.
mm:ss".
<SourcePayment> Document source: 'P' for created in EBS ; 'I' for imported receipts
61
EMEA Add On- Technical Brief for Portugal
<PaymentDate> Payment date.
mm:ss".
<LineNumber> In EBS there are no receipt line number. Uses internal number.
transaction is in SAFT).
<Description> Null.
62
EMEA Add On- Technical Brief for Portugal
<TaxCode> Similar to Tag 2.5.1.3.
63
EMEA Add On- Technical Brief for Portugal
4.8 Important Notes with regard to SAFT-PT Functionality
SAFT should export disabled accounts, this is part of the designed functionality. Portuguese Tax
Authorities may request SAFT xml file for the last 5 years, so, SAFT program need to export this
account although the account is currently disabled.
With the new legal requirement it is possible to have tax only lines. We consider a Tax only line
the below scenarios:
• Memo Line created with Memo type = Tax
• Transactions created with Unit Price=0 and Tax Amount <> 0
On both scenarios, SAFT will export the Taxable amount and will export the Unit Price as zero.
64
EMEA Add On- Technical Brief for Portugal
5. Invoice Printing for Portugal Invoices
In order to fulfill Local business requirements to print Invoices in Portuguese language, Oracle provides
standard invoice printing solution for Portuguese customers.
Once the AR invoice has been created successfully, users can print the same using following steps:
Responsibility: Receivables
Navigation: View > Requests > Submit a New Request > Single Request
The program will trigger a child request to generate output in Portuguese language.
65
EMEA Add On- Technical Brief for Portugal
6. References:
66
EMEA Add On- Technical Brief for Portugal