Páginas filhas
  • TD Integration PCP - PPIMultiTask

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

PCP PPIMulti Task Integration

Requirement Features

Product Group:

Protheus

Industry:

Manufacture

Module:

SIGAPCP

Routine:

Routine(s) involved

Technical Name

PCPA109

Parameters

PCPA110

Control of Pendencies

PCPA111

Synchronization

PCPA112

Import Log

Initial Registration:

.

Parameter(s):

 

Entry Point:

MATI681CRG_Add_information_Adapter_of_annotation

MTI650ADOP_Add_new_operation_adapter_production_order

MTI650FCOP_Change_conversion_factor_second_unit_of_operation_measure_adapter_production_order

MTI650QTOP_Change_quantity_of_operation_adapter_production_order

MTI650UMOP_Change_second_unit_of_measure_of_operation_adapter_productionn_order

PCPXFUNPPI_Routines_not_executing_integration_with_the_PC_Factory

MT680VAL - Addition of Productions

MATI681EXC_Processes_Annotation_Message

 

Related tickets

 

Requirement (ISSUE):

PCREQ-6129; PCREQ-6130;PCREQ-6131;PCREQ-6132;PCREQ-6133;PCREQ-6657;PCREQ-7024

Country(ies):

All

Database:

All

Tables:

SOF

SOE

SOD

SOG

Operational system(s):

Windows®/Linux®

Versions/Release:

12.1.10 and 11.80.14

...

1.    Creation of table in file SX2– Tables:

 

Key

Name

Mode

PYME

SOD

Parameter of integration - Ger

E

S

SOE

Parameters of integration

E

S

SOF

Protheus-PCFactory Integration

E

S

 

SOG

Import Log

    E

    S

 

2.  Creation of Fields in the file SX3 – Fields:

  • SOD Table - Parameters of integration 

 

. System

Field

OD_FILIAL

Type

Character

Size

2

Decimal

0

Format

 

Title

Branch

Description

Branch

Level

1

Used

No

Required

No

Browse

No

Options

 

When

 

Relationship

 

System Val

 

Help

Branch Code

  
System

Field

OD_ATIVO

Type

Character

Size

1

Decimal

0

Format

 

Title

Active

Description

Active

Level

1

Used

Yes

Required

Mandatory

No

Browse

Browser

Yes

Options

 

When

 

Relationship

"N"

System Val.

 

Help

Indicates

whether

if integration is active.

 

 

Field

OD_CAMINHO

Type

Character

Size

100

Decimal

0

Format

 

Title

Path

Description

Path

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the patch of WebService from PC-Factory

  
1

Field

OD_GERAXML

Type

Character

Size

100

Decimal

0

Format

 

Title

Generates XML

Description

Generates XML

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates whether files XMLif XML files are generated

  

Field

OD_DIRENV

Type

Character

Size

100

Decimal

0

Format

 

Title

Sent

Description

Sent

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates whether the directory to register the XML files sent.

  

Field

OD_DIRPEND

Type

Character

Size

100

Decimal

0

Format

 

Title

Pendency

Description

Pendency

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the directory to register the XML files with error errors or that has pending delivery pendency.

 

  • SOD Table - Parameters of integration 

 

Field

OE_FILIAL

Type

Character

Size

2

Decimal

0

Format

 

Title

Branch

Description

Branch

Level

1

Used

No

Required

No

Browse

No

Options

 

When

 

Relationship

 

Val. System

 

Help

Branch Code

  
TABELA10

Field

OE_

TABLE

Type

Character

Size

2

Decimal

0

Format

 

Title

Table

Description

Table

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the table name of the table

  

Field

OE_FILTRO

Type

Memo

Size

10

Decimal

0

Format

 

Title

Filter

Description

Filter

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Used to filter records of table

...

  • SOF Table - Protheus-PCFactory Integration

 

Field

OF_FILIAL

Type

Character

Size

2

Decimal

0

Format

@! 

Title

Branch

Description

System Branch

Level

1

Used

No

Required

No

Browse

No

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the system branch to which the record belongs to.

  
name

Field

OF_TRANSAC

Type

Character

Size

10

Decimal

0

Format

@! 

Title

Table

Description

Table

Name

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

HelpTable name that is

Name of table being sent to PC - Factory.

 

 

Field

OF_REGIST

Type

Character

Size

50

Decimal

0

Format

@! 

Title

Record

Description

Record Code

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Record code being sent.

  
Belong

Field

OF_STATUS

Type

Character

Size

1

Decimal

0

Format

@! 

Title

Status

Description

Status

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

1=Ok;2=Pending;3=Error Error 

When

 

Relationship

  "1"

Val. System

 Belong("123") 

Help

Delivery Status. 1 - OK; 2 - Pending; 3 - Error.

 

 

 

Field

OF_GERAXML

Type

Character

Size

1

Decimal

0

Format

@! 

Title

Generate XML

Description

Generate XML

Level

1

Used

Yes

Required

No

Browse

Yes

Options

1=Yes;2=No

When

 

Relationship

 

Val. System

Belong("12") 

Help

Indicates whether Generate XML. 1 - Yes; 2 - No.

  
File Name

