Help on Query - A/p Invoice Tax Breakup

Hi Xperts,
declare @todate as datetime
declare @enddate as datetime
SELECT @todate= /*min(T0.DocDate) FROM OINM T0 WHERE T0.DocDate=*/ '[%0]'
SELECT @enddate= /*max(T0.DocDate) FROM OINM T0 WHERE T0.DocDate=*/'[%1]'
select DISTINCT a.Docnum as "Invoice No" ,a.Numatcard AS "Customer Reference" ,a.comments, a.cardcode as "Cust.Code", a.cardname as "Customer Name" ,(Select max (T2.TaxId2) from CRD7 T2 where T2.CardCode = a.CardCode) [Tin#],  a.docdate AS "Invoice Date" ,(SELECT SUM(Quantity) FROM INV1 where docentry =a.docentry)as "Quantity" ,
(select sum(LineTotal) from INV1 where docentry = a.docentry)as "Basic Value" ,(Select sum(taxsum) FROM INV4 where docentry = a.docentry and statype=-90) as "BED" ,
(Select SUM(taxsum) FROM INV4 where docentry = a.docentry and statype=-60) as "Cess" ,(Select SUM(taxsum) FROM INV4 where docentry = a.docentry and statype=7) as "HeCess" ,(Select SUM(taxsum) FROM INV4 where docentry = a.docentry and statype=1) as "VAT" ,
(Select SUM(taxsum) FROM INV4 where docentry = a.docentry and statype=4) as "CST" ,
A.VatSum as "Total Tax" ,(select sum(linetotal) from inv3 where docentry = a.docentry) as 'Freight' ,
A.DocTotal as "Net Value"
FROM OINV A left OUTER JOIN INV3 B ON A.DOCENTRY = B.DOCENTRY left OUTER JOIN INV4 C ON A.DOCENTRY = C.DOCENTRY left outer join INV3 h on A.DocEntry = h.DocEntry left outer join INV1 d on a.docentry = d.docentry left outer join crd7 e on a.cardcode = e.cardcode, oitm g left outer join ochp f on f.absentry= g.chapterid where a.Docdate >=@todate and a.Docdate <=@enddate and g.itemcode=d.itemcode ORDER BY A.DOCNUM
In the above query Item type service posted document is not coming. 
Thanks in Advance
Balaji Sampath

Hi Balaji........
In service Document Items do not come and you have made Inner Join your Invoice with OITM so that it is not coming.....
declare @todate as datetime
declare @enddate as datetime
SELECT @todate= /*min(T0.DocDate) FROM OINM T0 WHERE T0.DocDate=*/ '[%0]'
SELECT @enddate= /*max(T0.DocDate) FROM OINM T0 WHERE T0.DocDate=*/'[%1]'
select DISTINCT a.Docnum as "Invoice No" ,a.Numatcard AS "Customer Reference" ,a.comments,
a.cardcode as "Cust.Code", a.cardname as "Customer Name" ,(Select max (T2.TaxId2) from CRD7 T2 where T2.CardCode = a.CardCode) [Tin#],  a.docdate AS "Invoice Date" ,(SELECT SUM(Quantity) FROM INV1 where docentry =a.docentry)as "Quantity" ,
(select sum(LineTotal) from INV1 where docentry = a.docentry)as "Basic Value" ,
(Select sum(taxsum) FROM INV4 where docentry = a.docentry and statype=-90) as "BED" ,
(Select SUM(taxsum) FROM INV4 where docentry = a.docentry and statype=-60) as "Cess" ,
(Select SUM(taxsum) FROM INV4 where docentry = a.docentry and statype=7) as "HeCess" ,
(Select SUM(taxsum) FROM INV4 where docentry = a.docentry and statype=1) as "VAT" ,
(Select SUM(taxsum) FROM INV4 where docentry = a.docentry and statype=4) as "CST" ,
A.VatSum as "Total Tax" ,(select sum(linetotal) from inv3 where docentry = a.docentry) as 'Freight' ,
A.DocTotal as "Net Value"
FROM OINV A left OUTER JOIN INV3 B ON A.DOCENTRY = B.DOCENTRY left OUTER JOIN INV4 C
ON A.DOCENTRY = C.DOCENTRY left outer join INV3 h on A.DocEntry = h.DocEntry left outer join
INV1 d on a.docentry = d.docentry left outer join crd7 e on a.cardcode = e.cardcode Left Outer Join
oitm g On d.ItemCode=g.ItemCode left outer join ochp f on f.absentry= g.chapterid where a.Docdate >=@todate
and a.Docdate <=@enddate and g.itemcode=d.itemcode ORDER BY A.DOCNUM
Please try above......
Regards,
Rahul

Similar Messages

  • Tax breakup in A/R INVOICE PLD

    hi to all,
                  i am using sap b1 2005b pl 40 but i  am trying to make pld of a/r invoice in which i want tax breakup like excise duty,education cess ,higher education cess....and sales tax.but i dont know. how to set.so pls send me detail procedure its very urgent......
    Regrads......

    hi vishal,
    Pl refer below document for tax break up in PLD.
    How to show Tax Break-up in document printing (India) 2004.2.pdf
    Use below link
    https://websmp201.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000680297&_SCENARIO=01100035870000000183&_ADDINC=011000358700002837782005E&
    login using s-user id & password.
    Jeyakanthan

  • Tax Breakup in PLD

    Dear All,
    I require the following tax breakup in PLD
    Ex:
    Total................................................303743.40.......A
    Packing charges.................................2316............B
    Excise Duty@10%..............................30606..........C=(AB)10%
    ECess@2%..........................................612............D=C*2%
    Hcess@1%..........................................306.............E=C*1%
    Transportation charges(Freight).............3937.............F
    Octroi@3%.......................................10655.............G=((ABCDEF)(ABCDE+F)0.04)3%
    Octroi service charges@1%...................107.............H=G*1%
    VAT@4...............................................14091...........I= (ABCDEFG+H)*4%
    In PLD this is structure which client is expecting for A/R Invoice since this is mandatory for his business practice.
    We have created 2 set of tax code for octroi, octroi service charges, vat which are apllicable at line item and freight charges ie transportation charges.
    In PLD, Till Hcess it is coming fine but tax after transportation are coming twice since we are applying
    octroi_1, octroi service charges_1,VAT_1 at line item and octroi_2, octroi service charges_2 and VAT_2  at freight.
    In PLD it shows
    octroi_1
    octroi service charges_1
    VAT_1
    octroi_2
    octroi service charges_2
    VAT_2
    Instead we want it to as shown in above example.
    Any solution will be highly appreciable..........
    swapnil

    Hi,
    Pls check the link.
    How to convet Amount To Words in PLD
    Also,
    may be the following will help u as u can placed the tax on the position u want.
    If tou want the tax break up , for that you have to mke the formula using the ostt and por4(purchase) and inv4 for invoice pld. table .
    Every taxcode has a unique nota fiscal id .Use that in ur PLD .
    Ex:
    First inser a repetitive area.
    Suppose Hcess id is 90 in ostt.
    1. Make a text field in repetive area and give 90 to it .
    2. make a db field and fetch nota id from ostt.
    3. make a formula field and Compare text field and db field .
    4. link the test field and db field with formula field .
    5. make a db field and fetch taxamount from por4.
    6. link this filed also to formula field
    7 . make a new formula field and multiple the amount field and previous formula field .
    8. make a new formula field in repetitive area footer and do copulmn sum of last formula field which have the result of multiplication.
    Same u have to repeat for taxrate .
    However u should go for Crystal report for such type of requirement .
    Rgds,
    Premraj

  • Help me query tunning

    Hi Guru's
    Can you please help me query tunning.
    Database Version : Oracle 11g - 11.2.0.3
    select  distinct  corporation_name custer_name,
            glog_util.remove_domain(SHIP_BUY.SERVPROV_GID ) SCAC,
            glog_util.remove_domain(ship_buy.shipment_gid) buy_shipment_gid,
            F_Get_SELL_ID_STRING(SHIP_BUY.SHIPMENT_GID) sell_shipment_gid,
            ship_buy.domain_name,    
            F_GET_ORDER_RELEASE_GID('B',SHIP_BUY.SHIPMENT_GID,0) ORDER_RELEASE_GID,
            f_get_refnum_string('SHIPMENT', ship_buy.shipment_gid, 'MBOL_NUMBER_CLEANSED')MBOL_NUMBER,
            F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID) POD_RECEIVED_DATE,
            f_get_exp_accrue_amt(ship_buy.shipment_gid,'SHIPMENT') Total_accrual_amount    
    from shipment ship_buy,
            invoice inv,
            invoice_shipment si,
            --voucher v,
            corporation corp
    where corp.domain_name=ship_buy.domain_name
            and corp.is_domain_master='Y'
          and 1=1
          AND ship_buy.domain_name like 'UPS/CP/DFP/%'
          and F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID)  <= to_char(to_date('31-JUL-2013', 'DD-MON-YYYY'), 'dd-mon-yyyy')
            --and V.INVOICE_GID(+) = inv.invoice_gid
            --and ship_buy.domain_name = 'UPS/CP/VZNB'
            and si.shipment_gid(+) = SHIP_BUY.SHIPMENT_GID
            AND SI.INVOICE_GID = INV.INVOICE_GID(+)
            and SHIP_BUY.INSERT_DATE > '1-JAN-2007'
            and SHIP_BUY.USER_DEFINED1_ICON_GID = 'ACCEPTED'
    UNION        
    select  distinct  corporation_name custer_name,
            glog_util.remove_domain(SHIP_BUY.SERVPROV_GID ) SCAC,
            glog_util.remove_domain(ship_buy.shipment_gid) buy_shipment_gid,
            F_GET_SELL_ID_STRING( SHIP_BUY.SHIPMENT_GID) sell_shipment_gid,
            ship_buy.domain_name,    
            F_GET_ORDER_RELEASE_GID('B',SHIP_BUY.SHIPMENT_GID,0) ORDER_RELEASE_GID,
            f_get_refnum_string('SHIPMENT', ship_buy.shipment_gid, 'MBOL_NUMBER_CLEANSED')MBOL_NUMBER,
            F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID) POD_RECEIVED_DATE,
            f_get_exp_accrue_amt(inv.invoice_gid,'INVOICE') Total_accrual_amount  
    from shipment ship_buy,
            invoice inv,
            invoice_shipment si,
          -- voucher v,
            corporation corp
    where corp.domain_name=ship_buy.domain_name
            and corp.is_domain_master='Y'
            and 1=1
            AND ship_buy.domain_name like 'UPS/CP/DFP/%'
            and F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID)  <= to_char(to_date('31-JUL-2013', 'DD-MON-YYYY'), 'dd-mon-yyyy')
          --AND INV.DOMAIN_NAME = 'UPS/CP/VZNB'
          --and V.INVOICE_GID(+) = inv.invoice_gid
            and si.shipment_gid(+) = SHIP_BUY.SHIPMENT_GID
            AND SI.INVOICE_GID = INV.INVOICE_GID(+)
            and SHIP_BUY.INSERT_DATE > '1-JAN-2007'
            and INV.USER_DEFINED1_ICON_GID = 'ACCEPTED'
    GROUP BY corporation_name,SHIP_BUY.SHIPMENT_GID,SHIP_BUY.SERVPROV_GID,ship_buy.domain_name,inv.invoice_gid
    ORDER BY CUSTER_NAME, BUY_SHIPMENT_GID;
    And I generated the execution plan :
    | Id  | Operation                          | Name                    | Rows  | Bytes | Cost (%CPU)| Time    |
    |  0 | SELECT STATEMENT                  |                        |    3 |  448 |  415  (2)| 00:00:05 |
    |  1 |  SORT UNIQUE                      |                        |    3 |  448 |  414  (87)| 00:00:05 |
    |  2 |  UNION-ALL                        |                        |      |      |            |          |
    |  3 |    NESTED LOOPS OUTER              |                        |    3 |  384 |    57  (0)| 00:00:01 |
    |*  4 |    HASH JOIN                      |                        |    3 |  294 |    54  (0)| 00:00:01 |
    |*  5 |      TABLE ACCESS BY INDEX ROWID  | SHIPMENT                |    3 |  195 |    40  (0)| 00:00:01 |
    |*  6 |      INDEX SKIP SCAN              | IND_SHIP_DOM_ICON      |    54 |      |    25  (0)| 00:00:01 |
    |*  7 |      TABLE ACCESS FULL            | CORPORATION            |    4 |  132 |    14  (0)| 00:00:01 |
    |*  8 |    INDEX RANGE SCAN              | IND_INVOICESHIP_SHP_GID |    1 |    30 |    1  (0)| 00:00:01 |
    |  9 |    HASH GROUP BY                  |                        |    1 |  192 |  356  (1)| 00:00:05 |
    |* 10 |    HASH JOIN                      |                        |    1 |  192 |  354  (1)| 00:00:05 |
    |  11 |      NESTED LOOPS                  |                        |      |      |            |          |
    |  12 |      NESTED LOOPS                |                        |    1 |  159 |  339  (0)| 00:00:05 |
    |  13 |        NESTED LOOPS                |                        |  145 | 13920 |  194  (0)| 00:00:03 |
    |  14 |        TABLE ACCESS BY INDEX ROWID| INVOICE                |  145 |  5220 |    49  (0)| 00:00:01 |
    |* 15 |          INDEX SKIP SCAN          | IDX_INV_TYP_ICON_NAM    |  145 |      |    17  (0)| 00:00:01 |
    |* 16 |        INDEX RANGE SCAN          | UK_INVOICE_SHIPMENT    |    1 |    60 |    1  (0)| 00:00:01 |
    |* 17 |        INDEX UNIQUE SCAN          | PK_SHIPMENT            |    1 |      |    1  (0)| 00:00:01 |
    |* 18 |      TABLE ACCESS BY INDEX ROWID  | SHIPMENT                |    1 |    63 |    1  (0)| 00:00:01 |
    |* 19 |      TABLE ACCESS FULL            | CORPORATION            |    4 |  132 |    14  (0)| 00:00:01 |
    Predicate Information (identified by operation id):
      4 - access("CORP"."DOMAIN_NAME"="SHIP_BUY"."DOMAIN_NAME")
      5 - filter("F_GET_POD_RECEIVED_DATE"("SHIP_BUY"."SHIPMENT_GID")<=TO_DATE(' 2013-07-31 00:00:00',
                  'syyyy-mm-dd hh24:mi:ss') AND "SHIP_BUY"."INSERT_DATE">TO_DATE(' 2007-01-01 00:00:00', 'syyyy-mm-dd
                  hh24:mi:ss'))
      6 - access("SHIP_BUY"."USER_DEFINED1_ICON_GID"='ACCEPTED' AND "SHIP_BUY"."DOMAIN_NAME" LIKE
                  'UPS/CP/DFP/%')
          filter("SHIP_BUY"."DOMAIN_NAME" LIKE 'UPS/CP/DFP/%' AND
                  "SHIP_BUY"."USER_DEFINED1_ICON_GID"='ACCEPTED')
      7 - filter("CORP"."IS_DOMAIN_MASTER"='Y' AND "CORP"."DOMAIN_NAME" LIKE 'UPS/CP/DFP/%')
      8 - access("SI"."SHIPMENT_GID"(+)="SHIP_BUY"."SHIPMENT_GID")
      10 - access("CORP"."DOMAIN_NAME"="SHIP_BUY"."DOMAIN_NAME")
      15 - access("INV"."USER_DEFINED1_ICON_GID"='ACCEPTED')
          filter("INV"."USER_DEFINED1_ICON_GID"='ACCEPTED')
      16 - access("SI"."INVOICE_GID"="INV"."INVOICE_GID")
      17 - access("SI"."SHIPMENT_GID"="SHIP_BUY"."SHIPMENT_GID")
          filter("F_GET_POD_RECEIVED_DATE"("SHIP_BUY"."SHIPMENT_GID")<=TO_DATE(' 2013-07-31 00:00:00',
                  'syyyy-mm-dd hh24:mi:ss'))
      18 - filter("SHIP_BUY"."DOMAIN_NAME" LIKE 'UPS/CP/DFP/%' AND "SHIP_BUY"."INSERT_DATE">TO_DATE('
                  2007-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
      19 - filter("CORP"."IS_DOMAIN_MASTER"='Y' AND "CORP"."DOMAIN_NAME" LIKE 'UPS/CP/DFP/%')
    Statistics
        246247  recursive calls
              2  db block gets
        1660067  consistent gets
          13839  physical reads
              0  redo size
        592054  bytes sent via SQL*Net to client
          6024  bytes received via SQL*Net from client
            502  SQL*Net roundtrips to/from client
          15296  sorts (memory)
              0  sorts (disk)
          7513  rows processed

    Hmmm...why does this look familiar?
    F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID)  <= to_char(to_date('31-JUL-2013', 'DD-MON-YYYY'), 'dd-mon-yyyy')
    SHIP_BUY.INSERT_DATE > '1-JAN-2007'
    Like I said in your other thread about this, these two lines need to be fixed and your function needs to be fixed so the return statement doesn't do an implicit date conversion.
    Can't you see what that first line is doing?  You're taking a character string, turning it into a date, then back to a character string.
    If nothing else, these lines should be...
    F_GET_POD_RECEIVED_DATE (ship_BUY.SHIPMENT_GID)  <= to_date('31-JUL-2013', 'DD-MON-YYYY')
    SHIP_BUY.INSERT_DATE > to_date('01-JAN-2007','DD-MON-YYYY')
    (assuming insert_date is a proper date format, fingers crossed)

  • Invoice Tax left after create credit memo (Receivable)

    Hi All,
    I have problem after creating Credit Memo(CM) in Receivable. The invoice line become 0 but invoice tax still appear.
    It's caused the tax in CM is 0, even the line value have match value.
    Can anyone help me?
    Best regards,
    Erie

    Anyone help?

  • Tax Breakup in Crystal Report

    Hi,
         How to do Tax breakup in Crystal Report

    HI Jambulingam ,
    Create query in SQL to get required data and do tax break up in sql query as shown below:
    SELECT M.DocNum AS 'AP Inv. #', M.DocDate as 'Date', M.CardName as
            'Vendor Name',M.NumAtCard as 'Bill No. & Dt.',L.ItemCode,
              L.Dscription,L.LineTotal as 'Amount',L.vatsum ,L.PriceBefDi as 'Rate',
         (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
         (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as 'BED (Rs.)',
         (SELECT Sum(TaxSum) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as 'HSCess_New (Rs.)',
         (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS (Rs.)',
         (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as 'HECS (Rs.)',
         (SELECT Sum(TaxSum) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
         (SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
         (SELECT Sum(TaxSum) FROM INV4 where statype=-10 and DocEntry=M.DocEntry) as ' CVD (Rs.) ',
         (SELECT Sum(TaxSum) FROM INV4 where statype=5 and DocEntry=M.DocEntry) as ' Ser.Tax (Rs.) ',
         (SELECT Sum(TaxSum) FROM INV4 where statype=6 and DocEntry=M.DocEntry) as 'CS on Ser.Tax (Rs.)',
         (SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as 'HECS_ST (Rs.)',
          M.DocTotal as 'Total (Rs.)'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
                 LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
    GROUP BY
         M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,L.ItemCode,L.Dscription,L.LineTotal,L.vatsum,L.PriceBefDi
    ORDER BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,L.LineTotal,L.vatsum,L.PriceBefDi
    use query to create crystal report.
    Thanks,
    Neetu

  • Regarding: How to get the Tax Breakup  Amount using SDK

    Hai Friends,
                   I created one saled order . I have given Tax code (Service) then it show total  amout of tax is 370.80. when i click the link button of Tax Amount field  from sales order then it show  the  Tax Breakup Details in Separate Screen of SAP. That screen Contain following Details.
    From Caption is : Define Tax Amount  Distribution
          Type               Tax Parameter Code         Tax Parameter Name                Rate            Duty         Tax Amount        Base Amount
          Service           Service                            Service Tax                               12                                 360.00
          Cess_ST        Cess_ST                          Education Cess for Sevice          2                                     7.20
          HSCess_ST   HSC_ST                            HSCee for Service                      1                                     1.00
                  My Doupt is :
                           How do i get the Service tax Breakup value from above grid.
                           How to get the Tax Breakup value from that SAP Screen, is it any help in SDK.
    Please Help Me.
    Regards,
    K Sakthivel
    Edited by: ksakthivel on Dec 7, 2011 10:41 AM
    Edited by: ksakthivel on Dec 7, 2011 10:53 AM
    Edited by: ksakthivel on Dec 7, 2011 10:54 AM

    Hai Friends,
                   I created one saled order . I have given Tax code (Service) then it show total  amout of tax is 370.80. when i click the link button of Tax Amount field  from sales order then it show  the  Tax Breakup Details in Separate Screen of SAP. That screen Contain following Details.
    From Caption is : Define Tax Amount  Distribution
          Type               Tax Parameter Code         Tax Parameter Name                Rate            Duty         Tax Amount        Base Amount
          Service           Service                            Service Tax                               12                                 360.00
          Cess_ST        Cess_ST                          Education Cess for Sevice          2                                     7.20
          HSCess_ST   HSC_ST                            HSCee for Service                      1                                     1.00
                  My Doupt is :
                           How do i get the Service tax Breakup value from above grid.
                           How to get the Tax Breakup value from that SAP Screen, is it any help in SDK.
    Please Help Me.
    Regards,
    K Sakthivel
    Edited by: ksakthivel on Dec 7, 2011 10:41 AM
    Edited by: ksakthivel on Dec 7, 2011 10:53 AM
    Edited by: ksakthivel on Dec 7, 2011 10:54 AM

  • Table for 2way,3way matching .query to generate invoice with 2 ways matchin

    hi
    table for 2way,3way matching .query to generate invoice with 2 ways matching
    plz help me
    thanks

    Hello John, I put the (1,2,3) list in the query to show it works with multiple invoices.
    You should comment out the conditions:
    select a.invoice_no, b.child, sum(a.amount) from invoice_detail a,
    select
    child,
    decode (instr(scbp,'.'),0,scbp,
           substr(scbp, 1, instr(scbp,'.') -1)
           ) starting_child
    from (
    select ltrim(sys_connect_by_path(child,'.'),'.') scbp,
    child from
    element_relation
    start with child in (select element_id from invoice_detail /* where invoice_no in (1,2,3) */)
    connect by child = prior parent
    ) b
    where a.element_id = b.starting_child
    /* and a.invoice_no in (1,2,3) */
    group by a.invoice_no,b.child
    order by 1,2to show it works for all invoices
    regards, Tony

  • Invoice Tax Conditions

    Dear Friends ,
                  In BIW is there any infocube / ods which holds
    Invoice Tax conditions  details.
                   The requirement is  for a given PO , the repport has to display the Tax Condition details (ie excise details ).
    Can some one help me on this regard...
    Regards,
    Vijay

    Hi,
    Refer this link:
    Re: Purchase Order Condition values
    Is your analysis on KONV table does not give any chance to fulfill your requirements?
    With rgds,
    Anil Kumar Sharma .P

  • Need Help to query Lync Database for User Information

    Need Help to Query the lync database to retrieve below user information.
    1. SIP Address of the registered user
            2. Phone Number configured to the particular account.
            3. IP Address
           4. Last Logged in time.
    I am trying to pull the above information from rtc database for all the registered users. Please let me know if this is possible and it would be great if you can throw some light on what tables to look for the data. Thank You.

    Hi,
    For SIP address and Phone number you can check RTC database.
    IP Address:
    You can refer to the link below to query IP address: 
    http://h30499.www3.hp.com/t5/Business-Service-Management-BAC/Monitoring-Lync-with-the-User-Registrations-Viewer-Free-NMC-tool/ba-p/5961497#.UtOU43mIrwo
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Last Logged in time:
    You can refer to the link below:
    http://blogs.technet.com/b/dodeitte/archive/2011/05/11/how-to-get-the-last-time-a-user-registered-with-a-front-end.aspx
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • A/R Invoice, Tax@PLD,

    Hello experts!
    I have two queries. Pls check if a solution can be found.
    1. A/R Downpayment Invoice.
    I have raised a sales order for Rs.10,000/-.
    I received Down Payment of Rs.1000/-. I create Incoming payment.
    In the above transactions "No tax" is applied.
    I create A/R Invoice from sales order.
    I Add 4% vat.
    I select the Total down payment amount.
    Total amount now due is Rs.9000/-.
    The tax is calculated on Rs.9000/- whereas in reality it should calculate
    on Rs.10,000/-.
    2.PLD
    e.g I manufacture a Laptop. Excise is applicable to it.
    I import a mouse.
    I locally purchase a pendrive.
    Now I sell this item to a customer.
    For Laptop Excise+vat is applicale.
    For Mouse vat 12.5% vat is applicable.
    For Pendrive vat 4% is applicable.
    Excise Tax is broken into Basic Excise, eCess and Hcess.
    I want to have all the Tax Amount individually in the PLD (not at Row Level).
    If there are more than 1 item, then I want to have Total sum associated with individual tax codes.
    Edited by: Philip Eller on Jul 7, 2008 9:26 AM

    I have posted the same question to SAP Support regarding the 'Tax Calculation' behaviour in 'Down Payment'.
    Following is the Message which was Posted:
    Message No: 340935
    AR Invoice tax calculated incorrectly.
    The scenario is as follows:
    1. Tax Code by name Exempt with Zero Tax is created.
    2. AR Downpayment Item Invoice for a customer is created with 50% of
    DPM and 50% amount is paid.
    Item001 Qty(1) UnitPrice(1000) Tax(Exempt) Tax Amnt(0) Total(1000)
    3.a AR Invoice is entered with the same information such as
    Item001 Qty(1) UnitPrice(1000) Tax(VAT@4) Tax Amnt(40) Total(1000)
    3.b Total Downpayment button is clicked and the already paid 500 is
    drawn to this Invoice document.
    4. The Tax in AR Invoice is recalculated to INR 20 from INR 40 which is
    not expected.
    The actual requirement is like this.
    1. AR Downpayment Invoice will be created without Taxes.
    2. AR Invoice withbe created with Taxes.
    Even If I use AR Downpayment Request, Tax values are posted to tax
    ledgers and it is shown in all reports.
    I am yet to get reply for this Message.

  • Query related to withhold tax

    Hi  Freinds,
    This is mamatha i have a query related to withhold tax .what is diff b/w business place and section code.what is importance of section code.
    Regards
    S Mamatha
    Please, search SDN

    For India, witholding tax, you need to create the business place and section code with the same id.
    Section code is additional field provided by sap for tds related processig, reports etc.
    Regards,
    SDNer

  • INVOICE의 TAX LINE TYPE이 'IPI' 로 생성

    제품 : FIN_AP
    작성날짜 : 2003-05-12
    INVOICE의 TAX LINE TYPE이 'IPI' 로 생성
    ==================================
    PURPOSE
    AP Period Closing 시 발생하는 data 문제를 아래 방법으로 해결한다.
    Problem Description
    Oracle Applications 11i
    Ap Period closing 을 할 수 없고 다음과 같은 Error가 발생한다.
    "Total debits are not equal to total credits in base currency for
    the invoice"
    원인을 살펴보면 Invoice의 tax line type이 'ipi'로 저장되었음을 알 수 있다.
    Workaround
    Solution Description
    1. Unaccounting script를 수행한다.
    2. 다음 문장을 수행한다.
    - 1. select LINE_TYPE_LOOKUP_CODE
    from AP_INVOICE_DISTRIBUTIONS_ALL
    where INVOICE_ID = (enter the invoice id whose type is ipi)
    - 2. UPDATE AP_INVOICE_DISTRIBUTIONS_ALL
    SET LINE_TYPE_LOOKUP_CODE = TAX
    WHERE INVOICE_ID = <from above>
    3. 다시 Accounting 처리하고 Period Close 한다.
    Reference Documents
    Note 178291.1

  • Purchase invoice tax tables

    Hi Gurus,
    Tell me what r the purchase invoice tax tables.
    i mean in which table purchase invoice BED, Educational Cess & Higher ECess fields are available.
    regards,
    lakshminarayana

    Hi
    Purchase Invoice Tax Tables :
    http://www.sap123.com/showthread.php?t=1.
    In above link you will find invoice verification tables related to tax.
    Invoice Verification
    BSIM    - Secondary index: documents for material
    MYMFT - FIFO results table
    MYML   - LIFO material layer
    MYMLM - LIFO material layer (monthly)
    MYMP   - LIFO period stocks, single material
    MYMP1 - Receipt data LIFO/FIFO valuation
    MYPL - LIFO pool layer
    MYPLM - LIFO pool layer (monthly)
    RBCO - Document item, incoming invoice account assignment
    RBDIFFKO - Invoice Verification: conditions
    RBDIFFME - Invoice Verification: quantity differences
    RBDRSEG - Invoice Verification batch: invoice document items
    RBKP - Document header: incoming invoice
    RBKPB - Invoice document header (batch invoice verification)
    RBTX - Taxes:incoming invoice
    RBVD - Invoice document: summarization data
    RBVDMAT - Invoice Verification: summarization data, material
    RBWT - Withholding tax:incoming invoice
    RKWA - Consignment withdrawals
    RSEG - Document item, incoming invoice
    With Regards
    Nikunj Shah

  • Invoice Tax print on PO Script

    Hi to All...
    I want to display Invoice Tax on PO script.
    Trancation ME23N WHICH TABLE ARE STORE INVOICE TAXES DETALS?
    I'M TRY TO FINDOUT IN TABLE <b>KONV</b> AND <b>KONP</b> BUT NOT GETTING..
    IS THERE ANY TABLE STORE THIS VALUE OR ANY PROCEDURE TO GETING
    INVOICE TAX?
    Thanks in advance...

    Hi,
    First you should know from the fun consultant, how the atxes are classified for PO's i.e based on Vendor, material and Tax jur code or on some other things.
    Generally we do like this:
    Using the LIFNR MATERIAL and TAX JURISDICTION CODE of the PO  get the KNUMH value  from the A* tables (A051 ,not sure just check)
    and with this KNUMH field  go to KONP table  using KSCHL field and get the Tax Amounts.
    reward if useful
    regards,
    Anji

Maybe you are looking for

  • In Substitution rule view only one task "All" is coming

    Hi! All, I am facing very strange problem in UWL. Recently we upgraded our SAP Portal from SP10 TO SP15 but in Manage Substitution Rule view under Assign these task drop down we are getting only one task i.e 'All'. Remaining 3 tasks are gone. Can you

  • BPM 11.1.1.6.0 gets confused in process tracking

    Hi, In my bpm model there are some steps where the same activity is repeated (any number of times) in other words the flow can return to a particular activity many times for example the flow could dictate that the activity "Document Review" was acces

  • I want to print my contact list on my MacBook Pro

    i want to print my contact list on my macbookpro

  • Dynamic Vlan Assigment on 2950 with acs 4.2

    Hello to everyone We have a problem with Cisco 2950G 48 EI and ACS (version 4.2) providing dynamic Vlan assignment based on groups On the ACS we configured the following attributes for the specific group 64 = VLAN 65 = 802 81 = VLAN Name We tried for

  • Something about creating a web service

    hi,everyone     Today, I deleted one of my web services and created a new one with the same name. But when I test the web service in NWDI, it shows "undefine"  under the Response. I do not know how it happened. Would you please help me? Thank you! Be