You are on page 1of 22

Orientações fundamentais

Introdução a SAP IS-U/CCS:


funcional e técnico
Tabelas - dados Mestre

Tabelas Dados Mestres Comerciais

FKKVKP EVER
BUT000 Contract FKKVK Contract
Business account for partner Contract VERTRAG
Partner VKONT account ANLAGE
PARTNER GPART VKONT VKONTO

Tabelas Dados Mestres Técnicos


EVBS EANL
EHAUISU Premise Installation
Connection object
VSTELLE ANLAGE
HAUS HAUS VSTELLE

IFLOT
EGPLTX
Functional location Device locations
TPLNR
ILOAN DEVLOC

© 2008 Accenture. All rights reserved. 2


Tabelas de Equipamentos

Tabelas Equipamentos
EZWG
Register group
ZWGRUPPE
EGERH
ZWNUMMER
Historical
device data EGERS
ZWGRUPPE Master
EQUNR device data
EANLH EASTL EASTL LOGIKNR EQUNR
Installation Installation Installation
time slice - device - device EGERR
TARIFTYP LOGIKNR Device Info EQUI
LOGIKNR
BIS BIS for PoD Equipment
BIS
ANLAGE TARIFART TARIFART EQUNR EQUNR
ABLEINH ANLAGE ANLAGE LOGIKNR
GERAET
ETYP MATNR
Device category
/ material data
MATNR

© 2008 Accenture. All rights reserved. 3


Tabela de leitura

Tabelas Medição
EANLH
Installation
time slice EANL
TARIFTYP Installation
BIS
ANLAGE ANLAGE
ABLEINH VSTELLE
EABLG
EABL
Meter reading
Meter reading
reasons
document
ANLAGE ETRG TE422
ABLBELNR ABLBELNR Billing orders Meter reading units
ABLEINH TERMSCHL
PORTION PORTION
ANLAGE

TE418
Schedule records
Meter reading units
TERMSCHL

© 2008 Accenture. All rights reserved. 4


Tabelas Calculo /Faturamento e FICA

Principais Tabelas FAT


ERCH
ERCHO ERCHC
Billing doc header
Outsorting for Invoicing /
BELNR
billing doc reversal history
GPARTNER
BELNR BELNR VKONT
OUTCNSOL OPBEL VERTRAG

DBERDLB
Billing doc –
ERDO
ERDK print doc line ref.
Outsorting for
Print doc header BILLDOC
invoices
BILLDOCLINE
OPBEL OPBEL PRINTDOCLINE DBERDL
OUTCNSOL PRINTDOC Print doc lines
DFKKKO
ERDB CA document BELZEILE
DFKKKOP
CA document for header OPBEL
CA document
print document
FIKEY items
OPBEL
OPBEL OPBEL
INVOPBEL
OPUPK
OPUPW
OPUPZ

© 2008 Accenture. All rights reserved. 5


Tabelas Calculo /Faturamento e FICA

Principais Tabelas FAT


ERCH
ERCHO ERCHC
Billing doc header
Outsorting for Invoicing /
BELNR
billing doc reversal history
GPARTNER
BELNR BELNR VKONT
OUTCNSOL OPBEL VERTRAG

DBERDLB
Billing doc –
ERDO
ERDK print doc line ref.
Outsorting for
Print doc header BILLDOC
invoices
BILLDOCLINE
OPBEL OPBEL PRINTDOCLINE DBERDL
OUTCNSOL PRINTDOC Print doc lines
DFKKKO
ERDB CA document BELZEILE
DFKKKOP
CA document for header OPBEL
CA document
print document
FIKEY items
OPBEL
OPBEL OPBEL
INVOPBEL
OPUPK
OPUPW
OPUPZ

© 2008 Accenture. All rights reserved. 6


Principais Modulos de Funções de Faturamento e FICA

Funções de Faturamento

 ISU_REVERSE_CA_BILL_DOC – Estorna Documento Cálculo ou Faturamento


 ISU_SIMULATION_PERIOD_BILL – Simula documento de Cálculo
 ISU_INV_BILLDOC_PROCESSING – Simula documento de Faturamento
 ISU_ALL_TRIGG_OF_INSTALL_BILL – Realiza o Cálculo
 ISU_OUTSORT_BILL_DOC_RELEASE – Libera anomalia de Cálculo
 ISU_INV_ACC_PROCESSING – Realiza Faturamento
 ISU_ADDRESS_PROVIDE – Mostra o endereço da Instalação, local de consumo, cliente etc.
 ISU_DB_BILL_SELECT - Histórico de Consumo