Field

OF_NOMEXML

Type

Character

Size

100

Decimal

0

Format

 

Title

Name XML

Description

File name XML

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Name of XML generate file namegenerated

Field

OF_DTENVIO

Type

Date

Size

8

Decimal

0

Format

 

Title

Delivery Date

Description

XML delivery date

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Delivery date of XML to PCFactory.

  

 

 

time

Field

OF_HRENVIO

Type

Character

Size

8

Decimal

0

Format

 

Title

Delivery timeDate

Description

XML delivery

date

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Delivery date time of XML to PCFactory. HH:MM:SS

  

Field

OF_USU

Type

Character

Size

25

Decimal

0

Format

 

Title

User

Description

User

Level

1

Used

Yes

Required

No

Browse

No

Options

 

When

 

Relationship

 

Val. System

 

Help

User sending XML to PCFactory. 

  
message

Field

OF_MSGRET

Type

Memo

Size

255

Decimal

0

Format

 

Title

Msg Return Msg

Description

Return

Message

Level

1

Used

Yes

Required

No

Browse

No

Options

 

When

 

Relationship

 

Val. System

 

Help

Return message to Message of PCFactory. 

Field

OF_XML

Type

Memo

Size

255

Decimal

0

Format

 

Title

Content

Description

XML Content

Level

1

Used

Yes

Required

No

Browse

No

Options

 

When

 

Relationship

 

Val. System

 

Help

XML generated content.

  
DATPROC8Reprocessing dateYes

Field

OF_

XML

Type

DateMemo

Size

255

Decimal

0

Format

 

Title

Dt. ReprocesContent

Description

XML Content

Level

1

Used

Yes

Required

No

Browse

No

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the date the reprocessing of XML was executed through the program PCPA 110 - Pendencies.

XML generated content.

  
HORPROC Time

Field

OF_

DATPROC

Type

CharacterData

Size

8

Decimal

0

Format

 

Title

HR Reproces Dt

Description

Reprocessing

Date

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the schedule the reprocessing of XML was executed through the program PCPA 110 - Pendencies.Field

  
PROGRAM10@!Generator program

Field

OF_

HORPROC

Type

Character

Size

8

Decimal

0

Format

 

TitleProgram

Reproces Time

Description

Reprocessing Time

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the schedule the program generated XML file.

 

  • SOG Table - Import Log

 

reprocessing of XML was executed through the program PCPA 110 - Pendencies.

OG_FILIAL02@ Branch

Field

OF_PROGRAM

Field

Type

Character

Size

8

Decimal

0

Format

 @!

Title

BranchProgram

Description

Generating Program

Level

1

Used

Yes

Required

YesNo

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Branch

Indicates program that generated XML file.

 

  • SOG Table - Import Log

 

OG_TRANSAC10Transaction

Field

OG_FILIAL

Field

Type

Character

Size

02

Decimal

0

Format

@! 

Title

TransactionBranch

Description

Branch

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the record source transactionBranch

OP13Production order

Field

OG_

TRANSAC

Type

Character

Size

10

Decimal

0

Format

@! 

Title

Production orderTransaction

Description

Transaction

Level

1

Used

Yes

Required

NoYes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the production order.record source transaction

  

 

 

PRODUTO15Product

Field

OG_

OP

Type

Character

Size

13

Decimal

0

Format

@! 

TitleProduct

Production Order

Description

Production Order

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the product code.production order

RECURSO06Resource

Field

OG_

PRODUTO

Type

Character

Size

15

Decimal

0

Format

@! 

Title

ResourceProduct

Description

Product

Level

1

Used

Yes

Required

YesNo

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the resource product code.

  
STATUS01Status

Field

OG_

RECURSO

Type

Character

Size

06

Decimal

0

Format

@! 

Title

StatusResource

Description

Resource

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates whether annotation was successfully processed. Status: 1 = OK; 2 = Errorthe resource code.

DATA8Processing date

Field

OG_

STATUS

Type

DateCharacter

Size

01

Decimal

0

Format

@! 

Title

Processing dateStatus

Description

Status

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Annotation processing date.

Indicates whether annotation was successfully processed. Status: 1 = OK; 2 = Error.

  
OG_HORA Time

Field

OG_DATA

Field

Type

CharacterDate

Size

8

Decimal

0

Format

 

Title

Processing TimeData

Description

Processing

Data

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Annotation processing time.data

 

 

 

 

DTAPONTAnnotation Start Date

Field

OG_

HORA

Type

DateCharacter

Size

8

Decimal

0

Format

 

TitleAnnotation

Start DateProcessing Time

Description

Processing Time

Level

1

Used

Yes

Required

NoYes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Annotation Start Dateprocessing time.

  

 

 

HRAPONT Start Time

Field

OG_

DTAPONT

Type

CharacterDate

Size

8

Decimal

0

Format

 

Title

Annotation Start TimeSt Dt

Description

Annotation

St Dt

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Annotation Start TimeSt Dt

DTFIMAP End Date

Field

OG_

HRAPONT

Type

DateCharacter

Size

8

Decimal

0

Format

 

Title

Annotation End DateStart Time

