Páginas filhas
  • EAI Adapter - Order

CONTENTS

01. OVERVIEW

Configuration of the Order Adapter with different formats (XML, JSON). 
 

02. EXAMPLE OF USE

When the Order Adapter is used (MATA120, MATA410), both must have the same file format configuration (XML, JSON). 
 

03. EAI ADAPTER SCREEN

         In the SIGACFG (Configurator) module, Environment > Schedule >EAI Adapter >Add MATA410
 
       
 

04. MATA410 ADAPTER CONFIGURATION SCREEN

 
         Format field set to JSON.
 
       
 
 
                    
 

05. TAGs

ORDER 4.003 - Receipt

Element

Description

Note

BusinessContent




CompanyId

Company

The field is filled in with the Company's From/To reference value.

CompanyInternalId

Company's InternalId

The field is filled in with the Company and Branch's From/To reference value.

BranchId

Branch

The field is filled in with the Branch's From/To reference value.

OrderPurpose

Purpose of the order

This indicates if the Order is:1 - Purchase
2 - Sales

InternalId

InternalId of the Order

The field is filled in with the Orders' From/To reference value (SC5/SC7).

RegisterDate

Issue Date


OrderId

Order Number

Code referring to the Protheus record (C5_NUM).

CustomerCode

Customer/Supplier code

Code referring to the Protheus record (A1_COD+A1_LOJA/A2_COD+A2_LOJA).
To use this, do not send CustomerInternalId.

CustomerInternalId

InternalId of the Customer/Supplier

Code referring to the From/To (XXF).
To use it, register the CUSTOMERVENDOR Adapter (MATA030 or MATA360).

PaymentTermCode

Payment Term

Code referring to the Protheus record (E4_CODIGO).

PaymentConditionInternalId

InternalId of the payment term

Code with the Payment Term's From/To reference value (SE4)
To use it, register the PAYMENTCONDITION (MATA360) Adapter.

SalesOrderItens.Item




InternalId

Order Item's InternalID

The field is filled in with the Order Item's From/To reference value (C6_ITEM).

OrderItem

Order Item


ItemInternalId

InternalId of the Product

The field is filled in with the Product's From/To reference value (B1_COD).
To use it, register the ITEM Adapter (MATA010).

ItemCode

Product Code

Code referring to the Protheus record (B1_COD).

Quantity

Quantity


UnityPrice

Unit Price


TotalPrice

Total Value


TypeOperation

Operation Type

If lower than 3, it will be treated as C6_OPER; otherwise, it will be treated as C6_TES.

CostCenterCode

Cost Center

Code referring to the Protheus record (CTT_CUSTO).

CostCenterInternalId

InternalID of the Cost Center

The field is filled in with the Cost Center's From/To reference value (CTT_CUSTO).
To use it, register the COSTCENTER Adapter (CTBA030).

06. TABLES

  • XX4 - EAI Adapters
  • SC5 - Sales Order