Páginas filhas
  • DI_PCP_Protheus_PPI_Multitask_Integration

Versões comparadas

Chave

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

...

MessageTagDescriptionTable/Field: ProtheusTypeTable/Field: PC-FactoryType
BusinessContentTypeWarehouseCodeWarehouse/DepositSBE.BE_LOCALCHAR(02)TBLInAddress.WarehouseCodeCHAR(15)
 LocationCodeAddress/LocationSBE.BE_LOCALIZCHAR(15)TBLInAddress.CodeCHAR(15)
 AdressInternalIdFull Key address

 COMPANY + SBE.BE_BRANCH + SBE.BE_LOCAL + SBE.BE_LOCALIZ

   
 AdressStockDescriptionDescription of addressoaddressSBE.BE_DESCRIPCHAR(30)TBLInAddress.ExtCodeCHAR(20)

...

MessageTagDescriptionTable/Field: ProtheusTypeTable/Field: PC-FactoryType
BusinessContentTypeItemCodeCode of productSB2.B2_CODCHAR(15)TBLInMovMat.ProductCodeCHAR(20)
 ItemDescriptionDescription of itemSB1.B1_DESCCHAR(30)  
ListOfStock  

 

   
 ReferenceCodeReference--   
 WarehouseCodeDeposit/Location of stock/WarehouseSB2.B2_LOCALCHAR(02)TBLInMovMat.WarehouseCodeCHAR(15)
 LotCodeNumber of LotSB8.B8_LOTECTLCHAR(10)TBLInMovMat.LotCodeCHAR(41)
 SubLotCodeSub-LotSB8.B8_NUMBATCHCHAR(06)  
 NumberSeriesNumber of SeriesSBF.BF_NUMSERICHAR(20)  
 AddressCodeAddress/LocationSBF.BF_LOCALCHAR(15)TBLInMovMat.AddressCodeCHAR(15)
 LotDueDateValidity DateSB8.B8_DTVALIDDATETBLInMovMat.LotDtValidityDATETIME
 CurrentStockAmountBalance of stock

SB2.B2_QATU

SB8.B8_BALANCE

SBF.BF_QUANT

DEC(12,2)  
 BookedStockAmountReserved Quantiy

SB2.B2_RESERVARESERVATION

SB8.B8_ALLOCATION

SBF.BF_ALLOCATION

DEC(12,2)  
 AvailableStockAmountBalance available

SB2.B2_QATU - SB2.B2_RESERVA

SB8.B8_SALDO - SB8.B8_ALLOCATION

SBF.BF_QUANT - SBF.BF_ALLOCATION

DEC(12,2)  
 
QuantityUpdated
Updated Quantity DEC(12,2)TBLInMovMat.QtyDEC(18,2)
 
InputOutputInput or Output1 = Input or 2 = OutputCHAR(01)TBLInMovMat.ClassificationCHAR(15)

...

Nota
titleNote:
    • When no is integrated with Shop Floor, MV_INTSFC equal to '0' the scrap is registered in generic table SX5. 
    • It must search in SX5 table according to command below:
      select X5_CHAVE from sx5990 where X5_TABELA TABLE = '43'
      Where:
      - Code of reason is X5_CHAVE
      Table of reason is '43'.
    • When it is integrated with  Shop Floor, MV_INTSFC equal to '1' is generated only the table of  Shop Floor - CYO. Routine SFCA003. If in the message there is no indicator of scrap or rework, consider scrap (CYO_LGRFMP = 'T').
    • Waste reasons have different sizes in tables. Validate it if receipt code does not exceed the size of columns in Protheus.
    • When uses the SIGAPCP it must validate a SX5.X5_CHAVE and SBC.BC_MOTIVO.
    • When uses the SIGASFC validate against the CYO.CYO_CDRF, CY0.CY0_CDRF  and SBC.BC_MOTIVOREASON.

 

Stop Reason Transaction: StopReason_1_000.xsd

...

Nota
titleNote:
    • When no is integrated with Shop Floor, MV_INTSFC equal to '0' the stoppage reason is registered in generic table SX5. 
    • It must search in SX5 table according to command below:
      select X5_CHAVE from sx5990 where X5_TABELA = '44'
      Where:
      - Code of reason is X5_CHAVE
      Table of reason is '44'.
    • When it is integrated with  Shop Floor, MV_INTSFC equal to '1' is generated only the table of  Shop Floor - CYN. Routine SFCA004. 
    • Stoppage reasons have different sizes in tables. Validate it if receipt code does not exceed the size of columns in Protheus.
      When it uses the SIGAPCP it must validate against the SX5.X5_CHAVE and SH6.H6_MOTIVOREASON
      When it uses the SIGASFC validate against the CYN.CYN_CDSP, CYX.CYX_CDSP and SH6.H6_MOTIVOREASON


