Report on the basis of Vendor and item

Hi all
I want a report where i will select a "vendor" , "item"  and it will give me the quantity ordered for that particular quantity to that vendor line by line and also how much has been has been received against each line being displayed there

Hi Rahul,
I hope this is what you want... if it is not I have wasted too much time on this
It is basically 3 queries that merges the results into one result set. The first query retrieves orders, goods receipts and invoices, the second query retrieves orders and invoices, the third just orders that's still open.
Hope this will help you
SELECT T1.DocEntry 'Order No', T0.LineNum 'Order Line', T0.Quantity 'Order Quantity',
       T2.DocEntry 'GRN No', T2.LineNum 'GRN Line', T2.Quantity 'Receive Quantity',
       T3.DocEntry 'Invoice No', T3.LineNum 'Invoice Line', T3.Quantity 'Invoice Quantity'
FROM POR1 T0
INNER JOIN OPOR T1 ON T1.DocEntry = T0.DocEntry
INNER JOIN PDN1 T2 ON (T2.BaseEntry = T0.DocEntry) AND (T2.BaseLine = T0.LineNum) AND (T2.BaseType = '22')
INNER JOIN PCH1 T3 ON (T3.BaseEntry = T2.DocEntry) AND (T3.BaseLine = T2.LineNum) AND (T3.BaseType = '20')
WHERE T1.CardCode = '[%0]'
AND T0.ItemCode = '[%1]'
UNION
SELECT T1.DocEntry 'Order No', T0.LineNum 'Order Line', T0.Quantity 'Order Quantity',
       '0' 'GRN No', '0' 'GRN Line', '0' 'Receive Quantity',
       T2.DocEntry 'Invoice No', T2.LineNum 'Invoice Line', T2.Quantity 'Invoice Quantity'
FROM POR1 T0
INNER JOIN OPOR T1 ON T1.DocEntry = T0.DocEntry
INNER JOIN PCH1 T2 ON (T2.BaseEntry = T0.DocEntry) AND (T2.BaseLine = T0.LineNum) AND (T2.BaseType = '22')
WHERE T1.CardCode = '[%0]'
AND T0.ItemCode = '[%1]'
UNION
SELECT T1.DocEntry 'Order No', T0.LineNum 'Order Line', T0.Quantity 'Order Quantity',
       '0' 'GRN No', '0' 'GRN Line', '0' 'Receive Quantity',
       '0' 'Invoice No', '0' 'Invoice Line', '0' 'Invoice Quantity'
FROM POR1 T0
INNER JOIN OPOR T1 ON T1.DocEntry = T0.DocEntry
WHERE T1.CardCode = '[%0]'
AND T0.ItemCode = '[%1]'
AND T0.LineStatus = 'O'
Hope it helps,
Adele

