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.

...

Transaction Resource PCP / Machine SFC: Machine_1_000.xsd
Message Identifier: Machine
Version: 1_000
Protheus Module: SIGAPCP, SIGASFC
Sending Type: Synchronous

 

MessageTagDescription

Table/Field:

Protheus PCP

Table Field:

Protheus SFC

TypeTable/Field: PC-FactoryType
BusinessContentType
      
 CodeMachine CodeSH1.H1_CODECYB.CYB_CDMQCHAR(20)TBLInResource.codeCHAR(15)
 DescriptionMachine DescriptionSH1.H1DESCRICYB.CYB_DSMQCHAR(40)

TBLInResource.Name

TBLInResource.Nickname

CHAR(20)
 WorkCenterCodeWork Center CodeSH1.H1_CTRABCYB.CYB_CDCETRCHAR(10)

TBLInResource.ManagerGrpCode

CHAR(15)
 WorkCenterDescriptionWork Center DescriptionSHB.HB_NAMECYB.CYB_DSCETRCHAR(40)

TBLInResource.WorkCenterDescription

CHAR(15)
 CostCenterCodeCost Center CodeSH1.H1_CCUSTCYB.CYB_CDCECSCHAR(20)  
 ProcessorTypeType of Processing 

CYB.CYB_TPPC

1=Monoprocess;2=By Batch;

3=Multiple Processes;4=Manual

CHAR(01)  
 LaborTypeType MOD 

CYB.CYB_TPMOD

1=Does not Report;2=Operator;3=Team

CHAR(01)  
 VolumeMachineQuantityMachine Volume Quantity CYB.CYB_QTVMMQDEC(12,4)  
 EfficiencyMachineValueMachine Efficiency CYB.CYB_VLEFMQDEC(05,2)  
 OperatorMachineQuantityMachine Operator Quantity CYB.CYB_QTOEMQNUM(02)  
 SimultaneousActivityQuantityQuantity Simultaneous Operations CYB.CYB_QTATSMNUM(03)  
 IsSetupIt is set up CYB.CYB_LGSUBOOLEAN  
 IsOverlapReportOverlaps Annotation CYB.CYB_LGOVRPBOOLEAN  
 ProductionAreaCodeProduction Area CYB.CYB_CDARPOCHAR(10)  
 InitialValidateDateValidity Initial Date CYB.CYB_DTBGVDDATE  
 FinalValidateDateValidity End Date CYB.CYB_DTEDVDDATE  
ListOfResources
      
  ResourceTypeResource Type 

CYC.CYC_TPRC

1=Operator;2=Tool;

3=Team;4=Equipment

CHAR(01)  
 ResourceCodeResource Code CYC.CYC_CDRCCHAR(20)TBLInUser.CodeCHAR(30)
 ResourceNameResource Name CYC.CYC_NMRCCHAR(40)

 TBLInUser.Name

 TBLInUser.Nickname
CHAR(60)
 UnitTimeTypeMeasure Time Type 

CYC.CYC_TPUNTE

1=Hours;2=Minutes;3=Seconds

CHAR(01)  
 StartExpirationDateValidity Start Date CYC.CYC_DTBGVDDATE  
 EndExpirationDateValidity End Date CYC.CYC_DTEDVDDATE  
 CycleQuantityNumber Cycles CYC.CYC_QTCIDEC(11,4)  
 IsTimeActivityDetermines time CYC.CYC_LGTEATBOOLEAN  
ListOfProductionShifts       
 ProductionShiftCodeCode Shift Model CYL.CYL_CDTNCHAR(08)  
 ProductionShiftDescriptionDescription Shift Model CYL.CYL_DSTNCHAR(40)  
 BeginDateValidity Start Date CYL.CYL_DTVDBGDATE  
 EndDateValidity End Date CYL.CYL_DTVDEDDATE 

...

