Sei sulla pagina 1di 7

Functional Specification

Header:
Development name:

Withholding Tax Report for Vendor

Business Process:

Tax Report

Consultant :

Gracieli Silva

SAP Module:

FI

SAP Version :

ECC 6.0

Version Control:
Versio
n

Date

Consultant:

1.0

02/11/20
16
30/06/20
16

Gracieli Silva

1.1

Description :

Daniela
Almeida

2,0

Summary :
Header:............................................................................................................................... 1
Version Control:.................................................................................................................. 1
1. Summary........................................................................................................................ 2
2. Data Flow....................................................................................................................... 2
3. Functional Specification.................................................................................................. 2
4. Observations.................................................................................................................. 3
5. Possible scenarios........................................................................................................... 4

Page:

Functional Specification

1. Summary
Itll be necessary to create a new report with the informations of Withholding tax to the
vendors.
The toobar of ALV should have standard options including the excel exporting, sorting
and summarization buttons.

2. Data Flow
N/A.

3. Functional Specification
Selection Screen
Descrition
Vendor Account
Campany Code
Plant
Document Type
Document
Number
Clearing Date
Posting Date
Tax Category

Table

Field

Type

LFA1
LFB1
BSAK
BKPF
BSAK

LIFNR
BUKRS
BUPLA
BLART
BELNR

S.Options
S.Options
S.Options
S.Options
S.Options

BSAK
BSAK
WITH_ITEM

AUGDT
BUDAT
WITHT

S.Options
S.Options
S.Options

Page:

Functional Specification

Output Layout:
Descrition

Vendor Account
Company Code
Name Vendor
Address

TaxNumber1
(CNPJ)
Postal Code
Plant
Fiscal Year
Document Type
Document
Number
Reference N
Document Date
Posting date
Clearing
Document
Clearing Date
Invoice Amount
Net amount
Wthld.taxexempt amt
Tax Key
Withholding tax
type
Withhold.tax
Code
Base Amount
Withhold.tax
Ammount

Table

Field

LFA1
LFB1
LFA1
LFA1
LFA1

LIFNR
BUKRS
LIFNR
STRAS

LFA1
BSAK/BSIK
BSAK/BSIK
BKPF
BSAK/BSIK
BSAK/BSIK
BSAK/BSIK
BSAK/BSIK
WITH_ITEM
BSAK/BSIK
BSAK/BSIK
BSAK/BSIK
BSAK/BSIK
T059Z
With_Item

Agrupado

Summarizat
ion

X
X
X
X
X

ORT01
PSTLZ
BUPLA
GJAHR
BLART

X
X

BELNR
XBLNR
BLDAT
BUDAT
AUGBL
AUGDT
KSFBT
DMBTR

X
X

X
QSFBT
QSCOD
X
WITHT

With_Item
With_Item
WITH_ITEM

X
WT_WITHCD
WT_QSSHB

X
X

WT_QBSHB

Usar os parmetros de seleo j definidos, porm modificar a lgica do


programa para sada do relatrio, para que seja possvel exibir documentos
Compensados e documentos em Aberto.
Documentos Compensados tem como definio o campo AUGBL <> VAZIO, se
esse campo estiver preenchido o documento dever ser classificado como
documento Compensado.
Documentos em Aberto tem como definio o campo AUGBL = VAZIO, se esse
campo no tiver contedo o documento est em aberto.
Page:

Functional Specification
Fazer Agrupamento de Documentos Compensados e listar todos. Com Valor
Total de Compensados. Entenda-se Total Fatura e Total Imposto por Cdigo.
Fazer Agrupamento de Documentos Em Aberto e listar todos. Com Total de em
Aberto.
Com Valor Total de Compensados. Entenda-se Total Fatura e Total Imposto por
Cdigo.

Para as sumarizaes acima citadas usar os campos:


Se WITHT = WT_WITHCD
Somar

Invoice Amount
Net amount
Base Amount
Withhold.tax
Ammount

BSAK/BSIK
BSAK/BSIK
With_Item
WITH_ITEM

KSFBT
DMBTR
WT_QSSHB
WT_QBSHB

X
X
X
X

Se WITHT <> WT_WITHCD


Somar para cada combinao WITHT x WT_WITHCD

Invoice Amount
Net amount
Base Amount
Withhold.tax
Ammount

BSAK/BSIK
BSAK/BSIK
With_Item
WITH_ITEM

KSFBT
DMBTR
WT_QSSHB
WT_QBSHB

X
X
X
X

Selection Clearing Document


Select GJAHR ,BUZEI, BUPLA, BLDAT, XBLNR, DMBTR, QSFBT, From Table BSAK:
Where :

BSAK - BUKRS = BUKRS Company Code


BSAK - AUGDT = AUGDT Clearing Date
BSAK BUDAT Posting Date
BSAK GJAHR = Fiscal Year
BSAK BELNR = Document number
BSAK-LIFNR = Vendor
BSAK QSSKZ <> empty

Page:

Functional Specification

Selection Open Itens


Select GJAHR ,BUZEI, BUPLA, BLDAT, XBLNR, DMBTR, QSFBT, From Table BSIK:
Where :

BSIK - BUKRS = BUKRS Company Code


BSIK - AUGDT = AUGDT Clearing Date
BSIK BUDAT Posting Date
BSIK GJAHR = Fiscal Year
BSIK BELNR = Document number
BSIK-LIFNR = Vendor
BSIK QSSKZ = empty

Select NAME1, STRAS,PSTLZ, STCD1 From Table LFA1 and LFB1


Where :

LIFNR = BSAK-LIFNR or BSIK-LIFNR


BUKRS = Company Code

Page:

Functional Specification

Select WITHT , WT_WITHCD, WT_QSSHB, WT_QBSHB


Where :

BUKRS = BSAK-BUKRS or BSIK BUKRS


BELNR = BSAK-BELNR or BSIK BELNR
GJAHR = BSAK-GJAHR or BSIK GJAHR
BUZEI = BSAK-BUZEI or BSIK BUZEI

Select QSCOD From Table T059Z


Where :

LAND1 = WITH_ITEM LAND1


WITHT = WITH_ITEM - WITHT
WT_WITHCD = WITH_ITEM - WT_WITHCD

Page:

From Table WITH_ITEM

Functional Specification

4. Observations
As the BSAK and BSIK have similar fields, an auxiliar table may be used to union all data.

5. Possible scenarios
N/A

Page:

Potrebbero piacerti anche