Warehouse journal

Dear All,
is there a warehouse journal table available for non stock item like sales item or purchase item ?
Rajh

OINM - Warehouse Journal
Jeyakanthan

Similar Messages

  • OIVL query (warehouse Journal)

    Hi Everyone,
    First query below is working because the parameter is static, but if i set a dynamic parameter then it will return an error.
    SELECT 'CN TO PRIMARY WHs' as 'Type', A.CreatedBy, A.Transtype, A.DocDate, A.ItemCode, A.InQty, A.OutQty, A.Price, A.LocCode, A.SumStock, A.Usersign,
    CASE  WHEN A.Transtype = 13 THEN 'AR INVOICE'
    WHEN A.Transtype = 14 THEN 'ARCM'
    WHEN A.Transtype = 16  THEN 'RETURNS'
    WHEN A.Transtype = 60 THEN 'Goods Issue/Issue for Production'
    WHEN A.Transtype = 59 THEN 'Goods Receipt/Receipt from Production'
    WHEN A.Transtype = 20 then 'Goods Receipt PO'
    WHEN A.Transtype = 18 then 'A/P Invoice'
    WHEN A.Transtype = 10000071 then 'Inventory Posting'
    WHEN A.Transtype = 15 THEN 'Delivery 'ELSE 'Others' END AS Document_Type ,A.Base_Ref as Docnum
    FROM OIVL A
    WHERE A.[DocDate] >= '20140901' and A.Transtype NOT IN ('15', '59', '67') and A.LocCode not in ('LLD', 'THD')
    DECLARE @Date  = /* SELECT FROM dbo.OIVL A WHERE A.DocDate >= */  '[%0]'
    SELECT 'CN TO PRIMARY WHs' as 'Type', A.CreatedBy, A.Transtype, A.DocDate, A.ItemCode, A.InQty, A.OutQty, A.Price, A.LocCode, A.SumStock, A.Usersign,CASE WHEN A.Transtype = 13 THEN 'AR INVOICE'
      WHEN A.Transtype = 14 THEN 'ARCM'
      WHEN A.Transtype = 16  THEN 'RETURNS'
      WHEN A.Transtype = 60 THEN 'Goods Issue/Issue for Production'
      WHEN A.Transtype = 59 THEN 'Goods Receipt/Receipt from Production'
      WHEN A.Transtype = 20 then 'Goods Receipt PO'
      WHEN A.Transtype = 18 then 'A/P Invoice'
      WHEN A.Transtype = 10000071 then 'Inventory Posting'
    WHEN A.Transtype = 15 THEN 'Delivery 'ELSE 'Others' END AS Document_Type ,A.Base_Ref as Docnum
    FROM OIVL A
    WHERE A.Docdate >= @Date and A.Transtype NOT IN ('15', '59', '67') and A.LocCode not in ('LLD', 'THD')
    PS I also tried running it on A.Docdate >= [0%] but its not working.
    Any ideas?
    Thanks!
    Regards,
    Darius Gragasin

    Hi,
    Try this:
    DECLARE @Date as Datetime
    Set @date = /* SELECT FROM dbo.OIVL A WHERE A.DocDate >= */  '[%0]'  
    SELECT 'CN TO PRIMARY WHs' as 'Type', A.CreatedBy, A.Transtype, A.DocDate, A.ItemCode, A.InQty, A.OutQty, A.Price, A.LocCode, A.SumStock, A.Usersign,CASE WHEN A.Transtype = 13 THEN 'AR INVOICE'  
    WHEN A.Transtype = 14 THEN 'ARCM'  
      WHEN A.Transtype = 16  THEN 'RETURNS' 
    WHEN A.Transtype = 60 THEN 'Goods Issue/Issue for Production' 
      WHEN A.Transtype = 59 THEN 'Goods Receipt/Receipt from Production' 
      WHEN A.Transtype = 20 then 'Goods Receipt PO' 
    WHEN A.Transtype = 18 then 'A/P Invoice' 
      WHEN A.Transtype = 10000071 then 'Inventory Posting' 
    WHEN A.Transtype = 15 THEN 'Delivery 'ELSE 'Others' END AS Document_Type ,A.Base_Ref as Docnum 
    FROM OIVL A 
    WHERE A.Docdate >= @Date and A.Transtype NOT IN ('15', '59', '67') and A.LocCode not in ('LLD', 'THD')
    Thanks & Regards,
    Nagarajan

  • Inventory in warehouse report

    Hi all,
    Let's say I'm on january 25th and I'd like to run the Inventory in Warehouse Report  as per january 10th. Is there a way to acess the code of the report to run the query for a specific date (not for the current date as I'm getting it) ?
    Any idea would be appreciated.
    Best regards,

    Douglas,
    To get the code of this report you will have to use SQL Server Profiler.  Just start the service before trigerring the report and stop it there after and you should get the SQL.
    Another better way, would be to create a report by querying the OINM (warehouse journal) table. This table records all warehouse transaction and also has the date.
    <Font Color="Blue" Size=3>To understand the OINM table run this query
    </Font>
    SELECT T0.TransNum AS 'Transaction Number', T0.DocDate AS 'Posting Date', T0.ItemCode AS 'Item No.', T0.Dscription AS 'Item Description', T0.InQty AS 'Receipt Quantity', T0.OutQty AS 'Issue Quantity', T0.Warehouse AS 'Warehouse Code', T0.Balance AS 'Stock Balance' FROM  [dbo\].[OINM\] T0  WHERE T0.ItemCode = 'A00001' ORDER BY T0.TransNum
    <Font Color="Blue" Size=3>To get the stock by date, use the query below
    </Font>
    SELECT TOP 1 T0.ItemCode AS 'Item No.', T0.DocDate, T0.Balance AS 'Stock Balance' FROM  [dbo\].[OINM\] T0 
    WHERE T0.DocDate = '[%0\]'
    ORDER BY T0.TransNum DESC
    Note I have added '[%0\]' parameter for date selection presuming you will use this within SAP.
    Suda

  • Which table keeps recored of inventory transfers

    Hi All,
    I have items manage by serial number. i placed an inventory transfer of serial number items. Is there any table who keeps recode of  Inventory transfer specifically of serial number items.
    OWTR and WTR1 only shows the items and quantity but not the associated serial number attached with items in inventory transfer.
    Awais

    Every Inventory movement is recorded in the Warehouse Journal table OINM.  In addition as Jeya has mentioned detailson Serialized items are available in OSRI and SRI1.
    Please look at this report
    Inventory > Inventory Reports > Serial Numbers Transactions Report.
    Suda

  • Multiple OINM lines for one INV1 (or other document) line

    Hello,
    I'm trying to do report application using warehouse journal table (OINM) and I see that sometimes exists more than one line in OINM corresponding to one document line (eg. INV1). What is the reason of that multiplicity? Item at the position is managed by batches but only one batch is used in the document.
    Thanks for reply.
    K.

    Hello,
    If you using FiFo as stock valuation method, then it may happens, that for the same bacth number you have more than one fifo layers. (Please note batch is a property).
    Regards
    János

  • Possible to determine which FIFO layers used on an Invoice

    Hi,
    Is it possible to determine which FIFO layers were used when satisfying an invoice?
    Thanks
    Greig

    The information regarding the FIFO cost price exists in the OINM
    (Warehouse Journal) table under the fields Calculated Price and
    Open Quantity.
    check this if it helps :
    SELECT T0.ItemCode FROM OINM T0 INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode WHERE T0.CalcPrice = '0' and T1.EvalSystem ='F'
    Regards,

  • FIFO layers detail requirement

    Hi Team,
    I am facing problem for the development of costing of the fininshed
    goods whihc we are manfucturing in warehouse through production module .
    For my result purpose i need to know the detail of raw material whihc
    actually consumed and from whihc layers based on the FIFO concept.
    i am reffering to oinm table (warehouse journal) in whihc all the
    detial of the material flow is present but information related to
    layers from whihc the items are consumed actually ,
    this information is missing in oinm due to whihc my link
    development is not proper and i am
    facing problem to track the actual consumption FIFO wise.
    so kindly provide me the infromation how to get the data of layers 
    for eg. the layer information should be like
    GRPO 20(doc No OF GRPO) and 3(line no of GRPO 20)
    so that technical developer can easily identify the layer of the rawmaterial from oinm table for the consumed item.
    i am at live stage and customer requiremeent is
    suffering very much due to this missing information in oinm system
    table.
    amit

    Hi Amit
    The system uses a "Lot" to control the FIFO layers, although this is not physically represented by a separate table or structure. In the OINM table you will find a field called OpenQty which will indicate which FIFO layers (or costs) have not yet been consumed or sold either partially or in full. SAP Business One checks for OpenQty by date and consumes from the oldest "Lot" first. Writing a query or getting the "Lot" information could be tricky but I would suggest using the DocDate & DocTime with the OpenQty to determine what is still available and what production would consume.
    Kind regards
    Peter Juby

  • Difference in Excise Ledger

    Hallo Experts,
    Please give me solution to my problem
    I have 4 Excise warehouses  , GL Account determined by warehouse and separate Excise Outgoing payment account mapped to each warehouse.Journal entry is current from Sales order to Outgoing Excise invoice But when delivary copied to AR invoice entry posted to Default Outgoing Excise ledger ( ie in GL Determination window ) .Entry debited to one account but credit at AR Invoice in another account....
    waiting for replay
    Thanks & Regards
    Janeesh

    Hai Ashish,
    GL Managed by Warehouses
    I Have 4 ware houses
    Separate item master for each warehouses
    Separate GL Account created  and mapped for Outgoing Cenvat clearing account for each warehouses
                                                                    In GL determination (admin-setup-fiance-GL determination- general tab) only one GL Account mapping for warehouses
    My problem starts from creating AR invoice , up to creation of outgoing excises invoice , entry was current as per current GL account for particular warehouse , but in AR invoice GL account for outgoing excise occur as per GL determined account when transaction happened in any warehouse
    Thanks &Regards
    Janeesh
    Edited by: tgjaneesh on Jun 28, 2011 1:10 PM

  • Inventory - last purchase date

    This is my first post, so my apologies if all is not correct.
    We were recently taken over and the new owners are trying to put a realistic value on the stock and it has fallen to me to provide the information. I need to ascertain the age of the stock and could do this 2 ways if the information was available:
    1. Use the last purchase date to determine how long we have held the stock. Acceptable but the last purchase field in OITM is not the last purchase date. For items it is, for others it is the last stock transaction date and for the rest I have no idea what the date relates to.
    2. Use a last transaction date, if only SAP had one. Our old system had this date and it made life very simple.
    I can find dates for last issue, receipt and sale but not for production order transactions. If I could then I can get the information merging a few spreadsheets.
    A last transaction date must be stored somewhere, maybe in the financials?
    Any help would be gratefully received.
    Regards
    Stewart Clark
    We are using 2005 SP1 PL45.

    Stewart Clark,
    To expand on what Petr has mentioned most of the information you are looking for is available in SAP Business One.
    The Inventory posting list contains an entry for every inventory transaction that has been processed inclusing Goods Issue, Receipt, Delivery, Production, .....
    The table these values are stored is OINM (warehouse journal).  If you could manage using SQL you could query this table and get the details you need.
    Let me know if you need further assistance with anything to help you move forward
    Suda

  • DI API Deadlocks in SQL 2005 database server

    Hello All,
    I have an Issue, which is coming on large databases ( > 50GB) and number of users >  20.
    I have read the following notes
    1269591, 1489753, 1318311, 1231444 , 1344641 , 1316554
    also contributed in the following thread:
    Workaround:
    Each SAP B1 Client is using an addon, which do a WM (Warehouse management) based on WHSE Journal. Until upgraded to 2007 version, this was working fine, no issue came up only system was slow.
    Process with pseudo code like this
    'incoming cases - when an item is entering into the warehouse
    Add Logistics documents (action success = true)
    - start transaction
      - check Warehouse journal
      - record changes done by this document (based on oinm) into (UDT)
    - finish transaction
    'outgoing cases - where an item is carried out from the warehouse - create a self pick list example: sales order:
    start transaction
    - loop on every rows of the sales order
      - read ordered quantity
      - look for place where it is stored,
    - if found make  a reservation in (UDT)
      - add position to self created pick list  (UDT)
    finish  transaction
    'release from warehouse
    start transaction
      - look for pick list position (UDT)
      - reduce stock value (UDT)
      - update pick list  with packed quantity (UTD)
      - create delivery note
    finish  transaction
    Depending from activity the users receive various error messages like Could not commit transaction / Deadlock ...  / -2038 Internal error xxxx messages, when trying to access to UDT-s or any marketing documents, and the system is frozen. I go to activity monitor, and check and tell them which client is causing dead locks, they log off ,and can continue work or if the process runs to timeout, it sends the error message to SAP B1 Client.
    Also we have an addon which reads (only reads) data from database from OITM / OITW / and one of these UDT above. (queries against stock value from UDT). here we receive 2 type of error messages
    - Deadlock
    - Timeout
    I know these messages are coming from: other computers /Users are issueing documents in transaction.
    Any ideas to resolve this issue / has anybody happened this issue ?
    Every ideas, comments are welcome.
    The system is b1 2007 SP 01 PL 10. Average document position between 50-100.
    Solution Architect team? Any workaround?
    Regards
    János

    HI Janos,
    I also faced little bit same type of Issue in one of the project.
    Please look
    Link: [Large data processing Issue | SAP Hanging Problem using Transactions;
    After applying this my issue was resolved.
    regards:
    Sandy
    Edited by: Sandeep Saini | Roorkee | India on Sep 6, 2010 7:16 PM

  • Item master data table

    Hi All ,
    I have to update item code .so i want to know how can i update this . and i want to know if it is better to delete item data through SQL Back end .and what tables are linked  to item master data table .
    Thanks In advance
    Areeba Ali

    Hi,
    you can delete the item code using SQL statement thorugh backend using this sql query e.g. item code is B747400:
    delete from dbo.oitm where itemcode = 'B747400'
    if you delete it, the db will not consistent and no more support from SAP AG except you create new db and taken the opbal for the db.
    The warehouse journal, all created documents and history tables will not consistent anymore after the deletion.
    to prove it, you may check using this code:
    select itemcode,dscription from oinm where itemcode not in (select itemcode from oitm)
    select itemcode from oitw where itemcode not in (select itemcode from oitm)
    select itemcode from itm1 where itemcode not in (select itemcode from oitm)
    select itemcode from itw1 where itemcode not in (select itemcode from oitm)
    All of the tables involve in the above queries will be affected.  If the item never have any transactions, you can delete it directly using this step:
    1. search the item
    2. if the item is available then right click --> select remove
    JimM

  • Reporting Current FIFO Layer Cost

    Besides the Inventory Revaluation transaction, is there anywhere in the system that I can report the current FIFO layer cost?  My client has a multi-step manufacturing process and they'd like to know the current cost of their BOMs at any one time.  Is there a table where the FIFO layer info is stored?

    Martin,
    To my knowledge the only place from where SBO calculates the FIFO cost is based on quantity movements which it keeps track in the OINM table (Warehouse Journal).
    It does not seem to store the information anywhere else.  To know the FIFO layer info use the following SQL.  You can enter your ItemCode and Warehouse Code in place of 'xx' and 'yy'.
    SELECT transNum, openQty, CalcPrice from OINM
    where openQty > 0 and itemCode = 'xx' and  Warehouse = 'yy'
    ORDER BY transNum
    Let me know if you need any further help with this.
    Suda

  • Goods issued and delivered query

    I want to find out the quantity taken out of stock for a selection of items in a given month.  I can obviously create a query based on deliveries but we also issue some stock for internal use.  I'm struggling to identify the correct table.  I have located OITM (warehouse journal) but am not sure if this is the correct one.  Also I have been unable to work out which 'transaction type' I need if any.
    Any thoughts appreciated.

    Hi,
    Welcome you post on the forum.
    OINM is what you need. However, for new version it is a view only. What is your B1 version and PL?
    Thanks,
    Gordon

  • A/P credit memo journal incase of Purchase posting system

    Hi,
    I am using purchase posting system for one of my client
    Some times while creating standalone A/P creditmemo the system is posting some amount to Price difference account
    Why does the system do so? I have many credit memos which are posting correctly but a few are having Price difference account postings
    Thanks
    Md.nazeer Shaikh

    Hi,
    I have taken all the steps to block negative inventory at the warehouse level
    My concern is when does the system posts the journal entry to Price difference account in case of creating standalone Credit memo
    Is there anything new changes related to block the negative stock in 2007 then please do let me know.
    I understand there is one setting in administration what if i set this as item setting,Company instead of warehouse
    Thanks
    Md.nazeer Shaikh

  • G/L Account mentioned on line level does not get hit in Journal entry on GRPO and AP Invoice in SAP B1 9.0 PL - 11

    Hi,
    G/L Account mentioned on line level does not get hit in Journal entry on GRPO and AP Invoice in SAP B1 9.0 PL - 11
    I am creating an independent AP Invoice, there are two issues:
    1. On line level G/L Account field is not open for selection
    2. I have then selected and updated the account on Form Settings. Same account gets updated on line level.
         In Journal Entry selected G/L account on line level shall be hitted. But it does not put any effect on JE. Accounting is set by Warehouse. It picks up accounts from warehouse only.
    Need help its urgent.
    Thanks in advance.

    Invoice is Item Type.
    G/L Accounts are set by Warehouse. But if explicitly we are want to change the account on line level in that case, it is not getting reflected in Journal entry. On AR Invoice same scenario works perfectly. On line level I can change the accounts explicitly and have the effect on Journal entries.
    Issue seems to be on AP side only.
    As required please find attached the screen shots.
    JEwith mapped GL Account on Warehouse
    JEwith different GL Account on line Level via Form Settings
    Thanks & Regards
    Sonil

Maybe you are looking for

  • How to make a website for desktop and mobile

    I just have a question about, for example, washingtonpost.com.  I know in CSS you used to be able to put that "/media" and "/screen" command in head and when the page loads, it detects the device and sends you to either mobile or desktop. I went to W

  • User Profile Services - need-full-object

    During a Delta import over the past 5-6 days there has been one discovery error with a "need-full-object" as the error code. Now when looking at the user profile in sharepoint I see the user and all custom fields. However it is flagging daily.  We do

  • Import jpeg files into iPhoto library - closes iPhoto

    I scanned some images and saved them as jpeg. They will open and display fine using various applications. When I try to use File > Import from iPhoto 6, iPhoto closes without importing the file. When I reopen iPhoto, a message tells me that an image

  • LOGO in STANDARD REPORTS

    Hi, I am working on Interactive Reports (R/3 4.6c). Is there a way by which i can generate a LOGO in a standard REPORT. Is there any other alternative where i can generate my company's logo in STANDARD REPORTS. Thanks and Regards AK

  • Error in CREATE statment

    Hi i am trying to create a table by using following query but getting error. CREATE TABLE "TBCATEGORY" (     "CATEGORYID" NUMBER NOT NULL ENABLE,      "DAILYRATE" NUMBER NOT NULL ENABLE,      "WEEKLYRATE" NUMBER NOT NULL ENABLE,      CONSTRAINT "TBCA