Pulling open invoices, and paid invoices with details (Query Help).

Hello All,
I am sure I messed something up in my joins. I am looking to pull a report of all invoices OINV for a month, then list details of any payment (if it is paid) next to it from RCT2. It is giving me a list of all of the paid invoices, but even though I have a LEFT JOIN it is not listing any of the invoices without payments.
This is where I am now from the report wizard in Crystal.
SELECT "OINV"."DocNum", "OINV"."SlpCode", "OINV"."CardCode", "OINV"."DocTotal", "OINV"."U_Commission", "OSLP"."SlpName", "RCT2"."DcntSum", "ORCT"."TaxDate", "OINV"."DocEntry", "OINV"."TotalExpns", "OINV"."CANCELED", "ORCT"."Canceled", "ORCT"."DocNum", "RCT2"."InvType"
FROM   ("DBName"."dbo"."OINV" "OINV" LEFT OUTER JOIN "DBName"."dbo"."OSLP" "OSLP" ON "OINV"."SlpCode"="OSLP"."SlpCode")
INNER JOIN ("DBName"."dbo"."ORCT" "ORCT" INNER JOIN "DBName"."dbo"."RCT2" "RCT2" ON "ORCT"."DocNum"="RCT2"."DocNum")
ON "OINV"."DocEntry"="RCT2"."DocEntry"
WHERE  "OINV"."CANCELED"='N' AND "ORCT"."Canceled"='N' AND "RCT2"."InvType"<=N'14'
ORDER BY "OINV"."SlpCode", "ORCT"."DocNum", "ORCT"."TaxDate"
Thank you in advance for any help you can give me.

Hello Kiran,
I thought about that, but my purposes for running the report is to determine commission based on the date that the invoice was paid, I need the TaxDate in ORCT as it relates to the payment in RCT2.
Removing the ORCT.cancelled condition and the RCT2.invtype conditions now pulls all of the invoices, paid and unpaid. I know now I cant have them in my query, when the record does not exist in ORCT it doesnt have a value for cancelled, and when there is no record in RCT2 there is no invtype, and is filtered.
Maybe I can say where ORCT.Canelled = 'N' OR ORCT.Cancelled = NULL, but I dont know if that would work.

