Skip to Content

Sales Invoice Query by "specific Items"

Hello SAP Gurus,

I made a mistake in my last post and actually need this to pull information for Sales Invoice not Sales Order.

Please see query that needs to be updated to show Sales Invoice information:

SELECT T0.[DocNum],

T0.[DocDate],

T0.[CardName],

T0.[NumAtCard],

T1.[Quantity],

T1.[ItemCode],

T1.[Dscription],

T1.[Price],

T1.[Price]*T1.[Quantity] AS 'Total Price',

T0.[DocTotal],

T0.[GrosProfit]

FROM ORDR T0

INNER JOIN RDR1 T1

ON T0.[DocEntry] = T1.[DocEntry]

WHERE T0.[DocDate] between [%0] and [%1] and

T1.[ItemCode] Like '%%COR%%'

Thank you.

Larry T.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 17, 2016 at 04:59 PM

    Hi

    change OINV table instead ORDR table, and INV1 table instead RDR1.

    Kind regards

    Agustín Marcos Cividanes

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.