Production Order Transaction: ProductionOrder_2_004.xsd

...

MessageTagDescription

Table/Field

TypeTable/Field: PC-FactoryType
BusinessContentTypeNumberNumber Production OrderSC2.C2_NUM + SC2.C2_ITEM + SC2.C2_SEQUENCHAR(20)TBLInWOHD.CodeCHAR(41)
 ProductionOrderUniqueIDCompany+Branch+Production Order

COMPANY + SC2.C2_FILIAL BRANCH + SC2.C2_NUM +

SC2.C2_ITEM + SC2.C2_SEQUEN

CHAR(30)  
 ItemCodeCode ItemSC2.C2_PRODUCTCHAR(15)TBLInWOHD.ProductCodeCHAR(20)
 ItemDescriptionDescription ItemSB1.B1_DESCCHAR(40)  
 TypeType of Order

1= Internal; 2=External; 3=Internal/External; 4=Rework;

5=Fixing; 6=Maintenance; 7=Fixed Asset;

8=Tooling; 9=Reuse

 

CHAR(01)TBLInWOHD.WoTypeCodeCHAR(20)
 QuantityQuantitySC2.C2_QUANTDEC(12,2)TBLInWOHD.TotalQty

 DEC(19,4)

 ReportQuantityQuantity ReportedSC2.C2QUJEDEC(12,2)  
 UnitOfMeasureCodeUnit of MeasureSC2.C2_UMCHAR(02)TBLInWoDet.Unit1CodeCHAR(05)
 RequestOrderCodeRequest Code Production OrderSC2.C2_ORDERCHAR(06)  
 StatusOrderTypeOrder Status

Estimated/Opened = 1

Started = 6

Partial/Total Closed = 7

Idle = 9

CHAR(01)TBLInWOHD.StatusSMALLINT
 WarehouseCodeCode DepositSC2.C2_LOCALCHAR(02)TBLInWOHD.AuxCode1CHAR(20)
 EndOrderDateTimeEnd Date Production Order CPSC2.C2_DATPRFDATETBLInWOHD.DtPlanEndDATETIME
 StartOrderDateTimeStart Date Production Order CPSC2.C2_DATPRIDATETBLInWOHD.DtPlanStartDATETIME
 AbbreviationProviderNameName CustomerSC5.C5_CLIENTE ( SA1.A1_NOME)CHAR(30)  
 ScriptCodeCode ScriptSC2.C2_SCRIPTCHAR(02)  
 ReportOrderTypeType of Report

1 = Order; 2 = Operations; 3 = Control Point; 4 = Item

 

CHAR(01)  
ListOfActivityOrders      
 ProductionOrderNumberProduction Order

SC2.C2_NUM + SC2.C2_ITEM +

SC2.C2_SEQUEN

CHAR(20)TBLInWoDet.Wocode

CHAR(10)

 ActivityIDID of RecordRECNO (SG2,SHY ou SH8)CHAR(10)  
 ActivityCodeCode Operation

SG2.G2_OPERAC

SHY.HY_OPERAC

SH8.H8_OPER

CHAR(02)TBLInWoDet.WODetCode+Split

 CHAR(10)

 ActivityDescriptionDescription OperationSG2.G2_DESCRICHAR(40)TBLInWoDet.WODetName

CHAR(30)

 SplitSplit of operationSH8.H8_DESDOBRCHAR(04)  
 ItemCodeCode of item

SC2.C2_PRODUCT

CHAR(15)  
 ItemDescriptionDescription of itemSB1.B1_DESCCHAR(40)  
 ActivityTypeType Operation1 - Register ; 2-Does not registerCHAR(01)  
 WorkCenterCodeCode Work Center

SG2.G2_CTRAB

SHY.HY_CTRAB

SH8.H8_CTRAB

CHAR(06)TLBInWODet.ManagerGrpCode CHAR(15)
 WorkCenterDescriptionDescription Work CenterSHB.HB_NOMECHAR(30)  
 UnitTimeTypeType Unit Time1 - Hours; 2 - Minutes; 3- Seconds; 4 - DaysCHAR(01)TLBInWODet.StdSpeedFormat TINYINT
 TimeResourceTime Resource (Standard time for lot)SG2.G2_TEMPADDEC(05,2)TLBInWODet.StdSpeed DEC(28,23)
 TimeMachineTime Machine (Time to order)

SG2.G2_TEMPAD * SC2.C2_QUANT

SHY.HY_TIME 

SH8.H8_HRINI - SH8.H8_HRFIM

DEC(14,4)