Similar Messages

  • Data Source  combine - Customer Invoice and Outbound Delivery Item Details

    Hello,
    I need create report where getting the outbound delivery item details ( like ship date, quantities, product, identified_stock)
    and also need invoice number ( customer invoice number) which is available in the Customer Invoice Header or Detail source.
    But try to create combined data source not able to join  Customer Invoice and Outbound Delivery Item Details.
    Since after adding any one of them as first datasource and try to add another data source from above then it doesn't shows up.
    Anybody have idea how to get the invoice information (invoice number) and shipping data.
    Thanks,
    Viral.

    Hi Viral,
    you only can comine data sources of the same access context. The customer invoice data sources have access context "company" and the outbound delivery sources have "site" or "sales". So unfortunately, you can`t combine these data sources.
    Best regards,
    Andreas

  • Exchange Rate calculation mismatch in Sales Order Invoice and Cancelled Invoice

    Hi,
    In Sales Invoice, Exchange Rate is maintained as 7.75132
    Invoice Amount is 72000 USD. So the Amount calculated should be 558095.04.
    But in Accounting Document the Amount is posted as 558095.15 for the GL Sales Account.
    In Cancelled Sales Invoice, Amount posted is  558095.04 in GL Sales Account which is correct.
    Please help me understand why there is difference in both the Amount even when the Exchange Rate is same.
    Regards,
    Debashri Dutta

    Hi Ankur,
    Thanks for your reply.But our problem is sales order,exchange rates are defined with M type in OB08 as u have said.However when the periods are different for order entry and invoice generation we are facing the following problem.Orders are at old exchange rates and excise invoice is getting generated at current exchange rate.This is resulting in value difference between commercial invoice and excise invoice.
    Please help.
    Regards,
    Praveen

  • Difference between shipping invoice and fiscal invoice?

    Helo.
    Can anyone tell me the difference between Shipping Invoice and Fiscal Invoice?
    Regards
    Points are assured

    Hi Kulkarni,
    Invoice Processing
    Process
    You can use this business process to display and process invoices both in SAP Enterprise Buyer (SAP EBP) and SAP Supplier Self-Services (SAP SUS).
    As supplier or service provider, all invoices that you enter or process in SAP Enterprise Buyer must be approved by a responsible internal employee. For goods and services with a low purchase value, invoices and credit memos can also be created without a purchase order reference. Moreover, it is also possible to create express invoices in the check status application.
    In SAP Supplier Self-Services (SAP SUS) invoices can be entered with reference to a purchase order, shipping notification, or contact person before they are sent to the customer.
    If, following a purchase order, the goods supplied or the service provided turn out to be defective or the price charged is too high, you as an internal employee, supplier, or service provider, can enter and process credit memos or subsequent debits/credits in SAP Enterprise Buyer
    i think the invoice generated during a particular fiscal year is fiscal invoice.
    thanks
    sekjar

  • Creation of Delivery, Commercial Invoice and Excise Invoice in PS Cycle.

    Hi,
    Pls explain how can we create deliveries, Commercial Invoice and Excise Invoices through PS cycle.
    Thanks and Regards
    Sriram Tumuluri

    Assuming that the requirement is to differentiate only in print out, it is better to maintain the pricing condition in Euro itself instead of INR.  With the help of ABAPer, you can fetch the value as per the requirement.
    Moreover, even if you change the customer master currency or document currency, it will not fetch the exact net value.
    thanks
    G. Lakshmipathi

  • Maintaining difference currency in commercial invoice and Excise Invoice

    Dear Exparts,
    My client's requirement is, for export process, net value of Delivery *** Excise pro-forma invoice and excise invoice would be in INR, but the net value of commercial invoice would be in EUR. I changed the currency EUR in the customer master sales area,sales tab. and maintain condition record for PR00 in INR. can anybody advice me, apart from that settings what should I do.
    Thanks in advance.

    Assuming that the requirement is to differentiate only in print out, it is better to maintain the pricing condition in Euro itself instead of INR.  With the help of ABAPer, you can fetch the value as per the requirement.
    Moreover, even if you change the customer master currency or document currency, it will not fetch the exact net value.
    thanks
    G. Lakshmipathi

  • IDOC Invoices and EDI Invoices

    Hi Gurus,
    Please help me in understanding the flow of IDOC Invoices and EDI Invoices.
    What is the purpose of using IDOC and EDI? How it works?
    Please revert asap.
    Thank You

    HI Verma,
    You can post the invoices in SAP system through IDOCs.
    Mostly, this activity is performed/triggered, when the invoice data is with third party.
    Third party will have the invoice data base and sends a file to SAP.
    SAP XI will map/convert the file(sent by third party) to fields in SAP and posting of invoice happens.
    Please refer the below links for EDI Invoices
    EDI invoices
    Creating EDI Invoices
    Hope this will help you in understanding IDOC invoices and EDI Invoices.
    Regards,
    Praisty
    Edited by: Praisty on Dec 22, 2009 1:20 PM

  • Pre invoice and Post invoice

    Hi All,
      What is the difference between Pre Invoice and Post Invoice?
    regards
    shashikanth naram

    Hi,
    When 'GR-based IV' is flagged in PO, Now when GR posted with reference to PO item serves as reference document for follow-on postings. This Ref Doc-LFBNR is linked to invoice posting,This assignment between GR and invoices can be seen PO history tab -GR/IR assign
    when GR based IV is not ticked then the LFBNR is blank, hence it will not propose any value in Miro
    Please also refer following note
    1827732 - Valuation when GR-Based IV (EKPO-WEBRE) is set in the PO item.

  • Relation between Ap down payment invoice and Ap invoice

    Hi sap members
    pls help in this scenario what is the query relation for ap down payment invoice and ap invoice  solution given vilbe appreciated
    regards
    Jenny
    Edited by: Jennifer Anderson on May 3, 2010 11:02 AM

    hi Gordon
    can u write a query and send regarding this relation i need fields like
    SELECT Distinct T0.[DocNum][Invoice No ], T0.[CardName], T0.[DocTotal], T1.[DocNum][Ap Down Payment No],T1.[CardName], T1.[DocTotal]
    FROM OPCH T0 , ODPO T1
    WHERE T0.[CardName] = T1.[CardName]
    and T0.[DpmAmnt] =  T1.[DocTotal]
    GROUP BY T0.[DocNum], T0.[CardName], T0.[DocTotal], T1.[DocNum],
    T1.[CardName], T1.[DocTotal]
    in Ap invoice Query i need Ap down payment Docnum
    Regards
    Jenny

  • Invoice and proforma invoice

    what is the difference between invoice and proforma invoice?

    Hi,
    Check the FKART field of VBRK table, there different types are maninted for invoice & pro forma inv.
    For example: F2-invoive, F5- Pro Forma for Order etc.
    Thanks & Regards,
    Anagha Deshmukh

  • Standard form :'Customer  invoice' and 'customer Invoice : Property Damage'

    Hi
    Can someone tell me what is the standard form for 'Customer  invoice' and 'customer Invoice : Property Damage'.? Is there any config involved.
    I'll reward points for any helpful answer.
    -Nash

    LB_BIL_INVOICE is the Standard SMARTFORM for Invoice  Document
    you need to do Output Type/Control configuration(TCode NACE)

  • Diff between Commercial Invoice and Excise Invoice

    Hi all,
    What are the differences between commercial invoice and excise invoice?
    Which one is more related to SD?
    Regards,
    Ajit

    Hi,
    Commercial Invoice contains information more specific to customer (Pricing, Tax, Payment terms), which becomes a part of recievables.
    For Commercial Invoice, there is no need for advance declaration of the Number Ranges for the Document.
    Excise Invoice contains information related to excise duties which has to be payed to the Excise authorities and also other statutory requirements .
    For Excise Invoices, every manufacturing company has to declare the Number ranges (Per Excise Group/Series Group) to the excise authorities beginining of the year.
    Nowadays most of the buinesses are directing toward common (Commercial *** Excise Invoice) printout , though in SAP its still a separate transaction for posting.
    I hope this clears your doubt.
    Reward points if thie helps.
    Regards,
    Harsh

  • Who can explain the 'Legal Invoice' and 'Custom Invoice'?

    Hi,
    Why after PGI, the 'Legal Invoice' and 'Custom Invoice' will be printed out??
    Could you tell me what useage of them??
    As i read an document metioned that 'Legal invoice for Export'..'Custom Invoice for import'...
    What's the meaning??
    Thanks!!

    Hi, Yathish,
    Could you make an example to this?
    For example..
    If we ship products from US->UK.
    When the products is out from US, we submit the Legal Invoice to US Custom and End Customer in UK?
    When this products is shipped into UK, the Custom Inovice...
    Sorry, i still didnt get it.....
    Hope could get help on this....
    Thanks!!!!

  • Like between prepayment invoice and standard invoice

    link between prepayment invoice and standard invoice in AP
    and link between credit memo and standard invoice in ap

    Hi,
    Did you go through [Applications Electronic Technical Reference Manuals (eTRM)|http://etrm.oracle.com] link?
    Regards,
    Hussein

  • Down payment Invoice and AR Invoice

    Hi,
    Can anyone please advise the details of this note for PL44 - I am unable to find reference to this note on the SAP notes page?
    Error 'Down Payment sum cannot be greater then total sum', note 1244893
    We have PL42.  We have created an AR invoice and a Down payment seperately.  Both IN and DT are appearing as positive figures in the incoming payment window - how can we reconcile these transations?  
    Thanks Lisa

    Note 1244893 - Error 'Down Payment sum cannot be greater then total sum'
    Summary
    Symptom
    In Tax Groups for output documents, you define a tax code. You
    create a sales order with this tax code. You create a partial A/R down payment request and pay it. You copy the A/R down payment request
    into the A/R down payment invoice. You open a created sales order and
    copy it into the A/R invoice, and then attach an A/R down payment invoice. You try to add the A/R invoice and get the following message:
    Down Payment sum cannot be greater then total sum [3703-3].
    The A/R invoice cannot be posted.
    Other terms
    JDT1, OINV, Financials
    Reason and Prerequisites
    Application error
    Solution
    This issue will be fixed in a future patch. See the info.txt file
    on SAP Service Marketplace to verify when the fix was included.
    Header Data
    Release Status: Released for Customer
    Released on: 15.09.2008  08:29:58
    Master Language: English
    Priority: Correction with high priority
    Category: Program error
    Primary Component: SBO-SD-INV A/R Invoice
    Secondary Components: SBO-FIN Financials
    Affected Releases
    Software
    Component Release From
    Release To
    Release And
    subsequent
    SAP-M-BO 2007 2007 A 2007 A  
    Related Notes
    1294071 - Overview Note for SAP Business One 2007 B Patch 09
    1257957 - Overview Note for SAP Business One 2007 A Patch 44

Maybe you are looking for