Similar Messages

  • Rororts on basis of vandor and item

    Hi All
    QUERY: I want a report where i will choose "vendor" and "item" and it will show me all the transactions with that particular vendor for a selected Item. Is there a process in standard feature or i hav to use drag and relate feature . Please help me out

    Hi Rahul
    There is a standerd report. Go to stock reports under inventory/Stock Management. The report is called "last prices report". Here you can say which BP and item and will give all transactions for that item.
    Hope this helps

  • Can I report on the AGE of open Work Items? How? Group into Buckets?

    Is there a way to report on the age of open work items?
    Perhaps a bar graph that has several buckets.
    a.    Over 364
    b.    180 to 364
    c.    90 to 179
    d.    1 to 89
    And then a COUNT in each bucket. 
    For example, if a Work Item is open longer than 364 day, it would appear in bucket "a" as a count of 1.  Say there are a total of 45 Work Items that were opened older than 364 days, then "45" would appear in column "a" now say that there are 100 work items open that are 1 to 89 days old, then 100 would appear in the "d" bucket.
    Make sense?  How can I report like this?

    Hi mrpeepers,
    You can use following MDX script when you create this report that uses TfsOlapReportDS
    with
    member [Measures].[Age]
    As
    IIF([Measures].[Current Work Item Count]>0,DateDiff("d",cdate([System_CreatedDate].[Date].CurrentMember .name),Now()),null)
    member [Measures].[AgeRange]
    as
    case
    when [Measures].[Age] >70 then 70
    when [Measures].[Age] >60 then 60
    when [Measures].[Age] >50 then 50
    when [Measures].[Age] >40 then 40
    when [Measures].[Age] >30 then 30
    when [Measures].[Age] >20 then 20
    when [Measures].[Age] >10 then 10
    when [Measures].[Age] >0 then 0
    when [Measures].[Age] <0 then -1
    else null
    end
     SELECT
     non empty
     {[Measures].[Current Work Item Count],[Measures].[Age] ,[Measures].[AgeRange]}
     ON COLUMNS,
     [System_CreatedDate].[Date].[Date].AllMembers on Rows
     FROM [Current Work Item]
    And then, drop a Chart to report designer, select “Current_Work_Item_Count” as datafield,  AgeRange as category field.
    Best Regards,
    Ruiz
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Sincerely,
    Ruiz Yi

  • Particular data in a report, on the basis of the values (0, 1) of a dashboa

    hi
    User should be able to see the particular data in a report, on the basis of the values (0, 1) of a dashboard prompt.
    For e.g. if the user selects 0 then current years data should be filtered out
    and if the user selects 1 then rest all years data should be displayed in a request.
    give me hint regarding this question

    Hi,
    I hope this will help you
    http://oraclebizint.wordpress.com/2008/01/17/oracle-bi-101332-selecting-reports-from-dashboard-prompts-and-guided-navigation-sections/
    In this example he used prompt for selecting Region sales and Brand sales which you can replace with 0 and 1
    Phani.

  • Stock report on the basis of valcation class

    hi expert
    My abaper have create a stock report on the valuation class the report contain opening balance, inward stock, outward stock, clossing stock.i have done with the report the problem which i am getting in some of the valuation class i am getting the wrong all the figure
    Please guide me for to fetch proper field and table.
    regard
    nabil

    Hi jayant
    i dont want MB5W because its analysis reprot. i want to get report on the basis of monthly, in which valuation class- opening balance, inward movement (value), outward movement (value), clossing balance.
    regard
    nabil

  • Report for the List of Vendor for which no Purchase order has been created

    Hi ALL
    Please let me know if there is any Report for the List of Vendor for which no Purchase order has been created
    regards,

    Hi Prateksha Vaid ,
    Go to transaction S_ALR_87012093
    Select accounts with no purchases checkbox and execute
    Diwakar
    reward if useful

  • Report of the Evaluation of Vendor

    Hello,
    need to create a history report of the Evaluation of Vendor, a list of notes in your evaluation month. I wonder what is the table where this data. Can anyone help me?
    Thanks,
    Luiz Henrique.

    HI,
    The following table may help you for vendor evaluation,
    ELBK - Vendor Evaluation Header data
    ELBM - Vendor Evaluation Material related item
    ELBP - Main Criteria for Vendor evaluation
    Regards,
    BK

  • Weu0092d like to get Custom reports. The base of reports is Security Audit Log

    We’d like to get Custom reports. The base of reports is Security Audit Log files. This is files for SM20.
    What does the file structure look like? What is field of it?
    Thanks!

    Hello Marina
    The data written to the security audit log correspond to the DDIC structures RSLGENTR (up to release 4.6) and RSAUENTR2 (in newer releases). DDIC structures can be viewed using TA SE11 (data type).
    As I can see you have already opened a thread regarding this. Please don't duplicate the threads, as this only widespreads the information.
    Regards,
    Désiré

  • How to change the amount of Vendor Line Item in FB60

    Hi all,
    I want to post the invoice in SAP with FB60. The journal is as follow:
    Dr. Expense    1000 USD
    Dr. VAT-Input    100 USD
          Cr. Account Payable     1100 USD
    But the problem, the amount of Account payable is 1000 USD. Because I want to fill the amount in vendor line item (FB60) with the original expense (1000 USD).
    I want to ask, there is any configuration in SAP to change the amount in vendor line item which it could be the same with amount of the original expense.
    If you ever have same problems, plase share with me
    Thanks,
    John

    Hi,
    Thanks for your reply. The result of posting invoice that I want is as follow:
    Dr. Expense    1000 USD
    Dr. Vat - Input    100 USD
    Cr. Account Payable   1100 USD
    When posting invoices in FB60, there is a filed "amount vendor line item" at the top. Usually the field is filled with amount vendor 1100 USD, but I want to fill it with the expense amount (1000 USD). Which can be show the account payable 1100 USD.
    Is there any configuration to change the field "amount vendor line item" ?
    Thanks,

  • I have a Power MAC G5 dual 2ghz that has a peculiar problem.  The monitor will not report until the machine is stopped and started 5 or 6 times.  Once booted it will restart without problem if done so from the apple menu.  Swapped out all hardware

    My Power MAC G5 has a peculiar problem.  The monitor fails to report until the machine is started and shut down 5 or 6 times.  Once it has booted it can be restarted without incident from the Apple menu.  I have swapped out all of the hardware.  Monitor, Memmory,Video Card and reset the PRAM.  After resetting the PRAM it booted on the first attempt and I thought it was solved.  But the next day it was back to starting and stopping until the Monitor came on.  Does anyone have a suggestion?  Thanks

    It could be a bad PRAM battery corrupting your PRAM.  Typically when I have monitor issues on startup it is a bad PRAM battery.
    Texas Mac Man's PRAM, battery, PMU tutorial - https://sites.google.com/site/macpram/mac-pram-nvram-cuda-pmu-battery-tutorial
    Apple's PRAM reset directions - http://docs.info.apple.com/article.html?artnum=2238
    If you have a digital multimeter you can check the condition of your present battery.  It should read at least 3.2V if it is the 3.6V half-AA battery type.  A new battery provides 3.67 Volts DC. A bad battery provides under 3.2 Volts DC.  Ideally this should be measured while the battery is under load; added recommendation from Hans777:
    >I have recently found out that an exhausted battery will still indicate >3.6 V with a high internal resistance VM.
    >
    >Checking incircuit: powercord disconnected press PMU reset button for >about 5 sec before measuring.
    >
    >Checking outside: load the battery with a 1500 Ohm resistor when measuring.
    Alternatively, test the battery while it is still in the computer.
    If the battery is more than 5 years old, especially if you totally disconnect the computer from the power regularly, or have left it unplugged for several months at one time, it is likely the battery is dead.
    Sometimes you have to do a more intensive reset of hardware management:
    [Resetting Cuda/PMU on Power Mac G5, Power Mac G4, Power Macintosh G3|http://support.apple.com/kb/HT1939]
    [How to reset the SMU on a Power Mac G5 (Late 2004) or Power Mac G5 (Late 2005)|http://support.apple.com/kb/HT1436]
    [iMac G5: How to Reset the SMU|http://support.apple.com/kb/HT1767]

  • What is the importance of the tabs like vendor and customer in t.code md04

    Hi All,
    what is the importance of the tabs like vendor and customer in t.code md04? Could you please explain me...
    Thanks
    Krish

    Hi Krish,
    In MD04,you see requirement of material.
    Whenever there is Purchase order & Sales order created,you will find relevent Vendor & Customer name respectively when you go for Vendor & Customer tab. When you double click on Vendor It shows you details of Vendor.
    Just try & Check it.
    Hope this help you.
    Regards,
    Raja.
    Edited by: Raja on May 7, 2009 6:13 AM

  • Report to show the followup sales documents and items

    Sales had executed many sales quotations with customers over a period of time.
    Now the Sales Staff wanted to know how many sales documents and what/how many sales items are being purchased by the customer with respect to the quotation.
    Is there a report that list out the sales documents and items created w/respect to a particular quotation instead of looking at the document flow which is difficult to diagnose.
    Thanks

    hello, friend.
    you can try table VBFA, where you can see sales documents and their subsequent documents.
    for a general listing of quotations, use tcode VA25.
    regards.

  • Report in R/3 for vendor line item details

    Dear friends,
    Please provide direction on how we can run a report (SAP R3 or BW) that provides the vendor name/and number for all A/P transactions (both via purchase orders and direct pay) by G/L account?.
    Is it possible in SAP R/3 or do we need to develop a new report in BW?
    Please respond asap.
    Thanks in Advance....
    Rgds,
    Kunal Vichare.

    Hi
    With T code  F.41- List of vendor line items you can get with Vendor No. and Vendor Name  , with  small layout changes.
    If it is not sufficient according to your requirement go for BI it will come very nice dash board report.
    Rgds
    Vani

  • Report for the account of vendor invoices not received ?

    Hi friends;
    Is there a report or a transaction that would list the details (expense accounts, cost center an amounts) in the account of vendor invoices not received ?
    Thinks

    Hi ,
    me2n report in which u get total amount for invoiced and another column still to be invoiced amount .So check in that report even it is with PO number.

  • Analysis report on the basis of Planner group

    In the existing analysis of Planner group using MCI4, is it possible to add Notification type in the drill down.
    I required to do the analysis on the basis of Notification type also. And if it is possible to add Notification type to the Planner grp, my analysis report is get fitted in the Standard report, otherwise I have to prepare the Z-Report.
    Thanks in advance

    Hi,
        Please check this detailed link Modify T-Code MCI4 Report
    I think in ur case while doing statistical set up running programme RIPMS001 is enough ..
    regrds
    pushpa

Maybe you are looking for