Description

Annotation

Start Time

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Annotation End DateStart Time

  
HRFIMAP

Field

OG_

DTFIMAP

Type

CharacterDate

Size

8

Decimal

0

Format

 

Title

Annotation End Time

Description

Annotation End Time

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Annotation End Time

  

 

 

ESTORNO01Reversal

Field

OG_

HRFIMAP

Type

Character

Size

8

Decimal

0

Format

 

TitleReversal

Annotation End Time

Description

Annotation End Time

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates whether it is reverse record

1=YES;2=No

 

Annotation End Time

OG_OPERAC02Operation

Field

OG_ESTORNO

Field

Type

Character

Size

01

Decimal

0

Format

 

Title

OperationReversal

Description

Reversal

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Indicates the operation codewhether it is reverse record

1=Yes;2=No

 

  
QUANTID11Quantity

Field

OG_

OPERAC

Type

NumericCharacter

Size

02

Decimal

20

Format

 

Title

QuantityOperation

Description

Operation

Level

1

Used

Yes

Required

No

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Annotation Quantity

Indicates the operation code

 

  

 

 

10Sequence

Field

OG_QUANTID

Type

Field

OG_SEQ

Type

Numeric

Size

11

Decimal

02

Format

 

Title

SequenceQuantity

Description

Quantity

Level

1

Used

Yes

Required

YesNo

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

HelpRecord

sequenceAnnotation Quantity

XML Annotation XML

Field

OG_

SEQ

Type

MemoNumeric

Size

10

Decimal

 0

Format

 

Title

XMLSequence

Description

Sequence

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

HelpAnnotation

XMLRecord sequence

MSGRETReturn Message

Field

OG_

XML

Type

Memo

Size

 

Decimal

 

Format

 

Title

MessageXML

Description

Annotation XML

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Return Message

 

Important:

Annotation XML

Field

OG_MSGRET

Type

Memo

Size

 

Decimal

 

Format

 

Title

Message

Description

Return Message

Level

1

Used

Yes

Required

Yes

Browse

Yes

Options

 

When

 

Relationship

 

Val. System

 

Help

Return Message

 

Important:

The size The size of  the fields that have group can vary according to environment in use.

...

3.  Creation  of Indexes  to file SIX – Indexes:

Index

SOD

Order

1

Key

OD_FILIAL+OD_ATIVO+OD_CAMINHO

Description

Branch + Active + Path

Owner

S

Index SOE Order

 

...

1

...

Key

...

OE_FILIAL+OE_TABELA

...

Description

...

Branch + Table

...

Owner

...

S

Image Added

 

Index

SOF

Order

1

Key

OF_FILIAL+OF_TRANSAC+OF_REGIST+OF

Index

SOF

Order

1

Key

OF_FILIAL+OF_TRANSAC+OF_REGIST+OF_STATUS+DTOS(OF_DTENVIO)+OF_HRENVIO

Description

Branch+Table+Record+Status+Delivery date+Delivery Time

Owner

S

Index

SOG

Order

1

Key

OG_FILIAL+OG_TRANSAC+OG_RECURSO+OG_OP+OG_PRODUTO+OG_STATUS+DTOS(OG_DATA)+OG_HORA

Description

Transaction + Resource + Production Order + Product + Status + Processing Date + Processing Time

Owner

S

OG_FILIAL+OG_TRANSAC+OG_OP+OGOGDATAOGHORA

Index

SOG

Order

2

Key

_STATUS+DTOS(

OF_

DTENVIO)+

OF_

HRENVIO

Description

Transaction + Production Order Branch+Table+Record+Status+ Processing Date Delivery date+ Processing Delivery Time

Owner

S

  

 

Image Added

 

 

RECURSO

Index

SOG

Order

32

Key

OG_FILIAL+OG_TRANSAC+OG_

OP+OG_STATUS+DTOS(OG_DATA)+OG_HORA

Description

Transaction + Resource Production Order + Status + Processing Date + Processing Time

Owner

S

  

 

Image Added

 

 

 

Index

SOG

Order

4

Key

OG_FILIAL+OG_TRANSAC+OG_PRODUTO+OG_STATUS+DTOS(OG_DATA)+OG_HORA

Description

Transaction + Production + Status + Processing Date + Processing  Time

Owner

S

 

OG_ESTORNO

Procedure for Configuration

...

1.  In Configurator (SIGACFG), access Environments/Register/Menu (CFGX013). Enter new option of menu fro SIGAPCP, according to instruction as follows:

Menu

Updates

Submenu

MES Integration

Routine Name

Parameters

Program

PCPA109

Module

Production Contr Plan

Type

Protheus Function

Menu

Updates

Submenu

MES Integration

Routine Name

Pendencies

Program

PCPA110

Module

Production Contr Plan

Type

Protheus Function

Menu

Updates

Submenu

MES Integration

Routine Name

Synchronization

Program

PCPA111

Module

Production Contr Plan

Type

Protheus Function

 

 

Menu

Updates

Submenu

MES Integration

Routine Name

Import Log

Program

PCPA112

Module

Production Contr Plan

Type

Protheus Function

Procedure for Use 

...