Transaction Structure: ItemStructure_1_000.xsd 
Message Identifier: ItemStructure
Version: 1_000
Protheus Module: SiGAPCP
Sending Type: Synchronous

 

MessageTagDescriptionTable/Field: ProtheusTypeTable/Field: PC-FactoryType
BusinessContentTypeCompanyIdCompany Code CHAR(02)  
 CompanyInternalIdCompany+BranchCOMPANY + SG1.G1_BRANCH   
 ItemInternalIdCompany+Branch+code parent item

COMPANY + SG1.G1_BRANCH +

SG1.G1_COD

   
 ItemCodeCode parent itemSG1.G1_CODCHAR(15)

TBLInWOHD.ProductCode

TBLInWOHD.WOCode

CHAR(30)
 ItemAmountBase quantity of parent itemSB1.B1_QBNUM(07)TBLInWOHD.TotalQTYDEC(19,4)
ItemComponentType      
 ItemSequenceSequence of componentSG1.G1_TRTNUM(05)TBLInBillMat.BillMatExtCodeCHAR(20)
 ItemComponentCodeCode item componentSG1.G1_COMPCHAR(15)TBLInBillMat.ProductCodeCHAR(20)
 ItemComponentInternalIdInternal Id of Item ComponentCOMPANY + SG1.G1_BRANCH + SG1.G1_COMP   
 InitialDateValidity Initial DateSG1.G1_INIDATETBLInWOHD.DtPlanStartDATETIME
 FinalDateValidity End DateSG1.G1_FIMDATETBLInWOHD.DtPlanEndDATETIME
 IsGhostMaterialIndicates whether it is ghostSB1.B1_FANTASMBOOLEAN ( FALSE ou TRUE)  
 ItemComponentAmountQuantity of component itemSG1.G1_QUANTDEC(12,6)  
 LossFactorFactor of lossSG1.G1_LOSSDEC(05,2)  
(mais) ListOfScript      
 ScriptcodeCode of ScriptSGF.GF_SCRIPTCHAR(02)TBLInWOHD.ExtCodeCHAR(20)
 ScriptAlternativeAlternative of Script--   
 ActivityIntenalIDID Operation--   
 ActivityCodeCode of OperationSGF.GF_OPERACCHAR(02)TBLInWodet.CodeCHAR(10)
 ActivityComponentSequenceSequence of component in the operationSGF.GF_TRTNUM(03) 

...

  • The consumption of components must follow the parameterization of PCPA109. In parameters routine is defined how the treatment of components consumption:
    1 - BackFlush: Whenever issue of components is executed according to what is defined in Engineering. Disregard the list of consumption SupplyOrder.
    2 - Actual Consumption: It consumes according to the list of components SupplyOrder sent in message.
  • In the consumption of components, the process must follow this rule, according to parameterization:
    If parameter MV_REQAUT is 'D' the DIRECT materials are entered and the INDIRECT are automatically loaded. To load the Indirects the type of movement must have field Ind Approp as O in routine MATA230.
    If parameter MV_REQAUT is 'A', the consumption of materials is executed for all components.
  • It must consider the movement type of register of parameters PCPA109, folder MOVEMENTS. If input, use field OE_VAR1. If output, use field OE_VAR2. When Shop Floor is used, it must use movements parameterized in SIGASFC (MV_SFRQMB and MV_TMPAD).
  • Quando consumo real, deverá considerar o tipo de movimento do cadastro de parâmetros PCPA109, folder "Movimentos e Transferência". Para saídas usar o campo OE_VAR2. Quando usa o Chão de Fábrica, deverá usar as movimentações parametrizadas no SIGASFC (MV_SFRQMB).
  • Para o apontamento, o tipo de movimento será o que estiver no parâmetro For the annotation, the type of movement is the one in the parameter MV_TMPAD, para o for SIGAPCP e and SIGASFC.
    Quando When back-flush, usará os tipos de movimentos padrões da rotinait uses the types of standard movements of the routine.
  • In PC Factory, batch and number of series are not used at the same time. O retorno desse conteúdo será via The return of this content is through tag SupplyOrder - LotCode, que pode ser o Lote ou número de série, conforme o cadastro do which can be the Lot or number of series, according to register of item.

 

