Stock overview per vendor

Hi Experts,
I have an question.
Made an query but need 2 extra coloms with the total amount sales and puchase per item.
SELECT T2.[CardName], T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[IsCommited] AS 'Bevestigd', T0.[OnOrder] AS 'In Bestelling', T0.[SuppCatNum] AS 'Leveranciersnummer' FROM [dbo].[OITM]  T0 INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode WHERE T2.[CardCode] =[%0]
Can somebody help me with this??
Gr, Mark

Hi Mark,
You may try this one first:
SELECT T2.CardName, T0.ItemCode, T0.ItemName, T0.OnHand, T0.IsCommited  AS 'Bevestigd', T0.OnOrder AS 'In Bestelling', T0.SuppCatNum AS 'Leveranciersnummer',
SUM(T3.LineTotal) 'Total Sales', SUM(T5.LineTotal) 'Total Purchase'
FROM dbo.OITM T0
INNER JOIN OCRD T2 ON T0.CardCode = T2.CardCode
LEFT JOIN INV1 T3 ON T3.ItemCode = T0.ItemCode
LEFT JOIN OINV T4 ON T4.DocEntry = T3.DcoEntry AND T4.CardCode = T0.CardCode
LEFT JOIN PCH1 T5 ON T3.ItemCode = T0.ItemCode
LEFT JOIN OPCH T6 ON T6.DocEntry = T5.DcoEntry AND T6.CardCode = T0.CardCode
WHERE T2.CardCode =[%0\]
GROUP BY T2.CardName, T0.ItemCode, T0.ItemName, T0.OnHand, T0.IsCommited, T0.OnOrder, T0.SuppCatNum
However, it should not work since the CardCode in the item master will only define Preferred Vendor.  You may remove the sales part and get purchasing total works first.
Gordon

