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

Similar Messages

  • 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

  • Hungarian VAT report in HUF showing differences with accounting documents

    When we run the VAT report for the USCC for Hungary with transaction S_ALR_87012357 in HUF, the amounts picked up by the report may differ from the amounts in the accounting document. It seems that the error occurs if the amount ends on a zero. So we get differences, when the base amount, VAT amount or gross amount ends on a zero

    Hema,
    Please activate hard currency(Local currency 3) as HUF, so that you can have transaction amounts in HUF also eventhough your company code currency is EUR.
    Please check F.12 report for your VAT requirement.
    Here you have to capture BSEG-DMBE3 value as per your requirement.
    Rgds
    Muarli. N

  • 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

  • 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 - 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

  • Hungary VAT report in HUF - company code currency is EUR

    Hi,
    We have the below requirement from our client.
    Company is incorporated in Switzerland and is having a plant in Hungary.
    We have decided to have 2 company codes one with country key as CH(switzerland) and the other with country key as HU (Hungary).
    The client wants to have the currency for the Hungary company code as EUR (Company code currency)
    Requirement: VAT report generation in currency HUF for the Hungarian company code. While accounting should consider the European bank rates for converting foreign currency Invoices into EUR, the VAT report should consider the Hungarian Bank Rates for converting all Invoices into HUF. This conversion should be on daily rates for all the invoices.
    There is an option to activate report generation in an Alternative currency (RFASLD15). However, the translation is made on a fixed translation date to be given in the report selection criteria.
    Any suggestions to meet the requirement would be of great help to us.
    Many Thanks
    Hema

    Hema,
    Please activate hard currency(Local currency 3) as HUF, so that you can have transaction amounts in HUF also eventhough your company code currency is EUR.
    Please check F.12 report for your VAT requirement.
    Here you have to capture BSEG-DMBE3 value as per your requirement.
    Rgds
    Muarli. N

  • 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

  • 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 .

  • Help writing a cash on accounting vat report

    Hi
    One of our customers need to produce a cash on accounting vat report which SAP 2007 doesn't deal with.
    Cash accounting works basically by including all sales invoice and purchase invoices paid or monies received for in a month
    I need to be able to see how transactions have been reconcilled for the business partner
    I am ok when an invoice has an incoming / outgoing payment linked to it but I need to know for example what happens when a credit note is allocated / reconciled to an invoice
    Can anyone help me with the logic / table names please
    Many thanks
    Regards Andy
    Edited by: Rui Pereira on Dec 23, 2008 4:06 PM

    I have this, but it creates two records. One for parent and one for child. I want the results all to be in one record though:
    SELECT "", display_title as child, display_id, parent_id
    From dmand_docsys_hier
    Where display_id=7 and parent_id=6 and Upper(file_name)="_TESTFILE.PDF" and admin_project_oid=40
    UNION distinct
    Select display_title as Parent, "", display_id, parent_id
    From dmand_docsys_hier
    where display_id=6 and admin_project_oid=40
    How could I get them in one record instead of two?

  • 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

  • Open report with "Save as" and "Open with" dialogue

    Hi,
    I'm using jasper reports within my application. I manage to open them in a new window but in that case the url containing JasperServer username and password is shown. I would like to open the report without showing the url.
    I tryed using a database procedure (http://sqlcur.blogspot.com/2009/02/jasperreports-in-apex.html) but all I get is a alert window saying "file does not begin with ' pdf-'". Couldn't see what is the problem (I used the same procedure as Ino has in his example) so I thought of another way. Is it possible, when someone clicks a button to open a report, to open that report with a "Save as" and "Open with" pop up window?
    The javascript function that I use:
    <script language="JavaScript" type="text/javascript">
    function openLAPopUpJasper(url){
    w = open(url,"winLov","toolbar=false,menubar=false,location=false,resizable=yes, //scrollbars=yes,status=yes,fullscreen=true");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    </script>
    Thanks in advance!
    Edited by: Josip on Oct 29, 2009 2:55 AM

    Anyone?

  • XML Publisher Report with PL/SQL

    Hi
    Like to know how to develop the XML Publisher Report with PL/SQL, i did the following
    1. created a pkg like as below
    CREATE OR REPLACE PACKAGE BODY APPS.TEST_XMLTAG_PKG AS
    PROCEDURE main (errbuf OUT VARCHAR2,
    retcode OUT NUMBER
    ) IS
    BEGIN
    DECLARE
    ctx DBMS_XMLGEN.ctxHandle;
    xml CLOB;
    BEGIN
    ctx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    END;
    END;
    END TEST_XMLTAG_PKG;
    this pkg produces the output with xml tag in the view log.
    I have registered the conc program & xml rtf but it does not produce the output in PDF, , I am not able to get the xml tag when i click the Diagnostics --> View XML.
    can you please let me know the next steps involved.
    Regards
    Yram

    I think the problem is because there is no begin and end tag. save the xml from the logfile and open with xml editor or IE.. then you will see the problem.
    add Begin and end tag...then you should be fine.. i.e
    fnd_file.put_line(fnd_file.output,'<EMP_DATA>'); -- begin Tag
    tx := dbms_xmlgen.newcontext('select * from scott.emp');
    dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
    xml := dbms_xmlgen.getxml(ctx);
    dbms_output.put_line(xml);
    Fnd_file.put_line (fnd_file.LOG, XML);
    fnd_file.put_line(fnd_file.output,'</EMP_DATA>'); -- End Tag
    Hope this helps..>Good Luck
    Ravi

  • Creation of report with the help of report painter

    Dear Experts,
                         I need report painter material, if any body have  pls  farward to me.
    my intension to create controlling report with the help of report painter.
    I am ready to award full points.
    Thanks in advance
    Regards
    avudaiappan
    Moderator - Please read this:
    /thread/931177 [original link is broken]
    Thread locked

    Hello Chinasammy,
    Report Painter allows you to create reports using data from SAP application components, which you can adapt to meet your individual requirements.
    Many of your reporting requirements can already be met by using the standard reports provided by various SAP application components. If these SAP standard reports do not meet your reporting needs, Report Painter enables you to define your specific reports quickly and easily.
    When executing a Report Painter report, it is displayed by the system in Report Writer format. You thus have access to the same functions as for Report Writer reports defined in the same way, and can combine Report Painter and Report Writer reports together in a report group.
    Report Painter uses a graphical report structure, which forms the basis for your report definition and displays the rows and columns as they appear in the final report output.
    To facilitate report definition, you can use many of the standard reporting objects provided by SAP (such as libraries, row/column models, and standard layouts) in your own specific reports. When you define a Report Painter report you can use groups (sets). You can also enter characteristic values directly.
    Advantages of Report Painter include:
    Flexible and simple report definition
    Report definition without using sets
    Direct layout control: The rows and columns are displayed in the report definition as they appear in the final report output, making test runs unnecessary.
    =============================================
    Below mentioned is the process for creating reports using Report Painter as a tool.
    Selecting and maintaining a library for your report: As the transfer structure to Report Painter you use a report table, which is defaulted by SAP and can not be maintained. This table contains characteristics, key figures and predefined columns. In a library, you collect the characteristics, key figures, and predefined columns from the report table, which you need for your Report Painter reports.
    When you define a Report Painter report, you assign it to a library. Reports assigned to one library can only use the characteristics, key figures, and predefined columns selected for that library.
    When you create or maintain a library, the Position field determines the sequence in which the characteristics, key figures or (predefined) key figures appear in the Report Painter selection lists when you define a report. This allows you to position the objects that you use regularly in your reports at the beginning of the selection lists. If you do not make an entry in the Position field, you will not be able to use this object in Report Painter reports.
    You can use either the standard SAP libraries for your reports or define your own.
    (ii) Selecting or maintaining a standard layout for your report: Standard layouts determine report layout features and the format of your report data.If the SAP standard layouts do not meet your reporting requirements, you can create a new  standard layout or change an existing one.
    (iii) Defining row and column models: A model is a one-dimensional, predefined reporting structure that you can insert in either the rows or columns of your report.If you often use the same or similar row or column definitions in your reports, it is recommended that you create row or column models.
    You must define the row and/or column models that you want to include in your report definition before you define the report.
    You can also use the standard column models supplied by SAP.
    (iv) Defining the report: Defining a Report Painter report involves the following steps.
    (a) Define the report columns: You define the report columns using the characteristics, key figures, and predefined columns selected for the library that the report uses. Alternatively, you can use a column model for column definition. Column models are predefined column structures which you insert into your entire column definition, instead of defining each individual column.
    (b) Define the report rows: You define the report rows using the characteristics selected for the library selected for the report.
    Alternatively, you can use a row model for your row definition. Row models serve the same purpose as column models, but are used to define a report row.
    Edit and format the report rows and columns in line with your requirements. (For example, you can hide rows or columns, define the column width or define colors for your report rows).
    (iii)Define general data selection criteria for the selection of your report data: Selection criteria are the characteristics used to select data for the entire report. You cannot enter characteristics as data selection criteria if they are already being used in the report rows or columns.
    (iv) Assigning the report to a report group: Once you have defined a report, you must assign it to a report group. A report group can contain one or more reports from the same library. However, reports that share the same data will select data more quickly and improve processing time.
    Hopw this helps you. Please let me know if you need anything more and assign points.
    Rgds
    Manish

Maybe you are looking for

  • Unable to install Creative Cloud apps

    OSX 10.10.3 brand new Mac Pro first attempt to install Creative Cloud error: Could not create ~/Library/AppSupport/Adobe/CoreSync user is admin repaired permissions using disk utility frustrated... Thanks in advance for any help!

  • Can't hear monitor / recording from mixer

    I'm running three mics and a direct feed from a pre-amp into a Yamaha mixer and then from the mixer to the MBP using Garage Band purely as a recording device. But I can't hear the mix that the Mac is recording. Never used GB08 before. Help! (Band goe

  • Calling Search Help in BAdI implementation.

    Hi All, I have created my search help with search help exit function. Now I need to call this Search Help in my BAdI Implementation ( Method of BAdI) . Please suggest me which function I should use to call my search help.

  • Help screen savers disappear do i need them will be nice to have the choice

    I have a Mackbook pro witch has performed great I have it 4 years,Ijust notice that my Screen Savers  are gone from my System Preferences ,if any one could explained the reason ? I run Lion with it ,any help will be appreciated it also forgive my stu

  • Develop Module - Navigator Window has a horizonal bar through it (Lr 4.2)

    sorry if this has been posted by other - but I've been getting a horizonal bar running through the center of my Navigator Window in the Develop Module in 4.2 Exiting Lr and re-opening will fix it, until it happens again. Its not a consistent, persist