Query on BIW........................Urgent
Hi Friends,
Here is my query on BIW.
User getting the error as "Compile error in Hidden Module:cBEXconfac" while executing the query.
Plz help me on this if someone face the same prob.
Thanks a lot in advance.
mrutyun^
May be this is of some help -
"compile error in hidden module: clBExevent bulider" error in BW 3.5!
Similar Messages
-
Beloq query is taking time to execute and cost is 934.
The db in which it is run has lesser volume of data compared to that of prod.
There is a full table scan on psd
inspite of a pk present on table psd columns (psd_id,psd_serial_no)
also a pk present on table ltc_iss_rec columns(ltc_iss_rec_id,psd_serial_num)
Pl help to optimize the query.
select a.psd_id,a.psd_serial_no,a.sys_id,a.cosmos_ref_no,a.src_sys_asgn_ref_no,
a.bank_id,b.lc_expr_dt
from psd a,ltc_iss_rec b
where ((b.ltc_iss_rec_id >= 'T200203140731163') and (b.ltc_iss_rec_id <= 'T200606224485207'))
and a.psd_id = b.ltc_iss_rec_id
and a.psd_serial_no = b.psd_serial_num
and a.psd_typ_cod = 'ISS'
and b.lc_expr_dt <= '13-Mar-07'
and a.psd_serial_no =
select nvl(max(link_psd_ser_no),'000') from psd_link c,psd_lcs d
where c.psd_id = d.psd_id
and c.psd_serial_no = d.psd_serial_num
and c.link_psd_id = a.psd_id
and c.link_psd_id >= 'T200203140731163' and c.link_psd_id <= 'T200606224485207'
and d.update_serial_num = (
select max(update_serial_num) from psd_lcs e
where e.psd_id = d.psd_id
order by a.psd_id
Explain plan for the query :
Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
SELECT STATEMENT Optimizer Mode=CHOOSE 1 934
SORT ORDER BY 1 96 900
FILTER
NESTED LOOPS 1 96 898
PARTITION RANGE ALL 1 2
TABLE ACCESS FULL IWH_OWNER.PSD 61 4 K 837 1 2
TABLE ACCESS BY GLOBAL INDEX ROWID IWH_OWNER.LTC_ISS_REC 1 26 1 1 1
INDEX UNIQUE SCAN IWH_OWNER.XPKLTC_ISS_REC 1
SORT AGGREGATE 1 112
HASH JOIN 1 112 34
TABLE ACCESS BY GLOBAL INDEX ROWID IWH_OWNER.PSD_LCS 1 40 2 ROWID ROW L
NESTED LOOPS 1 82 5
TABLE ACCESS BY GLOBAL INDEX ROWID IWH_OWNER.PSD_LINK 1 42 3 ROWID ROW L
INDEX RANGE SCAN IWH_OWNER.XIE1PSD_LINK 1 2
INDEX RANGE SCAN IWH_OWNER.XIE1PSD_LCS 2 1
VIEW SYS.VW_SQ_1 134 K 3 M 26
SORT GROUP BY 134 K 4 M 26
INDEX FULL SCAN IWH_OWNER.XIE1PSD_LCS 217 K 7 M 26Read this link.
When your query takes too long ...
If you really need help from any of the forum members then you should avoid using the word "urgent" and give more useful information (check the above link what I meant by useful information) rather than simply saying it's very urgent please help me. It's of no use to anybody.
Regards
Raj -
Urgent Sql Query Problem - -Very Urgent
Hi Guys,
I need a urgent solution for a problem.I am
using the following query
select ename from emp where deptno =10
Now I will declare a bind variable and if user passes 'A'
then the query will run as it is and if he passes B
then it should run the above query with this additional clause -> birthdate - hiredate >15.
Please can any one help its very urgentAssuming that you have a birthdate column in your emp table, the following will do what you are asking for:
VARIABLE bind_var VARCHAR2(1)
EXECUTE :bind_var := '&bind_variable'
SELECT ename FROM
(SELECT 'A' AS selection, ename FROM emp WHERE deptno = 10
UNION ALL
SELECT 'B' AS selection, ename FROM emp WHERE deptno = 10 AND birthdate - hiredate > 15)
WHERE selection = :bind_var
However, the clause "birthdate - hiredate > 15" will only retrieve rows for employees who were born more than 15 days after they were hired. I doubt that this is what you really want, since this is impossible. -
Not able to find query in sq01.Urgent!!!!!!!!
Hi all,
I am trying to search a query AQL4CUST_SERVICECONTRACTINFO==.
In sq01, in user group cust_service i can find a query name of contractinfo but the report name assign to it is AQFKCUST_SERVICECONTRACTINFO==.but I am searching for AQL4CUST_SERVICECONTRACTINFO==.
can anybody please help me. its really urgent.Hi anyone plz............
Its ugent.
Reagards,
Ruchika Saini -
Report select options similar to Query output options : Urgent !!!!!
Hi All,
I have developed a custom report . The output options of this report needs to be included in Selection screen like in SQ01 queries, there should be option to output the report results in different formats like List Viewer, ABAP List, Spread Sheet etc.,.
If some variant is selected then user will select whatever the format he want .
the output should display in that format .
How I can acomodate all these options to output a report .
How can I do this ..Pls help me its Urgent !!!!
Points for Sure !!!
Regards,
VarmaHi,
Try this code,
at user-command.
case sy-ucomm.
when 'disp'.
write:....... "abap list
when 'buton1'
call function 'reuse_alv_list_display'.
endcase.
i hope it gives ur answer
Reward if it helps. -
HELP NEEDED IN FORMING A QUERY...URGENT.....
Hi,
I have a table where in that an employee has multiple rows,
in that i need to query a particular column values, and need to display
in one column separated any special charactar like ":". I need this query.
ex:
EmpID in_time
1900 9:00:00
1900 9:45:00
1900 10:50:00
Here i want to display this as
EmpID time
1900 9:00;9:45;10:50;
Please give me your valuable contributions...create table user644354(empid number(4),in_time varchar2(8));
insert into user644354 values(1900,'9:00:00');
insert into user644354 values(1900,'9:45:00');
insert into user644354 values(1900,'10:50:00');
commit;
select substr(max(SYS_CONNECT_BY_PATH(In_Time, ', ')),2) In_Time FROM
(SELECT in_time,ROWNUM NBR FROM (SELECT In_time FROM user644354 e where empid=1900))
CONNECT BY PRIOR NBR = NBR - 1 START WITH NBR = 1
Regards
Girish Sharma -
Query Issue(Very Urgent)
Hi,
I have issue with select statement to pull the records from two tables. Here I have two tables one is with Billing Document Items and Service Order Operations.
I have service order as unique field in both tables, When I execute select statement with one service order I got 10 records like
S Ord Oper Billing Document Items
Oper Repair Code Item Oper Repair Code
10 AD01 1 10 AD01
20 AD01 2 20 AD01
30 OT01 3 10 AD01
40 RE01 4 20 AD01
50 RP01 5 20 AD01
6 20 AD01
7 30 OT01
8 40 RE01
9 50 RP01
10 50 RP01
This are the records with same Service order number, and my select statement giving data like
O/P
Service Order = 60001212
OPER ITEM REPAIR TYPE
10 1 AD01
20 1 AD01
10 2 AD01
20 2 AD01
10 3 AD01
20 3 AD01
10 4 AD01
20 4 AD01
10 5 AD01
20 5 AD01
10 6 AD01
20 6 AD01
30 7 OT01
40 8 RE01
50 9 RP01
50 10 RP01
But I need output like this
Item Oper Rep Code
1 10 AD01
2 20 AD01
3 10 AD01
4 20 AD01
5 20 AD01
6 20 AD01
7 30 AD01
8 40 RE01
9 50 RP01
10 50 RP01
Please give me the select statement which gives the above output. I need very urgent please....
Thanks
Robbiehi robert,
The ouput u want is just a little away from the one u r actually getting. it is the two fields OPER and ITEM interchangeably..
U just have to use GROUP BY ITEM..........if u want the desired output with ITEM as first field.
<group-by-clause> → GROUP BY [<column-ref>,*]<column-ref>
if it helps please reward points.
thanks -
Row to column query ( Please its urgent)
The query is
SELECT
WO.WORKORDERKEY,
UDF1.PROJECT_MANAGER,
UDF1.TEAM_MANAGER,
UDF1.TEAM_LEAD,
UDF1.CUSTOMER_COORDINATOR,
UDF1.AVIONICS_LEAD,
UDF1.INTERIOR_LEAD,
UDF1.INSPECTOR,
UDF1.MECHANICAL_ENGINEER,
UDF1.AVIONICS_ENGINEER,
UDF1.PLANNER,
UDF1.PARTS_COORDINATOR,
UDF1.LOGO_HEADER_SELECTION
FROM
WORKORDERS WO,
SELECT
DISTINCT WOUD.WORKORDERKEY,
DECODE(UDF.LABEL,'Project Manager',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS PROJECT_MANAGER,
DECODE(UDF.LABEL,'Team Manager',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS TEAM_MANAGER,
DECODE(UDF.LABEL,'Team Lead',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS TEAM_LEAD,
DECODE(UDF.LABEL,'Customer Coordinator',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS CUSTOMER_COORDINATOR,
DECODE(UDF.LABEL,'Avionics Lead',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS AVIONICS_LEAD,
DECODE(UDF.LABEL,'Interior Lead',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS INTERIOR_LEAD,
DECODE(UDF.LABEL,'Inspector',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS INSPECTOR,
DECODE(UDF.LABEL,'Mechanical Engineer',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS MECHANICAL_ENGINEER,
DECODE(UDF.LABEL,'Avionics Engineer',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS AVIONICS_ENGINEER,
DECODE(UDF.LABEL,'Planner',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS PLANNER,
DECODE(UDF.LABEL,'Parts Coordinator',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS PARTS_COORDINATOR,
DECODE(UDF.LABEL,'Report Logo/Header Selection',SUBSTR(TO_CHAR(WOUD.DATA), 1, 50),NULL) AS LOGO_HEADER_SELECTION
FROM
USERDEFINEDFIELDS UDF,
WORKORDERUDFDATA WOUD
WHERE
UDF.USERDEFINEDFIELDKEY = WOUD.USERDEFINEDFIELDKEY
AND UDF.LABEL IN('Project Manager','Team Manager','Team Lead','Customer Coordinator','Avionics Lead','Interior Lead','Inspector','Mechanical Engineer','Avionics Engineer','Planner','Parts Coordinator','Report Logo/Header Selection')
AND UDF.DELETED = 0
AND WOUD.DELETED = 0
) UDF1
WHERE
WO.WORKORDERKEY = UDF1.WORKORDERKEY(+);
The output i am getting like:
WORKORDERKEY PROJECT_MANAGER TEAM_MANAGER TEAM_LEAD CUSTOMER_COORDINATOR
1 abc
2 ddf
2 rrr
3 aaf
3 ege
i need in single line work order key
WORKORDERKEY PROJECT_MANAGER TEAM_MANAGER TEAM_LEAD CUSTOMER_COORDINATOR
1 abc
2 ddf rrr
3 aaf ege
Please solve my problem.maybe this example might be of some help.
SQL> select * from pivot_tab;
COL1 COL2
1 a
1 b
1 c
2 h
2 h
SQL>
SQL>
SQL> select p.col1,
2 substr(max(substr(sys_connect_by_path (p.col2,','),2)),1,60)
3 as col2
4 from (select col1,
5 col2,
6 row_number() over (partition by col1 order by col1, col2) rn
7 from pivot_tab) p
8 start with p.rn = 1
9 connect by p.rn = prior p.rn + 1
10 and prior p.col1 = p.col1
11 group by col1;
COL1 COL2
1 a,b,c
2 h,h
SQL> -
Oracle Forms6i Query Performance issue - Urgent
Hi All,
I'm using oracle forms6i and Oracle DB 9i.
I'm facing the performance issue in query forms.
In detail block form taking long time to load the data.
Form contains 2 non data blocks
1.HDR - 3 input parameters
2.DETAILS - Grid - Details
HDR input fields
1.Company Code
2.Company ACccount No
3.Customer Name
Details Grid is displayed the details.
Here there are 2 tables involved
1.Table1 - 1 crore records
2.Table2 - 4 crore records
In form procedure one cursor bulid and fetch is done directly and assign the values to form block fields.
Below i've pasted the query
SELECT
t1.entry_dt,
t2.authoriser_code,
t1.company_code,
t1.company_ac_no
initcap(t1.customer_name) cust_name,
t2.agreement_no
t1.customer_id
FROM
table1 t1,
table2 t2
WHERE
(t2.trans_no = t1.trans_no or t2.temp_trans_no = t1.trans_no)
AND t1.company_code = nvl(:hdr.l_company_code,t1.company_code)
AND t1.company_ac_no = nvl(:hdr.l_company_ac_no,t1.company_ac_no)
AND lower(t1.customer_name) LIKE lower(nvl('%'||:hdr.l_customer_name||'%' ,t1.customer_name))
GROUP BY
t2.authoriser_code,
t1.company_code,
t1.company_ac_no,
t1.customer_name,
t2.agreement_no,
t1.customer_id;
Where Clause Analysis
1.Condition 1 OR operator (In table2 two different columbs are compared with one column in table)
2.Like Operator
3.All the columns has index but not used properly always full table scan
4.NVL chk
5.If i run the qry in backend means coming little fast,front end very slow
Input Parameter - Query retrival data - limit
Only compnay code means record count will be 50 - 500 records -
Only compnay code and comp ac number means record count will be 1-5
Only compnay code,omp ac number and customer name means record count will be 1 - 5 records
I have tried following ways
1.Split the query using UNIOIN (OR clause seaparted) - Nested loops COST 850 , Nested loops COST 750 - index by row id - cost is 160 ,index by row id - cost is 152 full table access.................................
2.Dynamic SQL build - 'DBMS_SQL.DEFINE COLUMN .....
3.Given onlu one input parameter - Nested loops COST 780 , Nested loops COST 780 - index by row id - cost is 148 ,index by row id - cost is 152 full table access.................................
Still im facing the same issue.
Please help me out on this.
Thanks and Regards,
Oracle1001Sudhakar P wrote:
the below query its take more than one minute while updating the records through pro*c.
Execute 562238 161.03 174.15 7 3932677 2274833 562238Hi Sudhakar,
If the database is capable of executing 562,238 update statements in one minute, then that's pretty good, don't you think.
Your real problem is in the application code which probably looks something like this in pseudocode:
for i in (some set containing 562,238 rows)
loop
<your update statement with all the bind variables>
end loop;If you transform your code to do a single update statement, you'll gain a lot of seconds.
Regards,
Rob. -
AD-hoc query...urgent
hi,
I wanted to generate ad hoc query.I kno that it is generated to transmit the data in the Vendor systems from the SAP System.
so plz tell me how to generate it in SAP HR.plz if possible explain it with the example and what is the impact of it on SAP system as well as vendor system??
points r assured.
ThanxAd hoc query is a report which is based on database tables. It is normally used if a report is required to dump the data from one or more tables using table join not having complex logic.
Ad hoc query can be created for any module. You need to know the database table/s or logical database with correct logic. Since, it is just a report, it does not have any impact on another area.
regards, -
Select query on CRMD_ORDERADM_H (urgent)
Hi All,
I want to retrieve data from CRMD_ORDERADM_H that would fetch all transactions created on the same day before 6pm.
I also want another internal table that would contain transaction created on the same day between 6pm and 11pm.
How do I write a SELECT query for the same ????
Regards,
AshishHi
You can try it out useing the programme below for your requirement.
data: it_all_orders1 type standard table of CRMD_ORDERADM_H with header line,
it_all_orders2 type standard table of CRMD_ORDERADM_H with header line.
data: to_day type SYDATUM,
time_stamp1 type COMT_CREATED_AT_USR,
time_stamp2 type COMT_CREATED_AT_USR,
time_stamp3 type COMT_CREATED_AT_USR.
to-day = sy-datum.
concatenate to-day(2) '.' to-day2(3) '.' to-day5(3) '.' '180.000' into time_stamp1.
concatenate to-day(2) '.' to-day2(3) '.' to-day5(3) '.' '180.000' into time_stamp2.
concatenate to-day(2) '.' to-day2(3) '.' to-day5(3) '.' '230.000' into time_stamp3.
select * from CRMD_ORDERADM_H
into corresponding fields of table
it_all_orders1
where
CREATED_AT eq time_stamp1.
select * from CRMD_ORDERADM_H
into corresponding fields of table
it_all_orders2
where
CREATED_AT between
time_stamp2
and
time_stamp3.
Reward points if helpful
Dinaker vikas -
Need a SQL query(Pls Its urgent)
Hi,
I want a SQL query for the foll..
Details r below..
Table AFPFTRAN
BU TRansactiondate Amt
13202 10-04-05 10,000
13203 11-05-05 20,000
13202 20-04-05 5,000
Table AFGENCOD
BU Clerk Name Clerk Code
13202 Amit TFBG
13203 Anand TFMG
I want a query to get data as below..
Tr Date TFBG TFMG
Apr 15,000 0
May 0 20,000
JUn 0 0
Jul 0 0
Aug
Sep
Aug
Nov
DEc
Jan
Feb
Mar
I want this to achieve using a single query...?How can I achive this?
Pls give the sol...
Adios...
Prashanth DeshmukhDoes it look like you need ?
SQL> select * from t;
BU TDATE AMT
13202 10.04.05 10000
13203 11.05.05 20000
13202 20.04.05 5000
SQL> select * from t1;
BU NAME CODE
13202 Amit TFBG
13203 Anand TFMG
SQL> SELECT pivot_month.mname, tops.TFBG, tops.TFMG
2 from
3 (
4 select to_char(t.tdate,'MM') month_no,
5 sum(decode(t1.code,'TFBG',t.amt,0)) TFBG,
6 sum(decode(t1.code,'TFMG',t.amt,0)) TFMG
7 from t1, t
8 where t.bu=t1.bu
9 and to_char(t.tdate,'yyyy') = 2005
10 GROUP BY t1.code, to_char(t.tdate,'MM')
11 ) tops,
12 (select rownum mn, to_char(to_date(rownum,'MM'),'MON') mname,
13 case when rownum between 1 and 3 then rownum + 9
14 else rownum - 3 end rn
15 from dict where rownum < 13) pivot_month
16 where pivot_month.mn = tops.month_no (+)
17 order by pivot_month.rn
18 /
MNA TFBG TFMG
APR 15000 0
MAY 0 20000
JUN
JUL
AUG
SEP
OCT
NOV
DEC
JAN
FEB
MAR
12 rows selected.Rgds. -
Error During Business Content Query Activation- Very Urgent
Hi All,
I am trying to install few queries in business cube 0pur_c01, which is already in production and already lot many queries are running.
As per requirement i have to install New quries in the 0Pur_C01
0PUR_C01_Q0012 : Ordering Activities
0PUR_C01_Q0015 : Purchase Order Values
0PUR_C01_Q0013 : Vendor Comparison re Purchase Values
0PUR_C01_Q0004 : Values Purchase Order Delivery Invoice
0PUR_C01_Q0023 : Total and Average Order Value
Out of these five quries i am unable to install 0PUR_C01_Q0012 : Ordering Activities and geeting error message during simulate install rest queries has been installed already without any issue once i have unselected the already transported
element.
I am doing the same for query 0PUR_C01_Q0012 : Ordering Activities but getting error message
Error when activating element 9W6JIW7YMO04XVOZ5ATLLFLPB
BEx transport request 'SBDK900497' is not available or not suitable
Regards
Premanshu GuptaHi,
To rectify this error,
<i>BEx transport request 'SBDK900497' is not available or not suitable</i>
Go to Transport Connection, there click on "BEX" "Create tranport request for BEX", there insert a new row, and create a new request. This is the default request for BEX queries.
While transporting , dont tranport this request, collect the objects which you want to tranport and create a new request.
<i>Error when activating element 9W6JIW7YMO04XVOZ5ATLLFLPB</i>
For this error, check the object in meta data repository, whether the object is in active version or not.I think this object is not in Active version thats why you are getting this error.
Assign points if it helps.... -
BW query as Iview(Urgent)
Dear Folks,
I am trying to create BW related BEx queries as Iview in EP.
Every thing is fine,but when I am checking the preview of the view its showing the query direct output, instead of showing Query Selection screen first.
How can I show the Selection screen as first screen then output of the query..
Regards,
SudhirHi Sudhir,
give the following property for you BW report iview as..
BEx Web Application Query String==> cmd = ldoc&infocube=<info cube name>&query=<query name>
hope this will solve u r problem
for more info please go through this link::
http://help.sap.com/saphelp_nw04/helpdata/en/a9/76bd3b57743b09e10000000a11402f/frameset.htm
select::
portal->administration giude->content administration->iviews->creating iviews->Creating iViews over Enterprise Applications and Databases ->Creating SAP Application iViews ->Creating BEx Web Application iViews
rgds
srinivas -
Hi all,
I have three tables. Data present in them are below:
Data for Files table:
File_ID File_Name File_Type File_Short_Desc File_Desc File_Str_Pos File_Str_Len
1 File1 K Desc 1 Description 1 12 15
2 File2 K Desc 2 Description 2 14 16
3 file3 G Desc 3 Description 3 0 0
4 file4 S Desc 4 Description 4 0 0
Data for Pgm_Files_Batch table:
PgmBFile_Pgm_Name PgmBFile_File_ID PgmBFile_Access_Type PgmBFile_DD_Name
bprog1 3 R DDName3
bprog2 4 W DDName4
Data for Pgm_Files_Online tables:
PgmOFile_Pgm_Name PgmOFile_File_ID PgmOFile_Access_Type PgmOFile_DD_Name
prog1 1 R DDName1
prog2 2 W DDName2
And the result that i need to get is below:
File Prog name Ddname Access Type
File1 prog1 DDname1 R
File2 prog2 DDname2 W
file3 bprog1 DDName3 R
file4 bprog2 DDName4 W
Can anyone give me the query for this ? Appreciate all your help.
Thanking you in advance,
-JosCan anyone give me the query for this ? No. Not until you give us the rule that governs whether FILES is joined to PGM_FILES_BATCH or PGM_FILES_ONLINE.
However, I can say this: your best bet is to write two queries, FILES JOIN PGM_FILES_BATCH and FILES JOIN PGM_FILES_ONLINE and use UNION ALL to munge the results into a single output.
Cheers, APC
Maybe you are looking for
-
N8 music player isnt refreshing
Good day friends! Please help me find a solution to this problem.. At first my n8's music player is working fine. But suddenly after i add songs to my n8 and try to refresh the music library, it keeps on saying "library is up to date" but no file or
-
ThinkVantage button not working
There is no response when I press the ThinkVantage button on my R61i.
-
Solaris 2.5.1 and DHCP?
Does Solaris 2.5.1 support DHCP and how do you configure if it does? thanks
-
Does the iPad support Function keys natively, not through another program?
I have my Operations department which needs to access a couple of customer databases through the web using a java applet. I do not want them to have to come to the office so we got them a netbook, but I was hoping that the iPad would be a better solu
-
OWB 9.0.3 migration to OWB 10G R2
Hi All, I am in the process of doing the Migration of OWB 9.0.3 migration to OWB 10G R2, I am doing it for the first time. is there any manual or can any one help me with the steps to achieve the migration. thanks.