VAT Report using XL Reporter
Dear all,
If any body having VAT Return format for tamilnadu state plz send it to me
Regards,
guru
Hi Vijay Guru,
SAP gives u VAT form as India specific reports. Just analysis the VAT Return form and then u can transform it into u r own format. It's very easy. Good Luck.
Thanks,
Suresh Yerra
Similar Messages
-
Has any one developed state wise VAT report(Tamil nadu) using XLreporter
In the XL reporter we have the statuary reports. In that we have the VAT report. The template of that report is in the format of the central government of India. But the format of state government report for tamil nadu varies from that of the central government one at a large extent.
Has any one developed the VAT report for the state government?
If so, please help me in this matter.....
please give me suggestions. what can we do in this issue?
please help me......VAT Reports are generated only through XL Reporter. You can edit the report to the appropriate format.
Open the Report Organiser -> Select Report and Right Click and Select 'Edit' this opens the report defonition in Excel. Do the required modifications and save it. -
hi
plz help me purchase vat Report material wise can you any body tell
me how will take data and relation between Material and vat which table
its urgents
Thanks for help
Regards,
vijay kumarHey !!!!
Try using F1 help and then F9 for field names.
For EX ;
To know the field name for PO, go to transaction me22n and then click on PO number then press F1 and then technical information (F9).For the field names and if lucky you will get the table name also.
Regards,
Abhinab Mishra -
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 -
Hi Guru,
I have a requirement like vat report on purchase . So I would like to request you to please guide me.
Thanks & regards
RanjitHi
Use this t.code S_ALR_87012357
Regards
T N R -
HI All,
Is there any report which shows state wise vat report, this is required for set off vat input v/s vat out put in a particular state.
in our scenario we dont have any manufacturing plant, we are traders so we created each state as a plant.
so please guide us.
thanks & regards,
shashi kanth.Yes, Busines place ans section code are used for WHT (TDS)
You can use the business place for VAT. Please refer below documentation:-
http://help.sap.com/saphelp_470/helpdata/EN/ba/75d43ad85d6321e10000000a11402f/content.htm
For customization, make the changes in below path:-
SPRO > Cross-Application Components > General Application Functions > Geschäftsort (Business Place) > Activate Business Place
SPRO > Cross-Application Components > General Application Functions > Geschäftsort (Business Place) > Define Business Places
SPRO > Cross-Application Components > General Application Functions > Geschäftsort (Business Place) > Assign Business Places to Sales Offices
SPRO > Cross-Application Components > General Application Functions > Geschäftsort (Business Place) > Assign Business Places to Plants
Regards,
Gaurav -
Dear Expert,
We are trying to Make VAT report for Indian Company.
Document Split is active.
How or where can i fetch Profit center?
We are using following tables to fetch data BSET,BKPF,BSIK,BSID,BSEG.
But profit center is only appearing in BSIK,BSEG and BSID but the line item for vat is not showing profit center.
In document split profit center is made mandatory.
In FAGLFLEXA it is all updating.
Can anyone guide me what logic can i use to pull the profit center fro VAT ReportHi
Its better if you use Table FAGLFLEXA instead of BSEG...
FLEXA is the younger brother of BSEG which will store the PC wise infotmation if you have doc splitting active
Br, Ajay M -
Hi Guru,
We are using standarad vat report, S_ALR_87100833.
User wants to display "country code' by customer or vendor in this report.
But i failed to find out to configure this.
could you tell me how i can realize this?
KR,
Jo.Hi Jimmy
1. Company code can be entered through FI global settings through OBY6.
For Customers and Vendors you can maintain their respective Master records.
2. It can be maintained in Vendor masters in XK02
3. It can be maintained in Customer masters in XD02 -
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!
ChristianHello 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 -
Hi Gurus,
For state wise VAT report pupose my client using business place now.
Can we get VAT report at state wise business area level.
Please help.
Regards,
AshokHi Sbhadeep,
Thanks for your reply
In few states client has BA.In few states we are creating new BA.
existing they are using business place for VAT reporting.
Can we get statewise VAT report using BA?(after running t codes 5d & 5e)
Regards,
Ashok -
i am going to create a DELHI VAT REPORT for purchases for my company which is basically manufacturing based.
i am using the tables:
BSIS, "Accounting: Secondary Index for G/L Accounts
BSIK, "Accounting: Secondary Index for Vendors
LFA1, "Vendor Master (General Section)
BSET, "Tax Data Document Segment
BSEG, "Accounting Document Segment
BKPF. "Accounting Document Header
and SQL:
SELECT XBLNR BELNR BUDAT FROM BKPF INTO TABLE T_BKPF "WORKING PROPERLY
WHERE BUDAT IN S_BUDAT AND GJAHR IN S_GJAHR.
and
SELECT BELNR SHKZG DMBTR HKONT LIFNR STCEG FROM BSEG INTO CORRESPONDING
FIELDS OF TABLE
T_BSEG
FOR ALL ENTRIES IN T_BKPF
WHERE
BELNR = T_BKPF-BELNR
AND MWSKZ IN S_MWSKZ
AND GJAHR IN S_GJAHR
AND SHKZG = 'H'.
where
'H' denotes for credit.
butit takes about 3hrs to execute. so i m not able to fire further quries.
kindly help and tell me the possibilities.
thanksActually, your first SELECT is slow too. You should add at least BUKRS to it. If you do that, I can show you how to speed it up even more; however, your second SELECT will go a lot more quickly if you code both thusly:
SELECT xblnr belnr budat bukrs gjahr
FROM bkpf
INTO TABLE t_bkpf
WHERE budat IN s_budat
AND gjahr IN s_gjahr.
SELECT belnr shkzg dmbtr hkont lifnr stceg
FROM bseg
INTO CORRESPONDING FIELDS OF TABLE t_bseg
FOR ALL ENTRIES IN t_bkpf
WHERE bukrs = t_bkpf-bukrs
AND belnr = t_bkpf-belnr
AND gjahr = t_bkpf-gjahr
AND mwskz IN s_mwskz
AND shkzg = 'H'.
You will have to add BUKRS and GJAHR to T_BKPF
Rob -
Vat Report - Vat codes mixed up
Hi all,
When my customer goes to the VAT Report, normally it separates the VAT codes.
We have D9, D10, D20, etc. The problem with my customer is that some journal entries are not in the corresponding tax group on the vat report.
For example, on the list of the journal entries using the VAT code D10, there are one or two entries using the VAT D9 and the amounts shown on the report are not correct either. The customer is using many series on the journal entries, but that souldn't be the problem.
Anybody can help with this?Hi Santos,
Please mention the version and the patch Level under use at your customer site.
Also tell exactly which report you are talking, like menu position - Finace/Report/....
I hope above information will be of help to members of forum to correctly understand your reported issue.
BR
Samir Gandhi -
Hello,
There is no separate VAT report for Finland in SAP. Should the standard one (S_ALR_87012357) be used?
Thanks!Hi,
Yes, the standard report should also be applicable for Finland -
VAT report S_ALR_87012357
Hello Friends,
I am trying to run VAT report S_ALR_87012357(Program - RFUMSV00) for Nov '13. I was not able to generate the transfer posting earlier when I executed the same. Probably, the selection might not have been correct or the wrong GL account might have been given in the selection earlier. Hence, I made a manual posting subsequently. Now, I want to run this report for Nov'13. Oct and Dec'13 are done correctly and transfer posting was generated correctly.
I have a couple of questions for Nov’13.
Qs1. What precautions should I take now while executing this report ? I suppose the posting parameters should be with option "Do not update documents"? Any other point related to selection?
Qs2. In the given situation, which other task/activity should I carry out or look out for (if required)?
Regards,
Vijay.
Message was edited by: vijay joshi
Has anybody got any idea on this?Hello,
Is this issue resolved or still open? If it is open then please try the following:
Based on the assumption that no new items are posted for the period in question, use 'Do not update documents' option and check generate batch input session. So, you will have the list and it will post the document also.
Regards,
Avinash -
Difference between tax amount shown on VAT report and the invoice
Dear Friends,
We observe that there is a difference of rounding off between the tax amount shown in the invoice and the one shown in the VAT report.
We have to manually adjust this tax amount since the Tax authorities do not accept any difference in the VAT report and the Invoice.
Please advise as what could be done to solve this issue.
Rgds,
Kunal Vichare.Hi Satya,
There are 2 things: Pricing Procedure and Tax Procedure.
Pricing Procedure tell system about the what and how the price to calculated for material in PO. In this pricing procedure the conditions NAVS / NAVM as pertainin to tax applicable on the PO price. These conditon display the tax. The tax is calculated based on tax procedure. Tax procedure acts as a master and there is one tax procedure for one country. For this tax procedure there are tax codes defined. Tax codes means using the same tax procedure but changing value of various conditions and omiting some if required.
Eg. TAXINN is tax procedure for India. Based in this procedure many tax codes are defined for 12% vat, 6% vat , no vat etc.
So what kind of tax will be applicable on the PO is governed by tax code which is mentioned in Invoice tab (tax code) its a 2 character code.
Based on this tax code taxes are calculated on PO net value and then the tax amount is displayed in pricing procedure by conditions NAVS / NAVM.
MWST is condition for Input tax. If you are using tax code then MWST is not to be used.
Tax code becomes useful while doing MIRO as there is an option of inserting tax code. So the tax on PO net value will be calculated automatically.
Regards,
Vishal -
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
Maybe you are looking for
-
Can't boot my computer. MemoryDetectionTest - error message. Components: Corsair Powersupply 550W Black, ATX/EPS, 120mm Fan, 4xSATA, SLI, WxHxL Corsair TWIN3X 1333MHz DDR3, 4GB, DHX, Kit w/two 2GB XMS3 modules, CL9-9-9-24 HIS Radeon HD 4850 512MB GDD
-
Play count in album view itunes 11?
I was wondering if there was a way to show your play count in album or artist view? Such as if you click to expand your album, where it says the time of the song is there a way to get it to list the play count too? I use play count a lot and this wou
-
Erratic trackpad when ethernet plugged in
Hi, I've got a brand new MBP 15" with a trackpad that works perfectly while on wireless. However, as soon as I plug in an ethernet cable - even when the network is not being used - the trackpad immediately becomes erratic and unusable. As soon as I u
-
TS1702 cannot purchase in app items
Been purchasing in app items for over 3 years and probably had 4-6 times that it would not let me purchase something. normally it would take me to my account and i would have to re-add the CVC number on the back of my credit card. This time i tried p
-
1-Week-Old Macbook Pro won't turn on.
About a week after I bought it, my Macbook Pro unexpectedly shut off while I was watching a video, and would not turn back on. When I tried to turn it back on, I got the buzz and the little white light, but there was no chime, nothing on the screen,