Tax Break Up through Query

Hi All,
I am trying to get tax break up for individual line items through query and i want it to auto populate on the udf created.
The problem is that the value is not getting auto populated even though the fms is kept as refresh regulary. The document gets in update mode but the value does not come unless I click on the lens or press shift+F2..
select taxsum from RDR4 where DocEntry= $[rdr1.DocEntry] and
LineNum=$[rdr1.LineNum]and StaType=-90
Whats wrong with this query??
Thanks,
Joseph

Hi Joseph.........
On which field you put Refresh Regularly?
Is this FMS working and getting the value in UDF when you press Shift F2?
Keep on Tax Code and then Try.....
Regards,
Rahul

Similar Messages

  • How to get tax break up of TDS using SQL query ?

    Hi all,
    We are developing a TDS report using SQL query
    Report will contain VendorCode,Date(ap inv date),Vendor name,
    Bill value,TDS Amount,
    Bill Value – 100.000,
    TDS (2%) - 2.000,
    TDS Surcharge(10% on TDS) - 0.2,
    TDS Cess(2%(TDS+TDS Surcharge)) - 0.044,
    TDS HeCess(1%(TDS+TDS Surcharge)) - 0.022.
    We have developed this report which displays upto
    VendorCode,Date(ap inv date),Vendor name,
    Bill value,TDS Amount.
    How to show tax break up of TDS in SQL query ?
    Thanks,
    With regards,
    Jeyakanthan.

    Hi gauraw,
    Thank for your reply.
    I modified the query , pasted the query
    as below in query generator,
    Select T0.DocNum,T0.DocDate,T0.CardCode as 'Ledger',T1.TaxbleAmnt As 'Bill value',T1.WTAmnt as 'TDSAmt',(TDSAmt * 0.1) as 'TDS_Surch',
    (((TDSAmt0.1) + TDSAmt)0.02)  as 'TDSCess',
    (((TDSAmt0.1) + TDSAmt)0.01)  as 'TDSHCess'
    FROM OPCH T0  INNER JOIN PCH5 T1 ON T0.DocEntry = T1.AbsEntry
    WHERE (T0.DocDate >= '[%0]' and T0.DocDate <= '[%1]')
    on clicking execute its showing error message invalid column
    name 'TDSAmt'.
    With regards,
    Jeyakanthan

  • How to get the Tax break up in a report??

    hello experts
    I want to know how to get the Tax break ups In Sales Order Or purchase order under the conditions tab as it is not stored in Database.
    And The Text Fields In Miro screen where it is stored In Db and how can i retrieve it ???
    How to retrieve Data using fuction Module. from Database??
    if possible Plz attach a Code.
    hello experts
    I want to know how to get the Tax break ups In Sales Order Or purchase order under the conditions tab as it is not stored in Database.
    And The Text Fields In Miro screen where it is stored In Db and how can i retrieve it ???
    How to retrieve Data using fuction Module. from Database??
    if possible Plz attach a Code.
    [email protected]
    Plz reply as it is urgent
    Thanx and Regards
    Plz reply as it is urgent
    Thanx and Regards

    Hi
    Please try table - KONV
    Field Application will be very critical from your report point of view.
    Regards
    Rajesh
    Do reward if useful...

  • Can Power Users or Mgt Create and Design Reports Through Query Designer ?

    Dear BI consultants,
    Iam new to BI.
    My management has requested me to Train Power users from All Modules(FICO,HR,QM,PP,SD,MM) to Create Queries and Design Through Query Designer.
    My question is are we suppose to Give query Designer Access to Power users or Mgt so that they can create Queries and reports by themselves.Please Suggest me wht is the Best Practices.
    is it feasable to train power users and Mgt as to how 2 create queries. will there be any side effect on the System or our end.
    Plz suggest.
    wht are the advantages and disadvantages of this.
    If I train the Power users then is there any risk of my Job.
    since they will be creating all reports by themselves.
    wht else can a BI consultant do since iam in a support project.
    how do i convince my Mgt?
    Plz Suggest.
    Thanks Awaiting

    This is common procedure maintained in most of the company's for end users.
    There is no issue if you train the power users.you will be the first point of contact if they have any doubts.and more over you are supporting for your client right? this can't be handed over to power user or end user. data is imp for the client so there will not be any problem for you, if any issue comes while loading you need to take care of the errors and fix the.
    power users or end user will be familiar with Business requirement not with the Query building logic's not with the BW procedure so no worries for you.
    as vineeth said its better to keep control regarding the global and key things at your end so that you will not loose contol on the reports.

  • Tax break up of Tax code assigned to every line item

    hi all,
    i want tax break of a tax applied to line item after every line item in the pld.
    ex:-  ITEM CODE         ITEM DSC        QTY      RATE    TAX CODE
            abc                     dhfh                   1          100        BED+VAT
                                                                           eses 2% 10                                                                               
    hses 1%  5
                                                    packing &Forwarding       200
                                                                            VAT 4%  100
    client  want same tax split up for all line item and not after end of report.
    can u guide me how to do it?
    thanx in advance.

    Hi,
    This might be helpful
    Link:[Tax Break up|https://websmp208.sap-ag.de/~sapdownload/011000358700004326202006E/HowToTaxBreakup_2004_2B_IN.pdf]
    *S-User ID is needed for access

  • How to get the tax break up??

    hello experts
    I want to know how to get the Tax break ups In Sales Order Or purchase order under the conditions tab as it is not stored in Database.
    And The Text Fields In Miro screen where it is stored In Db and  how can i retrieve it ???
    How to retrieve Data using  fuction Module. from Database??
    if possible Plz attach a Code.
    [email protected]
    Plz reply as it is urgent
    Thanx and Regards

    Hi
    All tax related amounts are stored in KONV and KONp tables based on condition Types(KSCHL) field
    so for sales order take the VBAK-KNUMV and pass to KONV table and take the different tax amount sbased on the KSCHL field
    similarly for PO
    Take the EKKO (po Header) KNUMV field and pass it to KONV-KNUMV and get the condition type based amounts (KBETR and KWERT) from table KONV
    Or search for the Condition tables in which the tax related COnditions are maintained for that Tax COde (like A003 or some other A* table) and take the KNUMH field from it and pass it to the table KONP and take the condition type based all tax  amounts from KONP tables.
    Regards
    Anji

  • Tax break up in line by line for  each item in the repetitive area

    Dear SAP PLD Experts
    I am facing a problem for generating excise invoice in pld with tax break for each line item .
    for eg : i have 5 line item in the invoice. 
    so , i want to show the tax break up for each line item seperately in column wise .
    slNo----Item CodeQtyPriceCenvat E.Cess---- H.E.Cess-- Vat--
    Total
    1-- A  5 -1000 96.401.920.96 40.00---    line total
    2
    3
    4
    5
    But when i am showing the Tax amount from Sales tax authorities table in repetitive area, its showing 25 line numers instead of 5 line. and tax amounts is showing line by line.
    Can any body help me to sort out this issue.
    Thanks
    Regards

    Dear,
    Add the UDF's on the marketing document you want the tax break up.
    Apply FMS using below queries and call these UDF's on your PLD.
    FOR BED
    DECLARE @Amount as Numeric(19,2)
    DECLARE @Rate as Numeric(19,0)
    DECLARE @TAmount as Numeric(19,2)
    set @TAmount =$[$38.21.Number]
    SELECT    @Rate=STA1.Rate
    FROM         OSTC INNER JOIN
                          STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
                          STA1 ON STC1.STACode = STA1.StaCode Where   OSTC.Code=$[$38.160.0] And STA1.SttType='9' order by STA1.EfctDate desc
    set @Amount=(@TAmount * @Rate)/100
    Select @Amount
    For Cess
    DECLARE @Amount as Numeric(19,2)
    DECLARE @Rate as Numeric(19,0)
    DECLARE @TAmount as Numeric(19,2)
    set @TAmount = $[$38.U_BED.Number]
    SELECT    @Rate=STA1.Rate
    FROM         OSTC INNER JOIN
                          STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
                          STA1 ON STC1.STACode = STA1.StaCode Where   OSTC.Code=$[$38.160.0] And STA1.SttType='8' order by STA1.EfctDate desc
    set @Amount=(@TAmount * @Rate)/100
    Select @Amount
    For HCess
    DECLARE @Amount as Numeric(19,2)
    DECLARE @Rate as Numeric(19,0)
    DECLARE @TAmount as Numeric(19,2)
    set @TAmount = $[$38.U_BED.Number]
    SELECT    @Rate=STA1.Rate
    FROM         OSTC INNER JOIN
                          STC1 ON OSTC.Code = STC1.STCCode INNER JOIN
                          STA1 ON STC1.STACode = STA1.StaCode Where   OSTC.Code=$[$38.160.0] And STA1.SttType='10' order by STA1.EfctDate desc
    set @Amount=(@TAmount * @Rate)/100
    Select @Amount
    This will help you.
    regards,
    Neetu

  • Code to run a query in SQL from Access with pass through query

    I have a query in SQL Server 2008:
     [Auto Null Up Date].sql. I want to run this query from Access 2007 using a Pass Through Query. What is the command/code to run this query from Access? I have used Pass Through Queries but never in this capacity so I am somewhat lost. I have
    already established the OBDC link and tested.

    Naomi,
    Here are a few lines of the SQLCMD code in the [Auto Null Update].sql query:
    USE [Archive Master]
    Go
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null BackPress 2 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 3 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 4 update.sql"
    When this code is pasted into a Create Procedure, (the USE [Archive Master] is not used), the procedure will run, but once saved here is what is left of the procedure once I attempt to modify:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:                         
    <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description:              
    <Description,,>
    -- =============================================
    Create PROCEDURE [dbo].[NullTest2]
    AS

  • How to set paramters through Query manager.

    Hi,
    I need to get Parameters when we are executing SQL Query through Query Manager.
    In Query manager how to set prompt window for parameters.
    Below I applied parameters for from date and to date but its showing error. How to set parameters prompt window.
    SELECT     OJDT.TransId, OJDT.Number,NNM1.SeriesName,ojdt.baseref as BaseRefNumber, JDT1.Account,JDT1.StornoAcc,OACT.AcctName,jdt1.credit,jdt1.debit, jdt1.profitcode as [Customer/Vendor],JDT1.OcrCode2 as [Region/Location] , JDT1.OcrCode3 as  Department,
                          JDT1.OcrCode4 as [Core/Deputees/DailyWage/General], JDT1.OcrCode5 as [SubAccofCA&CL],OJDT.RefDate, OJDT.Project,jdt1.project
    FROM         OJDT
    INNER JOIN JDT1 ON OJDT.TransId = JDT1.TransId
    INNER  JOIN OACT on OACT.AcctCode=JDT1.Account
    INNER JOIN NNM1 ON OJDT.Series = NNM1.Series
    where ojdt.transType=30 and  ojdt.refdate >= '[%0]' AND ojdt.refdate <= '[%1]'
    Please guide me.
    Regds,
    Sampath kumar devunuri.

    hi sampath,
    Try this query
    SELECT T0.TransId, T0.Number,T3.SeriesName,T0.baseref as BaseRefNumber, T1.Account,T1.StornoAcc,T2.AcctName,T1.credit,T1.debit, T1.profitcode as CustomerVendor,T1.OcrCode2 as RegionLocation , T1.OcrCode3 as Department,
    T1.OcrCode4 as CoreDeputeesDailyWageGeneral, T1.OcrCode5 as SubAccofCACL,T0.RefDate, T0.Project,T1.project
    FROM dbo.OJDT T0
    INNER JOIN JDT1 T1 ON T0.TransId = T1.TransId
    INNER JOIN OACT T2 on T2.AcctCode=T1.Account
    INNER JOIN NNM1 T3 ON T0.Series = T3.Series
    where
    T0.transType='30' and CAST(T0.refdate AS datetime) BETWEEN '[%0]' AND '[%1]'
    Jeyakanthan

  • Using Bex query through Query Browser - add result set to Cell range?

    Hi all,
    I have up to now used Xcelsius on NW with BICS connection towards BEx queries.
    When I use this connection via Data Manager in Xcelsius, I'm able to use the Cross-table functionality to insert my entire dataset into a cell Range.
    But now I have an requirement to save my Dashboards on the BO server, so I need to go through Query Browser to extract data from SAP BW to my Dashboard.
    When inserting the query in the Query browser and I want to assign the data to Excel ranges, it seems like I need to do this for each individual Infoobject and Key Figure. Since I have many Key Figures (30-50), this is a lenghty process.
    Is there a way to insert the entire dataset from Query into a cell range (both rows and columns), or do I need to do this for each Key Figure as indicated in the screen shot above?
    --> I know that the Query Browser flattens my cross-table from the Query, but still, it should be possible to avoid to input all my Key Figures (30-50) individually to corresponding cells in my Excel part of the Dashboard.
    regards
    Oddmar Lid
    asdfasf

    Hi Oddmar,
    If you want to display the data retrieved from the query you could map the data using the Query data.
    Pull scorecard component (for example) and in properties if you see the Display data click on the dropdown and select Query data.
    Hope this helps !

  • Query not showing detailed result when run through query Designer or Portal

    Hi,
    There is one query which not showing detailed result while running through Query Designer or run in Portal.
    But strange thing is that it is showing the detailed result when i run it through BeX Analyzer.
    While all the other queries don't have this problem in system. All showing the correct detailed result.
    If anyone have some idea on this issue plz let me know.
    Regards,
    Javed
    Edited by: Javed Akhtar on Jul 7, 2009 3:59 PM

    Hi,
    We can do this setting in WAD. Please check the web template and try to remove that setting. When you have hierarchy then we can display only till certain level in portal, this setting is done in web template APIs, but in bex analyzer you can see all the detailed information.
    Edited
    Go through this thread for some more detailed information
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/7b5f0a95ce12d0e10000000a422035/frameset.htm
    Regards,
    rik

  • How to get hardware related metrics of SQL Server through query ?

    Hi Folks,
                   I am newbie to the SQL Server programming. I also follow this forum only now. I am not sure if these kind of question had been asked in the past. Let me furnish you more detail about my query. I do like
    to get few details regarding the SQL server. I do need the following details to get the information about it through query
    SQL Server Installation directory
    No. Of CPU(as i read SQL Server standard support 4 cpu and Enterprise support 32 CPU)
    CPU Speed of the SQL Server installed machine
    Disk Storage details
    Operating system on which the SQL Server is installed
    Location of the swap file of SQL Server
    TempDB directory path
    System database directory path
    User database location 
    Log files location
    I do like to get information like this through query. Can i know if such information can be get through query or it should be get only thro' WMI. Please drop your ideas in getting these details.
    Thanks in Advance,
    Regards,
    JeiSurya

    Try this query in the below link 
    http://gallery.technet.microsoft.com/Query-to-find-all-the-8fa765e6
    you will get the SQL Server and H/W Details like 
    IP Address 
    FQDN 
    CurrentSQLNodeName 
    SQL Instance Name 
    SQL Server Product
    SQL Server Edition 
    Service Pack 
    SQL Server Version 
    Operating System
    OS SP Level
    OS Build Number
    SystemManufacturer 
    Processor Type 
    System Model 
    Total RAM in MB 
    NumberOfPhysicalCPUs 
    NumberOfCoresInEachCPU 
    TotalNumberOfCores 
    NumberOfLogicalCPUs

  • 12-month trend report through Query designer

    We have a requirement to create a 12-month trend report in BI through Query designer.   The requirement is to have the report show 12 columns (i.e. Jan, Feb, Mar, Apr....) and each month should show either Actuals or Budget data based on the month that is entered at run time.    As this report is for high level executives, they only want to have one variable (Month/Year) to select at run time.   It is assumed that based on whatever month/year they enter, all months less than and equal to that month will have actuals data.    For example, if March 2007 is selected at run time, the query should then produce the following data: Jan Actual, Feb Actual, March Actual, April Budget, May Budget, June Budget and so on.  
    Can anybody provide me with some suggestions as to how this query can be written?  
    thank you,
    Lanny

    Ruslim, there are other things that you need to conside:
    #1 - Actuals vs Budget - are you going to show both (comparison)?  if not, then you have to select a version at the beginning of the report.
    #2 - Balance Sheet or Income Statement?  If you are showing consolidated data, you might need to include Period 13-16 for December, depending on what year-end adjustment entries are made and what special period they are made in (refer to your Fiscal Year variant for that).  Depending on the chart of accounts, you might have to make two separate queries
    #3 - Periodic vs Cumulative.  If you don't have a cumulative key figure (such as in a BCS environment) then you will need to put in a range for the posting period (#-0FISCPER3).  In this case, remember to include the unassigned period (or period 0) to include your year-beginning balances
    good luck

  • How to find out responsibility attached for particular user through query

    hi
    How to find out responsibility attached for particular user through query
    Regards
    9841672839

    Hi,
    Following sql will help you find the responsibilities associated with the users in oracle applications.
    SELECT frt.RESPONSIBILITY_NAME, furg.end_date
    FROM
    fnd_user_resp_groups furg,
    FND_RESPONSIBILITY fr,
    fnd_responsibility_tl frt,
    fnd_user fu
    WHERE fu.user_name = ‘&&username’
    AND fu.user_id = furg.user_id
    AND furg.responsibility_id = fr.RESPONSIBILITY_ID
    AND frt.responsibility_id = fr.RESPONSIBILITY_ID
    ORDER BY 1
    Cheers...

  • Tax break out structure name?

    Hi,
    Can any one know table name in which the tax break out structure of PO will be available?
    if yes please let me know..
    thanks

    Check these links
    Printing the total Vat amounts in each Vat group     
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=633285]
    Tax Summary per Tax Groups on Marketing Documents     
    [https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/smb_searchnotes/display.htm?note_langu=E&note_numm=917674]

Maybe you are looking for