Regime Code Maintenance
Object | SALSRG |
Class | Setup |
Method(s) | Add Update Delete |
Functional Area | e.net System Setup |
Version released | SYSPRO 8 2021 R1 |
Functionality
The Regime Code Maintenance business object lets you maintain regime codes (used to identify and report on Intrastat transactions) stored in the SalRegimeCode table.
Security
You can secure access to this business object using the Operator Groups program.
Input XML
The SALSRG.XML and SALSRG.XSD files indicate the parameters schema and an instance of an XML document for this business object.
The SALSRGDOC.XML and SALSRGDOC.XSD files indicate the schema and an instance of an XML document for this business object.
Output XML
The SALSRGOUT.XML indicates a sample of the XML returned by this business object.
Sample files
<?xml version="1.0" encoding="Windows-1252"?>
<!-- Copyright 1994-2020 SYSPRO Ltd.-->
<!--
This is an example XML instance to demonstrate
use of the Regime Code Setup Business Object
-->
<SetupRegimeCodes xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="SALSRG.XSD">
<Parameters>
<IgnoreWarnings>N</IgnoreWarnings>
<ApplyIfEntireDocumentValid>N</ApplyIfEntireDocumentValid>
<ValidateOnly>N</ValidateOnly>
</Parameters>
</SetupRegimeCodes>
<?xml version="1.0" encoding="Windows-1252"?>
<!-- Copyright 1994-2020 SYSPRO Ltd.-->
<!--
Schema for the Regime Code Setup Business Object
-->
<xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="SetupRegimeCodes">
<xsd:annotation>
<xsd:documentation>This is the root element.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Parameters">
<xsd:annotation>
<xsd:documentation>This element contains the optional parameter elements.</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="false">
<xsd:all>
<xsd:element name="IgnoreWarnings" default="N" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Specifies if warnings are to be ignored (Y - if the warnings are to be ignored, N - warnings will be returned as errors in the XML returned). An example of a warning is if a WIP ledger code entered is not the correct type of account, it is okay to write the record away as such but you may want the warning supplied.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
<xsd:enumeration value="N"/>
<xsd:enumeration value="Y"/>
<xsd:enumeration value=" "/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ApplyIfEntireDocumentValid" default="N" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Specifies whether the entire document must be validated first before applying the function (N - apply function for each valid item, Y - all items must be valid before function is applied).</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
<xsd:enumeration value="N"/>
<xsd:enumeration value="Y"/>
<xsd:enumeration value=" "/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="ValidateOnly" default="N" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Specifies whether to only validate the contents of the document. (N - validate and apply function, Y - only validate the document).</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
<xsd:enumeration value="N"/>
<xsd:enumeration value="Y"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<?xml version="1.0" encoding="Windows-1252"?>
<!-- Copyright 1994-2020 SYSPRO Ltd.-->
<!--
This is an example XML instance to demonstrate
use of the Regime Code Setup Business Object
-->
<SetupRegimeCodes xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="SALSRGDOC.XSD">
<Item>
<Key>
<RegimeCode>26</RegimeCode>
</Key>
<Description>Commercial regularization leading to an increase of value</Description>
</Item>
</SetupRegimeCodes>
<?xml version="1.0" encoding="Windows-1252"?>
<!-- Copyright 1994-2020 SYSPRO Ltd.-->
<!--
Schema for the Regime Code Setup Business Object
-->
<xsd:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="SetupRegimeCodes">
<xsd:annotation>
<xsd:documentation>This is the root element.</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="false">
<xsd:sequence>
<xsd:element name="Item" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>This element contains information to maintain a regime code.NOTE: The information held within the key element is mandatory for all functions. Information held outside the key element is optional for Add/Update and is not required for Delete.</xsd:documentation>
</xsd:annotation>
<xsd:complexType mixed="false">
<xsd:sequence>
<xsd:element name="Key">
<xsd:complexType mixed="false">
<xsd:sequence>
<xsd:element name="RegimeCode">
<xsd:annotation>
<xsd:documentation>Indicates the regime code being maintained. The regime code is mandatory for Add, Update and Delete.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="Description" minOccurs="0">
<xsd:annotation>
<xsd:documentation>This is the description to appear against the regime code.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="preserve"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<?xml version="1.0" encoding="Windows-1252"?>
<!-- Copyright 1994-2020 SYSPRO Ltd.-->
<!--
This is an example XML instance to demonstrate
use of the Regime Code Setup Business Object
-->
<setupregimecodes xmlns:xsd="http://www.w3.org/2001/XMLSchema-instance" xsd:noNamespaceSchemaLocation="SALSRGOUT.XSD">
<item>
<key>
<regimecode>26</regimecode>
</key>
</item>
<StatusOfItems>
<RecordsRead>1</RecordsRead>
<RecordsInvalid>0</RecordsInvalid>
</StatusOfItems>
</setupregimecodes>
<?xml version="1.0" encoding="Windows-1252"?>
<!-- Copyright 1994-2020 SYSPRO Ltd.-->
<!--
Schema for the Regime Code Setup Business Object
-->
<xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="RecordsInvalid" type="xsd:string"/>
<xsd:element name="RecordsRead" type="xsd:string"/>
<xsd:element name="regimecode" type="xsd:string"/>
<xsd:element name="StatusOfItems">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="RecordsRead"/>
<xsd:element ref="RecordsInvalid"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="item">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="key"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="key">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="regimecode"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="setupregimecodes">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="item" maxOccurs="unbounded"/>
<xsd:element ref="StatusOfItems"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
Copyright © 2021 SYSPRO PTY Ltd.