TLBInWODet.StdSpeed

DEC(28,23)
 TimeSetupTiem Setup

SG2.G2_SETUP

SHY.HY_TIMES

SH8.H8_SETUP

DEC(15,4)TLBInWODet.SetUpTimeINT
 TimeMODTime Man--   
 TimeIndMESIindicator of time in MES1 = Machine Time; 2 = Labor Time; 3 = Choice by MES.CHAR(01)  
 ScriptCodeCode Script

SG2.G2_CODE

SHY.HY_SCRIPT

SH8.H8_SCRIPT

CHAR(02)  
 LaborCodeCode Direct LaborMOD+CCCHAR(08)  
 UnitItemNumberStandard LotSG2.G2_LOTEPADNUM(05)TLBInWODet.StdSpeedDEC(28,23)
 IsActivityEndLast Operation

In the last operation, TRUE.

Otherwise, FALSE.

BOOLEANTLBInWODet.ReportTrigger

TINYINT

 MachineCodeMachine Code

SG2_RESOURCE

SHY_RESOURCE

H8_RESOURCE

CHAR(06)  
 StartPlanDateTimeDate/Time Start Schedule

SHY.HY_HORAINI

SC2.C2_DATPRI

SH8.H8_DTINI

DATETLBInWODet.StartPlanDateTimeDATETIME
 EndPlanDateTimeDate/Time End Schedule

SHY.HY_HORAFIM

SC2.C2_DATPRF

SH8.H8_DTFIM

DATETLBInWODet.EndPlanDateTimeDATETIME
 ProductionQuantityQuantity to produce in operation

SHY.HY_QUANT 

SH8.H8_QUANT 

SC2.C2_QUANT

DEC(12,2)TLBInWODet.Qty DEC(19,4)
 ActivityQuantityQuantity of operation

SHY.HY_QUANT 

SH8.H8_QUANT 

SC2.C2_QUANT

DEC(12,2)  
 UnitActivityCodeUnit of measureSB1.B1_UMCHAR(02)TLBInWODet.Unit1CodeCHAR(5)
 SecondUnitActivityCodeSecond unit of measure in operation-- TLBInWODet.Unit2CodeCHAR(5)
 SecondUnitActivityFactorConversor Factor for second unit in operation-- TLBInWODet.Unit2Factor DEC(8,4)
 ResourceQuantityQuantity of resources

SG2.G2_MAOOBRA

SHY.HY_MAOOBRA

NUM(03)  
ListOfMaterialOrders      
 ProductionOrderNumberProduction Order

SC2.C2_NUM + SC2.C2_ITEM +

SC2.C2_SEQUEN

CHAR(20)TBLInBillMat.WocodeCHAR(41)
 MaterialIDID of reservation recordSD4.R_E_C_N_O_CHAR(10)  
 MaterialCodeCode Reservation ItemSD4.D4_CODCHAR(15)TBLInBillMat.ProductCodeCHAR(20)
 MaterialDescriptionDescription of ItemSB1.B1_DESCCHAR(40)  
 ScriptCodeCode ScriptSD4.D4_ROTEIROSCRIPTCHAR(02)  
 ActivityCodeCode OperationSD4.D4_OPERACCHAR(02)TBLInBillMat.WODetCodeCHAR(10)
 WarehouseCodeCode DepositSD4.D4_LOCALCHAR(02)TBLInBillMat.ExtCodeCHAR(20)
 MaterialDateDate ReservationSD4.D4_DATADATEDATE  
 MaterialQuantityQuantity of ReservationSD4.D4_QUANTDEC(12,2)TBLInBillMat.TotalQtyDEC(19,4)
 LotCodeLotSD4.D4_LOTECTLCHAR(10)  
 PertMaterialNumberSequence of itemSD4.D4_TRTCHAR(03)  
 RequestTypeType of RequestSB1.B1_APROPRICHAR(01)TBLInBillMat.CommentsCHAR(500)
(mais)ListOfAllocatedMaterial

 

      
 WarehouseCodeCode DepositSD4.D4_LOCALCHAR(02)TBLInMovMat.WarehouseCodeCHAR(15)
 LotCodeCode Lot

SD4.D4_LOTECTL

SDC.DC_LOTECTL

CHAR(10)TBLInMovMat.LotCodeCHAR(41)
 LocationCodeLocation/AddressSDC.DC_LOCALIZCHAR(15)TBLInMovMat.AddressCodeCHAR(15)
 ActivityCodeCode OperationSD4.D4_OPERACCHAR(02)TBLInMovMat.WoDetCodeCHAR(10)
 ScriptCodeCode ScriptSD4.D4_ROTEIROSCRIPTCHAR(02)  
 AllocationQuantityAllocated Quantity

