Query for Consolidated tax details

Dear All
I need an output through query in PO in the following format:
BASIC
FREIGHT
VAT
CST
EXCISE (should include cess & hecess)
I have the query for individual breakup. ex. vat,cst,bed,cess,hecess, bed on frieht,cess on freight,hecess on freight,vat on freight,cst on freight,vat on excise, cst on excise etc.,
But i need to have consolidated values for VAT,CST & EXCISE Amounts.
Can anyone help me on this asap
regards
KARTHIK

You can use dsquery and dsget at the command line of a Domain Controller for most of this. To get displayName, email address (mail attribute), and sAMAccountName (pre-Windows 2000 logon name) of all users:
dsquery user -limit 0 | dsget user -display -samid -email
If you want the Common Name, specify  -dn for the distinguishedName. Getting the password expiration date takes more code. I have VBScript and PowerShell scripts for generic queries of AD linked on this page:
http://www.rlmueller.net/GenericADO.htm
You are prompted first for the base of the search. Enter nothing for the entire domain. Then you are prompted for the LDAP syntax filter. For all users use:
(&(objectCategory=person)(objectClass=user))
Finally you are prompted for the names of the attributes to retrieve. You can enter:
cn,displayName,mail,pwdLastSet
The pwdLastSet is a large integer, but the program converts this into the corresponding date (in the local time zone) when the password was last changed. Using the domain maximum password age policy, you can tell when the password will expire. The program
has an optional parameter to display results in comma delimited format. You would redirect the output to a text file.
There are scripts to determine the date the passwords will expire, but there is more code. See this example for just one user:
http://support.microsoft.com/kb/323750
Richard Mueller - MVP Directory Services

