Inventory Transfer  Query Reports

Hi experts
Stock Transfer on DEMO basis(Goods send on Demo and Retrun to office after Demo completes ) In customer Wise Reports
Our solution:
we  have created 2 warehouse .
1. physical warehouse.
2.demo warehouse.
we are using  "Inventory Transfer"
but  our client 
asking Reports is
Header 1
Header 2
Header 3
Header 4
Header 5
Header 6
Header 7
Header 8
Header 9
Doc number
customer Name
Item Name
warehouse2
warehouse1
DEMO Date
Item Return Date
Remarks

Hi,
Try this query with batch number:
SELECT T0.[DocNum], T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T4.[DistNumber],  case when T0.[Filler] = 'open' then T0.[DocDate] end as 'Sent date', case when T0.[Filler] = 'REJ_FG' then T0.[DocDate] end as 'Returned date' ,  T0.[Filler] as 'Warehouse 1', T1.[WhsCode] as 'Warehouse 2' FROM OWTR T0  INNER JOIN WTR1 T1 ON T0.DocEntry = T1.DocEntry left join  OITL T2 on t1.docentry = T2.[ApplyEntry] and  T1.[LineNum]  = T2.[ApplyLine] and T2.[ApplyType] = 67 INNER JOIN ITL1 T3 ON T2.LogEntry = T3.LogEntry left join  OBTN T4 on T4.[ItemCode]  =  T3.[ItemCode]  and T3.[MdAbsEntry]  =  t4.[absentry] WHERE T0.[CardCode] = [%0] GROUP BY T0.[DocNum], T0.[DocDate], T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T4.[DistNumber], T0.[Filler], T1.[WhsCode]
Thanks & Regards,
Nagarajan