Shop Floor Notes

  • Quantity reported  CYV_QTATRP, sum of quantity approved and rejected.
  • Start and End Date/Time and code of Preparation despite being virtual, if machine demands setup (CYB_LGUSU) must send tags SetupCode, StartSetupDateTime and EndSetupDateTime.
  • If document, tag DocumentCode, is blank, the production order number is saved.
  • The fields Reservation Date 'CZP_DTMT' must receive the content of table CYP.CYP_DTMT 
    The reservation quantity 'CZP_QTMT' must receive the content of table  CYP.CYP_QTMT
    State 'CZP_TPST' must receive content of table CYP.CYP_TPST 
  • The operation unit time, CZ0_QTTEUN, must be generated according to rule SFCA314

...

Message Identifier: StopReport
Version: 1_001
Protheus Module: SIGAPCP
Sending Type: Synchronous

 

Nota
titleNotaNote:

This message is generated by PC-Factory and sent to Protheus.

MensagemMessageTagDescriçãoDescription

TabelaTable/CampoField

Protheus PCP

TabelaTable/CampoField

Protheus SFC

TipoTypeTabelaTable/CampoField: PC-FactoryTipoType
 MachineCodeCódigo MáquinaMachine CodeSH6.H6_RECURSORESOURCECYX.CYX_CDMQCHAR(06)TBLOutRSEv.ResourceCodeCHAR(15)
 MachineDescriptionDescrição MaquinaMachine Description     
 StopReasonCodeCódigo Motivo ParadaCode Reason StoppageSH6.H6_MOTIVOREASONCYX.CYX_CDSPCHAR(02)TBLOutRSEv.ResourceStatusCodeCHAR(20)
 StopReasonDescriptionDescrição Motivo ParadaDescription Reason StoppageSX5.X5_DESCRI *CYX.CYX_DSSPCHAR(40)  
 StartDateTimeDataSt Date/Hora InícioTime

SH6.H6_DATAINI

SH6.H6_HORAINI

CYX.CYX_DTBGSP

CYX_HRBGSP

DATETBLOutRSEv.ShiftDtStartDATETIME
 EndDateTimeDataEnd Date/Hora FimTime

SH6.H6_DATAFIN

SH6.H6_HORAFIN

CYX.CYX_DTEDSP

CYX.CYX_HREDSP

DATETBLOutRSEv.ShiftDtEndDATETIME
 OperatorCodeCódigo OperadorOperator CodeSH6.H6_OPERADOCYX.CYX_CDOECHAR(20)TBLOutRSEv.UserCodeStartCHAR(30)
 ReportDateTimeDataReport Date/Hora ReporteTimeSH6.H6_DTAPONTCYX.CYX_DTRPDATETBLOutRSEv.DtTimeStampDATETIME
 ToolCodeCódigo FerramentaCode Tool-- CYX.CYX_CDFEPO   
 ProductionTeamCodeCódigo EquipeCode Team--CYX.CYX_CDGROE   
 StopTypeTipo Parada Type Stoppage (1=Não ProgramadaNot Scheduled;2=ProgramadaScheduled)--CYX.CYX_TPSP   
 ReportSequenceID PC-Factory---- TBLOutRSEv.IDOutRSEv 