Similar Messages

  • Query for Employee Salary Details

    Hi,
    I have requirement like to generate pay slip using XML Reports. I am unable to get Salary details in my query. How I will get the Salary details (All Element Values), what are all the effected tables.
    Thanks
    Madhu..

    You get alternatively use the pay_balance_pkg.get_value(<pAssignmentActionId>,<definedbalanceid>) to get the Net Payments values
    where pAssignmentActionId is Assignment Action id of Payroll Run.
    definedbalanceid is Defined Balance Id of <TOTAL_PAY>ASGPTD
    <TOTAL_PAY> Can be found from Balance screen whose "Use For Remuneration" flag is checked.

  • Table and fields for tax details

    Hi,
    I have to create one Finance module Report in which i want to display net amount without tax for one single line item which is open item for incoming customer invoice, the accounting department need to know the net value (without tax) .
    In tcode FB03 , if you see the document number then it will give all accounts(customer), posting key wise amount, but this amount is gross amount. in this amount tax amount is added as per tax code. (you can see by clicking tax details tab), and tax calculated is for whole ducoments number not for single line item.
    i want net amount without adding tax amount for particular single line item. so please guide me table and fields from where and how i can calculate. in tax tab there is field base amount but its giving calculation against all total against document.
    table i am using in my report is KNA1.KNKK, KNB1, BKPF. BSEG.
    Give me some idea. how can i prepare report.
    Have a Nice Day,
    Regards,
    Sujeet

    Dear Dzed Maroz ,
    Thanks for your reply.
    I have already checked these fields (HWSTE, FWSTE) in table BSET. this fields tax amount againt that Document Number. (which may contains more than one line items), but my requirement is to find the amount without tax for individual line item.
    reason is , i want to display in my report only open items and it will be a line item, so i am displaying net amount as well base amount (without tax) for particular line items.
    but tax details is calculated based on document number not against customer number.this is incoming invoice
    ,and in customization tax code is assigned, so its reflecting amount after including tax amount.
    is there any way to find out solution? please give me some idea.
    regards,
    sujeet

  • Tables or FM's for Purchase order  ,Invoice, Taxes details

    Hi,
    I want to know from which tables or function modules we can get the condition type, amount and condition value.
    Purchase order Line Item > Invoice (tab)> Taxes (tab)-->  condition type, amount and condition value?
    Regards,
    Prem.

    Hi
    LOGIC :
    1 you will get po number fron EKPO
    2, for same po you will get invoice in table RSEG
    3.Pass the BELNR( Invoice number) in to BKPF into refernce field( where you will get invoice number+fiscal year) and same table you will get Fi doc in BELNR
    4Then pass the BELNR  in to BSET
    5.Where all tax details available
    Regards
    Kailas ugale

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • Af:query for master detail

    Hi Experts,
    Can we have an af:query to show master detail data ?
    What we generally have is af:query showing records of 1 table. What i want is for the records that get populated from af:query in the master table, i want to show the records in the detail table of the row selected
    any idea ?
    thnks

    Thank you NewBee. It worked and am able to get the detail information from the master table. I am struggling with another implementation. I have 3 radio buttons in the global template which I am referencing in all my pages.
    The template has 3 radio buttons. Contacts, Plans and Users. The three queries are completely different from one another.
    On click of Contacts, I should display the respective af:query for Contacts, Plans and Users without displaying the resultant table. This query panel will be global to all the pages.
    I have tried setting it as follows:
    <af:panelGroupLayout layout="vertical"
    id="pt_pgl3"
    rendered="#{baseBean.searchContactsSelected == 'true'}"
    visible="#{baseBean.searchContactsSelected == 'true'}">
    <af:query id="qryId1" headerText="Search" disclosed="true"
    value="#{bindings.GloablSearchByContactsVOCriteriaQuery.queryDescriptor}"
    model="#{bindings.GloablSearchByContactsVOCriteriaQuery.queryModel}"
    queryListener="#{bindings.GloablSearchByContactsVOCriteriaQuery.processQuery}"
    queryOperationListener="#{bindings.GloablSearchByContactsVOCriteriaQuery.processQueryOperation}"
    resultComponentId="::contactSearch:md1"/>
    <f:subview id="contactSearch">
    <jsp:include page="/contactsSearchResults.jspx"/>
    </f:subview>
    <af:panelGroupLayout>
    I have tried various implementations to the best of my knowledge but its not rendering. Is it possible to navigate to a different jspx on click of Search button of af:query. This will give me an opportunity to display different pages based on the Search action and keeping the search on a global level.
    Hope I was clear in explaining the issue
    Thanks!

  • Query for invoice and distribution detail

    hi 2 all
    anybody have the query for getting invoice with distribution detail in oracle payable r12.
    thanks
    zulqarnain

    select ass.SEGMENT1 vendor_number,
    ass.VENDOR_NAME,
    assa.VENDOR_SITE_CODE VENDOR_SITE,
    aia.INVOICE_NUM,
    aia.INVOICE_DATE,
    aia.INVOICE_AMOUNT,
    aia.INVOICE_TYPE_LOOKUP_CODE,
    gcc.CONCATENATED_SEGMENTS distribution_account ,
    gcc1.CONCATENATED_SEGMENTS liability_account,
    to_char(aia.GL_DATE) GL_DATE,
    AP_INVOICES_PKG.GET_APPROVAL_STATUS( AIa.INVOICE_ID,
    AIa.INVOICE_AMOUNT, AIa.PAYMENT_STATUS_FLAG,
    AIa.INVOICE_TYPE_LOOKUP_CODE) APPROVAL_STATUS_LOOKUP_CODE
    from ap_invoices_all aia,
    ap_suppliers ass,
    ap_supplier_sites_all assa,
    ap_invoice_distributions_all aid,
    gl_code_combinations_kfv gcc,
    gl_code_combinations_kfv gcc1
    where aia.VENDOR_ID = ass.VENDOR_ID
    and assa.VENDOR_SITE_ID = aia.VENDOR_SITE_ID
    and ass.VENDOR_ID = assa.VENDOR_ID
    and aid.INVOICE_ID = aia.INVOICE_ID
    and aid.DIST_CODE_COMBINATION_ID = gcc.CODE_COMBINATION_ID
    and assa.ACCTS_PAY_CODE_COMBINATION_ID = gcc1.CODE_COMBINATION_ID
    --and aia.INVOICE_ID =  81000
    and aia.GL_DATE between '01-JAN-12' and '31-MAR-12'
    order by aia.GL_DATE
    Thanks,
    Atul

  • Query to get the details of Blocking and deadlock occurred for the Day

    Hi,
       I need a query to get the details of blocking and deadlock occurred for the day.

    You havent specified which version of SQL you are using which makes it difficult to give a solution. Assuming its latest versions , by default SQL Server (in any versions) doesnt track blocking information.
    You need to run some kind of queries/traces to capture blocking. The same goes with Deadlocks where majority of the DBA's enable trace flag 1222/1205 when they suspect deadlocks happening.
    Check this link -
    http://dba.stackexchange.com/questions/10644/deadlock-error-isnt-returning-the-deadlock-sql/10646#10646
    This link gives code to get historic deadlock information. I havent used it , I just googled to get that.
    That being said if you are looking for something to capture for the future check the below links.
    Check these links on how to setup extended events to capture deadlock and blocking.
    http://sqlblog.com/blogs/jonathan_kehayias/archive/2010/12/21/an-xevent-a-day-21-of-31-the-future-tracking-blocking-in-denali.aspx
    http://blogs.msdn.com/b/sqlserverfaq/archive/2013/04/27/an-in-depth-look-at-sql-server-memory-part-2.aspx
    http://blogs.technet.com/b/mspfe/archive/2012/06/28/how_2d00_to_2d00_monitor_2d00_deadlocks_2d00_in_2d00_sql_2d00_server.aspx
    HTH
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Query For Purchase A/P Cycle Details

    Hi
    All export pls. provide me Query for Purchase A/P Cycle Details i.e Vendor Code  Vendor Description doc. date posting date po date amount quantity unit price same as Grpo returns and invoice in singal screen
    Thanks & Regards

    Hi,
    What do you mean by Query for Purchase A/P Cycle . All Query  for A/P Cycle , you can search  in SDN.Any specific unsolved query for you can be posted here.Ok.
    Check the details:
    1.PO creation
    http://e-mory.blogspot.com/2008/01/sap-me21n-create-purchase-order_30.html
    2.Goods Receipt
    http://e-mory.blogspot.com/2008/02/sap-migo-goods-receipt.html
    3.Invoice Verification
    http://e-mory.blogspot.com/2007/11/sap-miro-enter-invoice-verification.html
    Regards,
    Biju K

  • How to pass the tax details for the PO in me23n to script??

    Hi friends,
    I have a requirement to display the tax details for every line item of the PO in PO layout through script.  Here I am gettin the tax details value for Purchase Order from the transaction ME23N. In   this transaction, there is tab called invoice, when you click the tab, you will get the tax details. I need to print this details in the my PO layout. I checked in the technical field, the values are getting from the structure KOMVD. I tried to pull the value from the structure itself, but I am getting only Gross price. I am not able to display the taxes details in the layout. I need the condition type value and name and amount field also.
    Please help me how to achieve this.<< priority reduced>>
    I would appreciate the replies.
    Thanks in advance.
    Please let me know if you need anything more.
    Regards,
    Ahamed.
    Edited by: Rob Burbank on Oct 11, 2011 3:42 PM

    Hi
    You can Try with Tables EKPO AND BSET.
    Regards
    Ajit

  • Query for details of  Sale order , Invoice and COGS

    I Need the report cointing following based on month & Business partner
    Sale order, Sale Amount, Due date, Invoice Amount, Last Invoice date, COGS amount

    Hi Anantha,
    Please check below link and modify according to your requirement.
    Sales Order Query for  in SAP B1
    Query - Sales Orders linked to Deliveries
    My Top SQL Queries for SAP Business One
    Hope this helps
    Regards::::
    Atul Chakraborty

  • Formatted search query for displaying invoice items details

    hi all,
    i need to display all the items in AP invoice.kindly suggest me a query for that.
    in AP invoice
    Ex. row items
    code--descqtyprice--
    total
    I0001--XXXXXXX5--
    100 -
    500
    query should display this row as
    code--desc--
    price
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    I0001--XXXXXXX--
    100
    =================================
    the query should display as the qty is 5 so it will display the same item 5 times
    kindly suggest me some query for formatted search
    its very urgent
    regards
    sandip

    Hi Sandip,
    DoQuery("Select b.ItemCode from OINV a,INV1 b Where a.DocEntry=b.DocEntry")
    Hope its help for you
    Give me reward points,
    Regards,
    G.Suresh.

  • Query on Config for a tax exempt customer

    Hi,
    In OVK3 (change View customer taxes) MWSI is defined in tax category.
    Tax category in customer master  sales area data is MWSI.
    In FTXP, condition type MWSI is not defined.
    Should i add MWSI in FTXP?
    If yes, how will i configure it.
    If i have added this condition type, will i be able to process transaction for a tax exempt customer?
    Thank you so much and best regards.
    Rachelle

    Dear Rachelle
    No need.  Just go to FTXP, input country of origin, tax code and maintain only the following:-
    Acct Key::::Tax %:::::::Cond.Type
    EX2:::::::::::100.00:::::::::JMOD
    CES:::::::::::2.000::::::::::JECS
    SEC:::::::::::1.000::::::::::JA1X
    Save the FTXP.  Now go to VK11, input UTXJ and maintain the above tax code and save.  Create a sale order and see how it works.
    thanks
    G. Lakshmipathi

  • Query for following report

    Dear All,
             My A/P Invoice entry is as Follows.
            A/P Invoice
            1) Item code (Multiple Items Possible)
            2) Quantity per item
            3) Unit Price per item
            4) Under frieght I entry 3 freight value
            5) Tax Code is selected
            The report required is
            1) A/P Invoice No
            2) A/P Post Date
            3) A/P Documnet date
            4) A/P Vendor Code
            5) A/P Vendor Name
            6) Vendor state ( From Vendor Master date Address)
            7) Vendor Cst no / Vat no / Tin No ( These all are UDF)
            8) A/P Doc total before Discount ( This does not contain frieght value) ( I am able to obtain this from the OPCH-- Max 1099 Amount Field)
            9) A/P Doc total After discount
            10) A/P Feieght Break up.
            11) A/P DOc total + Excise details
            12) A/P Tax Code
            13) A/P Tax Amount
            14) A/P Final Total Value
            The main issue is till point number (8) I can get the query after that the query goes wrong.
            I need a similar query for A/R Invoice also.
            Please advice.

    hi aslam,
    Try this query,
    SELECT T0.DocNum as 'AP Invoice No.',
    T0.DocDate as 'Posting Date',
    T0.TaxDate as 'Doc. Date',
    T0.CardCode as 'Vendor Code',
    T0.CardName as 'Vendor Name',
    T1.State1,
    T2.TaxId1 as 'CST No.',
    T2.TaxId11 as 'TIN No.',
    T0.Max1099, T0.DocTotal,
    T0.TotalExpns,
    T0.VatSum
    FROM [dbo].[OPCH]  T0 INNER JOIN [dbo].[OCRD]  T1 ON T0.CardCode = T1.CardCode
    INNER JOIN [dbo].[PCH12]  T2 ON T0.DocEntry = T2.DocEntry
    WHERE T0.DocDate >= '[%0]' and T0.DocDate <= '[%1]'
    Whether it solves ur requirement ?
    Jeyakanthan

  • Problem with query for Oracle

    Hello Experts,
    I'm tryng to develop my first application for EP (v7 SP12) with NWDS (without NWDI).
    This application has to read and write data in the EP DB (oracle v10).
    I'm using:
    <u>a Dictionary Project</u> (define the DB Tables)
    <u>a Java Project</u> (define class as DAO, DBManager etc)
    <u>a Library Project</u>
    <u>an EJB Project</u>
    <u>an EAR Project</u>
    With these projects I can deploy a <u>webService</u> in my EP server.
    BUT I have some problem with a query that I'm tryng to sent to my DB through a DAO Class called by my WebService.
    The query is simple and correct but it does not work...
    This is the error message returned (the query id in bold)
    (column names: GIORNO, NOMEDITTA, NOMEAREA, NOMESETTORE)
    <i>HTTP/1.1 500 Internal Server Error
    Connection: close
    Server: SAP J2EE Engine/7.00
    Content-Type: text/xml; charset=UTF-8
    Date: Fri, 21 Sep 2007 14:29:57 GMT
    Set-Cookie: <value is hidden>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>java.sql.SQLException: com.sap.sql.log.OpenSQLException: The SQL statement <b>"SELECT NOMESETTORE, MIN(? - "GIORNO") AS GIORNI FROM SRS_DATEINFORTUNI WHERE NOMEDITTA = ? AND NOMEAREA= ? GROUP BY NOMESETTORE ORDER BY NOMESETTORE"</b> <u>contains the syntax error[s]: - 1:25 - the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</u></faultstring><detail><ns1:getGiorniSettori_com.akhela.giorniSenzaInfortuni.ejb.exception.GiorniSenzaInfortuniException xmlns:ns1='urn:GiorniSenzaInfortuniWSWsd/GiorniSenzaInfortuniWSVi'></ns1:getGiorniSettori_com.akhela.giorniSenzaInfortuni.ejb.exception.GiorniSenzaInfortuniException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope></i>
    The variable '?' is the today date, the difference <b>"(?-GIORNO)"</b> is an int..
    Moreover in my DAO class the query is <b>"SELECT NOMESETTORE, MIN(? - GIORNO) AS GIORNI FROM SRS_DATEINFORTUNI WHERE NOMEDITTA = ? AND NOMEAREA= ? GROUP BY NOMESETTORE ORDER BY NOMESETTORE</b>", instead in the error message is reported <b>MIN(? - "GIORNO")</b>...
    We have tryed also with alternative query, for example we used <b>"MIN(SYSDATA - GIORNO)"</b> but <b>SYSDATA</b> was interpreted as column name and  not found....
    Any help???
    Best Regards

    Hi, I found something about the Host Variable (http://help.sap.com/saphelp_nw70/helpdata/en/ed/dbf8b7823b084f80a6eb7ad43bdbb9/content.htm), there explain that if you want to use an host variable you have to put ':' as prefix..
    My problem is that <u>I need to extract the minimum of the subtraction between two dates:</u>
    Query <b>MIN(? - GIORNO)</b> --> <i>Error: the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</i>
    So I tried to use the ':' as indicated in the manual..
    <b>MIN:(? - GIORNO)</b> --> - <i>SQL syntax error: the token ":" was not expected here
                   - expecting LPAREN, found ':'</i>
    <b>MIN(:(? - GIORNO))</b> --> <i>- 1:25 - Open SQL syntax error: :PARAMETER not allowed
                   - 1:26 - SQL syntax error: the token "(" was not expected here
                   - 1:26 - expecting ID, found '('</i>
    Then I tried to avoid the MIN() function and I tried to do just the subtraction:
    <b>? - GIORNO</b> --><i> - 1:21 - the arithmetic expression >>? - "GIORNO"<< contains a host variable (parameter marker)</i>
    <b>:(? - GIORNO)</b> --> <i>- 1:21 - Open SQL syntax error: :PARAMETER not allowed
                - 1:22 - SQL syntax error: the token "(" was not expected here
                - 1:22 - expecting ID, found '('</i>
    <b>'2007-09-24' - GIORNO</b> --> <i>- 1:34 - SQL syntax error: first argument of operator "-" must be a number, date/time or interval
                     - 1:43 - SQL syntax error: arguments of operator "-" do not have correct types
                     - 1:43 - SQL syntax error: derived columns in SELECT list with AS must be values</i>
    <b>GIORNO - GIORNO</b> --> <i>- 1:21 - the group by list and the select list are inconsistent: the column >>"GIORNO"<< is neither grouped nor aggregated
                  - 1:30 - the group by list and the select list are inconsistent: the column >>"GIORNO"<< is neither grouped nor aggregated</i>
    Why these parts of query are not accepted???
    I don't understand why... I hope you can help me.
    Best Regards
    Alessandro

Maybe you are looking for

  • Adobe CC batch into photoshop layers and photoshop bach menu missing

    So I work with many images a day. RAW jpg formats... On every adobe product in the past i could open a folder in bridge with many images select all of them hit tools batch open in adobe photoshop or even batch open in one photoshop document as layers

  • Partner function in header level of sales order

    Hi All, During the sales order create/change (VA01/va02). Depending upon the business unit i want to populate partner function. I have modified the user exit "MV45AFZZ - userexit_save_document_prepare " and userexit_save_document . i tried both the e

  • Related  to duplication of  code

    i am using sap b1 with 36 patch. i want to generate new house bank in house bank account -setup but when generate  house bank following error is shown " to generate this document first define the numbering seris in the administration module " in this

  • Can't connect to browser

    I am getting a Error couldn't resolve host name when i try and connect to the playbook browser. It says i am connected to my wi-fi from the wi-fi screen, but when i try to connect to any apps it says i am not connected to the internet. I have Os vers

  • Database (catalog) for images stored on external devices

    I have lots and lots of images spread across various internal, external drives, cd's, dvd's. My question is does the new LR keep tabs of exactly where my image files are? I am considering purchasing iMatch because it will keep a running database and