Similar Messages

  • Stock Overview per plant wise/Storage location wise

    hi
        is there any <b>transaction</b> or <b>report</b> to get Stock overview plantwise/ storagelocationwise ... except MMBE it gives particular material.. i want per particular plant or storage location total materials stock.
    I want stock report similar to <b>MMBE</b> it gives available stock per single material in a palnt but my requirement to print available stock per all materials in a given material along with storagelocation wise/batch wise and total quantity.
    Points guaranteed..
    Message was edited by: Ashok Parupalli
    Message was edited by: Ashok Parupalli

    There's quite a lot you can do in Logistics Info Systems to report on stocks across multiple materials.
    Other than that, it depends on what you really want to show - stock that's physically present (e.g. including vendor-owned consignment), stock that you own (e.g. including customer consignment or toll manufacturers' stocks); do you want to show quantities (doesn't usually make much sense for more than one material, of course, due to varying units of measure) or values, etc.
    Some of these data are quite expensive to read from a runtime perspective, in particular the "special" stocks (e.g. consignment).
    You also have to consider that stock you own but that's not physically present on site (e.g. customer consignment), or GR blocked stock, usually is not assigned to a storage location.
    If you give me some more info about what you're actually trying to achieve, I may be able to help you better.

  • Overview of payment term per vendor?

    Dear all,
    My customer is using report s_alr_87012093 as an overview for vendors. Now they want to see an overview over what payment term is used per vendor, to see if all payment terms are correct or not. Is it possible to get that overview in that report? or in another report?
    Very thankful for any help!
    Best regards, Åsa

    Hi,
    If you want to see the payment method assigned to the vendor master, then use report S_ALR_87012086 with the payment data check box selected on selection screen.
    If you want to see the payment method assigned to the vendor line items, then you can use the report FBL1N, and then can subtotal the output based on vendor number and payment method.
    Hope this will assist.
    Regards,
    Gaurav

  • Stock overview based on material and vendor combination

    Hi Gurus,
    I have a scenario, for three materials A , B, C was bought out from 5 vendor,  how to display the stock with material and vendor combination. In client place, the three material (A , B,C) which were bought from same vendor are issued to cost center. Client wants to know the stock based on vendor.
    Thanks in Advance.

    Hi,
    In my opinion you have the following options - basically:
    1) Use different material numbers for the physically same material you procure from different vendors (this is the dummiest solution, not recommended)
    2) MPN (manufacturing part number) - you use different material numbers corresponding to each vendor . But these materials will be lnked:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/75/ee15c655c811d189900000e8322d00/frameset.htm
    3) Batch management
    option1 - You apply a certain logic to batch numbers and based on batch number you can distinguish from which vendor the stock was procured.
    option2 - You can also use "not speaking" batch number, but here it's more sophisticated to find out from which vendor it was procured
    option3 - You can classify the batch and in one of the characteristics you can store the vendor's number
    option4 - In the batch master (table MCHA) you can find a "vendor" field (MCHA-LIFNR) - using development you can populate this field at the time of GR
    4) Split valuation - you can maintain separate valuation type for each vendor. I think it is recommended only if you want to manage the moving avarage price separately
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/75/ee0d4d55c811d189900000e8322d00/frameset.htm
    Regards,
    Csaba

  • Stock available with vendor as on particular date

    Hi,
    The requirement is to know the stock at vendor as on particular date say 27th & 28th November 2008
    MBLB gives for current date.
    Even though I enter requirement date as 27th & 28th Nov 08, ME2O also gives same as current date.
    Is there any report that gives the stock at vendor as on particular date?
    Regards
    Vengat

    Hi,
    Thanks for the reply.
    MB5B does not give per vendor.
    If query is to be created may I know the tables involved.
    Regards
    Vengat

  • Stock overview on basis of product hierarchy (PRDHA)

    Hello to All,
    Is there any SAP standard report of displaying stock overview on basis of the 'product hierarchy' (Field: PRDHA) or do i have to make a copy of the transaction (MMBE) and add the respective field ..
    Looking forward to your feedback. Thanks
    Regards,
    Shehryar Dahar

    check this and do modifications as per ur requirement.
    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=15856
    get the PRDHA of MARA then report.
    Regards
    Prabhu

  • MB1B i need to check the stock overview & venodr stock

    HI Experts,
            i need to send the stock to subcontractor..so PO reference mb1b 541 movement type i m sending the stock..here i want to see the stock overview as well as see the vendor stock also.. if there is any setting or threre to check the stock otherwise any enhancement can fulfil this requirement.

    Hi,
    Enter movement type 541, PO referenc and on next screen, click on Environment tab, enter only plant, remove storage location , select Stock Overview -> Stock Material , system will show you stock in Plant for all Storage Location as well as Stock lying at Vendors end, else if tyou want to know stock lying at vendor's end , you can run report MBLB (Stock at subcontractor)
    Regards,
    Vikas

  • Batch determ. in Process Order doesn't consider Stock Provided to Vendor

    Dear Forum,
    We have a problem with the following scenario:
    We use Process Orders to manage our Subcontracting process. This is standard SAP, where the Operation is defined as 'external', and this works fine.
    The scenario which we can not seem to be able to work is the following:
    When executing batch determination for the component(s) which are batch relevant, the system does not show the batch stocks which are already at the subcontractor, i.e. Special Stock 'O' stock provided to vendor.
    This is strange, because:
    - In the availability check the flag 'W/o subcontracting' is not set.
    - The batches in the subcontracting location fulfil the selection criteria which have been defined in the batch determination Selection Class.
    Does somebody have experience with this? Any hints are welcome.
    Thanks, Mark Voet

    Hi Mark,
    As I understand you determine the batches in the process order.
    From SAP point of view it means that you determine the stock which is to be provided to the vendor. Components with batches are copied into the PO when it is created from the PurReq and system will use this stock (batches) automatically when you execute MB1B541PO reference.
    Later, when you do the GR against this PO, the same batch(es) will appear automatically for components-to-be-consumed (by mvt 543).
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/8b/55a026995011d195a2080009c17b92/frameset.htm
    So, SAP's concept is that the batches which are determined in the order are those batches which are to be sent to the vendor - these batches will be posted from your storage location to the subcontractor. Stock in special stock segement "O" ar at the sc-vendor.
    As per my best knowledge there's no solution in standard system for that if you want to determine such batches in the order which are located at the subcontractor...
    Regards,
    Csaba
    Edited by: Csaba Szommer on Sep 1, 2010 11:43 AM

  • Stock at SC vendor

    Hi
    I am working on the subcontract report where the requirement is similar to MBLB except for the additional details.
    I need to get the stock at the vendor along with the SC purchase order numbers. Now MBLB provides all the details except the PO numbers. I can view these details in MD04 and its also available in ME2O. Could someone tell me how I can retrieve this info in MD04 and from which tables this can be extracted for the report
    Thanks
    Venugopal

    Hello Venugopal ,
    Based on the thread you have posted , I understand you want to get information on "SC Stock " from MD04 which need to be used in a report , for this you  can use FM (Tcode SE37 )
    Functional Module : MD_STOCK_REQUIREMENTS_LIST_API
            EXPORTING
              matnr                          =    Material code
              werks                          =      Plant
              display_list_mdpsx             = space
              display_list_mdezx             = space
              display_list_mdsux             = space
           IMPORTING
              e_mdkp                         = w_mdkp
           TABLES
              mdezx                          = t_mdez:
    Upon its execution you get the data exactly as per MD04 lines ,(Table : mdezx)  Later on you can filter the output based on
    t_mdez1 BY delb0 as "MatSub " to get the exact quantity lying at subcontractor (SC Stock) against vendor code (which is displayed in field EXTRA )
    Hope this clarifies  ,
    Thanks
    Abhiram

  • Stock control at vendor location

    Hi MM experts,
    In this scenario, all stock materials are kept at vendoru2019s plant until we need to consume them. The process involves the creation Purchase req, PO, MIGO and MIRO.  When we need to consume the material we call the vendor and ask them to send it to our plant. How can we control the quantity of each material per vendor using the standard system.
    Please advise,

    Hi,
    Thanks for your response. To avoid increase in maintenance of the enterprise structure, the solution to create storage location for each vendor was not chosen. Batch management option was also excluded. Is there any other way to do this.
    Please advise.
    Thx.

  • Subcontracting stock initialize in vendor's place

    Dear All,
    Right now we are about to golive and for that we already initialize the stocks in the plant and storage location level by MB1C with 561 MT. But I have to initialize the stocks in the vendors place and also create the subcontracting challan for the same.So kindly guide me how to do the same in standard SAP.
    Waiting for your earliest response.
    Thanks and Regards
    AKS

    the process overview says create subcontract PO (ME21N) - move goods to subcontractor (MB11) - create Subcontracting Challan  (J1IF01) - MIGO - Reconcile Challan (J1IFQ)
    As you have to enter the material document that moves the goods from your side to the vendor when creating the challan, then I would says you need to load the data in 2 steps: first you load it into own storage location with 561, and subsequent you do a MB11 transaction with movement type 541 to move the stock from your site to the vendor

  • Stock overview report on basis of product hierarchy ?

    Is there an SAP standard report for displaying materials(product hierarchy wise) on the basis of product hierarchy or do i have to create a customer report for it. IF yes, then how do i go on creating it.. i.e how will i be showing the materials(in a hierarchical display, product hierarchy wise ?
    Hope you have comprehended it ?
    Thanks,
    Shehryar Dahar

    Hello Kirit,
    the scenario is sumthing like this, the SAP transaction for stock overview (MMBE) displays the report per material. I want a report in which , if i give in the Product Hierarchy, it should display all the materials in diff levels in the product hierarchy. For example, if we choose 'Product Hierarchy' as a display level, it should display all the materrals in the hierarchy levels..!
    I have been that the Stock Overview Report(MMBE) displays only one material, no matter what 'display level' you give in the selection. Does this mean, that i would have to develop a new report for this ?
    Waiting for the replies.
    Shehryar Dahar

  • MMBE stock overview - S Loc Level stock not getting displayed - ECC 6 0

    Hello,
    In ECC 6,0 Version, in the MMBE (stock overview) stock is getting displayed only at the Plant level. It is not showing at levels below for eg. S Loc level/Valuation type level. Is there any setting to be activated for this?
    Can any one throw some light?
    Thanks
    Regards
    Kumaran

    Hi
    Before executing MMBE
    have you selected on the initial screen the following :-
    Selection of Display levels
    COCD
    Plant
    Storage location
    batch and
    special stock
    thanks
    Prasanna
    awrd if usefull

  • Report for Number of invoice per vendor with amount

    Hi All,
    is there any standard SAP report we have which provide us number of invoices and amounts invoiced per vendor for a given time period.
    Amit.

    Hi amit
    I have the same requirement
    "The requirement is to view POs related to invoices per vendor""
    Can you suggest me a solution
    Please help
    Regards
    Shanker

  • Stock Quantity & Stock Value at vendor on a Particular Date

    HI,
    My client requirement is to get a report for Stock Quantity & Stock Value at vendor on a Particular Date .
    Please give suggestions to get the stock & value in tables or Any standard T.codes
    Note : I am getting Stock qty on paricular date In MB5B & S_P00_07000140 , but not getting the values
    Regards,
    PR

    HI,
    we can get this report thru SAP standard without vendor selection, do the following steps
    1. goto MB5B
    2. Give plant /material details
    3. give selection date
    4. select stock type option as special stock
    5. select special stoct indicator as "O" for material provided to vendor
    excute the same , you will get a report with qty and value posted for  the vendor from the plant
    here by copying this standard program we can add one more input parameter  as vendor, then we can get this report vendorwise also.
    try this and let us know
    Regards
    Sridharan

Maybe you are looking for

  • IPhoto6 won't start up after install.  Icon bounces 2-3 times and stops.

    I have a Mac G4 800 MHz iBook with OS 10.3.9. I just bought iLife 06 and installed the entire package. Every iLfe application but i-Photo 6.06 starts up and works. When I click on the iPhoto icon in applications, the Icon appears on the tray, bounces

  • Is there a way to use the Picture viewer app with linked folders?

    I have a fairly extensive photo collection (literally in the tens of thousands we have taken over the years, and growing) on my PC that I have access to through BB link/file manager...one picture at a time...with no thumbnails... Is there any possibl

  • Non Moving itms

    Non moving items Should calculate items which are not moving from 1 year from plants & I should show the amount of that Report format should be like this                     Jan 07     Feb07 Non Moving items      15.90     10.92 I am using the cube 0

  • Calendar Invite Attendees

    ok i am new to the forum.  I just left blackberry after 8 years and I was shocked there was no way to invite people to a meeting via the calendar.  my question is does anyone know if there is a way to do this and/or does anyone have insider info as t

  • D7000 raw files not seen in my iMac OS 10.7.5; Bridge and Photoshop CS4 Extended

    Please help!!! I just bought a Nikon D7000 and my iMac OS 10.7.5 does not recognize it, I cannot see the D7000 on the Desktop, Bridge, Photoshop CS4 Extended, etc Please assist.