Similar Messages

  • Need Inventory transfer query with bIn location information

    Dear Team,
    Please help me to create the query for inventory transfers with bin location information.
    WTR19 field is empty so that i have checked with tables OINM,OILM,OBTL
    But how can i link this tables..?
    Regards
    Sanu.

    Dear AndakondaRamudu,
    In the mentioned link i had already checked .I need the item movement bin transactions report inventory transfer using a parameter with UDF..
    Regards
    Ajith

  • Inventory transfer two report preview

    Dear Experts,
    Kindly help me upon our problem. We are generating a report for inventory transfer using our customized report that is set on default. The problem arises when we are clicking the preview 2 Report are generated, one is from our customized rpt file then the other is from the system report for Batch number (pld) format.
    Below is the result screenshot for the said problem. Sorry for blurring some important data, for company privacy. Thank you so much for your great help.
    Best Regards,
    jza

    Hi ,
      Go To
    1.Administration-->System Initialization-->Print Preferences
    2.Print Preferences->Per Document-->Document-->Inventory Transfer
    3.When Batch/Serial No. Exist, Print-->Doument Only.
    -Rajesh N

  • Inventory Transfer Query

    hello all,
    I 'm trying to write a sql that gives me the items transferred between subinventories. so far i have this sql:
    select
    distinct mmt.TRANSACTION_ID
    ,mmt.TRANSACTION_DATE
    --,mmt.TRANSACTION_TYPE_ID
    --,mtt.TRANSACTION_TYPE_NAME
    ,mmt.INVENTORY_ITEM_ID
    ,msi.DESCRIPTION
    ,mmt.ORGANIZATION_ID
    ,mmt.SUBINVENTORY_CODE
    ,mmt.LOCATOR_ID
    ,mil.SEGMENT1
    ,mil.SEGMENT2
    ,mil.SEGMENT3
    ,mil.SEGMENT4
    ,mmt.TRANSACTION_QUANTITY
    ,mmt.TRANSACTION_UOM
    ,mmt.ACTUAL_COST
    ,mmt.TRANSFER_TRANSACTION_ID
    ,mmt.TRANSACTION_SET_ID
    ,mmt.RCV_TRANSACTION_ID
    ,mmt.TRANSFER_ORGANIZATION_ID
    ,mmt.TRANSFER_SUBINVENTORY
    ,mmt.TRANSFER_LOCATOR_ID
    from
    mtl_material_transactions mmt
    ,MTL_SYSTEM_ITEMS_B msi
    ,MTL_ITEM_LOCATIONS mil
    ,MTL_TRANSACTION_TYPES mtt
    where
    mmt.INVENTORY_ITEM_ID(+) = msi.INVENTORY_ITEM_ID
    and mmt.LOCATOR_ID=mil.INVENTORY_LOCATION_ID(+)
    --mmt.TRANSFER_LOCATOR_ID=mil.INVENTORY_LOCATION_ID
    and mmt.TRANSACTION_TYPE_ID=mtt.TRANSACTION_TYPE_ID(+)
    and mmt.TRANSACTION_QUANTITY <= 0
    --and mmt.SUBINVENTORY_CODE='yy'
    --and mmt.TRANSFER_SUBINVENTORY='xx'
    my problem is with the columns :mmt.LOCATOR_ID,mmt.TRANSFER_LOCATOR_ID and ,mil.SEGMENT1
    ,mil.SEGMENT2
    ,mil.SEGMENT3
    ,mil.SEGMENT4
    as mmt.LOCATOR_ID is the locator transferred from and mmt.TRANSFER_LOCATOR_ID is used as the locator transferred to , the other columns are used to describe the locator segments,
    the query above works fine for the mmt.LOCATOR_ID column and the segments also appear in the output. My poblem is with the mmt.TRANSFER_LOCATOR_ID column I didn't succeed to show it in my query correctly and when i tried putting them in two different queries and made a union between them the mmt.TRANSFER_LOCATOR_ID query didn't show me the segments when the the field is not nill.
    I need also to differentiate between the segments columns when i use them for mmt.TRANSFER_LOCATOR_ID and mmt.LOCATOR_ID in order that i can map them to the report template.
    Can u please help me....

    I'm working on two tables:
    MTL_MATERIAL_TRANSACTIONS & MTL_ITEM_LOCATIONS
    i want the following columns from MTL_MATERIAL_TRANSACTIONS:
    * TRANSACTION_ID (PK) NOT NULL NUMBER
    * LOCATOR_ID NULL NUMBER Locator id for stock locators
    * TRANSFER_LOCATOR_ID NULL NUMBER Transfer transaction opposing
    locator id
    and the following columns from MTL_ITEM_LOCATIONS:
    * SEGMENT1
    * SEGMENT2
    * SEGMENT3
    * SEGMENT4
    where
    MTL_ITEM_LOCATIONS is the primary key table with INVENTORY_LOCATION_ID & ORGANIZATION_ID is the primary key column and LOCATOR_ID & ORGANIZATION_ID is the Foregn key column.
    I need my report output be like:
    location from:
    LOCATOR_ID,SEGMENT1, SEGMENT2, SEGMENT3, SEGMENT4
    Location to:
    TRANSFER_LOCATOR_ID,SEGMENT1, SEGMENT2, SEGMENT3, SEGMENT4
    where the above "location to" may represent one or more records from the joined query.
    How can I prepare the sql query.

  • Inventory Transfer Tracking report

    Hi Every One,
    Customer send the Items to production department and Received it back.
    For this They duplicate the document and changes the from and To warehouses and update the quantity
    Ex
    doc1:                  From            To                Qty
             item 1      warehouse      Production   10
    doc2  (duplicated from doc1)
             item1        production      warehouse    5
    doc3  (duplicated from doc1)
             item1        production      warehouse    5
    Now I required report format as below
    [Item code]
    [from warehouse]
    [To warehouse]
    [deliver to Production]
    [received from production]
    Item1
       warehouse
         Production
       10
    10
    please suggest
    Thanks and Regards
    DEV

    Hi Devraj,
    Try this below query,
    Note: Where ever i mentioned 'WIP01' change it to your production warehouse
    and 'RM01' change it to your stores warehouse.
    Let me know your feedback.
    select Tbl1.ItemCode,Tbl1.FromWhsCod,Tbl1.[Production Whs],SUM(Tbl1.[Stores Qty]) [Stores Qty],SUM(tbl1.[Production Qty]) [Production Qty]
    from (
    select r2.ItemCode,r2.FromWhsCod,'WIP01' [Production Whs],sum(r2.Quantity) [Stores Qty], 0 [Production Qty]
    from OWTR R1 inner join WTR1 R2 on r1.DocEntry = r2.DocEntry
    where r2.FromWhsCod in ('RM01') 
    group by
    r2.ItemCode,r2.FromWhsCod,r2.WhsCode
    union all
    select r2.ItemCode,'RM01',r2.FromWhsCod,0,sum(r2.Quantity) [Qty]
    from OWTR R1 inner join WTR1 R2 on r1.DocEntry = r2.DocEntry
    where r2.FromWhsCod  in ('WIP01') 
    group by
    r2.ItemCode,r2.FromWhsCod,r2.WhsCode) Tbl1
    group by Tbl1.ItemCode,Tbl1.FromWhsCod,Tbl1.[Production Whs]

  • Inventory inward pending query report problem

    Dear Sir,
                      we are using sap b1 2005 version     7.40.253
                 i am opening query manager icon and choose theinventory inward pending report then click ok button the error will be display
    1) [Microsoft][sql native client][sql server]conversion failed when converting the nvarchar value '31/05/2014' to data type int. 'Queries'(OUQR) 
    and i use the query like this:
    select distinct t0.docnum as 'Inventory Transfer Number', t0.filler as 'From Warehouse', t0.u_towhcode as 'To Warehouse',T0.DocDate from owtr t0 inner join wtr1 t1 on t0.docentry = t1.docentry inner join owhs t2 on t1.whscode = t2.whscode where t2.u_whty = 'IT' and t0.docnum not in(select distinct z0.u_bd from owtr z0 inner join owhs z1 on z0.filler = z1.whscode where z1.u_whty = 'IT' and isnull(z0.u_bd,0) != 0)

    Thanks for ur valuble support.....
    Thats query also working fine sir.....
    but the user told the drawback is lot of times repeated the doc number for every item.so pls combine  single document no and display total quantity  need not display item description ......
    i want display these colums only:
    1.inventory transfer no
    2.from where house
    3.To where house
    4.Posting date
    so can you please tell  another query sir .........................

  • Re:Query For Inventory Transfer..!!!

    Dear Members,
    My Scenario is,
    I want to take a report for inventory transfer that contains
    1. Itemcode
    2.Item description
    3.quantity
    4.inventory quantity on the previous day.
    I have taken the tables owtr,wtr1,oitm and oitw.But the issue is if my document date is like 30.11.2010 i want the inventory quantity value as  on 29.11.2010.
    I need only query not SAP Reports.Plz suggest a suitable query for this issue.
    With Regards,
    Revathy

    Hi Revathy,
    You have to use OINM table to get your desired Stock on past dates.
    Have a look at these queries.
    1. Stock per itemwise
    select t1.ItemCode,max(t1.dscription) [Name],(sum(isnull(t1.InQty,0)) - sum(isnull(t1.OutQty,0)) ) [ClsStock],(sum(t1.transvalue)) [ClsValue]
    from OINM t1
    where  t1.DocDate <= '[%1]'
    group by
    t1.ItemCode
    2.Stock per item per warehouse wise
    select t1.ItemCode,max(t1.dscription) [Name],t1.warehouse [Warehouse],
    (select whsname from owhs o1 where ((o1.whscode) = (t1.warehouse))) [WarehouseName],
    (sum(isnull(t1.InQty,0)) - sum(isnull(t1.OutQty,0)) ) [ClsStock],(sum(t1.transvalue)) [ClsValue]
    from OINM t1
    where t1.DocDate <= '[%1]'
    group by
    t1.ItemCode,t1.warehouse
    Regards,
    Bala
    Edited by: Balakumar Viswanathan on Dec 10, 2010 5:22 PM

  • Inventory Transfer Report By WHS

    Hi,
    Can anybody help me to create a cutom Query for stock transfer report from one Warehouse to Another warehouse by range of dates with Value for each Inventory Transfer.
    Regards
    Sumanth

    Hello Sindhi,
    I would suggest you to use the stockprice field that contains the item cost of the item and multiply it by the qty.
    Please try this query and let me know if it helps you.
    SELECT sum (T0.[Quantity]*T0.[INMPrice]) FROM WTR1 T0  INNER JOIN OWTR T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[DocDate] between '01.01.10' and getdate()
    INMPrice is the item cost, quantity is the quantity on that row in the document. As you want the query to work for a date range I added the where.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Query to Lookup Ship To in a UDF for the Inventory Transfer

    Good Day Experts!
    I created a UDF for the Ship To Code in the Inventory Transfer Window.  The problem is I do not know how to create a query to be used in the Formatted Search for this UDF wherein it will lookup all the Ship To Codes in the table CRD1 of that particular  Customer selected in the Inventory Transfer window.  The objective is to choose a Ship to code just like in the sales document.
    My next problem would be how to display automatically the whole Ship To Address in another UDF based on the Ship To Code chosen in the UDF Ship To Code.
    Your inputs would be highly appreciated.
    Regards,
    Jen

    To get the Complete ShipTO Address, use the following Code
    SELECT T0.cardname+CHAR(13)+isnull(T0.Address,'')+CHAR(13)+
    cast(T0.Building as varchar(100))+CHAR(13)+isnull(T0.city,'')+CHAR(13)
    +isnull(T0.zipcode,'') as Address FROM CRD1 T0
    WHERE T0.CardCode =$[OWTR.CardCode] and  T0.cardtype='S' and
    T0.Address=$[OWTR.UDF1]
    Here Replace UDF1 with the Name of the UDF in which Shipto Address Names are shown as per my previous post.
    Hope you understand

  • Inventory Transfer Report

    Hi experts,
       I want to retrieve data inventory transfer like
       Suppose Wh01 And Wh02
        I have done inventory transfer from Wh01 to Wh02 And Vice versa for I001
        I want in report like for subcontracting inventory transfer.....
    Regards,
    Sandy

    Hello Sir,
        Thanks for reply to me....
       But i want another result
    Scenario Like this-
       I am transferring I001 from wh01 to wh02 via inventory transfer Quantities suppose 10
       Now i transferring same item I001 from wh02 to wh01 via inventory transfer Quantities 8
    Then My report should shows following Fields
    DocNum  Series  CardCode    FromWhs    Towhs   InQuntities_In_Wh02  Out_QuntitiesIn_Wh02
    And Also 
    InQuntiies_In_Wh01     OutQuantitiesIn_Who2    Remaining_Qty
    I hope you guys will understand what i want ???
    like PurchaseVsSale report
    Regards,
    Sandy

  • Approval Query on Inventory Transfer

    Hi All,
    I want an Approval Procedure to be invoked when a Particular User post a Inventory Transfer. The Scenario is the user will transfer goods from his Warehouse to 2 different Warehouse. For Eg: Stores and Despatch.
    He will make a separate Inventory Transfer to transfer goods to Stores and another entry to transfer goods to Despatch.
    If he Transfer Goods to Stores, it has to be approved by Stores Department User.
    If he Transfer Goods to Despatch , it has to be approved by Despatch Department User.
    I tried using Query in Approval Procedure. Not able to get correct way it shoud work.
    Help Needed...
    Thanks in Advance....
    Marikannan

    Hi Thanks for the reply...  I have created the UDF for those. I used the Following Query.. But it doesnt work. Any issue with my query...
    DECLARE @whs AS NVARCHAR(20)
    SET @whs = (SELECT $[$18.1.0])
    DECLARE @reas AS NVARCHAR(20)
    SET @reas = (SELECT $[$u_po_ref.1.0])
    SELECT DISTINCT 'TRUE' FROM OWTR Z1 WHERE @reas = 'DSPT' AND @whs = 'QLTY'
    I Use @whs for Filler field in OWTR
    I User @reas for UDF in OWTR
    Thanks... Marikannan
    Edited by: Marikannan Balu on Apr 22, 2010 8:11 AM

  • Error while posting report in inventory transfer from draft

    hi, 
             we have entered all the details in inventory transfer at the row level.Due to editing purpose we have saved it as draft.but now while posting the document it displayed the error as "No Matching records found".
    ca anybody tell what is the reason????
    regards priya

    Hi Priya,
    Please go through note 1112941
    https://service.sap.com/sap/support/notes/1112941
    If itu2019s not the case, please help collect error in detail.
    Hope it helps.
    Regards,
    Jacqueline Jiang
    SAP Business One Forums Team

  • Warehouse wise Detailed query Report

    Please share detailed report on Warehouse wise, it consists of Purchase,Goods Receipt, Inventory Transfer,Invoices, sales return

    Hi Jain,
    Execute the query in RSRT or in RRMX. To Check how much time it is taking to execute this querry?? To get this information, Goto SE11> Give table name RSDDSTAT_DM in BI7.0 or RSDDSTAT in BW3.x> Display -> Contents-> Give from date and to date values as today, user name as Ur user name, and give the query name--> execute.
    Now u'll get a list with fields like Object name(Report name), Time read, Infoprovider name(Multiprovider), Partprovider name (Cube), Aggregate name... etc. If the time read is less than 100,000,000 (100 sec) is acceptable. If the time read is more than 100 sec then it is recommended to create Aggregates for that query to increase performance.
    Here in this table u'll find detailed Query Runtime Statistics.
    Hope thsi helps you..
    Regards,
    Ramki.

  • Inventory on Hand Report - Using Union ALL - need two fields to be part of the group

    Hi all,
    I have created an Inventory "on Hand" Report that takes the Current Inventory from the Item Entry table and the Sales from Unposted Sales Line table and Transfers in and out from the Unposted Transfer Line table.  I have joined the tables
    using the UNION ALL function. 
    My problem is that the Transfer table has two locations whereas the other tables only have one.  I am grouping on Location code from the Item Entry table which is equivalent to BOTH Transfer from location and the Transfer to.    
    As an example, there are 15lbs of inventory for Product A in Location #1 with a transfer out of 15 lbs.  The Transfer out is going to Location #2
    I don't know how to write the query or set up the group so that it recognizes both the Transfer to and the Transfer From fields
    I want the report to look similar to the one below but I can only get it to show one of the locations.  Is there some way to use the Union function and have one field in the first table be or equivalent to two fields in another?
    Location   Code
    Item No.
    Lbs
    Sales Orders
    Transfer Out
    Transfer In
    Available   Inventory
    Location #1
    Product A
    15
    -15
    Location #1
    15
    -15
    Location #2
    Product A
    15
    15
    Location #2
    15
    15

    Hi Igor,
    You can get a custom sort order added to your IP column without the need for a second column.
    Consider that the sorting is done strictly left-to-right across a string in the column. The string can be any valid HTML content. So, you could wrap your string within, say, a SPAN tag and add an attribute to that tag that contains the sort order you need before the text that is displayed to the user. As long as the attribute is correctly structured (that is, all instances are of the same length, for example), then sorting will work correctly. For example:
    SELECT
    '<span title="' || PAD_IP_ADDRESS(IP) || '">' || IP || '</span>' Y
    FROM ...Now you need to ensure that the PAD_IP_ADDRESS() function returns the correct values. In IP addresses, you have anything from "0.0.0.0" to "255.255.255.255". To get them to sort "numerically", you need to pad one or two digit numbers to get three digit numbers for each value - so, "0.0.0.0" becomes "000.000.000.000". You could create a function to do this - something like:
    CREATE OR REPLACE FUNCTION PAD_IP_ADDRESS
      pIP IN VARCHAR2
    RETURN VARCHAR2
    IS
      vIP VARCHAR2(15);
      vTEMP APEX_APPLICATION_GLOBAL.VC_ARR2;
      vSEP VARCHAR2(1);
    BEGIN
      vSEP := '';
      vIP := '';
      vTEMP := APEX_UTIL.STRING_TO_TABLE(pIP,'.');
      FOR x IN 1..vTEMP.COUNT
      LOOP
        vIP := vIP || vSEP || TRIM(TO_CHAR(TO_NUMBER(vTEMP(x)),'000'));
        vSEP := '.';
      END LOOP;
      RETURN vIP;
    END;The output from this would look something like:
    &lt;span title="001.001.001.001"&gt;1.1.1.1&lt;/span&gt;
    &lt;span title="002.255.255.255"&gt;2.255.255.255&lt;/span&gt;
    &lt;span title="010.001.199.098"&gt;10.1.199.098&lt;/span&gt;Andy

  • Problems with Draft - Inventory Transfer - SDK 2007

    Hi all, I have problems making a Draft document of a Inventory Transfer using the DIAPI, I know that the draft of inventory transfers is new in SBO 2007 and I have the correct version of the DIAPI installed, the problem is that I can't find the property "FromWarehouse", into the Draft Object.
    Thanks for help.

    Note that the header of this forum specifies:
    This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    I do not think your query concerns any of the above mentioned products? If that is the case, please post to the correct forum.
    Ludek

