Query for Inventory Account getting from Item Master

Hi,
I want to get Inventory Account from Item Master with the use of query.
I used below query for that.
SELECT T0.[ItemCode], T0.[BalInvntAc] FROM OITW
but it's give me the blank value for the Inventory Account.
Thanks & Regards,
Tushar Nathwai

Hi Gordon,
It's a Inventory - Finished Products (TRG)
But it's also not displayed in other database so what could be the reason for that?
Thanks & Regards,
Tushar Nathwani

Similar Messages

  • Assign all Items from Item Master to a New Inventory Org

    Hi Gurus,
    Currently we have 1 Item Master Org and 7 Child Orgs in our system. We are adding one more Child Org into our system. How to assign all the Items at once from Item Master to the new Child Org? We have Oracle EBS R12.
    Thanks in advance.
    KM

    Hello,
    In 11.5.10.2 our developer added new organization to items:) I think in R12 you do not have any standard function.
    Regards,
    Luko
    Ps. Look also http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/item-assignment-to-orgs-in-inventory-r12-4688011
    Edited by: Luko on 2012-08-20 22:17

  • Can we write query for fomatted search without from clause

    can we write query for fomatted search without from clause as below.
    SELECT (($(u_amt)*14)/100)
    here U_amt is a UDF .I want to assign this to another field .
    Rgds,
    Rajeev

    Hi Rajeev,
    You can write query for FMS without from.  That is because you can omit it when you get value from active form by default.  The grammar of it is:
    Select $[$38.u_amt.0\] * 14/100 in your case if you have item type marketing document @line level.
    From View-System Information, you can get the info you need for your FMS query at the left bottom of your screen.
    Thanks,
    Gordon

  • Attachment from item master to SO

    The Client (on 11.5.10) needs to carry forward the attachments from item master to the SO.
    None of the document categories were carried to SO.
    I created a new document category in OM and enabled it for Forms 'Sales Orders' and 'Item master'. But this category was not available in item master form.
    Can anyone throw some light on this?
    Thanks

    Hello,
    In 11.5.10.2 our developer added new organization to items:) I think in R12 you do not have any standard function.
    Regards,
    Luko
    Ps. Look also http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/item-assignment-to-orgs-in-inventory-r12-4688011
    Edited by: Luko on 2012-08-20 22:17

  • No G/L account selected for Asset Account in Business Partner Master Data

    Hi All,
    When i tried to raise A/P invoice for an Asset Item the system is raised the following error"  why?
    " No G/L account is selected for Asset Account in Business Partner master data "
    thanks
    SV Reddy

    hi Giri,
    When you choose from list against the Asset Account in the business partner master data it is only displaying the Trade Creditors Account domestic and foreign acounts only.  which one to choose in this case?  i presume trade creditors account is the one to choose.  but what is the logic for asset items to choose this Trade Creditors Account?   Or  else can we create a separate control account for purchasing the Asset items?  what is the logic again here choosing a separate account through option create new ?
    thanks
    SV Reddy

  • Stock Posting List from Item Master Data

    Hi,
    We just encounter a strange problem. In SAP we could go to an Item record and right click to choose Stock Posting List which will bring out the stock posting report that list all the in and out records for this particular item. The report can be generated shortly.
    Over the weekend we enter into a new fiscal year and suddenly the Stock Posting List from item master does not contain any entries from previous fiscal year and it takes very long to show the list.
    We could however run the Stock Posting List as normal from Stock Reports which will show all the records.
    The problem if the Stocking Posting List from the item master only shows entries in the current fiscal year why suddenly the performance degraded when there is actually less data to be displayed.
    Any one encountered such situation as well?
    We are on PL44
    BR,
    Jimmy

    Hi Jimmy,
    This is the System behaviour in SAP 2007 A. Due to the changes in posting period functionality, it is not possible to choose posting period. That is the reason why if you right click on an Item Master Data, Inventory posting list only for the current year appears. If user wish to see transaction for the other years, he needs to open Inventory Posting List report and set dates in the Selection criteria window.
    Regards,
    Varun
    SAP Business One Forum Team
    Edited by: Varun Kumar on Mar 3, 2009 9:36 PM

  • Error - No GL account selected for Asset account in Business partner master

    Hi Experts,
    Scenario - While adding A/P Invoice for Asset item, the error "Error - No GL account selected for Asset account in Business partner master Message (3518-13)
    Awaiting your replies
    Regards,
    Sid

    Hi,
    You need to map the control account of that vendor(business partner).
    ->Open the respective Business Partner master data
    ->Under accounting tab
    ->Under General tab
    ->Control accounts (will be indicated with ... button),on opening this
    ->You will be prompted to map the control accounts
                                             ^ Down Payment Payables
                                             ^Assets Account
                                             ^Open Debts
    Here you need to map the Asset account which also must be a control account(control account option should be checked in the chart of accounts).
    Pls do check in the test system,understand the behavior of this account by booking ap invoice and payment,then proceed in the live system.
    Hope this is helpful

  • Can anyone share the query for inventory aging report

    Is there any standard reports for inventory aging in oracle ebs 12.1.3 ....... If not can anyone share the query for inventory aging report

    Hi,
    It may not be so simple as you are trying to reproduce the historical value.  I believe you have to create a temporary table first.  Or you may use Command feather to get the required data in advance.
    Thanks,
    Gordon

  • Delete Multiple Records from Item Master

    Hi,
    We received wrong master data which has been uploaded and two groups have to be deleted. All the items in those particular groups have also to be deleted. Can anyone suggest how to delete multiple records from Item Master?
    Currently I am navigating through each Item and doing a Right Click + Remove. It is very painful given the huge number of records.
    Regards
    Sudatt

    Hi Sudatt.....
    I recommend you not to run any kind of delete or update SQL query as it harms DB.
    You can create your own front end application with the help of any technical consultant which can be
    achieved very easily. Else such problems create a big problem during upgradation to next version.......
    Regards,
    Rahul

  • GL display for inventory account which are not defined as line item display

    Hi All,
    We have inventory gl accounts which are auto post accounts , these accounts get posted when grn is done. these accounts are not defined as line item display accounts, but if we execute the T code: FS10 we get the gl balance display and not line item display.
    Our requirement is that we should be able to view the line item display matching the GL account balance in that GL account.
    Can we get the report in MM module line items wise display.
    Regards
    Prashant P. Zinge

    Hello,
    You should use RFSEPA01 program via execute SE38 transaction.
    This program activate line item for each account. Activation means, this program generate line items to BSIS table. So that after this program running, you can see line items in FBL3N.
    Regards,
    Burak

  • 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

  • Query for Inventory Activity for whse & dates

    I am using the query below to report Inventory Activity by Whse for a selected date range. Can anyone please advise on how to add a column for Inventory Unit of Measure (OITM.InvntryUom) to this query? This would make the report more useful. Even more useful would be to also integrate batch numbers into this same query. Would this be possible also?
    The columns returned by this query currently are: Whse, ItemCode, ItemName, OpeningBalance, InQty, OutQty, and EndingBal.
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Whse nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
    Set @Whse = (Select Max(s2.Warehouse) from dbo.OINM S2 Where S2.Warehouse = '[%2]')
    Select
    @Whse as 'Warehouse',
    a.Itemcode,
    max(a.Dscription) as [Item Name],
    sum(a.[Opening Balance]) as [Opening Balance],
    sum(a.[IN]) as [IN],
    sum(a.OUT) as OUT,
    ((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) as Closing
    from(
    Select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    (sum(N1.inqty)-sum(n1.outqty)) as [Opening Balance],
    0 as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate < @FromDate
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    0 as [Opening Balance],
    sum(N1.inqty) as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
    N1.Inqty >0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    0 as [Opening Balance],
    0 as [IN],
    sum(N1.outqty) as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
    N1.OutQty > 0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription) a, dbo.OITM I1
    where
    a.ItemCode=I1.ItemCode 
    Group By
    a.Itemcode
    Having sum(a.[Opening Balance]) + sum(a.[IN]) + sum(a.OUT) > 0
    Order By a.Itemcode

    Try this one:
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Whse nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
    Set @Whse = (Select Max(s2.Warehouse) from dbo.OINM S2 Where S2.Warehouse = '[%2]')
    Select
    @Whse as 'Warehouse',
    a.Itemcode,
    max(a.Dscription) as ItemName,
    sum(a.OpeningBalance) as OpeningBalance,
    sum(a.INq)  as 'IN',
    sum(a.OUT) as OUT,
    ((sum(a.OpeningBalance) + sum(a.INq)) - Sum(a.OUT)) as Closing
    ,(Select  i.InvntryUom from OITM i where i.ItemCode=a.Itemcode) as UOM
    from(
    Select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    (sum(N1.inqty)-sum(n1.outqty)) as OpeningBalance,
    0 as INq,
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate < @FromDate
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    0 as OpeningBalance,
    sum(N1.inqty) ,
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
    N1.Inqty >0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,
    0 as OpeningBalance,
    0 ,
    sum(N1.outqty) as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
    N1.OutQty > 0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription) a, dbo.OITM I1
    where
    a.ItemCode=I1.ItemCode
    Group By
    a.Itemcode
    Having sum(a.OpeningBalance) + sum(a.INq) + sum(a.OUT) > 0
    Order By a.Itemcode

  • Query for Inventory Audit Report

    hi experts,
    I would like to create a inventory report  using Crystal Reports 2008 which looks exactly the same as Inventory Audit Report in SAP Business One 2007A
    Report requirement:
    List down all the items with its Item Code, Description, Quantity and Item Cost (easy right?)
    The only condition:
    I would like to filter my report by FromDate and ToDate.
    For example:
    Current date 15.07.2009
    If I run the report by putting in 01.01.2009 to 31.01.2009, the result will show me:
    item, with its respective info and most importantly the Quantity and Item Cost as at 31.01.2009 (similar to closing stock)
    Any query for above report?
    Please help.
    Thank you.

    Hi,
    It may not be so simple as you are trying to reproduce the historical value.  I believe you have to create a temporary table first.  Or you may use Command feather to get the required data in advance.
    Thanks,
    Gordon

  • Query for Inventory Report

    Hi Guys,
    We need to produce stock report for every month and in order to achieve that i have used this query and  also am getting those figures correctly.
    But we are maintaining different item groups and  we need to display all the items which comes under  the group in that particular warehouse or location even though there is no transactions in that given date range.
    whenever we generate the report this below query displaying only the items which has transactions on that particular give range.but we need all the items  which belongs to that itemgroup.
    Suppose,  there are 57 items in Item groupB in warehouse no-3.
    and i have a date range from 01/03/10 to 10/03/10 and item group B and warehouse no 3 as input.
    and the query displays only 11 items which has transactions. but we need other 46 items also to be displayed in the report eventhough it has no transactions in that   range and  for those items we need the previous closing balance(if possible).
    Pls guys help me in this.. its CRITICAL FOR US...
    ====================================================================================================
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Group nvarchar(10)
    Declare @Whse nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
    Set @Group = (Select Max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam = '[%2]')
    Set @Whse = (Select Max(s3.Warehouse) from dbo.OINM S3 Where S3.Warehouse = '[%3]'  )
    Select
    @Whse as 'Warehouse',     
    a.Itemcode,
    max(a.Dscription),
    sum(a.[Opening Balance]) as [Opening Balance],
    sum(a.[IN]) as [IN],
    sum(a.OUT) as OUT,max(a.Price) as 'Price',
    ((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) as Closing
    from(
    Select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.Price,
    (sum(N1.inqty)-sum(n1.outqty)) as [Opening Balance],
    0 as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate < @FromDate and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.Price
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.price,
    0 as [Opening Balance],
    sum(N1.inqty) as [IN],
    0 as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and
    N1.Inqty >0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price
    Union All
    select
    N1.Warehouse,
    N1.Itemcode,
    N1.Dscription,N1.price,
    0 as [Opening Balance],
    0 as [IN],
    sum(N1.outqty) as OUT
    From dbo.OINM N1
    Where
    N1.DocDate >= @FromDate and N1.DocDate <=@ToDate and
    N1.OutQty > 0
    and N1.Warehouse = @Whse
    Group By
    N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price) a, dbo.OITM I1
    where
    a.ItemCode=I1.ItemCode and
    I1.ItmsGrpCod = @Group
    Group By
    a.Itemcode
    Having sum(a.[Opening Balance]) + sum(a.[IN]) + sum(a.OUT) > 0
    Order By a.Itemcode
    ====================================================================================================
    Thanks in advance,
    Regards,
    Vamsi.

    Hi,
       For multi selection you have to try Crystal Reports. In Query Report you can choose particular range same as From Date,To Date..
    You may try this....
    Declare @FromDate Datetime
    Declare @ToDate Datetime
    Declare @Group nvarchar(10)
    Declare @Group1 nvarchar(10)
    Declare @Whse nvarchar(10)
    Declare @Whse1 nvarchar(10)
    Set @FromDate = (Select min(S0.Docdate) from dbo.OINM S0 where S0.Docdate >='[%0]')
    Set @ToDate = (Select max(S1.Docdate) from dbo.OINM s1 where S1.Docdate <='[%1]')
    Set @Group = (Select Max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam >= '[%2]')
    Set @Group1 = (Select Max(s2.ItmsGrpCod) from dbo.OITB S2 Where S2.ItmsGrpNam <= '[%2]')
    Set @Whse = (Select Max(s3.Warehouse) from dbo.OINM S3 Where S3.Warehouse <= '[%3]')
    Set @Whse1 = (Select Max(s3.Warehouse) from dbo.OINM S3 Where S3.Warehouse >= '[%3]')
    Select a.Warehouse as 'Warehouse', a.Itemcode, max(a.Dscription), sum(a.[Opening Balance]) as [Opening Balance],
    sum(a.[IN]) as [IN], sum(a.OUT) as OUT,max(a.Price) as 'Price',
    ((sum(a.[Opening Balance]) + sum(a.[IN])) - Sum(a.OUT)) as Closing from dbo.OITM I1
    Left JOIN (Select N1.Warehouse, N1.Itemcode, N1.Dscription,N1.Price, (sum(N1.inqty)-sum(n1.outqty)) as
    [Opening Balance], 0 as [IN], 0 as OUT
    From dbo.OINM N1
    Where N1.DocDate < @FromDate and N1.Warehouse = @Whse and N1.Warehouse >= @Whse1
    Group By N1.Warehouse,N1.ItemCode,N1.Dscription,N1.Price
    Union All
    select N1.Warehouse, N1.Itemcode, N1.Dscription,N1.price, 0 as [Opening Balance], sum(N1.inqty) as [IN],
    0 as OUT From dbo.OINM N1 Where N1.DocDate >= @FromDate and N1.DocDate <= @ToDate and N1.Inqty >0 and
    N1.Warehouse = @Whse and N1.Warehouse >= @Whse1
    Group By N1.Warehouse,N1.ItemCode,N1.Dscription,N1.price
    Union All
    select N1.Warehouse, N1.Itemcode, N1.Dscription,N1.price, 0 as [Opening Balance], 0 as [IN],
    sum(N1.outqty) as OUT From dbo.OINM N1 Where N1.DocDate >= @FromDate and N1.DocDate <=@ToDate
    and N1.OutQty > 0 and N1.Warehouse >= @Whse and N1.Warehouse >= @Whse1 Group By N1.Warehouse,
    N1.ItemCode,N1.Dscription,N1.price) a
    ON a.ItemCode=I1.ItemCode
    where  I1.ItmsGrpCod = @Group
    Group By a.Itemcode
    Order By a.Itemcode
    Regards,
    Priya

  • How to handle comma separated values in OLE DB Source query for a parameter variable from XML file in SSIS

    Hi,
    I am using OLE DB Source to fetch the records with Data Access Mode as SQL COMMAND which is using the below query with a parameter,
    SELECT CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation, EMP.HireDate, EMP.BirthDate,CON.EmailAddress, CON.Phone
    from HumanResources.Employee EMP INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in (?) 
    In this query for the parameter I am passing the value from a variable and which is configured (XML Configuration). While passing value
    Buyer it works correctly. But while passing values Accountant,Buyer
    it is not working as expected.
    How to handle while passing such multiple values Or is it possible to pass such values or not in SSIS 2012 ?
    Kindly help me to find a solution.
    NOTE: I placed the whole query in a variable as a expression as below it is working fine.
    "select CON.Title,CON.FirstName,EMP.MaritalStatus,EMP.Gender,EMP.Title AS Designation,EMP.HireDate,EMP.BirthDate,CON.EmailAddress,CON.Phone from HumanResources.Employee EMP
    INNER JOIN Person.Contact CON ON EMP.ContactID=CON.ContactID WHERE EMP.Title in ('" + REPLACE(@[User::temp],",","','")  +"')"
    Any other solution is there ? without placing the query in a variable. May be a variable can have some limitations for no. of characters stored not sure just a thought.
    Sridhar

    Putting the whole thing into a variable is certainly a valid solution.  The other involves putting the comma delimited list into a table valued variable.
    http://gallery.technet.microsoft.com/scriptcenter/T-SQL-Script-to-Split-a-308206f3
    For an odd ball approach: 
    http://www.sqlmovers.com/shredding_multiline_column_using_xml/ .
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

Maybe you are looking for