Funções de FICA

 FKK_RESET_CLEARING – Anula Compensação dos documentos FICA


 FKK_REVERSE_DOC – Estorna documento de FICA
 FKK_CREATE_DOC_AND_CLEAR– Faz atualização de Contas (Compensa documentos de FICA)

© 2008 Accenture. All rights reserved. 7


Transação SE37

Pressionar F4

© 2008 Accenture. All rights reserved. 8


Transação ZEXITS

Pressionar F8

© 2008 Accenture. All rights reserved. 9


Transação SMOD

Clicar em componentes

Clicar em exibir

© 2008 Accenture. All rights reserved. 10


Principais EXITS

Leitura

 EXIT_SAPLELHR_003 - Cálculo de estimativa de leitura


 EXIT_RELEINH1_001 - Consistência do número de dias para mudança de unidade de leitura
 EXIT_SAPLEPU1_001 - Consistência de leitura (Ampliação EDMLELDV )

© 2008 Accenture. All rights reserved. 11


Transação CMOD

Clicar em componentes

© 2008 Accenture. All rights reserved. 12


Transação SE30

© 2008 Accenture. All rights reserved. 13


SQL Interface --> Test Existence

© 2008 Accenture. All rights reserved. 14


SQL  Select aggregates

Funções de agregação evitam o uso desnecessário de memória e


são mais rápidas porque utilizam a inteligência do Banco de
Dados.

© 2008 Accenture. All rights reserved. 15


SQL Interface Using Subqueries

Melhora a seletividade das informações e é mais rápido.

© 2008 Accenture. All rights reserved. 16


SQL Interface  Select with select list

© 2008 Accenture. All rights reserved. 17


SQL Interface  Select with join

O JOIN permite que o SAP escolha a melhor estratégia de acesso ao


BD, reduzindo o tempo de acesso e utilização da memória.

© 2008 Accenture. All rights reserved. 18


Internal Tables  Linear search vs. binary search

Para tabelas internas muito grandes é recomendável a


utilização de tabelas SORTED ou HASHED.

© 2008 Accenture. All rights reserved. 19


Processar rotinas em Paralelo

Alguns processos críticos mesmo otimizados costumam não


atender a demanda necessária, para esses casos é aconselhável
que sua execução seja feita em paralela, reduzindo assim o tempo
total do processamento.

Passos

 Número de Pacotes

 Determinar número de registros para cada para pacote

 Criar rotina para processamento dos pacotes utilizando as funções


JOB_OPEN, SUBMIT, JOB_CLOSE, BP_JOB_STATUS_GET

 Exemplo

© 2008 Accenture. All rights reserved. 20


Rotina

Programa Principal Programa ZGERA_NT_CORTE


Rotinas para determinar quais instalações estão em advertência
Rotinas para determinar quais instalações estão em advertência
Rotina para determinar número de registro de cada pacote

GV_PACOTE = 20 Loop at GT_NT_CORTE from GV_REG_INICIAL


Describe table GT_NT_CORTE lines GV_TOTAL_REG to GV_REG_FIM
Cria nota de serviço para corte
GV_NR_REG = GV_TOTAL_REG / GV_PACOTE.
Call function ‘JOB_OPEN’ ……
Endloop.
Dispara as rotinas em paralelo
Do GV_PACOTE times
if GV_INDEX_INICIAL is not initial.
GV_REG_INICIAL = 1
GV_REG_FIM = GV_NR_REG
else.
GV_REG_INICIAL = GV_REG_FIM
GV_REG_FIM = GV_REG_FIM + GV_NR_REG
endif.
submit zgera_nt_corte
via job LV_NAME
number LV_JABCOUNT
with GV_REG_INICIAL
with GV_REG_FIM
Call function ‘JOB_CLOSE’
Enddo.
Verifica status das sub-rotinas para finalizar o programa principal

© 2008 Accenture. All rights reserved. 21


Onde achar ajuda

SAP Help (do SAP ou na internet)


http://help.sap.com
http://help.sap.com/saphelp_utilities472/helpdata/en/c6/4dce68eafc11d18a030000e829fbbd/frameset.htm

© 2007 Accenture. All rights reserved. 22

You might also like