Inactive items without purchase as well Sales particular period

Dear Expert,
I want list of Item master which doesnu2019t have transaction in Sales and Purchase as from the following documents
Purchase Order
GRPO
A/P Invoice
A/P Down payment
Sales Order
Delivery
A/R Invoice
A/R Down payment
For a particular period.
Thanks in advance,
Regards,
Dwarak
Edited by: Dwarakanath.P on Nov 8, 2011 2:59 PM

Hi Dwarak,
DECLARE @DateFrom DATE
DECLARE @DateTo DATE
SET @DateFrom='2011-01-01'
SET @DateTo='2012-01-01'
CREATE TABLE #temp(ItemCode NVARCHAR(50))
INSERT INTO #temp(ItemCode)
SELECT DISTINCT ItemCode FROM OINM WHERE DocDate BETWEEN @DateFrom AND @DateTo
UNION ALL
SELECT DISTINCT ItemCode FROM POR1 WHERE DocDate BETWEEN @DateFrom AND @DateTo
UNION ALL
SELECT DISTINCT ItemCode FROM PCH1 WHERE DocDate BETWEEN @DateFrom AND @DateTo
UNION ALL
SELECT DISTINCT ItemCode FROM DPO1 WHERE DocDate BETWEEN @DateFrom AND @DateTo
UNION ALL
SELECT DISTINCT ItemCode FROM RDR1 WHERE DocDate BETWEEN @DateFrom AND @DateTo
UNION ALL
SELECT DISTINCT ItemCode FROM INV1 WHERE DocDate BETWEEN @DateFrom AND @DateTo
UNION ALL
SELECT DISTINCT ItemCode FROM DPI1 WHERE DocDate BETWEEN @DateFrom AND @DateTo
SELECT ItemCode,ItemName FROM OITM
WHERE ItemCode COLLATE DATABASE_DEFAULT NOT IN
(SELECT DISTINCT ItemCode FROM #temp WHERE ItemCode IS NOT NULL)
ORDER BY ItemCode
DROP TABLE #temp
Just amend the variable @DateFrom and @DateTo on line 3 and 4 of my query with your intended date range.
Best Regards,
Hendry Wijaya

Similar Messages

  • Supplier Invoice with Items without Purchasing

    Hi
    We would like to know if we want to import supplier invoices with items and there is no Purchasing module.
    How items would be validated. Can this be done through item validation org and if yes, what setups are required and in which module.
    Regards,
    Ish

    From above cases, first 3 cases is ok and i know how to process with all CIN related things.But i am little confused in the 4th case.
    Whether we need to mention the tax code in PO?
    1. If no, whether we need to add up the tax amount to the material basic price and then raise the PO?
    2. If yes, how the tax amount postings will be done since we will not be posting the excise invoice in j1iex?
    I think u will require the tax code where the excise duty is captured in inventories like JMIP condition types of excise so that it would get added to stock during GR and during invoice u will pay this tax to the vendor.
    As u donot take credit u don't have to capture the excise invoice as .

  • Add Item to a delivery without reference to a sales order

    Hello everybody,
    I'm trying to add an item to an existing delivery via VL02n without reference to a sales order but every time the following error message appears: "You cannot add this item to the delivery".
    What settings do i need in order to that? (material type, delivery type, item category group,..etc..)
    Could anyone help me?
    Thank for your attention.
    Regards,
    A.

    Hi!
    Its not feasible to add a new line item without reference, becuase in one of the user exits such a code would have been written to prevent adding line item without refernec.
    This is done to ensure that a standard availabilty check, pricing and infostructure updates are done. Otherwise, after billing the report of Profitabilty will not come correct and will lead to more problems.
    So my suggestion would be not to add the line item withour referencing to the sales order.
    SAP provides the way of unreferincing through a seperate delivery type called LO. So if you want to create a delivery without refernce, you can use delivery type LO or some Z version of it.
    Hope this helps,
    Abhishek

  • Purchasing info records for PO-items without material master

    Hi gurus,
    I would like to have the system automatically determine certain settings (e.g. reminder/urging data).
    For PO-items with material master there is no problem, because all information can be stored in the purchasing info record, and are automatically found when I enter the material number.
    For items without material number/master I tried to generate a info record for the material group. When I enter the no. of the info record, everything works fine. But the info record is not automatically found, if I only enter the material group no.
    Is there any way to make the system find the info record by itself?
    Thanks
    Alicia

    Thanks to both of you!
    Priyanka:
    How can you create a source list for a material group? I thought this was possible for materials only!?
    Of course, you cannot have more than one info record at a time for a material group. But one would be enough for me...
    Dhruba:
    Thanks for the advice, but I know how to manually select a info record. The point is, I'd like to have the system determine it according to the material group I enter.
    Any other ideas?
    Alicia

  • Inactive Item report to show Item bought within a specific period and not sold within a specific period by whse and have stock

    Hi
    I'm trying to come up with query report to show Inactive Item bought within a specific period and not sold within a specific period by whse and have stock
    The report should show  Item Number, Item Name ,Item cost,Retail Price [Based on a price list], Qty in Whse, Last Purchase Date, Last sale Date etc.
    e.g item bought between 2011-2013 and have not been sold with the same date range or the last 12 months.
    Regards
    Brian Ndunda.

    Hi,
    Try this query:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate] FROM OITM T0  left JOIN INV1 T1 ON T0.ItemCode = T1.ItemCode left JOIN OINV T2 ON T1.DocEntry = T2.DocEntry WHERE T1.[Quantity] is null and  T0.[OnHand] >0 GROUP BY T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate]
    Thanks & Regards,
    Nagarajan

  • How to find open SO Items with tax code for a particular day?

    Dear all
    If i want to see all open SOs(items), with tax code for a particular day, how to find using table VBAP in SE16?
    Please guide me
    Edited by: Julius Bussche on Mar 3, 2009 11:10 PM
    Please use descriptive subject titles and the search

    Hi GB,
    Its always better to see through the standard reports , as you will be able to see the aditional info as well.
    In the case of table in se16 you will be able to see one table at a time and then you need to manually figure out the fields that required.
    For example if you want to see the sales order details through tables then
    1.You have to go to VBAK to see the document type and then you need to go to VBAP to see the items , it means that you need to access 2 tables for this simple thing ....
    In standard reports there will be lot of joins between the tables and you can view the data more elobarately as weel.
    Note : In general if you want to see the complete details of the documents(open), then pls use the reports.
    Regards,
    Vvieks

  • Error: Automatic tick in free Item in purchase order on line for specific vendor

    Hello All,
    Sales order is created then running mrp through MD01,requisitions are created.while creating purchase order for a particular vendor it is automatically ticking on free item indicator and giving error as material is not maintained in the plant (XXX) Free trade. while PR is not created for plant(XXX).
    i have checked they are not doing any transaction in plant (xxx).
    Please do needful in above issue.

    Hi all ;
    Can you share screen-shoots for your sales document ?
    1-What is your sales document type ? Go to VOV8 find it and share.
    2-What is your item category for this sales order? Go to VOV7 find it and share us.
    3-What is your schedule line ? Go to VOV6 find it and share us.
    Regards.
    M.Ozgur Unal

  • "All items from purchase order cannot be invoiced"

    Hello,<br />
    <br />
    I'm on a SRM 7.0 SP 5 system (ext-classic scenario). Here i try to create an invoice with reference to a Purchase Order, but none of my Purchase Orders can be used for reference. I get the following warning message 'All items from purchase order cannot be invoiced'.<br />
    <br />
    - Created via POWL (create with reference -&gt; invoice/credit memo) i always get the warning message 'All items from purchase order cannot be invoiced'. And no items are converted / can be used for invoicing. Additionally when i use the search option 'find purchase order' within the create invoice transaction i can not find any purchase order to use, it shows 'There is no search result' while there are plenty purchase orders marked with 'invoice expected'.<br />
    <br />
    I am able to create invoices without reference.<br />
    <br />
    I tried vendors set up only for 'invoice expected' and 'GR', 'invoice expected' / 'GR' / 'GR-based-IV' and 'invoice expected' only none of them works, indicators set on vendor master are correctly used on the created purchase order. Outputting PO doesn't make any difference neither.<br />
    <p />
    I have not set up the following (do i need to?):<br />
    - Deactivated the 'CRME' transaction type, no Credit Memo transaction type has been configured/is active.<br />
    - I have not defined the 'INV' transaction type as a follow-on document for my ECPO transaction type within the define transaction type transaction.<br />
    - Tollerances<br />
    <br />
    <b>edit</b> -&gt; i've already searched thorougly for SAP notes but no note seems to cover this particular problem.<br />
    <br />
    Help is very much appreciated

    Solved! Added SYS attribute for back-end system in organisational scheme.

  • Reg.Purchase order against sale order( E )

    Dear Experts
    I configured PO against cost centre (K - Cost center and G/L A/c is created) and it is working.But I want to configure against sale order (E).what is the configuration required. Pls advise in details
    Thanks
    Rajakumar.K

    Dear Raja,
    Third-party order processing (for direct-to-customer delivery/drop shipment) is triggered when a sales order containing a third-party item is created.
    When this occurs, the system automatically generates a purchase requisition item of the category u201Cthird-partyu201D for each delivery schedule line of the sales order item.
    This requisition item is converted into a purchase order (PO) item. Depending on the confirmation control key, the quantities/dates in the sales order are confirmed when the PO is created or an order acknowledgment is maintained.
    If you create a third-party item without referencing a requisition generated from a sales order, this is not third-party order processing in the foregoing sense: a matching-up of the data between the SD sales order and the purchase order cannot be carried out in such cases!
    Sales Order
    In the standard system, the sales order item for the third-party process has the item category TAS (this is found automatically if the item category group BANS has been set in the material master, or it can be changed manually). In the standard system, the schedule line category CS is found for the item category TAS. It is specified in Customizing for the schedule line category CS that a purchase requisition (type NB) with the item category '5' (third-party) and account assignment category 'X' is generated.
    The number of the requisition that is generated can be displayed via the delivery schedule lines in procurement.
    If a PO is generated from this requisition, it can be seen in the document flow for the SD sales order (Environment  Document flow).
    Purchase Requisition
    The requisition is generated via the function module ME_REQUISITION_EXT. An important characteristic is that the field EBAN-ESTKZ (creation indicator) contains a 'V'. If a third-party requisition is created in dialog mode, this field does not contain the indicator u2018Vu2019 u2013 that is to say, this is not a third-party process in the sense defined. A source determination process is carried out at the time of creation. The purchase order units found during this process are adopted! The account assignment, containing the number, item, and schedule line of the sales order, cannot be changed in the requisition. The account assignment is the u2018pointeru2019 between the requisition and the SD order!! Since Release 4.6, the delivery address cannot be changed either. The address of the goods recipient (ship-to party) from the SD order is adopted as the delivery address (caution: this can be located both at header and item level in the SD order).
    There is a requisition item for each delivery schedule line in the sales order!
    Purchase Order
    Purchase order items generated from the above requisitions contain EKPO-STATU = 'V'. The delivery address comes directly from the sales order (see LMEPOF3T MEPO_ITEM_FILL_ADDR) and cannot be changed. Neither can the account assignment be changed; here too it is the 'pointeru2019 between the PO and the sales order. In the standard system, the account assignment category is 'X', with KZVBR = ' '. Since the account assignment is located at item level, you must not convert several third-party requisitions into a single PO item, otherwise the update of the sales order is liable to fail!
    An 'actual' goods receipt does not take place with regard to a third-party item. The 'WEPOS' indicator is not set for the item categories 'S', but can be set manually. The posting of a GR results merely in a value update here. The entry of a vendor invoice can be made dependent on the prior entry of a GR. In the third-party process, this only makes sense if you wish to prevent the customer from receiving an invoice before having received the goods. A goods receipt should be recorded when the vendor reports the outward delivery.
    At the time of saving, the document flow and confirmations are updated in the SD order. If problems should arise on the SD side due to changes (e.g. the customer has been blocked), an error message is issued here first!
    In the case of third-party items generated without reference to a 'third-party requisition', i.e. the item category u2018Su2019 is merely entered manually, there can be no update between SD order and purchase order. Here, for example, the delivery address is not read from the sales order u2013 it must be entered manually (mandatory field).
    Sanjeev

  • Can you add a Purchase Order with Sales Order as its Base Type using DI-API

    Is it possible to set the basetype on a PurchaseOrder document line to 17 to create a document as you would using the Procurement Confirmation Wizard in the UI?
    I am using 8.81 SP00 PL09.

    Anyone?
    We already have code to automatically generate Sales Orders using the DI-API, and if we could automate the create of the Purchase Orders as well, it would save a lot of end-user time.
    We would like to do it with the Base/Target references set so that end users can navigate between them in the UI.
    You can do it with the Procurement Confirmation Wizard, and I would like to know if it is possible to replicate this functionality through the DI-API or if I should move forward by just creating the Purchase Orders without reference to the Sales Order and using a UDF to tie them together.

  • Alternative items on Purchase Order

    Hi Experts:
        I have a question regarding the alternative items on Purchase order. If alternative item A2 is setup for item A1 from Vendor XYZ, and if we place a PO with XYZ for item A1 but they ship item A2: can we receive A2 in stock on the initial PO for A1? Dose SAP have these kind of solutions?
    Thanks and best regards
    Xincheng JIN

    Hi,
    there is one good solution for this sort of requirement...However, the limitations are there; may be suitable for example, we order for envelopes from vendor.  You may order for one type of envelope and vendor may send other type...size may be the same, one envelope with window for address and other type may not have a window....similar such situations can be easily address using the standard SAP's below example: (I implemented this already in 2 projects previously)
    http://help.sap.com/saphelp_47x200/helpdata/en/9f/fb79385feddf6ae10000009b38f8cf/frameset.htm
    Example: Configurable Materials in Purchasing
    You are responsible for procuring office supplies for your company, including envelopes. A printing firm supplies you with envelopes featuring your company logo in various sizes, with or without an address window.
    In order not to have to create separate material master records for every possible combination (e.g. C5 with window, C6 without window), you wish to use a configurable material.
    You must carry out the following activities for a configurable material:
    Create characteristics
    Create class
    Create material
    Create configuration profile
    Create Characteristics
    You define the criteria you use to differentiate between the variants of a material (in this case, the size of the envelope and the address window) by means of characteristics. You must create a characteristic for each criterion under Logistics ® Central Functions ® Classification System ® Master Data ® Characteristics Management.
    Characteristic: Size of envelope
    Enter size_of_envelope in the field Characteristic.
    Choose Create.
    Enter the following data on the tab page Basic Data:
    · Description: Size of envelopes
    · Data type: Character format
    · Number of characters: 20
    This indicates how many characters a characteristic value may comprise.
    · Select the Single value indicator in the area Value assignment.
    If you set the Single value indicator, one value only may be assigned to the characteristic. For example, only one size may be chosen when you specify the dimensions of the envelopes that are to be ordered in a PO.
    Enter the following data on the tab page Values:
    · Enter possible values for the characteristic:
    Characteristic value
    Description
    DIN C4
    229 mm x 324 mm
    DIN C5
    229 mm x 162 mm
    DIN "Langhülle"
    218 mm x 114 mm
    DIN C6
    162 mm x 114 mm
    · Select the Additional values indicator.
    If this indicator is selected, you may also specify values that you have not yet defined here when assigning values to the characteristic.
    Choose the class type 300 (variants) on the tab page Restrictions.
    Choose Save.
    Characteristic: Address window in envelope
    Enter window_in_envelope in the field Characteristic.
    Choose Create.
    Enter the following data on the tab page Basic Data:
    · Description: Address window in envelopes
    · Data type: Character format
    · Number of characters: 4
    · Select the Single value indicator in the area Value assignment.
    Enter the following data on the tab page Values:
    · Values of characteristic: yes , no
    · Do not select the Additional values indicator.
    Choose the class type 300 (variants) on the tab page Restrictions.
    Choose Save.
    Create Class
    You group several characteristics to form a class. The class is then assigned to a material.
    Choose Logistics ® Central functions ® Classification system ® Master data ® Class management.
    Enter the following data on the initial screen:
    · Class : Envelope
    · Class type: 300 (variants)
    Choose Create.
    Enter a short description of the class in the Description field on the tab page Basic data: Envelopes with company logo.
    On the tab page Characteristics, enter the characteristics you created previously: size_of_envelope, window_in_envelope .
    Choose Save.
    Create Material
    Choose Logistics ® Materials management ® Material master ® Create material ® Create (general) ® Immediately.
    Enter the following data:
    · Material: Envelope
    · Industry sector: Office supplies
    · Material type: Configurable material
    Choose Enter.
    Choose the views Basic Data 1, Basic Data 2, Purchasing, and Accounting 1.
    Enter plant 0001.
    Enter the following data on the tab page Basic Data 1:
    · Short description of the material: Envelopes with company logo
    · Base unit of measure: KI (box)
    · Material group: Office supplies
    On the tab page Basic Data 2, check whether the Material is configurable is selected.
    On the tab page Purchasing, select the Subject to batch management indicator.
    On the tab page Accounting 1, enter the following data:
    · Valuation class:
    · Price control: V
    · Moving average price: 99.95
    Choose Save.
    Create Configuration Profile
    In the configuration profile, you assign characteristics to the material via a class.
    Choose Logistics ® Central functions ® Variant configuration ® Configuration profile ® Create.
    Select Material and choose Enter .
    Enter envelope in the field Material.
    Choose Goto ® Profile overview.
    Enter the following data:
    · Priority: 01
    · Profile name: Envelopes
    · Class type: 300 (variants)
    Choose Goto ® Class assignment and enter envelope in the Class field.
    Choose Save.
    Use in Purchasing
    You can now create, change and display this configurable material in all purchasing documents.
    Display
    If a configuration already exists for the material, you can display it in the purchasing document.
    Change
    If the configuration of the material was adopted from a sales order or from the material master record, you can change it in the purchasing document. This may be necessary if a material with the selected characteristic value cannot be supplied (is not available) and has to be changed to the material in the quotation.
    If you change the configuration of a material in the purchasing document:
    A new price determination process is carried out
    You do not change the original configuration in the sales order or in the material master record as a result
    Subsequent changes to the sales order or the material master record do not affect the configuration in the purchasing document
    Create
    If no configuration yet exists for a configurable material, you can create one in the purchasing document. This may be necessary, for example, if a configurable material is to be ordered without reference to a sales order.
    Subcontracting items and the archiving of the characteristic values are not supported.
    For more information on configurable materials, refer to the section  LO Variant Configuration.

  • Automatic creation of Purchase req form sales order

    What are all the  settings required for automatic creation of purchase requisition  from sales order( from master data and spro)
    Can any one please help me out. Iam new to this topic

    Material master data: purchasing view must be updated with puchasing group and so on.
    sales data: the item categotu group is BANC
    Sales order: the standard customizing determine the TAB item category, in the related schedule line type there is the purchase requisition document.
    have a look to this link
    <a href="http://help.sap.com/saphelp_47x200/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm">http://help.sap.com/saphelp_47x200/helpdata/en/dd/5601d4545a11d1a7020000e829fd11/content.htm</a>
    Roberto

  • ATP,confirm quantity for Purchase Order related Sales Order

    Hi everybody,
    I have purchase requisition related sales order item. I created purchase order with this PR.
    I entry confirmation date and quantity on the PO.
    Sales order item's delivery date equal to purchase order item's confirmation date.
    Sales order item's confirmed quantity eq purchase order item's confirmed quantity. It is ok for me.
    But, goods receipt not do yet for this purchase order and sales order stock = 0.
    If I run VL10N for this sales order, I can create delivery.
    I wants to see availilable sales order stock item on the VL10N items. How can I see?
    or
    If no goods receipt for sales order items then sales order item confirmed quantity can equal 0. How can I do?
    Best regards
    Gulay Celik

    Hi
    You can meet your requirement in multiple ways
    1) Modify the requirement routine for copy control from Sales order to Delivery  that DO not create the delivery for third party orders unless the GR is posted for the respective sales order.
    2) IF you have implementded Inbound Delivey functionality in your system, You can change the availabiltity situation every time you modify the GR dates and times. Modify the PO user exit that when ever a new confirmation Key LA is entered in the purchase order it goes and updates the schdule line dates and quantities in the order based on the dates entered in the LA confirmation key.
    and even if delivey gets created also what is the problem ? The GI cannot be posted though unlsess there is sufficient stock.

  • Material Return from 542 movement type without purchase order

    HI Expert
    I have a problem regaring material return from vendor through 542 mov type against purchase order.
    when i transfer material to vendor with mov type 541. and after grv if we return material from vendor against purchase order.
    system doesnot allow to return material against purchase order. it allows mov type 542 for returning material from venodr without pruchase order.
    Suppose we have 10 quality for a component to transfer vendor we take grv and issue 5 qty through 543 move type automatically. if we want to take return 5 remaining qty from vendor against purchase order .
    system doesnot allow to return component from vendor against purchase order.
    but allow  to return component from vendor without purchase order.
    vendor stocks becomes less but purchase order still open for open quantity.
    how we could control vendor's returing material with the reference of purchase order after grv.
    with regards
    sanjay agrawal

    HI,
    Are you creating return Po for subcontracting vendor with item category L.?
    we used movement type 541 to send material to vendor ,now you want movement type 542 in system means take back from vendor?
    I don't think so it will make work and make any sense
    why you are not adjust your component with subcontracting adjustment in sap mm
    check following link
    [http://help.sap.com/saphelp_470/helpdata/en/4d/2b908943ad11d189410000e829fbbd/content.htm]
    Regards
    Kailas Ugale

  • Simple FD for generating ALV report using purchase order or sales order

    Can anybody send me a simple FD for generating ALV as well as interactive report for purchase order and sales order

    On the both the Sales Pricing Condition type and the Purchase Pricing condition type there is a field called Ref.condit.type. 
    For example you have a sales pricing condition PR00 with value $10. In your pricing condition in MM for example PB00 you enter PR00 in the Ref.condit.type. The value for PB00 will now be $10.
    Apart from this i do not think there is any standard configuration available in SAP for this. Please refer to SAP Note-95024. You may also consider to write your own logic in the PO Exit to derive the sales order pricing in PO.

Maybe you are looking for