Maybe you are looking for

  • Retro of offcycle payroll in Actual Payroll

    Hi Gurus, I have Executed offcycle payroll on 02.07.2009 for one employee and paid 1000. on 25.07.2009 i have executed regular payroll for that employee was fine. Now in august i have to pay regular salary as retro with effect from 01.07.2009. Now i

  • Function Module

    Hello friends, I am using the function Module, PM_ORDER_DATA_READ with a loop and endloop. The first time when this function module triggers i see no problem and everything works fine. But when it triggers the second time in the loop, it gives  a sho

  • File to idoc bypass scenario

    hi all             I am doing file to idoc bypass scenario....i have to send file containing EDIDC segment to respective idoc.I have used the idoc name as interface and its also successfully picking the file but while receiving the idoc receiver is s

  • Lumia not connecting to hotspot

    I have Lumia 900 , but I am not able to connect to internet when created a hotspot in Windows 7 laptop. My other laptop and the other phone can connect to  that but not this Lumia 900. With regular wifi , it can connected but not with hotspot . Any c

  • Using an audio interface with multiple inputs

    Hi, I'm currently facing an issue where I need to be able to use the audio from a microphone and a keyboard through Skype calling. I have them both plugged in to a Focusrite Saffire Pro 24 audio interface. The problem is that only the microphone plug