Item Warehouse

Hi All,
Can someone provides me a sample of howto set the GL Account for warehouse?
My code below is returning the error message "Sales credit account not defined for this item.  [OITW.ARCMAct] , 'Product1' "
rszGLCode="4010000"
            item.DefaultWarehouse = "01"
            item.WhsInfo.SetCurrentLine(0)
            item.WhsInfo.RevenuesAccount = rszGLCode
            item.WhsInfo.ExpensesAccount = rszGLCode
            item.WhsInfo.SalesCreditAcc = rszGLCode
            item.WhsInfo.PurchaseCreditAcc = rszGLCode
Or can you point me out what did i do wrong?
Regards,
David

Hi Ganesh,
Does it mean if i set the item by Item level, there is no need to have the Sales/Purchase credit account set?
I have look through all the Item property in the SDK, i wasn't be able to figure out what's the property for Sales/Purchase credit account.
Can you please advise?
I noticed that, If i dont set the sales/purchase credit, it will default to what have been set for default warehouse before.
David

Similar Messages

  • Query for item warehouses stock in a row

    hi all,
    How to retreive item warehouse stock in a row using query ?
    SELECT T0.ItemCode, T1.ItemName, T2.ItmsGrpNam,
    (Select WhsCode from OITW Where
    WhsCode=T0.WhsCode and ItemCode=T0.ItemCode) as 'Wh',
    (Select OnHand From OITW Where
    Whscode = T0.WhsCode and Itemcode=T0.ItemCode) as 'Whstck'
    FROM OITW T0  INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode INNER JOIN OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod
    WHERE T0.ItemCode NOT IN 'a-item'AND
    T2.ItmsGrpNam LIKE '%%test%%'
    and T0.Onhand > 0
    ORDER BY T0.ItemCode
    Anyone correct query so that it will retrieve item warehouse stock in a single row.
    Thanks
    Jeyakanthan

    I have tested your query, the result is just like you wish. The code can be simplified to:
    SELECT T0.ItemCode, T1.ItemName, T2.ItmsGrpNam, T0.WhsCode as 'Wh',T0.OnHand as 'Whstck'
    FROM DBO.OITW T0 
    INNER JOIN DBO.OITM T1 ON T0.ItemCode = T1.ItemCode
    INNER JOIN DBO.OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod
    WHERE T0.ItemCode NOT IN ('a-item') AND T2.ItmsGrpNam LIKE '%[%test%]%'
    and T0.Onhand > 0
    ORDER BY T0.ItemCode, T0.WhsCode
    If you want each item has only one row and warehouse on hand column-wised, you have to use as much as SELECT for each column in according to your number of warehouses. It would be look like this one:
    SELECT T0.ItemCode, T0.ItemName, T1.ItmsGrpNam,
    (SELECT OnHand FROM OITW WHERE ItemCode = T0.ItemCode AND WhsCode Like 'Whs1') AS 'Whs1 On Hand' ,
    (SELECT OnHand FROM OITW WHERE ItemCode = T0.ItemCode AND WhsCode Like 'Whs2') AS 'Whs2 On Hand' ,
    (SELECT OnHand FROM OITW WHERE ItemCode = T0.ItemCode AND WhsCode Like 'Whs3') AS 'Whs3 On Hand'
    FROM DBO.OITM T0 
    INNER JOIN DBO.OITB T1 ON T1.ItmsGrpCod = T0.ItmsGrpCod
    WHERE T0.ItemCode NOT IN ('a-item') AND T1.ItmsGrpNam LIKE '%[%test%]%'
    and T0.Onhand > 0
    ORDER BY T0.ItemCode
    Thanks,
    Gordon

  • Another user-modified table 'Item-warehouse' (OITW)

    Hi, experts,
    when I updated a item master data, it appears the error message "Another user-modified table 'Item-warehouse' (OITW)", How to fix it?
    thanks...

    Hi,
    Try to submit this issue to SAP support. They could have experiece this issue. A corrupted data is possible one of error cause.
    Rgds,

  • Child Item Warehouse in Production Orders

    In a Production Order, I am trying to change the child item warehouses when the parent item warehouse is changed.  I created a UDV that is set in the child item warehouse field and triggers when the parent item warehouse is changed.
    SELECT $[OWOR.Warehouse]
    The error I get is:
    Internal error 'Items - Warehouse' (OITW)(-2118) occured [Message 131-183.
    What could be causing this error?

    Hi,
    Try Below
    $[$78.1]
    and refresh it on item code.
    Regards
    Deepak Tyagi

  • KIT Item Warehouse Info

    Hi All,
    We are importing Orders in ENTERED status, when we book the orders, it populates WAREHOUSE Information in SHIPPING TAB automatically for normal items. But when we book the order for KIT item, warehouse information is not brought up. Can you please tell any solution to it.
    Thank
    J

    I got the answer, Default Shipping organization was missing in SHIPPING TAB.
    Thanks
    Rab Khan

  • How to erase the definition of a standard warehouse within item master data

    Dear Community,
    I got a short question. We want to use the user definition in order to pick the right warehouse when we create a purchase or any other kind of document.
    Right now the customer defined the standard warehouse within the item master data.
    In order to use the definition stored within the user data it seems as if we have to delete the standard-entry within the item master data.
    So far I could not find a possibility to erase that.
    Can you help me with that problem??
    Cheers, daniel

    If you have nos of records.then make CSV file for DTW and update all item warehouse in item master.
    if you get any issue form will help you .
    i have done same many times .
    manually:-
    Add another warehouse in master make default it then delete it so you can remove default option in master.
    Manually,
    Make a FMS whenever user select item(On every transaction Docuement) then warehouse field become blank and blank warehouse we cant add the document so here user select warehouse which he want.
    Thanks
    Manvendra Singh Niranjan

  • How to change warehouse code in BOM child items on marketing documents

    Hi Every body!!
    I need some Help.
    I am importing some sales documents from an 3th party POS application to SBO.
    I have several POS and each one is a warehouse on SBO. All sales items are Template BOM.
    I can change through SBO-UI the child items related information, but how can it do it through DIAPI???
    Thanks!
    Enriquillo Guigni
    Edited by: Enriquillo Guigni on Jun 29, 2010 12:28 AM

    Hi
    oItems = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
    oPT = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductTrees)
    opt.Items.Warehouse="WarehouseCode"
    oPT.Items.Add()
    RetVal = oPT.Add
    If RetVal <> 0 Then
            oCompany.GetLastError(ErrCode, ErrMsg)
            MsgBox(ErrCode & " " & ErrMsg)
    End If

  • How to manage multiple locations for Item (Management warehouse locations)

    Is there any way, with UDF and Formated Search, to manage multiple locations for Item in the same warehouse
    I must have several (at least 2) locations for the item in the Warehouse and that  i enter in goods receipt and have track of this location and search possibilities at sales order by item and WHS.
    read carefully and imagine how (Management warehouse locations)
    I added a user table '@Location' who linked to a user field 'U_Location in Item master data --> lnventory data line and an ather user field 'U_Location' in sales order
    I met the value of location in the table (list of locations for any warehouse), I select the location of each item while receiving merchandise in the user field of inventory data line (Item M data) and this value appears in the sales order 'U_Location' user field ( only the location value in the default warehouse for this Item)
    or
    create an user field 'location' in Good receipt PO to fill it while receiving merchandise that appears in the sales order to give possibility to find/select the location of the item at this order and in Item master data
    I think we will use all these tables and there is a relationship between all.
    @LOCATION
    PDN1
    OITM
    OITW
    OWHS
    RDR1
    a piece of code has been proposed, but it is not so simple
    SELECT T0.U_Location FROM [dbo].[OITM] T0 WHERE T0.ItemCode = $[$38.1.0]
    Thanks,
    Ouchen

    I believe you are talking about defining BIN's (locations) within a Warehouse.
    This is quite possible and has been explained / discussed on this Forum a few times in the past.  Though I am completely clear on how you would like to implement this I could give you some guidelines..
    Creating a @location UDT is correct to maintain list of warehouse locations
    UDF in Items - Warehouses (Item Master ..Inventory Data Tab..Rows)
    UDF in Marketing Document Rows (When you add a UDF here U_Location then this will available in all marketing documents, both AR and AP)
    You will define a location for an Item in the Item Master....
    In the GRPO..you can use FMS to list the location/s for the Item being received from the Item Master and the User can Select it.
    In the Sales Order, you can select the location from which the Item could be picked..
    Let me know if your process / ideas are different
    Suda

  • Importing Items in DTW

    Hi all,
    i am trying to import Items via DTW but i keep on getting errors that i have not specified the sales credit account and the purchase credit account.
    My GL account determination is set by Item Level.
    I have also created the items warehouse import sheet that has all the relevant account for the gl account determination by item level
    Plaese help!
    Bongi

    Hi Gordon,
    No i did not.
    I managed to import the items but i am having difficulty in updating the items warehouse info with the correct GL accounts.
    Please help
    Bongi

  • Check Sales order item quantity

    Hi,
    The scenario is such that our client has a specific production capacity for specific item group. and he wants that the sales order should not be added if the quantity of an item in the sales order goes beyond the specific limit for a particular day.
    Regards
    SAB

    Hi,
    Can you be more specific in your question
    Example : If you want to block booking of sales order for a limit i.e beyound this limit you should not book the sales order until you make the delivey
    Create a UDF in Items - Items WareHouse - and enter the limit value in that respective UDF
    and then create a SP to block the transactions
    With regards.
    Eshvanth Singh

  • Deleting a Warehouse

    I am sure this happens a lot and I would like to know if there's a resolution to this.
    we've accidentally added an * warehouse (when attempting to Find with *, someone just Added that warehouse). The bad news - new warehouses are automatically assigned to all items in our system which means we have every single item in SAP automatically assigned to this new asterisk warehouse.
    An obvious question is how to delete that warehouse without having to go through a painstaking process of unassigning every item from that warehouse one by one?
    Please tell me there's an easier way
    thanks
    Simon

    Hi Expert,
    I read this forum discussion and having some comment and appreciate if anyone can post to SAP support to get it correct:
    Let me explain my problem:
    1) I created a warehouse and set the general settings on Items portion to "ADD WAREHOUSES TO NEW ITEMS ADDED". 
    2) I created more than 2 thousand over items and therefore there are 2 thousand over * #n warehouse records in AITW (account item warehouse)
    3) However, when I realized that some warehouse accounting setup wrongly, by deleting the warehouse, the system will not remove data from AITW, SO I need to go ITEM MASTER  to delete item account setting one by one? 
    4) Actually, there is a shortcut way which I think it works:
       DELETE FROM AITW WHERE WAREHOUSE = XX 
    which I need to remove the warehouse item account table and remove warehouse and re-setup the same warehouse code with different a/c settings.
    From here, I would appreciate if someone can post to SAP SUPPORT to do the patches to allow the system to perform "when warehouse is being deleted, the AITW records should be automatically remove".
    thank you and regards,
    Joan.

  • Error adding an item

    Hi,
    Receiving this error creating an item but can't see what is exactly missing - I have looked at the warehouse codes and accounting g/l determination codes and have set them all.
    No expense account has been defined for the item [Items - Warehouse - Expense Account] , '01      -Test item'  [Message 173-4]

    Hi,
    There are over 100 threads with 173 error messages discussed before. However, none of them with the same sub error as -4.
    If you are sure you have defined Items - Warehouse - Expense Account under G/L determination, this could be a bug.
    What is your B1 version and PL?
    Thanks,
    Gordon

  • Last Purchase price Warehouse wise for given date

    Hai all....
                      I Want query report for Last purchase price for all items, warehouse wise for given date, i tried following query
    SELECT
    T10.ItemCode,
    (Select i1.Itemname from  oitm i1 where i1.itemcode = T10.[ItemCode]) as 'ItemName',
    T10.[Whscode],
    (SELECT T1.[DocDate] FROM OPDN T1 where  T1.[DocEntry] = max(T10.[DocEntry])) as 'Doc_Date',
    (SELECT T1.[DocNum] FROM OPDN T1 where  T1.[DocEntry] = max(T10.[DocEntry])) as 'GRPO_NO',
    (SELECT case avg(T2.[Rate]) when 0 then avg(T2.[price]) else (avg(T2.[price]) * isnull(avg(T2.[Rate]),1)) end  FROM PDN1 T2 where  T2.[DocEntry] = max(T10.[DocEntry])
    and T2.Itemcode = T10.[ItemCode]) as 'Unit_Price',
    (SELECT isnull(avg(T3.[Rate]),0) FROM PDN1 T3 where  T3.[DocEntry] = max(T10.[DocEntry])
    and T3.Itemcode = T10.[ItemCode]) as 'CurrencyRate',
    (Select isnull(max(OP1.Docnum),0) from OPCH op1 where op1.Docentry in
    (SELECT T12.[trgetEntry] FROM PDN1 T12 where  T12.[DocEntry] = max(T10.[DocEntry]))) as 'Invoice_No'
    FROM PDN1 T10 
    INNER JOIN OPDN T11 ON T10.DocEntry = T11.DocEntry and T11.[DocType] = 'I'
    where T11.Docdate <= '[%0]' and t10.targettype <> 21
    GROUP BY
    T10.[ItemCode],T10.[Whscode]
    this query working good but problem in this query is ,when the user put back dated entry means this report will show wrong value,bcz i write this query based on MAX of docentry please help me to solve this issue
    Edited by: Prasanna s on Mar 27, 2009 5:49 AM
    Edited by: Prasanna s on Mar 27, 2009 8:00 AM

    Hai ...
    please help me in this query,my question is not clear or??

  • Delete Item

    Hallo,
    i try to find all unused Items in the Item Master Database, so i can remove them.
    If i try to remove an Item from the Database which still exist, the Compiler gives me the following Information: "10001290 - You cannot remove item; linked transactions exist".
    SAP find this Information very quick, so i guess that there is no query over all possible tables, but an table or a field witch hold the Data if an Item was still used or not.
    Does anybody know, where i can find these information in the Database?
    Best regards,
    Sebastian

    Hallo Everybody, </br>
    </br>
    thanks for your responses. </br>
    </br>
    The Solution with the Table OINM does not work, because OINM shows also Items I can't delete. </br>
    </br>
    Like Vasu Natari said, i have to make an Query about all Tables. I posted this Query below, but don't know, if this Query is not to harsh. I do not know, if i realy need to check all of theese Tables. </br>
    </br>
    Does anybody know the original SAP Query to check if an Item can be delete? Or can anybody tell me, how and where i can take a view to the Sourcecode of SAP Business One, so that i can look by myself?</br>
    </br>
    Best Regards, </br>
    </br>
    Sebastian</br>
    </br>
    ====================================================================================================</br>
    </br>
    SELECT t1.ItemCode, t1.ItemName</br>
    FROM OITM t1 -- Item Master Data</br>
    Where t1.ItemCode NOT IN (SELECT t2.ItemCode FROM CPI8 t2 WHERE t2.ItemCode IS NOT NULL) -- A/P Correction Invoice - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t3.ItemCode FROM CPI1 t3 where t3.ItemCode IS NOT NULL) -- A/P Correction Invoice - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t4.ItemCode FROM CPV8 t4 where t4.ItemCode IS NOT NULL) -- A/P Correction Invoice Reversal - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t5.ItemCode FROM CPV1 t5 where t5.ItemCode IS NOT NULL) -- A/P Correction Invoice Reversal - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t6.ItemCode FROM RPC1 t6 where t6.ItemCode IS NOT NULL) -- A/P Credit Memo - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t7.ItemCode FROM DPO1 t7 where t7.ItemCode IS NOT NULL) -- A/P Down Payment - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t8.ItemCode FROM PCH8 t8 where t8.ItemCode IS NOT NULL) -- A/P Invoice - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t9.ItemCode FROM PCH1 t9 where t9.ItemCode IS NOT NULL) -- A/P Invoice - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t10.ItemCode FROM CSI1 t10 where t10.ItemCode IS NOT NULL) -- A/R Correction Invoice - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t11.ItemCode FROM CSV8 t11 where t11.ItemCode IS NOT NULL) -- A/R Correction Invoice Reversal - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t12.ItemCode FROM CSV1 t12 where t12.ItemCode IS NOT NULL) -- A/R Correction Invoice Reversal - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t13.ItemCode FROM RIN1 t13 where t13.ItemCode IS NOT NULL) -- A/R Credit Memo - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t14.ItemCode FROM DPI1 t14 where t14.ItemCode IS NOT NULL) -- A/R Down Payment - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t15.ItemCode FROM CSI8 t15 where t15.ItemCode IS NOT NULL) -- A/R Invoice - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t16.ItemCode FROM INV8 t16 where t16.ItemCode IS NOT NULL) -- A/R Invoice - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t17.ItemCode FROM INV1 t17 where t17.ItemCode IS NOT NULL) -- A/R Invoice - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t18.ItemCode FROM ADO1 t18 where t18.ItemCode IS NOT NULL) -- A/R Invoice (Rows) - History</br>
    --AND t1.ItemCode NOT IN (SELECT t19.ItemCode FROM ODIB t19 where t19.ItemCode IS NOT NULL) -- Batch No. for Item</br>
    AND t1.ItemCode NOT IN (SELECT t20.ItemCode FROM OIBT t20 where t20.ItemCode IS NOT NULL) -- Batch No. for Item</br>
    AND t1.ItemCode NOT IN (SELECT t21.ItemCode FROM IBT1 t21 where t21.ItemCode IS NOT NULL) -- Batch Number Transactions</br>
    AND t1.ItemCode NOT IN (SELECT t22.ItemCode FROM OSRD t22 where t22.ItemCode IS NOT NULL) -- Batches and Serial Numbers</br>
    AND t1.ItemCode NOT IN (SELECT t23.ItemCode FROM CIN1 t23 where t23.ItemCode IS NOT NULL) -- Correction Invoice - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t24.ItemCode FROM OINS t24 where t24.ItemCode IS NOT NULL) -- Customer Equipment Card</br>
    AND t1.ItemCode NOT IN (SELECT t25.ItemCode FROM AINS t25 where t25.ItemCode IS NOT NULL) -- Customer Equipment Card - History</br>
    AND t1.ItemCode NOT IN (SELECT t26.ItemCode FROM OSCN t26 where t26.ItemCode IS NOT NULL) -- Customer/Vendor Cat. No.</br>
    AND t1.ItemCode NOT IN (SELECT t27.ItemCode FROM DLN1 t27 where t27.ItemCode IS NOT NULL) -- Delivery - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t28.ItemCode FROM DRF1 t28 where t28.ItemCode IS NOT NULL) -- Draft - Rows</br>
    --AND t1.ItemCode NOT IN (SELECT t29.ItemCode FROM ODSR t29 where t29.ItemCode IS NOT NULL) -- Draft Serial Numbers for Items</br>
    AND t1.ItemCode NOT IN (SELECT t30.ItemCode FROM ENT1 t30 where t30.ItemCode IS NOT NULL) -- Entry - Rows </br>
    AND t1.ItemCode NOT IN (SELECT t31.ItemCode FROM IGE1 t31 where t31.ItemCode IS NOT NULL) -- Goods Issue - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t32.ItemCode FROM IGN8 t32 where t32.ItemCode IS NOT NULL) -- Goods Receipt - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t33.ItemCode FROM IGN1 t33 where t33.ItemCode IS NOT NULL) -- Goods Receipt - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t34.ItemCode FROM PDN8 t34 where t34.ItemCode IS NOT NULL) -- Goods Receipt PO - Itmes in Package</br>
    AND t1.ItemCode NOT IN (SELECT t35.ItemCode FROM PDN1 t35 where t35.ItemCode IS NOT NULL) -- Goods Receipt PO - Rows</br>
    --AND t1.ItemCode NOT IN (SELECT t36.ItemCode FROM RDP8 t36 where t36.ItemCode IS NOT NULL) -- Goods Return - Itmes in Package</br>
    AND t1.ItemCode NOT IN (SELECT t37.ItemCode FROM RPD1 t37 where t37.ItemCode IS NOT NULL) -- Goods Return - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t38.ItemCode FROM ASCL t38 where t38.ItemCode IS NOT NULL) -- History</br>
    AND t1.ItemCode NOT IN (SELECT t39.ItemCode FROM AMR1 t39 where t39.ItemCode IS NOT NULL) -- Inventory Revaluation - History - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t40.ItemCode FROM MRV1 t40 where t40.ItemCode IS NOT NULL) -- Inventory Revaluation Information Array</br>
    AND t1.ItemCode NOT IN (SELECT t41.ItemCode FROM WTR8 t41 where t41.ItemCode IS NOT NULL) -- Inventory Transfer - Itmes in Package</br>
    AND t1.ItemCode NOT IN (SELECT t42.ItemCode FROM WTR1 t42 where t42.ItemCode IS NOT NULL) -- Inventory Transfer - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t43.ItemCode FROM AIT1 t43 where t43.ItemCode IS NOT NULL) -- Item - Prices - History</br>
    AND t1.ItemCode NOT IN (SELECT t44.ItemCode FROM ITW1 t44 where t44.ItemCode IS NOT NULL) -- Item Count Alert</br>
    AND t1.ItemCode NOT IN (SELECT t45.ItemCode FROM MIN2 t45 where t45.ItemCode IS NOT NULL) -- Item Information of MI</br>
    --AND t1.ItemCode NOT IN (SELECT t46.ItemCode FROM AITM t46 where t46.ItemCode IS NOT NULL) -- Items - History</br>
    --AND t1.ItemCode NOT IN (SELECT t47.ItemCode FROM ITM1 t47 where t47.ItemCode IS NOT NULL) -- Items - Prices</br>
    --AND t1.ItemCode NOT IN (SELECT t48.ItemCode FROM OITW t48 where t48.ItemCode IS NOT NULL) -- Items - Warehouse</br>
    --AND t1.ItemCode NOT IN (SELECT t49.ItemCode FROM AITW t49 where t49.ItemCode IS NOT NULL) -- Items - Warehouse - History</br>
    AND t1.ItemCode NOT IN (SELECT t50.ItemCode FROM RPC8 t50 where t50.ItemCode IS NOT NULL) -- Items in Package - A/P Credit Memo</br>
    AND t1.ItemCode NOT IN (SELECT t51.ItemCode FROM DPO8 t51 where t51.ItemCode IS NOT NULL) -- Items in Package - A/P Down Pmt.</br>
    AND t1.ItemCode NOT IN (SELECT t52.ItemCode FROM RIN8 t52 where t52.ItemCode IS NOT NULL) -- Items in Package - A/R Credit Memo</br>
    AND t1.ItemCode NOT IN (SELECT t53.ItemCode FROM DPI8 t53 where t53.ItemCode IS NOT NULL) -- Items in Package - A/R Down Pmt.</br>
    AND t1.ItemCode NOT IN (SELECT t54.ItemCode FROM CIN8 t54 where t54.ItemCode IS NOT NULL) -- Items in Package - Correction Invoice</br>
    AND t1.ItemCode NOT IN (SELECT t55.ItemCode FROM DLN8 t55 where t55.ItemCode IS NOT NULL) -- Items in Package - Delivery</br>
    AND t1.ItemCode NOT IN (SELECT t56.ItemCode FROM DRF8 t56 where t56.ItemCode IS NOT NULL) -- Items in Package - Draft</br>
    AND t1.ItemCode NOT IN (SELECT t57.ItemCode FROM IGE8 t57 where t57.ItemCode IS NOT NULL) -- Items in Package - Goods Issue</br>
    AND t1.ItemCode NOT IN (SELECT t58.ItemCode FROM ADO8 t58 where t58.ItemCode IS NOT NULL) -- Items in Package - History</br>
    AND t1.ItemCode NOT IN (SELECT t59.ItemCode FROM POR8 t59 where t59.ItemCode IS NOT NULL) -- Items in Package - Purchase Order</br>
    AND t1.ItemCode NOT IN (SELECT t60.ItemCode FROM IWZ3 t60 where t60.ItemCode IS NOT NULL) -- Items Last Revaluation Data</br>
    AND t1.ItemCode NOT IN (SELECT t61.ItemCode FROM IPF1 t61 where t61.ItemCode IS NOT NULL) -- Landed Costs - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t62.ItemCode FROM MSN3 t62 where t62.ItemCode IS NOT NULL) -- MRP Pegging Information</br>
    AND t1.ItemCode NOT IN (SELECT t63.ItemCode FROM MSN2 t63 where t63.ItemCode IS NOT NULL) -- MRP RUn Results</br>
    AND t1.ItemCode NOT IN (SELECT t64.ItemCode FROM WKO1 t64 where t64.ItemCode IS NOT NULL) -- Production Instruction - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t65.ItemCode FROM OWOR t65 where t65.ItemCode IS NOT NULL) -- Production Order</br>
    AND t1.ItemCode NOT IN (SELECT t66.ItemCode FROM WOR1 t66 where t66.ItemCode IS NOT NULL) -- Production Order - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t67.ItemCode FROM POR1 t67 where t67.ItemCode IS NOT NULL) -- Purchase Order - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t68.ItemCode FROM ORCM t68 where t68.ItemCode IS NOT NULL) -- Recommendation Data</br>
    AND t1.ItemCode NOT IN (SELECT t69.ItemCode FROM RDN8 t69 where t69.ItemCode IS NOT NULL) -- Returns - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t70.ItemCode FROM RDN1 t70 where t70.ItemCode IS NOT NULL) -- Returns - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t71.ItemCode FROM FCT1 t71 where t71.ItemCode IS NOT NULL) -- Sales Forecast Rows</br>
    AND t1.ItemCode NOT IN (SELECT t72.ItemCode FROM RDR8 t72 where t72.ItemCode IS NOT NULL) -- Sales Order - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t73.ItemCode FROM RDR1 t73 where t73.ItemCode IS NOT NULL) -- Sales Order - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t74.ItemCode FROM QUT8 t74 where t74.ItemCode IS NOT NULL) -- Sales Quotation - Items in Package</br>
    AND t1.ItemCode NOT IN (SELECT t75.ItemCode FROM QUT1 t75 where t75.ItemCode IS NOT NULL) -- Sales Quotation - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t76.ItemCode FROM SAL1 t76 where t76.ItemCode IS NOT NULL) -- Salida - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t77.ItemCode FROM SRI1 t77 where t77.ItemCode IS NOT NULL) -- Serial No. Trans. for Item</br>
    AND t1.ItemCode NOT IN (SELECT t78.ItemCode FROM OSRL t78 where t78.ItemCode IS NOT NULL) -- Serial Numbers</br>
    --AND t1.ItemCode NOT IN (SELECT t79.ItemCode FROM OSR1 t79 where t79.ItemCode IS NOT NULL) -- Serial Numbers for Items</br>
    AND t1.ItemCode NOT IN (SELECT t80.ItemCode FROM SCL2 t80 where t80.ItemCode IS NOT NULL) -- Service Call Inventory Expenses</br>
    AND t1.ItemCode NOT IN (SELECT t81.ItemCode FROM ASC2 t81 where t81.ItemCode IS NOT NULL) -- Service Call Inventory Expenses - History</br>
    AND t1.ItemCode NOT IN (SELECT t82.ItemCode FROM OSLt t82 where t82.ItemCode IS NOT NULL) -- Service Call Solution</br>
    AND t1.ItemCode NOT IN (SELECT t83.ItemCode FROM SCL2 t83 where t83.ItemCode IS NOT NULL) -- Service Call Travel / Labor Expenses</br>
    AND t1.ItemCode NOT IN (SELECT t84.ItemCode FROM ASC3 t84 where t84.ItemCode IS NOT NULL) -- Service Call Travel / Labor Expenses - History</br>
    AND t1.ItemCode NOT IN (SELECT t85.ItemCode FROM OSCL t85 where t85.ItemCode IS NOT NULL) -- Service Calls</br>
    AND t1.ItemCode NOT IN (SELECT t86.ItemCode FROM CTR1 t86 where t86.ItemCode IS NOT NULL) -- Service Contract - Items</br>
    AND t1.ItemCode NOT IN (SELECT t87.ItemCode FROM OSPP t87 where t87.ItemCode IS NOT NULL) -- Special Prices</br>
    AND t1.ItemCode NOT IN (SELECT t88.ItemCode FROM SPP1 t88 where t88.ItemCode IS NOT NULL) -- Special Prices - Data Areas</br>
    AND t1.ItemCode NOT IN (SELECT t89.ItemCode FROM SPP2 t89 where t89.ItemCode IS NOT NULL) -- Special Prices - Quantity Areas</br>
    AND t1.ItemCode NOT IN (SELECT t90.ItemCode FROM TRA1 t90 where t90.ItemCode IS NOT NULL) -- Transition - Rows</br>
    AND t1.ItemCode NOT IN (SELECT t91.ItemCode FROM OINM t91 where t91.ItemCode IS NOT NULL) -- Whse Journal
    ORDER By t1.ItemCode desc</br>

  • How to get the item stock for a date

    Hi all
    I need to get the item stock quantity on a date, but i don´t know if i can get it from a table or if i have to make a query to calculate it from the documents´lines. If you can help me please reply this post.
    Thanks

    Do you already know of table OINM (Warehouse table) - it is not documented in SAP-BO references?
    This table contains entries for each movement in stocks of your system. Here are some examples of fields in this table:
    BASE_REF document number of document affecting OITW.OnHand
    DocDate      date of this document
    ItemCode     Item of which the stock quantity is changed
    Dscription    name of item
    Warehouse  affected stock
    InQty       number of items added into stock (OITW.OnHand is increased)
    OutQty       number of items taken from stock (OITW.OnHand is decreased)     
    TransType   type of booking (see below)
    Balance      this is NOT the OITW.OnHand at the date of this booking;
                      it's something like the cumulated stock value in some currency
    To calculate the OnHand-value at a date of any of these bookings you have to
    sum up the incoming/outgoing quantities, e.g. (z.B. SUM(InQty) - SUM(OutQty)).
    Relation between the type of booking and the values in InQty / OutQty:
      ++ InQty/OutQty contain the number of items added to/taken from the stock;
      the number complies to the value OITW.OnHand is increased/decreased;      
      -- doesn't affect stock (InQty/OutQty = 0)
      ? missing documentation
    TransType InQty OutQty
    -2              ++     --         opening balance
    13      --       --         outgoing invoice
    13              --      ++          outgoing invoice without previous delivery note
    15              --      ++        delivery note
    18              --       --         incoming invoice
    20             ++      --         incoming delivery note
    58             ?        ?          inventory
    59             ++      --         stock receipt (without purchasing transactions)
    60              --      ++        goods issue (without sales transactions)
    67              --      ++        transfer between stocks
    67             ++      --         transfer between stocks
    I hope that I got your question right and that my hints will help you!
    Frank

Maybe you are looking for