Need Query for Item Relationship of Oracle Apps
Hello Team,
I need the Query to select the Item Relationship.
In Oracle Apps we have different tyes of Structure
ItemA -> ItemB
ItemB -> ItemC
ItemC -> ItemD
ItemG -> ItemH
ItemK -> ItemL
ItemW -> ItemQ
and this also is possible (meand many to one relationship)
ItemA -> ItemB
ItemB -> ItemC
ItemC -> ItemD
ItemT -> ItemD
and in the Select Query i want the below result
ItemA -> ItemB 1
ItemB -> ItemC 2
ItemC -> ItemD 3
ItemG -> ItemH 1
ItemK -> ItemL 2
ItemW -> ItemQ 1
and this also is possible (means many to one relationship)
ItemA -> ItemB 1
ItemB -> ItemC 2
ItemC -> ItemD 3
ItemT -> ItemD 1
means i want the Hierarchy number also
Please help me to in order to get the relationship by sql query.
Kind Regards,
thanks for the quick response and i would love to spend time perusing the forum for this question but i didn't have time today. i'll do that now though.
what i'm mostly interested in is a chronological view (lastUpdateDate) of the change to pricing for an item in the system. there is a lot of activity in our system around price changes for promotions and i want to keep track of when it's changed in the source system and pair that with our other downstream systems.
i'm assuming we can add this functionality through a udf some way or maybe sp_TransNotification proc?
Similar Messages
-
Utility for Item Conversion in Oracle Apps r12
I want to read a flat file and upload data into staging table.
Am working in oracle apps r12.
which is the standard way to take data inside the staging table.
Is it SQL LOader or UTL_FILE.
r is there any other utility to upload bulk data into staging table.I want to read a flat file and upload data into staging table.
Am working in oracle apps r12.
which is the standard way to take data inside the staging table.
Is it SQL LOader or UTL_FILE.
r is there any other utility to upload bulk data into staging table.https://forums.oracle.com/forums/search.jspa?threadID=&q=utl_file+AND+loader&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=utl_file+AND+flat+AND+file&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
https://forums.oracle.com/forums/search.jspa?threadID=&q=SQL+AND+LOADER+AND+Staging&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
Thanks,
Hussein -
Need query for Item - Price Change History
I need help finding information around Price Change History by Price List.
Information of interest is Date of Update and By Whom. Also, if a Datasource is 'N-Unknown', what does this generally mean?
select
i.itemcode,
i.itemname,
iphist.price,
pl.listname,
pl.datasource as 'ChangeSource',
'' as 'PriceChangeUpdateDate',
'' as 'UpdateByUser'
from ait1 iphist, oitm i, opln pl
where 1=1
and iphist.pricelist = pl.listnum
and i.itemcode = iphist.itemcode
and iphist.itemcode in ('1234')
and pl.listnum in (6)
thanks in advance...thanks for the quick response and i would love to spend time perusing the forum for this question but i didn't have time today. i'll do that now though.
what i'm mostly interested in is a chronological view (lastUpdateDate) of the change to pricing for an item in the system. there is a lot of activity in our system around price changes for promotions and i want to keep track of when it's changed in the source system and pair that with our other downstream systems.
i'm assuming we can add this functionality through a udf some way or maybe sp_TransNotification proc? -
Roles for each Product in Oracle Apps 11i
Hi,
I have one requirement to create role for each product...
For example:
Inventory (INV)... I need to create a role, which will have select privileges on all tables of Inventory...like that for each production, I need to create...
I have one procedure:
(a) create role inv_read_role;
(b) spool the following statement
sql> spool inv_read.lst
sql> select 'grant select on INV.'||object_name||' '||'to INV_READ_ROLE;' from dba_objects where owner='INV' and object_type='TABLE';
sql> spool off
(c) Run the above spool file
Here we are done...
But, If I want to do this for all products in oracle apps 11.5.10.2..
is there any smarter way to do this????? any stored procedure???I want to give readonly access to AP Tables to one database user or more no of database users.....how can we give...for that , we are going to create seperate role for each module in database..assign that role to database user...then he will be able to select only on that module tables......
-
How to create sql query for item master with operator LIKE with variables?
hi all,
How to create sql query for item master with
operator LIKE(Contains,Start With,End With) with variables using query generator in SAP B1 ?
JeyakanthanHi Jeyakanthan,
here is an example (put the like statement into the where field)
SELECT T0.CardCode, T0.CardName FROM OITM T0 WHERE T0.CardName Like '%%test%%'
The %% sign is a wildcard. If you need start with write 'test%%' and otherwise ends with '%%test'. For contains you need '%%test%%'. You also could combinate this statements like 'test%%abc%%'. This means starts with test and contains abc.
Regards Steffen -
Need Query for empty partitions
I am having nearly 700 partitions for a table.Now i want to find out only the empty partitions.I need query for that.
Thankx..Not the most elegant solution, but it works:
declare
rc number;
str varchar2(200);
begin
for i in (select table_owner, table_name, partition_name from dba_tab_partitions) loop
str := 'select count(*) from ' || i.table_owner || '.' || i.table_name || ' partition (' || i.partition_name || ')';
execute immediate str into rc;
if rc = 0 then
dbms_output.put_line(i.table_owner || '.' || i.table_name);
end if;
end loop;
end; -
hi all,
i want to create a query for items in the item master data that shows the changed field, the old value, the new value, user name and the date it was changed .
can anyone help please.
ciaothanks for the reply
my clients internal auditors require that they have Exception Reports in SAP , i.e reports that can show changes made, date and by which user etc...
1. changes made to item master data
2. changes made to business partner master data
3. changes made to invoices, purchase orders etc..
this reports can be set in query form or xl reporter..
i tried but couldent find the tables ....
any sugestion will be appriciated.. -
What need to study for fusion middleware from oracle APPS DBA perspective
Hi,
As i am working as oracle appsdba on 11i and r12. I want to know about fusion middleware.
Please let me know what concepts i need to get trained as oracle APPS DBA perspective.
Thanks in advance.Hi;
You need to read concept manuels for your issue.All information cover in it
For r12.1.1:
http://download.oracle.com/docs/cd/B53825_01/current/html/docset.html
For r12:
http://download.oracle.com/docs/cd/B40089_10/current/html/docset.html
For r11:
http://download.oracle.com/docs/cd/A60725_05/r11_doc.htm
Regard
Helios -
How to find out the exact reason for backordered order in oracle apps R12
Hi,
I am new to OM module.I booked an order and trying to do "pick release" the booked order but i couldn't do so, because the order is getting backordered.
These are the things i checked
1.On-hand quantity for the particular item i am booking is sufficient enough
2.Item is in M1 org and onhand quantity is also in same org.
Can you please help me how to find the exact reason for my order getting backordered.
Regards
Sandeep.GHi Sandeep,
Reasons for pick release resulting in back ordered can be found here:
Reasons for a Sales Order to get Backordered!
Failing pick release, orders getting backordered and other common issues with picking.
Please review notes:
Cannot Pick Release Items, Completes with Warning and the Item is Backordered. (Doc ID 1240404.1)
Pick Release Process Completes In Warning Line Gets Backordered Though Onhand Is Present (Doc ID 1285514.1)
Pick Release Backorders Sales Order Lines, Error in Log File "No Mtl_Sales_Order ID found for oe header" (Doc ID 398385.1)
Reservation Remains After Pick Release Of Backordered Move Order (Doc ID 754518.1)
In addition, please review:
What is Back Order in OM? How are Backorders Handled | Oracle Apps
Thanks &
Best Regards, -
Query for Item wise sales report
Hi Guys,
Below is the query i have used to run Sales Register.
But we need Item wise sales register and those Excise Duty calculations are needed for item wise instead of total document wise. Pls update the query ...
SELECT M.DocNum AS 'Inv.No ', M.DocDate as 'Date', M.CardName as 'Customer Name',L.Dscription,L.Quantity,L.Price,
(Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
(SELECT Avg(TaxRate) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT % ',
(SELECT Sum(TaxSum) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
(SELECT Avg(TaxRate) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST % ',
(SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
(SELECT Avg(TaxRate) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as ' TAXEXEMPT % ',
(SELECT Sum(TaxSum) FROM INV4 where statype=7 and DocEntry=M.DocEntry) as ' TAXEXEMPT ',
(SELECT Avg(TaxRate) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as ' VAT% ',
(SELECT Sum(TaxSum) FROM INV4 where statype=8 and DocEntry=M.DocEntry) as 'VAT12.5 ',
(SELECT Avg(TaxRate) FROM INV4 where statype=9 and DocEntry=M.DocEntry) as ' CST 2% ',
(SELECT Sum(TaxSum) FROM INV4 where statype=9 and DocEntry=M.DocEntry) as ' CST @2 ',
(SELECT Avg(TaxRate) FROM INV4 where statype=11 and DocEntry=M.DocEntry) as ' CENVCST % ',
(SELECT Sum(TaxSum) FROM INV4 where statype=11 and DocEntry=M.DocEntry) as ' CENVCST ',
(SELECT Avg(TaxRate) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as ' BED % ',
(SELECT Sum(TaxSum) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as ' BED ',
(SELECT Avg(TaxRate) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as ' Cess% ',
(SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as ' Cess ',
(SELECT Avg(TaxRate) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as ' HCess % ',
(SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as ' Hcess ', L.LineTotal as 'Row Total (Rs.)',M.DocTotal as 'Doc Total'
FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]') AND TargetType ! = 14
GROUP BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,L.Dscription,L.Quantity,L.Price,L.LineTotal,M.DocTotal
ORDER BY M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,L.Dscription,L.Quantity,L.Price,L.LineTotal,M.DocTotalHi experts..
Pls Update the Query -
Outer join query for SQL server from Oracle
Hi All,
My question is regarding making queries from Oracle to SQL Server database thorugh DBLink.
In my oracle database I have a DBLink emp.world for SQL Server database.
I need to query SQL Server data from oracle (so that this query can be combined with other oracle tables).
Query is given below:
SELECT
a."EmpID" as "Employee ID",
a."EmpStatus" "Employee Status"
b."EmpSub" as "Employee Subjects"
FROM
[email protected] a
left outer join [email protected] b on a."EmpID" = b."suEmpID"
ORDER BY a."EmpID";My problem is when I run the same query from oracle, it does not show the EmpID that does not exist in Subjects table, but when run from actual SQL Server database, it shows all the records.
Samples are given below:
Run from Oracle
Employee ID Employee Status Employee Subjects
101 Active Maths
102 Active Maths
102 Active Physics
104 Inactive Chemistry
Run form SQL Server
Employee ID Employee Status Employee Subjects
101 Active Maths
102 Active Maths
102 Active Physics
103 Active NULL
104 Inactive ChemistryI am not sure why in oracle outer join for SQL server tables is not working. What is the right way for outer join in this case.
I am using oracle database 10gR2 and SQL Server 2005.
Please Help.
Thanks.SELECT
a."EmpID" as "Employee ID",
a."EmpStatus" "Employee Status"
b."EmpSub" as "Employee Subjects"
FROM
[email protected] a
left outer join [email protected] b on a."EmpID" = b."suEmpID"
ORDER BY a."EmpID";
http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm#sthref3175
From your description, it appears you may need a right outer join. You want to get back all the rows from 'B', not from 'A'. Try a right join and let us know. -
Hi,
I have a requirement to accommodate an attribute burdened_cost of pa_budget_versions table in the page /oracle/apps/pa/project/webui/MyProjectsPG.
Actually the issue is, this is a standard search page and there is another page /oracle/apps/fnd/framework/customjrad/webui/CustomJRADViewUpdatePage.xml where we have the facility to shuttle the display attributes.
Currently my requirement is my attribute doesn't exist in the shuttle list and hence I need to accommodate my attribute possibly by VO extension (I believe)
But I am not able to exactly get the details, which VO to be extended here...
Attaching the images of the pages.(CustomJRADViewUpdatePage is where we can see shuttling of attirbutes and I need to additionally accommodate one attribute here)
(MyProjectsPG is where we see the shuttled attributes, so I should view my additionally added attribute here in the display list)
Can any please let me know how to get the details and achieve the solution for this requirement.
OAF version: 11.5.10RUP7
Thanks,
AffyAJ,
Thanks for your super fast response.
I don't want to dynamically display the attribute.
As we can see there are existing attributes in the shuttle list , so we can shuttle whichever attribute we want to display.
I need to add my attribute to this list and I am not getting idea as to how and which VO i need to substitute to get the attirbute in this list, once I can get this attribute I hope it'll be displayed in the search page once we shuttle this attribute to the display list. Let me know if i am wrong.
Also, I tried to find the VO behind both the pages, for CustomJRADViewUpdatePG.xml there are no VOs to check for and only in MyProjectsPG , I found out ProjectListGenVO, so is this the one i need to substitute with?
Thanks,
Affy -
Query for Cost Code in oracle HRMS
Hello Exports,
i am new in oacle hrms,
So Can you please tell how to fetch cost code in oracle hrms r12 ( i need sql query for cost code )
Thankstry the following (assignment costing as at today):
select ppx.full_name
,ppx.employee_number
,pax.assignment_number
,pax.primary_flag
,pcax.proportion
,pcak.segment1
,pcak.segment2
,pcak.segment3
,pcak.segment4
from per_assignments_x pax
,per_people_x ppx
,pay_cost_allocations_x pcax
,pay_cost_allocation_keyflex pcak
where ppx.person_id = pax.person_id
and pax.assignment_id = pcax.assignment_id
and pcak.cost_allocation_keyflex_id = pcax.cost_allocation_keyflex_id -
Problem in enter-query and execute-query in TEMPLATE.fmb in Oracle Apps R11
I have created the form using TEMPLATE.fmb in Oracle Apps R11i. There is 2 problems listed below when it queries the records:-
1) Cannot query the record by the specific value e.g. Cannot retrieve the PO records by entering the specific PO number.
2) Always display the message 'Do you want to save the record?' whenever the <ENTER-QUERY> key (i.e. F11) is pressed.
HOWEVER, it works fine for ALL records without entering any specific values.
Does anybody help to solve these two problems? Any hints? Thanks for any helps.try setting the block status to query or record
status to new prior to getting in the enter-query
mode.
Thanks
TapashHi Tapash, Dun understand.. please give more details.. Thanks. -
Dear SAP Members,
I need a query that contains
ItemCode,ItemDescription from oitm table and its first child item code,Item Description,Quantity,currency and price from itt1 table.I have taken all the datas but there is no ItemDescription from itt1 table.How to join all these datas.
Please Give suggestions or query for this issue.
With Regards,
RevathyHi try this
Declare @BOMDetails table(TreeType Nvarchar(MAX),PItem NVARCHAR(Max),PName NVARCHAR(MAX),CItem NVARCHAR(Max),CName NVARCHAR(MAX),Comment NVARCHAR(MAX),onHand Numeric(18,0),[Committed] Numeric(18,0),FreeStock Numeric(18,0),[Status] NVARCHAR(MAX),Quantity numeric(18,0),Price numeric(18,0),Warehouse nvarchar(MAX),Currency nvarchar(MAX))
INSERT Into @BOMDetails
SELECT T1.TreeType ,T0.Father AS [Parent Code], T2.ItemName AS [Parent Description], T0.Code AS [Child Code],
T1.ItemName AS [Child Description], T0.Comment, cast((T1.OnHand ) as Numeric(18,0)) as [Un-Committed Stock],
cast(T1.IsCommited as Numeric(18,0)) AS [Committed Stock], cast((T1.OnHand - T1.IsCommited)as Numeric(18,0)) AS [Free Stock], T2.FrgnName AS [Status],T0.Quantity,T0.Price ,T0.Warehouse,T0.Currency
FROM ITT1 T0 INNER JOIN OITM T1 ON T0.Code = T1.ItemCode
INNER JOIN OITM T2 ON T0.Father = T2.ItemCode
WHERE T0.ChildNum=1
Union All
SELECT ' ',T0.Father as [Parent Code], T2.ItemName AS [Parent Description], '', '', '', 0,0,0 , '',0,0,'','' FROM ITT1 T0 INNER JOIN OITM T1
ON T0.Code = T1.ItemCode INNER JOIN OITM T2 ON T0.Father = T2.ItemCode
Group By T0.Father,T2.ItemName
ORDER BY T0.Father, T0.Code
update @BOMDetails set PItem='' ,PName='' where TreeType='N' or TreeType='P'
Select PItem as[Parent Code] ,PName as [Parent Description],CItem as [Child Code],CName as [Child Description],Comment,Quantity,Price,Warehouse,Currency from @BOMDetails
thanks,
Neetu
Maybe you are looking for
-
Movie with alternative version(s) possible
Hello, have made a movie from several clips. Now I want to make a second movie from the same clips but as shorter version. Is that possible? Must I again import the clips-?
-
Events firing in infinite loop
Hello, I have two date fields (a start date and a due date) and a text field for the user to enter a duration between the two dates. I've added separate event listeners for each component and the problem I'm having is when one field is updated, the
-
How can I get Reader to download?
My Reader program didn't work properly, so I went to download the latest update. The download instructions said to go to my directory and find a .exe file, but when I do that I get an error message that it could not complete. Searching for help, I
-
Hello. I'm a newbie in this forum, and I could'nt find a proper forum to post any requests for additional features that could be implemented to the iPod. After giving some thoughts about it: How about the iCam? A 160GB iPod with 2MP video cam with fl
-
Prepared statement problem in MS-ACCESS
good luck all when i use the following code using ms-access and jdk1.4 i got exception that driver does not support the function Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:rtechdb"); //eror here // st=co