Nota
titleNotaNote:
  • The annotation of standard stoppage for this integration is MATA682 in PCP and in Shop Floor the routine is SFCA311.
  • The fields Machine,Stoppage Reason, Start and End Date/Time and Report Date/Time are mandatory.
  • If Report Date/Time is earlier than the current date, the system uses the current Date/Time, that is, date and time the integration is being processed.
  • Stoppage annotation sets SH6.H6_TIPO = 'I'.
  • Product must be labor. Generated by system. Example: SH6.H6_PRODUTO = MOD001
  • The quantity loss is generated by the system. SH6.H6_QTDPERD.
  • The field SH6.H6_IDENT is also generated by the system.
  • The field SH6.H6_TEMPO must be calculated by adapter. It must be the stoppage total time.
  • Stoppage Reason:
    The reason can be registered through integration. It must check the stoppage reason is registered. If not, you must add the reason used in annotation in table SX5.
    Where:
    Code of reason is X5_CHAVE
    Table of reason is '44'.
    For Shop Floor, table - CYN must be generated.
  • Every annotation must send a return message, indicating possible problems or processing performed with success. 
  • In case of success, the number of annotation is sent to PV-Factory in the return message of StopReport and corresponds to RECNO of SH6. This same number is used when a reverse must be registered(IntegrationReport).
  • The reversal when the field ReversedReport (Annotation Reversal) with content TRUE.
    When is reversal, it must have  the number of annotation, field IntegrationReport.
  • The reversal can be generated in two ways in the file: only reversal or reversal + annotation. When the message has the reversal and the annotation only can commit the movements when both are concluded.
    To identify whether the message only has reversal or reversal + annotation, the following status must be checked:
    Only reversal: it only has the information of ReverseReport and IntegrationReport with other tags without data. 
    Reversal + annotation: has ReversedReport and IntegrationReport entered and the other mandatory data (Machine, Stoppage Reason, Start and End Date/Time and Report Date/Time) filled out.
  • The field SH6.H6_OBSERVA = 'PPI' is automatically registered to indicate the record was generated through PCP Protheus x PC-Factory.
  • The system PC-Factory uses the format of hours with HH:MM:SS. For PCP Protheus, only HH:MM is considered. Annotation with time lower than 1 minute is rejected.
  • The field ReportSequence is used to register ID of table registering the stoppage information. It must be used in MATI681CRG entry point.
  • Shift model and number is automatically generated by routine SFCA311. Only when using Shop Floor.
  • If message does not send StopType, it is considered as 2= Not Scheduled. Only when using Shop Floor.
  • 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 PCP it must validate SX5.X5_CHAVE and SBC.BC_MOTIVO.
    When it uses the SIGASFC validate against the CYO.CYO_CDSF, CY0.CY0_CDSP and SH6.H6_MOTIVO. 

...

This Request is generated by PC-Factory and sent to Protheus. This Return is generated by Protheus to PC-Factory.

 

 

Request

MensagemMessage
Tag
DescriçãoDescription
TipoType
ListOfRequestItemInternalIdCódigo do produtoCode of productCHAR(15)
 ReferenceCodeReferênciaReferenceCHAR(20)
 WarehouseInternalIdCódigo do depósito/local de estoque/ArmazémCode of deposit/location of stock/WarehouseCHAR(10)
 LotNumberLoteLotCHAR(10)
 SubLotCodeSubLoteSubLotCHAR(10)
 SerialNumberNúmero de SérieNumber of SeriesCHAR(20)
 AddressLocalizaçãoLocationCHAR(15)
 LotExpirationDateData de ValidadeValidity DateDATE
Nota
titleNotaNote:
    • The search can happen as follows:
      Per Product: It returns information of all location of product stock.
      By Stock Location (Warehouse): It returns information of all products in stock location.
    • By Stock Location (Warehouse) and Product: It returns information on Product of Stock Location defined.
      For other fields, Batch, Sub-Batch, series number, location and validity date consider only if you enter product code. If you send these fields without the product code, it must return error message.
    • The Request may be a request list.


Return

MensagemMessage
Tag
DescriçãoDescription
TabelaTable/CampoField
TipoType
ReturnContentTypeClosingStockDateData fechamento estoqueStock closing date-- 
ListOfReturnItemCompanyIdEmpresaCompany  
 BranchIdFilialBranch  
 CompanyInternalIdEmpresa Company + FilialBranch  
 ItemInternalIdCódigo do produtoCode of productSB2.B2_CODCHAR(15)
 ReferenceCodeReferenciaReference-- 
