Registro de Venda
A tabela G3P faz parte do sistema ERP Protheus da TOTVS e é utilizada para registro de venda.
Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.
A tabela G3P possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.
Nesta página você pode consultar a estrutura completa da tabela G3P, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | G3P |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | G3P990 |
| X2_NOME | Registro de Venda |
| X2_NOMESPA | Registro de venta |
| X2_NOMEENG | Sales Record |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | G3P_FILIAL+G3P_NUMID+G3P_SEGNEG |
| X2_PYME | N |
| X2_MODULO | 89 |
| X2_DISPLAY | G3P_FILIAL+G3P_NUMID+G3P_SEGNEG |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 2 |
| X2_AUTREC | 2 |
| X2_TAMFIL | 2 |
| X2_TAMUN | 0 |
| X2_TAMEMP | 0 |
| X2_STAMP | 2 |
| X2_INSDT | 2 |
| D_E_L_E_T_ | - |
| R_E_C_N_O_ | 4614 |
| R_E_C_D_E_L_ | 0 |
| X3_ARQUIVO | X3_ORDEM | X3_CAMPO | X3_TIPO | X3_TAMANHO | X3_DECIMAL | X3_TITULO | X3_TITSPA | X3_TITENG | X3_DESCRIC | X3_DESCSPA | X3_DESCENG | X3_PICTURE | X3_VALID | X3_USADO | X3_RELACAO | X3_F3 | X3_NIVEL | X3_RESERV | X3_CHECK | X3_TRIGGER | X3_PROPRI | X3_BROWSE | X3_VISUAL | X3_CONTEXT | X3_OBRIGAT | X3_VLDUSER | X3_CBOX | X3_CBOXSPA | X3_CBOXENG | X3_PICTVAR | X3_WHEN | X3_INIBRW | X3_GRPSXG | X3_FOLDER | X3_PYME | X3_CONDSQL | X3_CHKSQL | X3_IDXSRV | X3_ORTOGRA | X3_IDXFLD | X3_TELA | X3_PICBRV | X3_AGRUP | X3_POSLGT | X3_MODAL | X3_CHKSUM | X3_ADDSUM | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G3P | 01 | G3P_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del sistema | Branch of System | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74243 | 0 |
| G3P | 02 | G3P_NUMID | C | 10 | 0 | Num. Ident. | Num. Ident. | ID Number | Número de Identificação | Número de identificación | Identification Number | @R 99.999.9999-9 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74244 | 0 |
| G3P | 03 | G3P_SEGNEG | C | 1 | 0 | Seg. Negócio | Seg. Negocio | Business Seg | Segmento de Negócio | Segmento de negocio | Business Segment | @! | Pertence("123") | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | 1=Corporativo;2=Evento;3=Lazer | 1=Corporativo;2=Evento;3=Ocio | 1=Corporative;2=Event;3=Leisure | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74245 | 0 |
| G3P | 04 | G3P_EMISS | D | 8 | 0 | Emissão | Emisión | Issue | Data Emissão | Fecha de emisión | Issue Date | - | - | x x x x x x x x x x x x x x x x | dDataBase | - | 1 | xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74246 | 0 |
| G3P | 05 | G3P_ANO | C | 4 | 0 | Ano | Año | Year | Ano geração R.V. | Año generación R.V. | VC generation year | @R 9999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74247 | 0 |
| G3P | 06 | G3P_SEQUEN | C | 7 | 0 | Sequência | Secuencia | Sequence | Sequência Registro Vendas | Secuencia Registro Ventas | Sales Record Sequence | @R | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74248 | 0 |
| G3P | 07 | G3P_CLIENT | C | 6 | 0 | Cód. Cliente | Cód. Cliente | Custmr Code | Código do Cliente | Código del cliente | Custoemer Code | @! | - | x x x x x x x x x x x x x x x x | - | SA1GAC | 1 | xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74249 | 0 |
| G3P | 08 | G3P_LOJA | C | 2 | 0 | Loja | TIenda | Store | Loja do Cliente | TIenda del cliente | Customer Store | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | A | R | - | - | - | - | - | - | INCLUI | - | 002 | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74250 | 0 |
| G3P | 09 | G3P_RAZAO | C | 40 | 0 | Razão Social | Razón Social | Company Name | Razão Social do Cliente | Razón social del cliente | Customer Company Name | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | POSICIONE("SA1",1,XFILIAL("SA1")+G3P->G3P_CLIENT+G3P->G3P_LOJA,"A1_NOME") | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74251 | 0 |
| G3P | 10 | G3P_CLICMP | C | 6 | 0 | Compl. Clie. | Compl. Clie. | Cust Compl | Cod. Complem. do Cliente | Cód. Complem. del Cliente | Customer Complement Code | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 74252 | 0 |
| G3P | 11 | G3P_PROMOT | C | 40 | 0 | Promotor | Promotor | Promoter | Promotor | Promotor | Promoter | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74253 | 0 |
| G3P | 12 | G3P_AGENT | C | 6 | 0 | Cód. Agente | Cód. Agente | Agent Code | Código do Agente | Código del agente | Agent Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74254 | 0 |
| G3P | 13 | G3P_NOMEAG | C | 40 | 0 | Nome Agente | Nom. Agente | Agent Name | Nome do Agente | Nombre del agente | Name of Agent | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 74255 | 0 |
| G3P | 14 | G3P_FILPST | C | 2 | 0 | Filial Posto | Suc. Puesto | Stat. Branch | Filial do Posto | Sucursal del puesto | Station Branch | - | - | x x x x x x x x x x x x x x x x | xFilial('G3M') | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 74256 | 0 |
| G3P | 15 | G3P_POSTO | C | 6 | 0 | Posto Atend. | Puesto Atenc | Serv.Station | Posto de Atendimento | Puesto de atención | Service Station | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74257 | 0 |
| G3P | 16 | G3P_DESPST | C | 60 | 0 | Descr. Posto | Descr. Puest | StationDescr | Descrição do Posto | Descripción del puesto | Station Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74258 | 0 |
| G3P | 17 | G3P_PCC | C | 6 | 0 | PCC do Posto | PCC de Puest | Station PCC | PCC do Posto de Atendim. | PCC del puesto atención | Service Station PCC | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74259 | 0 |
| G3P | 18 | G3P_STATUS | C | 1 | 0 | Status | Estatus | Status | Status Registro de Venda | Estatus registro de venta | Sales Record Status | @! | Pertence("12") | x x x x x x x x x x x x x x x x | "1" | - | 1 | xx | - | - | - | S | V | R | - | - | 1=Aberto;2=Finalizado | 1=Pendiente;2=Finalizado | 1=Opened;2=Finalized | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74260 | 0 |
| G3P | 19 | G3P_UNINEG | C | 6 | 0 | Unid. Negóc. | Unid. Negoc. | Bus.Unit | Unidade de Negócio | Unidad de negocio | Business Unit | @! | Vazio() .Or. T34UnidVld() | x x x x x x x x x x x x x x x x | - | ADK | 1 | xxx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74261 | 0 |
| G3P | 20 | G3P_NOMEUN | C | 40 | 0 | Descr. Unid. | Descr. Unid. | Unit Descrip | Desc. Unidade de Negócio | Desc. Unidad de negocio | Business Unit Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | Posicione("ADK",1,xFilial("ADK")+G3P->G3P_UNINEG, "ADK_NOME") | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74262 | 0 |
| G3P | 21 | G3P_DESTIN | C | 1 | 0 | Destino | Destino | Destination | Destino da Viagem | Destino del viaje | Travel Destination | @! | Pertence(" 123") | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | 1=Nacional;2=Internacional;3=Ambos | 1=Nacional;2=Internacional;3=Ambos | 1=National;2=International;3=Both | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74263 | 0 |
| G3P | 22 | G3P_OBS | M | 10 | 0 | Observação | Observación | Note | Obs. do Reg. de Venda | Obs. del Reg. de venta | Sales Record Note | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74264 | 0 |
| G3P | 23 | G3P_DESCRI | C | 80 | 0 | Descrição | Descripción | Description | Descrição Viagem/Evento | Descrip. Viaje/Evento | Trip/Event Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74265 | 0 |
| G3P | 24 | G3P_CODEX | C | 10 | 0 | Cód. Externo | Cód. Externo | ExternalCode | Cód.Identificador Externo | Cód.Identificador Externo | External Identifier Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74266 | 0 |
| G3P | 25 | G3P_DTINI | D | 8 | 0 | Data Inicio | Fch Inicial | Start Date | Data Inicio da Viagem | Fecha Inicial del viaje | Start Date of Trip | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74267 | 0 |
| G3P | 26 | G3P_DTFIM | D | 8 | 0 | Data Término | Fch. Final | End Date | Data final viagem/evento | Fecha final viaje/evento | Trip/Event End Date | - | Tura34VldIV("G3P_DTFIM") | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74268 | 0 |
| G3P | 27 | G3P_FECHAM | D | 8 | 0 | Fechamento | Cierre | Closing | Data Fechamento do Reg. | Fecha de cierre del Reg. | Rec. Closing Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 74269 | 0 |
| INDICE | ORDEM | CHAVE | DESCRICAO | DESCSPA | DESCENG | PROPRI | F3 | NICKNAME | SHOWPESQ | IX_VIRTUAL | IX_VIRCUST | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G3P | 1 | G3P_FILIAL+G3P_NUMID+G3P_SEGNEG | Num. Ident. + Seg. Negócio | Num. Ident. + Seg. Negocio | ID Number + Business Seg | S | - | - | S | 2 | 3 | - | 10976 | 0 |
Ela é utilizada para registro de venda dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.