Table of Target Document in A/R Invoice

I need to know what is the table or field that sap use for a Target Document.
For example i need a query that show the DocNum A/R Invoices and know the docnum of A/R Credit Memo if the invoice was canceled. The same for DownPayment Invoice and Reserver Invoice.
I try to find it, but still without know what is the table.
Someone knows this?

Thanks Syda, mmm can you explain how make inner join with A/R Credit Memo.
I do this:
SELECT T0.[DocNum], T0.[NumAtCard], T0.[DocDate], T0.[ObjType], T1.[TargetType] FROM OINV T0  INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN RIN1 T2 ON T1.DocEntry = T2.DocEntry INNER JOIN ORIN T3 ON T2.DocEntry = T3.DocEntry
But i dont know how get the DocNum of Credit Memo, example:    docnum invoice   -
>   docnum credit memo

Similar Messages

  • Freight  Amount not shown in Target Documents

    Hi ,
    I have created a Purchase order with Freight Charges , But when i m copying the PO to Targets Documents(i.e GRPO, Invoice) then Freight amount is Not appeared . Pls suggest what to do  in this case .
    Regards
    Raman Preet singh

    Hi raman.sap 
    Check this
    Administration -> General -> Setup ->Freight - Setup Window
    Drawing Method Specify the required calculation method of the freight per row. The calculation method you select becomes evident when you copy rows from a base document to a target document. The options are:
    None u2013 No freight will be copied to target document.
    Quantity u2013 The amount is divided into the item quantity and each unit carries the same amount of freight.
    Total u2013 SAP Business One calculates which part of the document total or row total is copied to the target document. It then adds the relative amount of the document or row freight to that target document.
    All u2013 Copies all the freight to the target document.

  • How to get Target document

    Dear Experts,
    Plz have a look on this query for Total Purchase Report. It's working fine.
    All I need is that Target Documents of A/P Invoice should also return on Report in front of A/P Invoice document with details like A/P Cr. Memo No, DocTotal.
    *SELECT T0.[DocNum], T1.[Seriesname], T0.[CardCode] As 'Vendor Code',T0.[CardName] As 'Vendor Name', T0.[NumAtCard] As 'Vendor Ref. No.', T0.[DocDate], T0.[TaxDate], T0.[DocTotal] - T0.[VatSum] As 'Basic Value of Goods', T0.[U_CENVAT] As 'CENVAT',  T0.[U_ECess], T0.[U_HSCess], T0.[U_VAT_4], T0.[U_Add_VAT1], T0.[U_VAT_12],
    T0.[U_Add_VAT2], T0.[U_CST2], T0.[U_CST4], T0.[U_CST5], T0.[U_Service_Tax], T0.[U_ST_ECess], T0.[U_ST_HSCess],T0.[TotalExpns] As 'Others',T0.[DocTotal] - T0.[VATSUM] As 'Total' FROM OPCH T0 inner join nnm1 t1 on t0.series = t1.series WHERE T0.[TaxDate] Between [%0] And [%1]*
    I don't have any idea how to do this.
    So Plz suggest me or provide query for same.
    Thanks in advance.
    Regards,
    Ravi

    Hi Ravi.......
    Try this.....
    SELECT T0.DocNum, T1.Seriesname, T0.CardCode As 'Vendor Code',T0.CardName As 'Vendor Name', T0.NumAtCard As 'Vendor Ref. No.', T0.DocDate, T0.TaxDate, T0.DocTotal - T0.VatSum As 'Basic Value of Goods', T0.U_CENVAT As 'CENVAT', T0.U_ECess, T0.U_HSCess, T0.U_VAT_4, T0.U_Add_VAT1, T0.U_VAT_12,
    T0.U_Add_VAT2, T0.U_CST2, T0.U_CST4, T0.U_CST5, T0.U_Service_Tax, T0.U_ST_ECess, T0.U_ST_HSCess,T0.TotalExpns As 'Others',T0.DocTotal - T0.VATSUM As 'Total', T3.DocNum 'Cr. Memo No.', T3.DocTotal 'Cr. Memo Total' FROM OPCH T0 inner join nnm1 t1 on t0.series = t1.series LEFT OUTER JOIN RPC1 T2 On T0.DocEntry=T2.BaseEntry LEFT JOIN ORPC T3 On T2.DocEntry=T3.DocEntry
    WHERE T0.TaxDate Between '[%0]' And '[%1]'
    Regards,
    Rahul

  • A/R Invoice closed without target documents

    Dear Experts,
    I have an A/R Invoice with 'Closed' status, and it does not have any Credit Memo or Incoming payment made agst. this invoice, I cant figure it out why without target document it get closed.
    Suggestion are welcome.
    Regards,
    Ravi

    Hi
    Please right button in the invoice and choose reconciled transactions.
    You can see you need.
    Kind regards.
    Agustín Marcos Cividanes

  • Table for Accounting Document of Invoice Document

    Dear All,
      We have accounting doc. table of material document as BKPF(HEADER) & BSEG(ITEM).
      In the same way, can any one share, whats the accounting doc table for Invoice/MIRO??
    Regards
    Mahesh
    Re

    Hi Dear
    actually what table you have mentioned in your thread that table is for Accounting document, it doesn't matter whether the accounting document is created during good receipt or Invoice receipt
    hence BKPF and BSEG is accounting table for invoice as well
    Thanks

  • Question about base and target document

    Dear All,
    Does anyone know which table maintain the relationship between base and target document.
    For instance, user clicks the base document in the form of AR invoice and return the base sales order.
    From Samson

    Hi,
    In each and every document table the base docs and the target docs information is stored.
    Just take a look at the REF DB help file in which u can see the fields and their relations.
    For AR Invoice in the lines table INV1 there are 3 fields BaseRef,BaseType,BaseEntry these fields help u in knowing the base doc details, and for the target doc details the following fileds will help, TargetType,TrgetEntry.
    U can find the reference file at the following location. C:\Program Files\SAP\SAP Business One SDK\Help\REFDB.chm
    Vasu Natari.

  • List of Billing Documents for which Excise Invoice is pending

    Dear Experts,
    I need a list of all Billing Documents (created by VF01) for which Excise Invoice (J1IIN) has not yet been generated?
    Can someone advise me how I can generate such a list?
    Cheers,
    Mihir

    Dear Mihir
    No standard T.Code is available to see this requirement.  However you run SQVI and Table join [VBRK and J_1IEXCHDR]   The reference field link between these two tables for billing document is RDOC which is your SAP billing document.
    thanks
    G. Lakshmipathi

  • Find Billing Document of Cancelled Excise Invoice

    Dear All,
    How we can find out billing document of cancelled excise invoice?
    Please help.
    Regards
    H.P.

    For ex. I have an excise no 100 which is cancelled and its status is CEIV and I want to find out its billing document no. how can I find out.
    Becase when excise invoice is cancelled then its referrence does not exist in the excise header table
    I hope you understand my problem.
    Regards
    HP

  • CIN: How to check the material document posted without excise invoice

    Hi Guru,
    Please advise how to check the material document posted without excise invoice.
    I have tried tcode J1I7 but it seems start to collect the excise invoice first and then material document.
    But my case is to find the material document WITHOUT excise invoice for internal tracking purpose.
    At the moment we start from tcode MB51 to get the list of material document and check in J_1IEXCHDR / J_1IEXCDTL
    Best regards,
    Pakorn

    Hi,
    Try creating a Query in Tcode SQVI by combining tables MKPF and J_1IEXCHDR/J_1IEXCDTL for your requirement.
    Check these threads how to create Query.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6018c1ae-8c44-2d10-6ea9-c3fad2c82880?QuickLink=index&…
    http://ptgmedia.pearsoncmg.com/images/9780672329029/samplechapter/0672329026_CH03.pdf
    Regards
    Binoy

  • Error while detrmining Internal Document Number for Excise Invoice.

    Hello mate, I am trying to create excise invoice for for factory sale. while saving the document I am getting an error" Error
    while detrmining Internal Document Number for Excise Invoice. Message: Maintain Number Range for J_1IINTNUM". I have already maintained number range for mentioned object "J_1INTNUM" in TCODE SNUM , still getting error. Please solve my querry . Is it related to transport or number range activation or something else? I have maintained number range with serial no. "01"

    Hello ,
    Ensure that number ranges are properly maintained in the respective client that should be the year specific.Some times even u maintained the system should not consider that number ranges  due to table updation problem ,because i had faced the same in the earlier and received the reply from the sap stating that this error was occured rarely after the years,so please ignore that ,for your problem u first come out of the screen and then re log in and then create the excise invoice ,then check the number ranges .
    Please revert for any
    Kalyan

  • Which Table stores Purchase Order Related to Parked Invoice

    Hi
    Which Table stores Purchase Order Related to Parked Invoice?  I am not able to get that information. Thanks a lot in advance for any help.
    Thanks
    Arghadip

    Hi
    Check Table RSEG with the parked Invoice document number.
    Thanks & Regards
    Kishore

  • BP of Copied DP must be same as BP of Target Document.

    Hi Experts,
    We are using SAP B1 8.8 version. When we post the Service type AP Invoices direct from PO cannot be posted and display the error message of " Business Partner of copied down payment document must be same as Business partner of Target Document" Expecting your solution.
    Thanks in Advance
    Mangalarajan P

    Dear Manvendra,
    Thanks for your valuable reply.
    Normally, for the Service Cases, we will not post the GRPO's. But, we created the Service Purchase Order for those cases, and AP Invoice has been posted directly from the PO Document.
    When we posted for one Freight Bill, it shows the error message of the above. Afterthat, we cannot post the AP Invoice for other Service BP's also. I checked it, we are not changing any BP code.
    Seeking your solution on this.
    Regards
    Mangalarajan P

  • VPRS is not getting copied sometime to the target document.

    Hi,
    While creating Credit Memo Request with reference to Invoice, sometimes VPRS Condition Type is not copied from Invoice to Credit Memo Request.
    But, when Debit memo Request is created , VPRS is getting copied always from Invoice to Debit Memo Request.
    I have checked the Item Category, Copy Control as well as Pricing date in the target document (Cr memo Req). All those are fine.
    I am not able to find out the reason why sometimes the VPRS Condition type is not geting copied.
    Can anybody help me on this what can be the possible reason for it ?
    Edited by: pradyumna on Apr 20, 2011 5:53 PM

    Hi,
    Please check if the field 'Determine cost' is checked at Item category level.
    Regards,
    Peeyoosh.

  • COPY EXCHANGE RATE FROM BASE TO TARGET DOCUMENTS

    After several study and anaylsis based on Note 703028, we conclude this feature is not applicable to our normal practice in Singapore.
    SAP Business One copies the base row Exchange Rate to the target document only if items in the base document are defined with prices in a Foreign Currency which is not set as the System Currency or which is different from the Business Partner's Currency (this is the currency selected in the header of the document for a Multi Currency Business Partner). This prevents a discrepancy between the row total and the document total.
    Since this feature is not desirable in your applications, we would like to feedback to SAP and suggest for improvement. 
    Example
    My Local Currency is SGD, System Currency is EUR, BP Currency is USD.
    Foreign Currency exchange rates:
                        USD                               
    3 Oct 2007    1.4                                    
    4 Oct 2007    1.5 (1 USD = 1.5 SGD)    
    Assuming in Sales Order, BP Currency is USD at exchange rate of 1.4, Document Date 3 Oct 2007.
    Qty     Unit Price    Total Amount (SGD)   
    1        USD1,000    SGD1,400                 
    After copying Sales Order to Invoice on 4 Oct 2007 with BP Currency USD, default exchange rate should be 1 USD = 1.4 SGD
    Qty     Unit Price    Total Amount (SGD)    
    1        USD1,000    SGD1,400                     
    Current system behaviour is not desirable.
    After copying Sales Order to Invoice on 4 Oct 2007 with BP Currency USD, default exchange rate is 1 USD = 1.5 SGD though we choose Copy Exchange rate from Base Document in the Copy Wizard.
    Qty     Unit Price    Total Amount (SGD)    
    1        USD1,000    SGD1,500
    Kedalene Chong

    We have had the same issue.
    The BP pricelist currency is in this case important, not the BP currency.
    The question 'copy exchange rate from base to target document' relates to this currency exchange rate used in the base document to calculate from USD to SGD. If your pricelist is in SGD, then the program will recalculate the target document SGD to the same exchange rate in USD as it was in the base document.
    Because the value of the USD currency has changed, there wil be a different amount on the target document.
    If you donot want a different amount on the target document then the only solution is to make a price list in USD.

  • Please help! -5002,Base document card and target document card do not match

    Hi
    When I try to save an invoice with a payment thro' the DI API I get the following error :
    <b>-5002,Base document card and target document card do not match</b>
    Why am I getting this error and how can I solce it?
    Thanks

    Hi,
    For the sake of anyone else who has this problem:
    After much searching for the answer to why I was getting this message I found that the internal validation must be case sensitive and so 'C00417' on the receipt was not matching 'c00417' on the invoice.

Maybe you are looking for