(mais) ListOfStockBalance    
 WarehouseInternalIdLocal de Estoque (Armazém/DepósitoLocation of Stock (Warehouse/Deposit)SB2.B2_LOCALCHAR(10)
 LotNumberNúmero do LoteNumber of LotSB8.B8_LOTECTL CHAR(10)
 SubLotCodeSub LoteLotSB8.B8_NUMLOTECHAR(10)
 LotExpirationDateData de validadeValidity DateSB8.B8_DTVALIDDATE
 SerialNumberNúmero de sérieNumber of seriesSBF.BF_NUMSERI CHAR(20)
 AddressLocalizaçãoLocationSBF.BF_LOCALIZCHAR(15)
 CurrentStockAmountSaldo do Produto em quantidadeBalance of Product in quantity

SB2.B2_QATU

SB8.B8_SALDOBALANCE

SBF.BF_QUANT

DEC(17,4)
 BookedStockAmountQuantidade reservada em EstoqueQuantity reserved in Stock

SB2.B2_RESERVARESERVATION

SB8.B8_EMPENHOALLOCATION

SBF.BF_EMPENHOALLOCATION

DEC(17,4)
 AvailableStockAmountSaldo disponível do Produto em quantidadeBalance available of Product in quantity

SB2.B2_QATU - SB2.B2_RESERVARESERVATION

SB8.B8_SALDO - SB8.B8_EMPENHOALLOCATION

SBF.BF_QUANT - SBF.BF_EMPENHOALLOCATION

DEC(17,4)
 UnitItemCostCusto unitário do ProdutoUnitary cost of Product-- 
 AverageUnitItemCostCusto médio do ProdutoAverage cost of Product-- 
 ValueOfCurrentStockAmountSaldo atual do estoque do produto em valorCurrent balance of stock of product in value-- 
     

 

Stock Movement Transactions:  MovementsInternal_1_001.xsd 
Message Identifier: MovementsInternal
Version: 1_001
Protheus Module: SIGAPCP
Sending Type: Synchronous

Note: This message is generated by PC-Factory and sent to Protheus.

 
MensagemMessage
Tag
DescriçãoDescription
TabelaTable/CampoField
TipoType
TabelaTable/CampoField: PC-Factory
TipoType
BusinessContentTypeCompanyIdCódigo da empresaCode of company    
 BranchIdFilialBranch    
 CompanyInternalIdInternalId da chave completa da empresaof full key of the company    
 InternalIdInternalId da movimentaçãoof movement.    
 TypeMovementCodeCódigo do Tipo de Movimento internoCode of Type of internal movementSD3.D3_TMCHAR(03)  
 EmissionDateData de EmissãoDate of IssueSD3.D3_EMISSAOISSUEDATETBLOutInteg. DtTimeStampDATETIME
 ItemCodeCódigo do ProdutoCode of ProductSD3.D3_CODCHAR(15)

TBLOutInteg.ProductCode

CHAR(20)
 UnitOfMeasureCodeUnidade de MedidaUnit of MeasureSD3.D3_UMCHAR(02)  
 QuantityQuantidadeQuantitySD3.D3_QUANTDEC(12,2)

TBLOutInteg.Qty

DEC(19,4)
 WarehouseCodeCódigo do ArmazémCode of WarehouseSD3.D3_LOCALCHAR(02)

TBLOutInteg.WarehouseCode

CHAR(15)
 LotNumberLoteLotSD3.D3_LOTECTLCHAR(10)

TBLOutInteg.LotCode

CHAR(41)
 SubLotNumberSubLoteSubLotSD3.D3_NUMLOTECHAR(06)  
 LotExpirationDateData Validade do LoteLot Validity DateSD3.D3_DTVALIDDATE

TBLLot.DTDUE

DATETIME
 AddressEndereçoAddressSD3.D3_LOCALIZCHAR(15)

TBLOutInteg.Address1Code

CHAR(15)
 NumberSeriesNumberSeriesSD3.D3_NUMSERICHAR(20)

TBLOutInteg.LotCode

CHAR(41)
 InputOrOutputMovimento de Entrada ou SaídaInput or Output MovementI=Input / O = OutputE=Entrada / S = SaídaCHAR(01)

TBLOutInteg.MovTypeCode

CHAR(05)
 ReferenceCodeReferênciaReference--   
 ScriptCodeRoteiroScriptSD4.D4_ROTEIROSCRIPTCHAR(02)  
 ActivityCodeOperaçãoOperationSD4.D4_OPERACCHAR(02)

TBLOutInteg.WODetCode

CHAR(15)
 ProductionOrderNumberOrdem de Produção/DocumentoProduction Order/DocumentSD3.D3_OP e SD3.D3_DOCCHAR(13)

TBLOutInteg.WOCode

CHAR(41)
 FatherItemCodeParent Item Pai--  
       
Nota
titleNotaNote:
  • It registers the movement had origin in integration with PC-Factory. The field SD3.D3_OBSERVA is saved as content "TOTVSMES".
  • If tag InputOrOutput is I (input) it must execute routine MATA250. If O (output), it executes the process of routine MATA240. Different than I or O, reject message.
  • The tag InputOrOutput indicates if it is input or output. Based on this information, consider the type of movement of register PCPA109, folder MOVEMENTS. If input, use field OE_VAR1. If output, use field OE_VAR2.
  • No option of reversal. To execute a reversal process, it must send the opposite movement, that is, to reverse an input, it must send an output movement.
  • For tag ProductionOrderNumber, it is validate if content is production order (SC2), If OP saves in field SD3.D3_OP, otherwise, saves in field SD3.D3_DOC.
  • When Shop Floor is in use, the routine does not allow to execute movement of manual input. Only annotation through Shop Floor.

...

Note: This message is generated by PC-Factory and sent to Protheus.

 

 

MensagemMessage
Tag
DescriçãoDescription
TabelaTable/CampoField
TipoType
TabelaTable/CampoField: PC-Factory
TipoType
BusinessContentTypeCompanyIdEmpresaCompany    
 BranchIdFilialBranch    
 CompanyInternalIdInternalId da chave completa da empresaof full key of the company    
 InternalIdInternalId da transferênciaof transfer    
 NumberNúmero da MovimentaçãoNumber of MovementSD3.D3_NUMSEQCHAR(06)  
 RegisterDateTimeData de Emissão da solicitaçãoDate of Issue of RequestSD3.D3_EMISSAOISSUEDATE  
TransferWarehouseType      
 InternalIdInternalId da transferênciaof transfer    
 EmissionDateData de EmissãoIssue DateSD3.D3_EMISSAOISSUEDATE

TBLOutInteg.DtTimeStamp

DATETIME
 ItemCodeFromItem/Produto OrigemProduct OriginSD3.D3_CODCHAR(15)

TBLOutInteg.ProductCode

CHAR(20)
 ItemCodeToItem/Produto DestinoProduct DestinationSD3.D3_CODCHAR(15)

TBLMovEv.ProductCode

CHAR(20)
 UnitOfMeasureFromUnidade de Medida OrigemUnit of Measure OriginSD3.D3_UMCHAR(02)  
 UnitOfMeasureToUnidade de Medida DestinoUnit of Measure DestinationSD3.D3_UMCHAR(02)  
 QuantityQuantidadeQuantitySD3.D3_QUANTDEC(12,2)

TBLOutInteg.Qty

DEC(19,4)
 WarehouseCodeFromCódigo do Armazém de OrigemCode of Origin WarehouseSD3.D3_LOCALCHAR(02)

TBLOutInteg.WarehouseCode

CHAR(15)
 WarehouseCodeToCódigo do Armazém DestinoCode of Destination WarehouseSD3.D3_LOCALCHAR(02)

TBLMovEv.WarehouseCode

CHAR(15)
 LotNumberFromNúmero do Lote de OrigemNumber of Origin LotSD3.D3_LOTECTLCHAR(10)

TBLOutInteg.LotCode

CHAR(41)
 LotNumberToNúmero do Lote de DestinoNumber of Destination LotSD3.D3_LOTECTLCHAR(10)

TBLMovEv.LotCode

CHAR(41)
 SubLotNumberNúmero do SubLoteNumber of SubLotSD3.D3_NUMLOTECHAR(06)  
 LotExpirationDateFromData de validade do Lote OrigemValidity Date of Origin LotSD3.D3_DTVALIDDATE

TBLLot.DtDue

DATETIME
 LotExpirationDateToData de validade do Lote DestinoValidity Date of Destination LotSD3.D3_DTVALIDDATE

TBLLot.DtDue

DATETIME
 AddressFromEndereço OrigemOrigin AddressSD3.D3_LOCALIZCHAR(15)

TBLOutInteg.Address1Code

CHAR(15)
 AddressToEndereço DestinoDestination AddressSD3.D3_LOCALIZCHAR(15)

TBLOutInteg.Address2Code

CHAR(15)
 NumberSeriesNúmero de sérieNumber of SeriesSD3.D3_NUMSERICHAR(20)

TBLOutInteg.LotCode

CHAR(41)
Nota
titleNotaNote:
  • It is registered that its origin transfers was through integration with  PC-Factory. The field SD3.D3_OBSERVA is saved as content "TOTVSMES".
  • For transfers, routine MATA261 is executed.
  • No option of reversal. To execute a reversal process, it must send the opposite movement, that is, to reverse a transfer from X to Y, it must send a transfer movement from Y to X.

 

Transação RecusaTransaction Refusal:  Refusal_1_000.xsd
Identificador da Mensagem Identifier of Message: Refusal
Versão Version: 1_000
Módulo Module Protheus: SIGAPCP
Tipo de Envio: Síncrona

 

Esta mensagem será utilizada para registrar as perdas da produção quando são registradas peças boas e posteriormente verificado que houve algum defeito. Também pode ser utilizada para registrar as perdas da matéria-prima.

 

Nota:

Type of Delivery: Synchronous

This message is used to register the losses of production when good spare parts are registered, then later a defect is verified. It can be used to register the losses of raw material.

 

Note:

This message is generated by PC-Factory and sent to Esta mensagem será gerada pelo PC-Factory e enviada ao Protheus.

 

 

MensagemMessage

Tag

DescriçãoDescription

TabelaTable/CampoField

TipoType

TabelaTable/CampoField: PC-Factory

TipoType

BusinessContentType

ProductionOrderNumberOrdem

de ProduçãoProduction Order

SBC.BC_OP

CHAR(20)

 

 

 

IdReport

ID ApontamentoAnnotation

 

CHAR(10)

 

 

 

ItemCodeProduto

RecusadoRefused Product

SBC.BC_PRODUTOPRODUCT

CHAR(20)

 

 

 

WarehouseCodeCódigo

do depósitoDeposit Code

SBC.BC_LOCORIG

CHAR(02)

 

 

 

AddressCode

EndereçoAddress

SBC.BC_LOCALIZ

CHAR(15)

 

 

 

NumberSeries Número

de SérieSeries Number

SBC.BC_NUMSERI

CHAR(20)

 

 

 

TypeTipo

PerdaType Loss

SBC.BC_TIPO

CHAR(01)

 

 

 

WasteCodeMotivo de Perda

Reason of Loss

SBC.BC_MOTIVOREASON

CHAR(02)

 

 

 

WasteDescriptionDescrição da Perda

Description of Loss

SBC.BC_DESCRI

CHAR(40)

 

 

 

LossQuantityQuantidade de Perda

Quantity of Loss

SBC.BC_QUANT

DEC(11,2)

 

 

 

CostCenterCodeCentro

de CustoCost Center

SBC.BC_CC

CHAR(09)

 

 

 

ItemCodeToProduto

GeradoProduct Generated

SBC.BC_CODDEST

CHAR(20)

 

 

 

WarehouseCodeToCódigo do depósito Destino

Code of Destination deposit

SBC.BC_LOCAL

CHAR(02)

 

 

 

AdressCodeToEndereço

DestinoDestination Address

SBC.BC_LOCDEST

CHAR(15)

 

 

 

NumberSeriesToNr

. de Série DestinoNo. of Destination Series

SBC.BC_NSEDEST

CHAR(20)

 

 

 

QuantityToQuantidade

destinoDestination Quantity

SBC.BC_QTDDEST

DEC(11,2)

 

 

 

ActivityCode

OperaçãoOperation

SBC.BC_OPERAC

CHAR(10)

 

 

 

ResourceCode

MáquinaMachine/RecursoResource

SBC.BC_RECURSORESOURCE

CHAR(20)

 

 

 

LossDateData da Perda

Date of Loss

SBC.BC_DATADATE

DATE

 

 

 

LotCode

LoteLot

SBC.BC_LOTECTL

CHAR(10)

 

 

 

SubLotCode

SubLoteSubLot

SBC.BC_NUMLOTE

CHAR(06)

 

 

 

LotDueDateData

de ValidadeValidity Date

SBC.BC_DTVALID

DATE

 

 

 

Esta mensagem terá as seguintes finalidades: 
Perda do Produto Acabado informando produto destino:
Permite que seja alterado uma determinada quantidade que já foi apontada e está no estoque como boa. Denomina-se recusa do produto acabado, pois não será necessário realizar os estornos e depois o ajuste do apontamento.
Exemplo: OP de 50 unidades, 5 apontamentos de 10, Necessidade de acerto de 45 peças com defeitos e 5 boas.

Ao invés de estornar os 5 apontamentos e "reapontar" 5 boas e 45 refugos na ProductionAppointment poderá ser enviada uma mensagem de Recusa de 45 para a OP, informando o motivo da recusa/defeito e código do produto destino.

Perda de Matéria Prima:

A mensagem de recusa também será utilizada para registrar perda de matéria prima durante o processo produtivo. A matéria prima pode gerar um subproduto ou não.

Perda do Produto Acabado sem informar produto destino:

Poderá ser utilizado para informar a perda do produto acabado sem que seja necessário gerar as tags de destino.

 

Nota:

This message will have the following purposes: 
Loss of Finished Product entering destination product:
Enables you to change certain amount that has already been registered and is in stock as good. It is called refusal of finished product, as you do not need to perform reversal and adjustment of annotation.
Example: OP of 50 units, 5 annotations of 10, Need of adjustment of 45 spare parts with deffects and 5 good.

Instead of reversing 5 annotation and register again 5 good ones and 45 scraps in ProductionAppointment, a Refusal message can be sent for OP, indicating the reason of refusal/defect and code of destination product.

Loss of Raw Material:

The message of refusal is also used to register loss of raw material during the productive process. The raw material can generated a subproduct or not.

Loss of Finished Product without entering destination product:

Used to enter the loss of finished product, without being necessary to generate the destination tags.

 

Note:

  • Routine MATA685 is executed
  • The tag IdReport is not mandatory. It indicates the production report that must be updated (Not used for
  • Será executada a rotina MATA685
  • A tag IdReport não será obrigatória. Indica o reporte de produção que deverá ser atualizado (Não usado para o Protheus)
  • A tag Type, indica se é Refugo ou Scrap. 1 = Refugo; 2= Scrap.

...