I need VAT Report

Dear All,
         My collegue had developed a VAT Report which consist of A/P,A/P Credit memo,A/R credit memo & A/R Invoice.I need a report which can retrieve journal entries which has posted manually too with A/P,A/P Credit memo,A/R credit memo & A/R Invoice.can any one send me the format.

Hi Kesevan
Getting an accurate VAT report is complex and for this reason SAP uses 5 views to generate the standard report. I have consolidated these into a SELECT statement which I have added below:
Create a query in SAP as follows:
    DECLARE @FromDate DATETIME
    DECLARE @ToDate DATETIME
    SELECT @FromDate = T0.F_RefDate FROM dbo.OFPR T0 WHERE T0.F_RefDate = '[%0]'
    SELECT @ToDate = T1.T_RefDate FROM dbo.OFPR T1 WHERE T1.T_RefDate = '[%1]'
    EXEC VAT_RepByDate @FromDate, @ToDate
Then create a stored procedure as follows:
USE [DATABASE_NAME]
GO
/****** Object:  StoredProcedure [dbo].[VAT_RepByDate]    Script Date: 04/24/2009 13:51:40 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER proc [dbo].[VAT_RepByDate]
     @FromDate varchar(12) OUTPUT,
     @ToDate varchar(12) OUTPUT
as
set nocount on
begin
--IF OBJECT_ID(N'tempdb..#VATOUTPUT', N'U') IS NOT NULL
--drop table #VATOUTPUT
SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq], T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code], T1.[IsLiable], T1.[TaxType],
T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent], T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs], T1.[BaseArrTyp], T1.[BaseLinNum], T1.[BaseGrpNum],
T1.[BaseSum], T1.[VatSum], T1.[DeductSum], T1.[EqSum], T2.[Name], T2.[IsEC], T2.[Indicator] AS 'TriangularDeal', T2.[GoddsShip], T2.[Category], T3.[DocType], T3.[DocDate],
T3.[TaxDate], T3.[VatDate], T3.[DocNum], T3.[LicTradNum], T3.[NumAtCard], T3.[Series], T3.[DocCur], T3.[DocRate], T3.[FinncPriod], T3.[Address], T3.[CANCELED], T3.[JrnlMemo],
T4.[WTCode], T4.[CardCode], T3.[CardName], T4.[CardType], T4.[City], T4.[Country], T4.[LicTradNum] AS 'BPLicTradNum', T4.[VatIdUnCmp], T4.[AddID], T3.[Indicator], T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry]   INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode] 
INNER  JOIN [dbo].[B1_MarketingDocumentsView] T3  ON  T3.[DocEntry] = T0.[SrcObjAbs]  AND  T3.[ObjType] = T0.[SrcObjType]  
INNER  JOIN [dbo].[OCRD] T4  ON  T4.[CardCode] = T3.[CardCode]
WHERE T3.[DocDate] >= @FromDate AND T3.[DocDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq], T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code], T1.[IsLiable],
T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent], T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs], T1.[BaseArrTyp], T1.[BaseLinNum],
T1.[BaseGrpNum], T1.[BaseSum], T1.[VatSum], T1.[DeductSum], T1.[EqSum], T2.[Name], T2.[IsEC], T2.[Indicator], T2.[GoddsShip], T2.[Category], T3.[DocType], T3.[DocDate],
T3.[TaxDate], T3.[VatDate], T3.[DocNum], T4.[LicTradNum], N'', T3.[Series], T3.[DocCurr], T3.[DocRate], T3.[FinncPriod], T4.[Address], T3.[Canceled], T3.[JrnlMemo],
T3.[TransCode], T4.[CardCode], T4.[CardName], T4.[CardType], T4.[City], T4.[Country], T4.[LicTradNum], T4.[VatIdUnCmp], T4.[AddID], N'', T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry] INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode] 
INNER  JOIN [dbo].[B1_PaymentsView] T3  ON  T3.[DocEntry] = T0.[SrcObjAbs] AND  T3.[ObjType] = T0.[SrcObjType]   
LEFT OUTER  JOIN [dbo].[OCRD] T4  ON  T4.[CardCode] = T3.[CardCode]   WHERE T0.[OrdinLNum] = (-1 ) AND  T1.[Isdeferred] = (N'N' )  AND T3.[DocDate] >= @FromDate AND T3.[DocDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq], T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code], T1.[IsLiable],
T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent], T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs], T1.[BaseArrTyp], T1.[BaseLinNum],
T1.[BaseGrpNum], T1.[BaseSum], T1.[VatSum], T1.[DeductSum], T1.[EqSum], T2.[Name], T2.[IsEC], T2.[Indicator], T2.[GoddsShip], T2.[Category], T3.[DocType], T3.[CancelDate],
T3.[TaxDate], T3.[VatDate], T3.[DocNum], T4.[LicTradNum], N'', T3.[Series], T3.[DocCurr], T3.[DocRate], T3.[FinncPriod], T4.[Address], T3.[Canceled], T3.[JrnlMemo],
T3.[TransCode], T4.[CardCode], T4.[CardName], T4.[CardType], T4.[City], T4.[Country], T4.[LicTradNum], T4.[VatIdUnCmp], T4.[AddID], N'', T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry]   INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode]  
INNER  JOIN [dbo].[B1_PaymentsView] T3  ON  T3.[DocEntry] = T0.[SrcObjAbs]  AND  T3.[ObjType] = T0.[SrcObjType]  
LEFT OUTER  JOIN [dbo].[OCRD] T4  ON  T4.[CardCode] = T3.[CardCode]   WHERE T0.[OrdinLNum] = (0 )  AND  T1.[Isdeferred] = (N'N' )  AND T3.[DocDate] >= @FromDate AND T3.[DocDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq], T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code],
T1.[IsLiable], T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent], T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs],
T1.[BaseArrTyp], T1.[BaseLinNum], T1.[BaseGrpNum], T1.[BaseSum], T1.[VatSum], T1.[DeductSum],
T1.[EqSum], T2.[Name], T2.[IsEC], T2.[Indicator], T2.[GoddsShip], T2.[Category], T3.[DocType], T1.[ValueDate], T3.[TaxDate],
T3.[VatDate], T3.[DocNum], T4.[LicTradNum], N'', T3.[Series], T3.[DocCurr], T3.[DocRate], T3.[FinncPriod], T4.[Address], T3.[Canceled], T3.[JrnlMemo], T3.[TransCode],
T4.[CardCode], T4.[CardName], T4.[CardType], T4.[City], T4.[Country], T4.[LicTradNum], T4.[VatIdUnCmp], T4.[AddID], N'', T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry]   INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode]  
INNER  JOIN [dbo].[B1_PaymentsView] T3  ON  T3.[DocEntry] = T0.[SrcObjAbs]  AND  T3.[ObjType] = T0.[SrcObjType]   
LEFT OUTER  JOIN [dbo].[OCRD] T4  ON  T4.[CardCode] = T3.[CardCode]   WHERE T1.[Isdeferred] = (N'Y' )   AND T3.[DocDate] >= @FromDate AND T3.[DocDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq], T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code], 
T1.[IsLiable], T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent], T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs],
T1.[BaseArrTyp], T1.[BaseLinNum], T1.[BaseGrpNum], T1.[BaseSum], T1.[VatSum], T1.[DeductSum],
T1.[EqSum], T2.[Name], T2.[IsEC], T2.[Indicator], T2.[GoddsShip], T2.[Category], N'', T4.[RefDate], T4.[TaxDate], T3.[VatDate],
T3.[Number], T6.[LicTradNum], N'', T3.[Series], T4.[FCCurrency], T4.[SystemRate], T3.[FinncPriod], T6.[Address], T6.[CmpPrivate], T3.[Memo], T3.[TransCode], T6.[CardCode],
T6.[CardName], T6.[CardType], T6.[City], T6.[Country], T6.[LicTradNum], T6.[VatIdUnCmp], T6.[AddID], T3.[Indicator], T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry]   INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode]  
INNER  JOIN [dbo].[OJDT] T3  ON  T3.[TransId] = T0.[SrcObjAbs]   INNER  JOIN [dbo].[JDT1] T4  ON  T4.[TransId] = T3.[TransId]  AND  T4.[Line_ID] = T1.[SrcLineNum]  
LEFT OUTER  JOIN [dbo].[JDT1] T5  ON  T5.[TransId] = T4.[TransId]  AND  T5.[ShortName] <> T5.[Account]    LEFT OUTER  JOIN [dbo].[OCRD] T6  ON  T6.[CardCode] = T5.[ShortName]
  WHERE T0.[SrcObjType] = (N'30' )  AND  (T5.[Line_ID] IN((SELECT MIN(U0.[Line_ID]) FROM  [dbo].[JDT1] U0  WHERE T5.[TransId] = U0.[TransId]
AND  U0.[ShortName] <> U0.[Account]  ))   OR  T5.[Line_ID] IS NULL  )   AND T4.[RefDate] >= @FromDate AND T4.[RefDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq],
T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code], T1.[IsLiable], T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent],
T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs], T1.[BaseArrTyp], T1.[BaseLinNum], T1.[BaseGrpNum], T1.[BaseSum], 
T1.[VatSum], T1.[DeductSum], T1.[EqSum], T2.[Name],
T2.[IsEC], T2.[Indicator], T2.[GoddsShip], T2.[Category], T3.[DocType], T3.[DocDate], T3.[TaxDate], T3.[VatDate], T3.[DocNum], T7.[FedTaxID], T3.[NumAtCard], T3.[Series],
T3.[DocCur], T3.[DocRate], T3.[FinncPriod], T3.[Address], T3.[CANCELED], T3.[JrnlMemo], T5.[WTCode], T5.[CardCode], T3.[CardName], T5.[CardType], T5.[City], T5.[Country],
T6.[FedTaxID], T5.[VatIdUnCmp], T5.[AddID], N'', T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry] 
INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode]   INNER  JOIN [dbo].[OWTR] T3  ON  T3.[DocEntry] = T0.[SrcObjAbs]  AND  T3.[ObjType] = T0.[SrcObjType]  
INNER  JOIN [dbo].[WTR1] T4  ON  T4.[DocEntry] = T3.[DocEntry]  AND  T4.[LineNum] = T1.[SrcLineNum]    LEFT OUTER  JOIN [dbo].[OCRD] T5  ON  T5.[CardCode] = T3.[CardCode] 
INNER  JOIN [dbo].[OWHS] T6  ON  T6.[WhsCode] = T4.[WhsCode]    LEFT OUTER  JOIN [dbo].[OWHS] T7  ON  T7.[WhsCode] = T3.[Filler]  
WHERE T3.[DocDate] >= @FromDate AND T3.[DocDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry],
T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq], T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code], T1.[IsLiable],
T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent], T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs], T1.[BaseArrTyp], T1.[BaseLinNum],
T1.[BaseGrpNum], T1.[BaseSum], T1.[VatSum], T1.[DeductSum], T1.[EqSum],
T2.[Name], T2.[IsEC], T2.[Indicator], T2.[GoddsShip], T2.[Category], N'', T3.[ReconDate], T3.[ReconDate], T3.[ReconDate], T0.[SrcObjAbs],
T6.[LicTradNum], N'', T5.[Series], T5.[TransCurr], T5.[TransRate], T5.[FinncPriod], T6.[Address], T3.[Canceled], T5.[Memo], T6.[WTCode], T6.[CardCode], T6.[CardName],
T6.[CardType], T6.[City], T6.[Country], T6.[LicTradNum], T6.[VatIdUnCmp], T6.[AddID], N'', T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry]  
INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode]   INNER  JOIN [dbo].[OITR] T3  ON  T3.[ReconNum] = T0.[SrcObjAbs]  AND  T0.[SrcObjType] = N'321'  
INNER  JOIN [dbo].[ITR1] T4  ON  T4.[ReconNum] = T3.[ReconNum]  AND  T4.[LineSeq] = T1.[SrcLineNum]   INNER  JOIN [dbo].[OJDT] T5  ON  T5.[CreatedBy] = T0.[SrcObjAbs] 
AND  T5.[TransType] = T0.[SrcObjType]   INNER  JOIN [dbo].[OCRD] T6  ON  T6.[CardCode] = T4.[ShortName] 
WHERE  T3.[ReconDate] >= @FromDate AND T3.[ReconDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq], T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code], 
T1.[IsLiable], T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent], T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs], T1.[BaseArrTyp], T1.[BaseLinNum],
T1.[BaseGrpNum], T1.[BaseSum], T1.[VatSum], T1.[DeductSum], T1.[EqSum], T2.[Name], T2.[IsEC], T2.[Indicator], T2.[GoddsShip], T2.[Category], N'', T3.[CheckDate], T3.[TaxDate], T3.[TaxDate],
T3.[CheckKey], N'', N'', 0, T3.[Currency], 0, 0, T4.[Address], T3.[Canceled], N'', T4.[WTCode], T4.[CardCode], T4.[CardName], T4.[CardType], T4.[City], T4.[Country], T4.[LicTradNum] AS 'BPLicTradNum',
T4.[VatIdUnCmp], T4.[AddID], N'', T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry]   INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode]  
INNER  JOIN [dbo].[OCHO] T3  ON  T3.[CheckKey] = T0.[SrcObjAbs]  AND  T3.[ObjType] = T0.[SrcObjType]    LEFT OUTER  JOIN [dbo].[OCRD] T4  ON  T4.[CardCode] = T3.[CardOrAcct]
WHERE  T3.[CheckDate] >= @FromDate AND T3.[CheckDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq], T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code],
T1.[IsLiable], T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent], T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs],
T1.[BaseArrTyp], T1.[BaseLinNum], T1.[BaseGrpNum], T1.[BaseSum], T1.[VatSum], T1.[DeductSum],
T1.[EqSum], T2.[Name], T2.[IsEC], T2.[Indicator], T2.[GoddsShip], T2.[Category], N'', T3.[DeposDate], T3.[TaxDate], T3.[TaxDate],
T3.[DeposNum], N'0', N'', T3.[Series], T3.[DeposCurr], T3.[DocRate], T3.[FinncPriod], N'', T3.[Canceled], N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', T3.[CreateDate]
FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry]   INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode] 
INNER  JOIN [dbo].[ODPS] T3  ON  T3.[DeposId] = T0.[SrcObjAbs]  AND  T3.[ObjType] = T0.[SrcObjType]    LEFT OUTER  JOIN [dbo].[OINV] T4  ON  T4.[DocEntry] = T0.[AbsEntry] 
  LEFT OUTER  JOIN [dbo].[OCRD] T5  ON  T5.[CardCode] = T4.[CardCode]  
WHERE  T3.[DeposDate] >= @FromDate AND T3.[DeposDate] <= @ToDate
UNION ALL SELECT T0.[AbsEntry], T0.[SrcObjType], T0.[SrcObjAbs], T0.[OrdinLNum], T1.[LineSeq],
T1.[SrcArrType], T1.[SrcLineNum], T1.[SrcGrpNum], T2.[Code], T1.[IsLiable], T1.[TaxType], T1.[IsAcq], T1.[Isdeferred], T1.[VatPercent],
T1.[NdPercent], T1.[EqPercent], T1.[CrditDebit], T1.[BaseObjTyp], T1.[BaseAbs], T1.[BaseArrTyp], T1.[BaseLinNum], T1.[BaseGrpNum], T1.[BaseSum], 
T1.[VatSum], T1.[DeductSum], T1.[EqSum], T2.[Name], T2.[IsEC],
T2.[Indicator], T2.[GoddsShip], T2.[Category], N'', T3.[DeposDate], T3.[TaxDate], T3.[TaxDate], T3.[DeposId], N'0', N'', 0, T3.[DeposCurr], T3.[DocRate], T3.[FinncPriod],
N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'', N'' FROM  [dbo].[OTAX] T0  INNER  JOIN [dbo].[TAX1] T1  ON  T1.[AbsEntry] = T0.[AbsEntry]  
INNER  JOIN [dbo].[OVTG] T2  ON  T2.[Code] = T1.[TaxCode]   INNER  JOIN [dbo].[ODPT] T3  ON  T3.[DeposId] = T0.[SrcObjAbs]  AND  T3.[ObjType] = T0.[SrcObjType]   
LEFT OUTER  JOIN [dbo].[OINV] T4  ON  T4.[DocEntry] = T0.[AbsEntry]    LEFT OUTER  JOIN [dbo].[OCRD] T5  ON  T5.[CardCode] = T4.[CardCode]
WHERE T3.[DeposDate] >= @FromDate AND T3.[DeposDate] <= @ToDate
END
You are welcome to make changes, but be careful as the data is pulling from views, so maybe create you own views first and change the Select statement to use your own views.
Kind regards
Peter Juby

Similar Messages

  • VAT Report Querys

    Hello Everyone ,
    i am very new to SAP BUSINESS ONE and desperately need VAT Reports to give them to one of our clients. Can anyone give me some help regarding as i tried them on PLD but queries not working well and date from/To criteria also not working .
    here are my queries please see them and give me some solution of them. -
    For VAT Annexure A -
    SELECT Distinct (SELECT T0.[TaxIdNum6] FROM ADM1 T0 ) as 'Dealer TIN no.',
    (SELECT T0.[IntrntAdrs] FROM ADM1 T0) as 'Finincial year',(SELECT T0.[FaxF] FROM OADM T0) as 'TAX Period',
    substring(convert(varchar,opch.docdate,101),0,3)as 'Month',(SELECT T0.[ManagerF] FROM OADM T0) as 'Quarter',
    opch.DocNum as 'Invoice No.',opch.DocDate as 'Invoice Date',[@Ccode].name as'Commodity Code',
    [@CNAME].name as 'Commodity Name',
    pch1.Quantity,pch1.LineTotal as 'Taxable Goods',
    pch1.VatSum as 'Tax Charged', pch1.LineTotal+pch1.VatSum as 'Total Invoice tax',crd7.taxid11 as 'Vendor TIN',
    oitm.invntryuom as 'UNIT',(SELECT T0.[Phone1F] FROM OADM T0) as 'Annexure' FROM opch INNER JOIN pch1 ON opch.DocEntry = pch1.DocEntry inner join
    crd7 on opch.cardcode=crd7.cardcode inner join oitm on pch1.itemcode=oitm.itemcode
    left outer join [@Ccode] on [@Ccode].code=oitm.U_Ccode left outer join [@CNAME] on oitm.U_cname=[@CNAME].code
    WHERE taxid11 !='null'
    For VAT Annexure B
    SELECT Distinct (SELECT T0.[TaxIdNum6] FROM ADM1 T0 ) as 'Dealer TIN no.',
    (SELECT T0.[IntrntAdrs] FROM ADM1 T0) as 'Finincial year',(SELECT T0.[FaxF] FROM OADM T0) as 'TAX Period',
    substring(convert(varchar,oinv.docdate,101),0,3)as 'Month',(SELECT T0.[ManagerF] FROM OADM T0) as 'Quarter',
    oinv.DocNum as 'Invoice No.',oinv.DocDate as 'Invoice Date',[@Ccode].name as'Commodity Code',[@CNAME].name as 'Commodity Name',
    inv1.Quantity,inv1.LineTotal as 'Taxable Goods',
    inv1.VatSum as 'Tax Charged', inv1.LineTotal+inv1.VatSum as 'Total Invoice tax',crd7.taxid11 as 'Vendor TIN',
    oitm.invntryuom as 'UNIT',(SELECT T0.[Phone2F] FROM OADM T0) as 'Annexure' FROM oinv INNER JOIN inv1 ON oinv.DocEntry = inv1.DocEntry inner join
    crd7 on oinv.cardcode=crd7.cardcode inner join oitm on inv1.itemcode=oitm.itemcode
    left outer join [@Ccode] on [@Ccode].code=oitm.U_Ccode left outer join [@CNAME] on oitm.U_cname=[@CNAME].code
    WHERE taxid11 !='null'

    See this:-
    I need VAT Report

  • Enhancement request for VAT Report of Customer and Vendor.

    Hello SAP Gurus,
    Have enhancement request for adding new fields in existing VAT report of Customer and Vendor like user id, GL account etc.
    As I am fresher, can you please help me that how I need to approach. Thanks for your support.
    Regards,
    Saleem

    Hello Saleem,
    Almost all fields required for VAT reporting are available in standard tax report
    S_ALR_87012357 .
    You have to configure the layout from the selection screen as below
    regards
    pb

  • Change in Standard VAT Report :  S_alr_87012385

    Dear All,
    In  VAT summary report - S_ALR_87012385
    I need some additions and changes as listed below-
    1. Document wise line level tax detail is displayed - need at document level
    2. Vendor TIN number is not getting displayed in the standard VAT report
    Kindly suggest...
    Regards,
    Prashant

    Find enclosed the replies:
    1. Details at Document Level - May not be practical. You may have line items in a document with different rates of Tax. In such case, you have to show the details seperately only
    2. Vendor TIN Details - There are implicit enhancements in the Program RFUMSV00. Check with the help of your ABAP Colleague. Go to SE38 and from menu get implicit enhancement. When you find the enhancement spot, pass LIFNR in Vendor Excuise Details Table to get the Vendor TIN Number
    Regards
    Sanil Bhandari

  • VAT Report - legal form

    Hi SAP experts!
    I´m customizing the VAT Report for Poland and I use the transaction S_ALR_87012385 - VAT Register (Poland) to generate the values for each month, but I need to fill the legal document (VAT-7) which has fields that are the sum of several tax codes. Is there a standard way to have this sum in a report, like using the OBCH and OBCH transactions, for example?
    Many thanks!

    Hi  Appana Prabhakar!
    I already try it but the report RFIDPL06 it´s not preparer for fill the legal declaration directly, i always must to export  values to excel and then make the correct sum to fill the fields in the declaration.
    Perhaps SAP does not have any kind of solution to fill directly the legal declaration for Poland, yet.
    Maybe i will try to add a note to sap.
    Thank you!
    Edited by: Vaz Tiago on May 21, 2010 9:02 AM

  • VAT report - upload historical data

    Hi,
    The "VAT register Poland" report has been issued for July & August.
    I have carried out a master data change (for VAT register no.) and I need to re-produce the VAT reports for these 2 months.
    Can I re-run the report?
    Will it pick up the modified master data?
    Thank you for your feedback.
    Kind regards,
    Linda

    I am not sure whether it will work, because these reports depend on tables (which you can not modify) and the tables depend on the i.e sales order, FI document etc...
    Kind regards
    hakan

  • VAT report for Europe

    I am generating  VAT report S_ALR_87012357 . When invoice document currency (e.g. EUR) is different from the country currency (e.g. GBP) it creates a difference in local currency (EUR) when the VAT report is processed due to the differences of the invoice daily rate and the VAT report daily rate.
    Can some one give me lead how to debug this problem ? Can some one send me good link on VAT ( Europe ) please ? I need to clear some fundamental concept of Europ VAT.
    Thanks
    Satya

    Hi,
    Yes, the standard report should also be applicable for Finland

  • New VAT report Italy

    Hello,
    I need to know if SAP has done some work (or is now working on) on the new VAT report for Italy. From year 2006 it is mandatory to send to fiscal authorities(from Internet) a list of customers and  vendors with total VAT and not VAT amounts - this is mandatory for all companies with VATCODE  IT (Italy).
    Thank you for help,
    Slawek
    Latest update: please see the sap note 990185 - all the details are described.
    Message was edited by:
            Slawomir Ptas

    Hi,
    you can update the table with new entry for the Region.
    Regards,
    Srinivas

  • VAT Report for Slovakia - Table FOTTDCLITM

    Hello Experts,
    I set up the VAT report RPFISKEVAT according to OSS note 1826197.
    This program is used for Slovakian VAT reporting and should also create a XML file. But the report needs entries in table FOTTDCLITM. This table is empty and I don't know what kind of entries are needed.
    I assume that I have to maintain all relevant tax amounts per period in this table but I am not sure. And also there is no maintenance possibility for this table. Has anyone an idea?
    Thanks in advance for any help!
    Christian

    Hello Oleg,
    I just opend a OSS message and got this answer from SAP:
    Hope it helps you. For me it was useless. Since we did exactly as described here.
    If you have News I would be glad if you would share it whit me.
    Regards
    Conny

  • Vat Report with CreditMemo

    Dear Experts,
                         I designed a VAT Report for A/R Invoice. But I need to combine A/R CreditMemo on it.  Please give me solution

    Hi Bala,
        Problem solved by making slight changes in the Query.
    Select A.CardCode, max(A.CardName)[CardName], max(A.TaxId11)[TaxId11], A.DocNum, max(A.DocDate)[DocDate], sum(A.[Receipt Value])[Receipt VAlue], A.[Rate of Tax], sum(A.[VAT Paid]) [VAT Paid] from
    (SELECT T0.CardCode,T0.CardName,T2.TaxId11 , T0.DocNum, T0.DocDate, sum(T1.BaseSum) [RECEIPT VALUE], T1.TaxRate [RATE OF TAX], sum(T1.TaxSum) [VAT PAID] FROM OINV T0 INNER JOIN INV4 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN INV12 T2 ON T0.DocEntry = T2.DocEntry
    WHERE T1.staType = '1'
    group by T1.TaxRate,T0.CardCode,T0.CardName,T2.TaxId11,T0.DocNum,T0.DocDate
    Union all
    SELECT T6.CardCode,T6.CardName,T2.TaxId11 , T6.DocNum, T6.DocDate, -isnull(T1.BaseSum,0) [RECEIPT VALUE], T1.TaxRate [RATE OF TAX],
    -isnull(T1.TaxSum,0) [VAT PAID] FROM oinv T6
    INNER JOIN RIN1 T5 ON T5.BaseRef = T6.DocNum
    INNER JOIN RIN4 T1 ON T5.DocEntry = T1.DocEntry
    INNER JOIN INV12 T2 ON T6.DocEntry = T2.DocEntry
    WHERE T1.staType = '1'
    group by T1.TaxRate,T6.CardCode,T6.CardName,T2.TaxId11,T6.DocNum,T6.DocDate,T1.BaseSum,T1.TaxSum ) A
    group by A.[Rate of Tax],A.CardCode,a.DocNum
    Order by A.DocNum
    Thanks,
    Chellapan

  • Belgium Vat Report

    Hi,
    Has anybody know about the Belgium Vat Report and VAT declaration form?
    How we need to configure it in SAP?
    Please thorugh some light on this issue.
    Thanks in adv
    MBN

    Hi,
    I try to sent the information infor SDN but it is not allowed more the 1500 char.
    hence please refer the note at serveice market place.
    Reg
    Madhu M

  • VAT report S_ALR_87012357 without subtotals

    Hi SAP gurus,
    my client (portuguese company) needs to have a VAT report with only those fields:
    - VAT number,
    - Client name,
    - Fiscal year,
    - Month,
    - VAT code,
    - Tax base amount,
    - Base amount.
    The report it's very easy but I have a problem that I cannot solve; how can I saw those fields NOT doubled? I see twice or more times the same client wth same VAT number and same year, month and description, but the amounts don't sum I have the lines not summarized.
    In the layout I customized the sums of amount but it does not work.
    Can you please help me?
    Thanks a lot
    Alb

    HI,
    please try s_alr_87012385.
    Regards,
    satish

  • VAT reporting for Spain and Italy

    Hi,
    we have a problem getting VAT report for spain and Italy. Trying to get the report RFUMSV20 for current month but it is giving an error saying " There is no data record for RFUMSV20 Ccode 2008 in Table TRVOR" Can I anyone help me with this?
    Thank you
    Priti
    Edited by: Priti Singh on Mar 13, 2008 7:06 PM

    Hello,
    If your tax config is correct and the GL accounts are updated, then check for some OSS notes. Probably, you need to apply one of those.
    Reg
    assign points if useful

  • PLD additional columns in VAT report

    Dear experts,
    I need to create a print layout of VAT report in PLD with columns of BP's address. Do you have an idea how it can be done?
    Kind regards,
    Bartosz

    Hi Ganesh How did you add extra field .

  • Provider in vat report

    dear all,
    i need to have the field 'provider' in my GENERAL vat report, but i cannot see it in transaction S_ALR_87012357. i saw that provider is in Italy VAT REPORT header but i need to have it in the report lines.
    Some of you can help me.
    Thanks in advance.
    Regards,
    elena

    Hi Ganesh How did you add extra field .

Maybe you are looking for

  • EAP-TLS with ISE 1.1.2 and WLC 7.0.228

    Hi, I'm on process of implement Cisco ISE with Wireless LAN Controller. According to my post, I would like to know that if Supplicant Provisioning and EAP-TLS does support on this type of firmware code. WLC running on 7.0.228 since most of production

  • KDE D-Bus Failure?

    Can somebody help me with a user-specific (or so I assume) issue where I can't run KDE apps, but if I run them as root, I can. I'm running OpenBox. Can somebody help using the error below? [jookia@jookia-ARCH ~]$ kaffeine kaffeine(18501): Communicati

  • No momentum scrolling in Acrobat Pro 9?

    Has anyone else noticed that there's no momentum scrolling in Acrobat Pro 9?

  • Record locking

    How does Oracle 8i handle record locking? Is this handled completely in the background by oracle or are there explicit record locks that can be set. I understand that an update or insert will lock the current record and the commit and rollback will r

  • Snow Leopard's Default Gamma & Color Correcting for Pre Press in Photoshop CS4

    After searching the forums I thought I would start my own thread on this subject. I have Photoshop CS4 and InDesign CS4 and I have continued to color correct, for pre press, in OS 10.4.11 Tiger with the 1.8 Default Gamma and 6500 color tempurature, u