SD4.D4_QUANT 

SDC.DC_QUANT

DEC(12,2)TBLInMovMat.Qty DEC(19,4)
 AllocationTypeType Allocation

1 = Adds;2=Decreases;3=Absolute Value

CHAR(01)TBLInMovMat.AllocationTypeINT
 SubLoteCodeSub Lot

SD4.D4_NUMLOTE

SDC.DC_NUMLOTE

CHAR(06)  
 NumberSeriesNumber of SeriesSDC.DC_NUMSERICHAR(20)  
 LotDueDateValidity DateSD4.D4_DTVALIDDATETBLInMovMat.LotDtValidityDATETIME
ListOfQuotaActivity      
 ProductionOrderNumberNumber Production OrderCY9.CY9_NRORPOCHAR(20)  
 ControlTypeSelection Split--   
 ActivityIDID OperationCY9.CY9_CDATCHAR(10)  
 ItemCodeCode of itemCYY.CYY_CDACCHAR(15)  
 ItemDescriptionDescription of itemCYY.CYY_DSACCHAR(40)  
 StartActivityDateTimeDate/Time Start ActivityCYY.CYY_DTBGAT / CYY.CYY_HRBGATDATETIMETBLInWODet.StartPlanDateTimeDATETIME
 EndActivityDateTimeDate/Time End ActivityCYY.CYY_DTEDAT / CYY.CYY_HREDATDATETIME TBLInWODet.EndPlanDateTimeDATETIME
 ApprovedQuantityApproved QuantityCYY.CYY_QTATAPDEC(13,4)  
 ScrapQuantityScrapped QuantityCYY.CYY_QTATRFDEC(13,4)  
 MachineCodeCode MachineCYY.CYY_CDMQCHAR(20)TBLInWODet.ResourceCodeCHAR(15)
 MachineDescriptionDescription of MachineCYY.CYY_DSMQCHAR(40)  
 ActivityQuantityEstimated QuantityCYY.CYY_QTATDEC(12,4)TBLInWODet.QTYDEC(19,4)
 StandardSetupStandard Time PreparationCYY.CYY_QTPASUNUM(10)  
 StandardActivityStandard Time OperationCYY.CYY_QTPAATNUM(10)  
 StandardPostprocessingStandard Time Post_processCYY.CYY_QTPAPPNUM(10)  
 StandardMachineStandard Time MachineCYY.CYY_QTPAMQNUM(10)  
 StandardOperatorStandard Time MODCYY.CYY_QTPAOENUM(10)  
 UsedCapacityCapacity UsedCYY.CYY_QTVMATDEC(12,4)  
 ActivityTimeQuantityActivity Available TimeCYY.CYY_HRDICHAR(08)  
 ReportQuantityReported QuantityCYY.CYY_QTATRPDEC(13,4)  
 ReworkQuantityReworked QuantityCYY.CYY_QTATRTDEC(12,4)  
 StartSetupDateTimeDate/Time Start SetupCYY.CYY_DTBGSU / CYY.CYY_HRBGSUDATETIME  
 EndSetupDateTimeDate/Time End SetupCYY.CYY_DTEDSU / CYY.CYY_HREDSUDATETIME  
 TimeSetupTime SetupCY9.CY9_QTTESUNUM(10)TBLInWODet.SetUpTimeTINYINT
 TimeMachineMachine TimeCY9.CY9_QTTEMQNUM(10)TBLInWODet.StdSpeedDEC(28,23)
 TimeOperatorTime MODCY9.CY9_QTTERCNUM(10)  
 TimePostprocessingPost Process TimeCY9.CY9_QTTEPPNUM(10)  
 QuotaActivityIDID SplitCYY.CYY_IDATQOCHAR(05)

ActivityCode+

TBLInWODet.WODetCode
CHAR(10)
 WorkCenterCodeWork CenterCY9.CY9_CDCETRCHAR(10)TBLInWODet.ManagerGrpCodeCHAR(15)
 ReportedSplitReported SplitCYY.CYY_LGQORPBOOELAN  
 StatusActivityTypeState OperationCYY.CYY_TPSTATCHAR(01)  
(mais) ListOfQuotaActivityTools      
 ToolCodeToolCYY.CYY_CDFECHAR(20)  
 ToolQuantityQuantity ToolCYY.CYY_QTFENUM(03)  

...

  • Routine MATA685 is executed
  • The tag IdReport is not mandatory. It indicates the production report that must be updated (Not used for Protheus)
  • A The tag Type, indica se é Refugo ou indicates whether it is Scrap. 1 = RefugoNo ; 2= ScrapYes.

General Limitations/Restrictions

...