Concatenation with ' '
Hi freinds.
Plz tell me how can i concatenate two strinng in below case.
Str1 = 'RAJESH'
str2 = 'KUMAR'
I want 'RAJESH' 'KUMAR' as concatenated string.
How canit be done.
regards
rajesh
Hi Rajesh,
try the below i executed, it works for you
data : fname type string value 'PAVAN',
lname type string value 'KUMAR',
name type string.
concatenate '''' fname '''' '''' lname '''' into name.
write name.
output is
'PAVAN' 'KUMAR'
Thanks & Regards,
Pavan
Similar Messages
-
GL Account Key displays Chart of accounts concatenated with GL Account
Hi,
When we pull the GL Account Key object into a WEBI report, the Chart of Account value is concatenating with the GL Account number like ABDA/253616. In Bex Query, choosing the Chart of accounts and GL Account in the Analyser gives only the number value of the GL Account 253616.
How do we resolve this issue.
Thanks,
AnuHi,
We had a similar problem, and we fixed it by using a variable.
Create a variable (e.g. GL Account) with the following formula:
=tonumber(replace([L01_GL_ACC_Key];"ABDA/";""))
where,
[L01_GL_ACC_Key] = Original Account key with the Chart of Accounts
"ABDA/" The piece of the account that you want removed
The formula will convert your account number to a number by replacing the "ABDA/" with a blank (the "" in the formula)
Note: There is no space between the two quotation marks
You can now use the variable in your report instead of the original account key.
Regards,
Sias -
Table name should be concatenated with month & year eg.product_may09
hello all,
I have to take a backup of table on monthly basis. for this table name should be concatenated with previous month and year eg., product_may09.. I tried with Create table stmnt its not working anyone please help.It would be very generous from you if you would provide us with versions, what you did and what's not working (maybe an error message?)...
Anyway; If I got you right you want to create a backup table with the same structure and data as in your base table?
maybe this:
forms_ddl('create table product_'||to_char(sysdate, 'monyy')||' as select * from product');fits your requirement. This creates you a table with the same structure and data as your basetable (except the primary/foreign keys, indices and trigger you have on the basetable).
But if you have to do this every month by hand I'd go for a database job which runs once a month with the above statement. In database procedures you have to use execute immediate instead of forms_ddl; usage is the same (except execute immediate raises intelligent exceptions in contrary to forms_ddl). take a look at http://tahiti.oracle.com and search after dbms_job or dbms_scheduler (depending the database version you use which you also didn't mention)
regards -
Make Concatenation with different number of columns in Sequence
I have the folowing query
select dated,sum(substr(hrs,1,2)) ||':'|| sum(substr(hrs,4,5)) hrs,dpt,reason
from dpr.stp_00_00
group by dated,dpt,reason
order by dated
and the output of this query is this
DATED HRS DPT REASON
10/14/2011 2:5 Mechanical Boiler tubes damaged & less availability of steam due to only one boiler operation
10/14/2011 0:20 Mechanical Breakage of link of bagasse carrier # 1 and surplus carrier
10/14/2011 1:0 Mechanical Choke at belt conveyor
10/15/2011 0:10 Mechanical Boiler pressure dropped
10/16/2011 1:30 Electrical Power failure / 505 governor card damaged of turbine # 2
10/16/2011 0:10 Mechanical 3rd mill taken in line
10/16/2011 0:30 Mechanical Raw juice line before primary heaters busted
10/16/2011 1:0 Mechanical Raw juice pump at mill house NRV body got busted
I have grouped the rows with reason column but due to that the reason is different for each dept and also and for different in each date there fore i want to do that the reason in all dates should be concatenated in single rows in Reason column In other words all reasons in all dates should be shown in single column with grouped date and Department and after the output of data should be like bellow
DATED HRS DPT REASON
10/14/2011 2:5 Mechanical Boiler tubes damaged & less availability of steam due to only one boiler operation - Breakage of link of bagasse carrier # 1 and surplus -Mechanical Breakage of link of bagasse carrier # 1 and surplus carriercarrier - Mechanical Choke at belt conveyorHow about this:
WITH t AS
(SELECT TO_DATE('10/14/2011', 'MM-DD-YYYY') dated, 'Mechanical' dpt, 'Boiler tubes damaged and less availability of steam due to only one boiler operation' reason FROM dual UNION ALL
SELECT TO_DATE('10/14/2011', 'MM-DD-YYYY') dated, 'Mechanical' dpt, 'Breakage of link of bagasse carrier # 1 and surplus carrier' reason FROM dual UNION ALL
SELECT TO_DATE('10/14/2011', 'MM-DD-YYYY') dated, 'Mechanical' dpt, 'Choke at belt conveyor ' reason FROM dual UNION ALL
SELECT TO_DATE('10/15/2011', 'MM-DD-YYYY') dated, 'Mechanical' dpt, 'Boiler pressure dropped' reason FROM dual UNION ALL
SELECT TO_DATE('10/16/2011', 'MM-DD-YYYY') dated, 'Electrical' dpt, 'Power failure / 505 governor card damaged of turbine # 2 ' reason FROM dual UNION ALL
SELECT TO_DATE('10/16/2011', 'MM-DD-YYYY') dated, 'Mechanical' dpt, '3rd mill taken in line' reason FROM dual UNION ALL
SELECT TO_DATE('10/16/2011', 'MM-DD-YYYY') dated, 'Mechanical' dpt, 'Raw juice line before primary heaters busted' reason FROM dual UNION ALL
SELECT TO_DATE('10/16/2011', 'MM-DD-YYYY') dated, 'Mechanical' dpt, 'Raw juice pump at mill house NRV body got busted' reason FROM dual)
SELECT dated,
dpt,
RTRIM(XMLAGG(XMLELEMENT(c, reason||' - ')).extract ('//text()'), ' - ') reasons
FROM t
GROUP BY dated,
dpt -
Concatenation with integers & strings
I am new to java and was wondering how to concatenate strings with integers. Do I need to first change an int to its character value before concatenating it with a string? Most of the languages I have used will convert types automatically, but I'm new to Java.
I am trying to set up a for/next loop to allow the user to input student names for the grade book.
I have defined Student1Name, Student2Name, and Student3Name as strings.
I have also created a Scanner object:
Scanner inputStudent = new Scanner (System.in);
for (int i = 1; i < 4; i++)
System.out.print ("Please enter the name of student" + i + ": ");
"Student" + i + "Name" = inputStudent.nextLine();
Thank you for any help you can provide!
- Jeff CI am trying to get an input string from the user and assign it to 3 variables: Student1Name, Student2Name, and Student3Name.You can't dynamically create variable names like that.
I was just trying to see if I can do this with a for/next loop instead of typing this outBut you can use an Array. Create an array named "studentName" of size three, then you can assign the name to a different index of the array. -
my tables;
SQL> desc emp_pay
Name
EMP_CODE
EMP_ALLW_CODE
EMP_ALLW_START_DT
EMP_ALLW_UPTO_DT
EMP_ALLW_AMT
SQL> desc emp_mast
Name
EMP_CODE
EMP_NAME
EMP_GRADE_CODE
EMP_DOB
EMP_JOIN_DATE
EMP_DEPT_CODE
SQL> desc ALLW_MAST
Name
ALLW_CODE
ALLW_DESC
SQL> select * FROM EMp_PAY;
EMP_CO EMP_AL EMP_ALLW_S EMP_ALLW_U EMP_ALLW_AMT
01 A01 01/01/2008 31/12/2008 3000.000
01 A02 01/01/2008 31/12/2008 300.000
01 A03 01/01/2008 31/12/2008 150.000
01 D01 01/01/2008 31/12/2008 15.000
02 A01 01/01/2008 31/12/2008 1500.000
02 A02 01/01/2008 31/12/2008 180.000
02 A03 01/01/2008 31/12/2008 50.000
02 A04 01/01/2008 31/12/2008 100.000
02 D01 01/01/2008 31/12/2008 10.000
03 A01 01/01/2008 31/12/2008 2500.000
03 A02 01/01/2008 31/12/2008 500.000
03 A03 01/01/2008 31/12/2008 200.000
03 D01 01/01/2008 31/12/2008 12.000
04 A01 01/01/2008 31/12/2008 2000.000
04 A02 01/01/2008 31/12/2008 250.000
04 A03 01/01/2008 31/12/2008 180.000
04 A04 01/01/2008 31/12/2008 150.000
04 A05 01/01/2008 31/12/2008 50.000
04 D01 01/01/2008 31/12/2008 11.500
05 A01 01/01/2008 31/12/2008 950.000
05 A02 01/01/2008 31/12/2008 150.000
05 A03 01/01/2008 31/12/2008 125.000
05 A04 01/01/2008 31/12/2008 75.000
i want to display result in 2 ways;
(1)
EMP_CODE ENAME Allw_Code and Allw_Desc and emp_allw_amt netSAL
01 EMP1 A01 Basic 3000 + A02 HRA 300 + A03 TRPT 150 - D01 CONTR 15 3435
02 EMP2 A01 Basic 1500 + A02 HRA 180 + A03 TRPT 50 + A04 ELEC 100 - D01 CONTR 10 1820
03 EMP3 A01 Basic 2500 + A02 HRA 500 + A03 TRPT 200 - D01 CONTR 12 3188
04 EMP4 A01 Basic 2000 + A02 HRA 250 + A03 TRPT 180 + A04 ELEC + 150 A05 WTR 50 - D01 CONTR 11.5 2618.5
05 EMP5 A01 Basic 950 + A02 HRA 150 + A03 TRPT 125 + A04 ELEC 75 1300 [Not contributing, so NO dedc. (D01)]
(2) Earnings (A01, A02, A03...) separate Column..and Deductions (D01...) separate Column. deductions can be more than 1.
EMP_CODE ENAME Allw_Code and Allw_Desc and emp_allw_amt Total Earnings Deductions Total deductions netSAL
01 EMP1 A01 Basic 3000 + A02 HRA 300 + A03 TRPT 150 3450.000 D01 CONTR 15 15.000 3435.000
02 EMP2 A01 Basic 1500 + A02 HRA 180 + A03 TRPT 50 + A04 ELEC 100 1830.000 D01 CONTR 10 15.000 1820.000
03 EMP3 A01 Basic 2500 + A02 HRA 500 + A03 TRPT 200 3200.000 D01 CONTR 12 12.000 3188.000
04 EMP4 A01 Basic 2000 + A02 HRA 250 + A03 TRPT 180 + A04 ELEC + 150 A05 WTR 50 2630.000 D01 CONTR 11.5 11.500 2618.500
05 EMP5 A01 Basic 950 + A02 HRA 150 + A03 TRPT 125 + A04 ELEC 75 1300.000 1300.000 [Not contributing, so NO dedc. (D01)]
another situation, i have 2 tables;
Table 1
Parent ID
Parent Name
Amount
table 2
DPND_CODE
DPND_NAME
DPND_RELAT_CODE
DPND_DOB
DPND_YN
DPND_SHARE_AMOUNT
DPND_BANK_CODE
DPND_BANK_AC_NO
DPND_AGENT_CODE
the query should check for the WHERE condition that dpnd_yn "Y"
Parent ID Parent Name Amount
001 emp1 200.000
001_01 emp1_chld1 50.000
001_02 emp1_chld2 50.000
001_03 emp1_chld3 50.000
001_04 emp1_chld4 50.000
.Solution for (1):
with tbl as (
select '01' emp_co, 'A01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 3000.000 EMP_ALLW_AMT from dual
union all
select '01' emp_co, 'A02' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 300.000 EMP_ALLW_AMT from dual
union all
select '01' emp_co, 'A03' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 150.000 EMP_ALLW_AMT from dual
union all
select '01' emp_co, 'D01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 15.000 EMP_ALLW_AMT from dual
union all
select '02' emp_co, 'A01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 1500.000 EMP_ALLW_AMT from dual
union all
select '02' emp_co, 'A02' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 180.000 EMP_ALLW_AMT from dual
union all
select '02' emp_co, 'A03' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 50.000 EMP_ALLW_AMT from dual
union all
select '02' emp_co, 'A04' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 100.000 EMP_ALLW_AMT from dual
union all
select '02' emp_co, 'D01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 10.000 EMP_ALLW_AMT from dual
union all
select '03' emp_co, 'A01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 2500.000 EMP_ALLW_AMT from dual
union all
select '03' emp_co, 'A02' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 500.000 EMP_ALLW_AMT from dual
union all
select '03' emp_co, 'A03' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 200.000 EMP_ALLW_AMT from dual
union all
select '03' emp_co, 'D01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 12.000 EMP_ALLW_AMT from dual
union all
select '04' emp_co, 'A01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 2000.000 EMP_ALLW_AMT from dual
union all
select '04' emp_co, 'A02' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 250.000 EMP_ALLW_AMT from dual
union all
select '04' emp_co, 'A03' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 180.000 EMP_ALLW_AMT from dual
union all
select '04' emp_co, 'A04' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 150.000 EMP_ALLW_AMT from dual
union all
select '04' emp_co, 'A05' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 50.000 EMP_ALLW_AMT from dual
union all
select '04' emp_co, 'D01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 11.500 EMP_ALLW_AMT from dual
union all
select '05' emp_co, 'A01' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 950.000 EMP_ALLW_AMT from dual
union all
select '05' emp_co, 'A02' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 150.000 EMP_ALLW_AMT from dual
union all
select '05' emp_co, 'A03' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 125.000 EMP_ALLW_AMT from dual
union all
select '05' emp_co, 'A04' EMP_AL, to_date('01/01/2008', 'dd/mm/yyyy') EMP_ALLW_S, to_date('31/12/2008', 'dd/mm/yyyy') EMP_ALLW_U, 75.000 EMP_ALLW_AMT from dual
select emp_co emp_code, 'EMP' || to_char(rownum) ename, result_, netsal - emp_allw_amt*2 as netsal from (
select a.*, replace(substr(sys_connecT_by_path (output, '%'), 2), '%', ' ') result_
from(
select emp_co, emp_al, emp_allw_s, emp_allw_u, case when instr(emp_al,'D') = 0 then 0 else emp_allw_amt end emp_allw_amt,
decode(emp_al, 'A01', 'A01 Basic ' || emp_allw_amt,
'A02', '+ A02 HRA ' || emp_allw_amt,
'A03', ' + A03 TRPT ' || emp_allw_amt,
'A04', '+ A04 ELEC ' || emp_allw_amt,
'D01','- D01 CONTR ' || emp_allw_amt) as output,
row_number() over (partition by emp_co order by emp_al) as rn,
count(1) over (partition by emp_co) max_ ,
sum(emp_allw_amt) over (partition by emp_co) netsal from tbl
) a
start with rn = 1
connect by prior emp_co = emp_co
and prior rn = rn - 1
)b
where rn = max_
EMP_CODE ENAME RESULT_ NETSAL
01 EMP1 A01 Basic 3000 + A02 HRA 300 + A03 TRPT 150 - D01 CONTR 15 3435
02 EMP2 A01 Basic 1500 + A02 HRA 180 + A03 TRPT 50 + A04 ELEC 100 - D01 CONTR 10 1820
03 EMP3 A01 Basic 2500 + A02 HRA 500 + A03 TRPT 200 - D01 CONTR 12 3188
04 EMP4 A01 Basic 2000 + A02 HRA 250 + A03 TRPT 180 + A04 ELEC 150 - D01 CONTR 11.5 2618,5
05 EMP5 A01 Basic 950 + A02 HRA 150 + A03 TRPT 125 + A04 ELEC 75 1300Edited by: qube on Oct 27, 2008 1:06 PM -
Hi all,
Need ur kind help in concatenating as below.
L_MATERIAL(18) = LQAMCANO240033. "Material no length varies upto 18 char
L_BATCH = T91.
Output should be LQAMCANO240033&&&&T91
& denotes space
Pls note that there should be space in case the material no is smaller.
Regards,
KarthikHi.
data L_space(4) type c.
data l_output(25) type c.
concatenate L_MATERIAL L_BATCH
into L_output.
separated by l_space.
output l_output. -
Concatenation with Blankpads gets trimmed
I created an Object in the Universe which decodes the data and blankpads the result (using Concat function). When I pull the Object into my WebI report, the result does not show the blankpadding. I ran the generated SQL in Toad and it returns the result with the blankpadding. Any insights?
Thx for your interest in this issue.
For clarification:
- Database version is 9.2.0.7.0
- We will upgrade to 64 Bit in the next months, but we still need a solution for our 32 Bit system.
- We did not add new application servers. These servers were up and running before and after the problem occured.
- I don't think that Oracle restarts. There are no ORA-entries in the Oracle Log and there is no Oracle-Usertrace.
The system slows down, because every byte, that is backed up in the paging file (as far as i know in MS terms this is called "standby list"), has become invalid and must be read from disk.
Not only Oracle is affected, every process trimmed its working set.
For example Terminal Services is unresponsive for about 4 minutes.
In the end all processes continue their work, but it takes some time until their working set has been restored from the paging file.
No errors occur, no Dumps, no EventLog or SystemLog entries.
There are just some TIMEOUTs, caused by the unresponsiveness of the server in the first minutes of the memory crash.
@Markus:
Yes, i also think that we reached some kind of Oracle memory limit.
Since we increased the Oracle cache size, the frequency of the error has been significantly reduced.
But still i am wondering what funny things can happen.
I would expect Oracle to crash, Windows to bluescreen, SAP to dump.
But freeing the memory of all processes is something completely new to me.
Edited by: Leonhard Bernhart on Jan 8, 2008 5:10 PM
Edited by: Leonhard Bernhart on Jan 8, 2008 5:11 PM -
Capturing results from a date range where dates are concatenated with text
my issue_code column has results = OK and the date. An example would be OK20071001 where the last 8 digits is in the YYYYMMDD format.
How can i calculate the # of PO#s that had OK as their issues during a given month.
The sql below shows what i had but i get an error:
SELECT count(unique(SAP_PO_NUMBER)
FROM VENDOR_PURCHASE_ORDER
WHERE SUBSTR(ISSUE_CODE,3,8) BETWEEN
TO_CHAR('20071001', 'YYYYMMDD') AND TO_CHAR('20071101', 'YYYYMMDD')
AND ISSUE_CODE LIKE 'OK%'I'm usually a fan of TO_DATE transformation myself. However in this case I don't feel it is neccessary. The column is already in VARCHAR2 and has a dateformat in an ordered fashion.
why not simply do this:
SELECT count(distinct SAP_PO_NUMBER)
FROM VENDOR_PURCHASE_ORDER
WHERE ISSUE_CODE LIKE 'OK200710%';This statement won't raise an error when skrewed date values are in this column. But I'm not sure if this realy is possible and which version is wanted.
'OK20071043' => Should this result in an error or not?
Message was edited by:
Sven Weller -
Concatenation with blank space
t1 = 'hello'
t2 = ' '
t3 = 'india'
concatenate t1 t2 t3 into t4.
output comes 'helloindia'.
what shud we do to get 'hello india'.hi,
try these..
t1 = 'hello'
t3 = 'india'
concatenate t1 t3 into t4 separated by t2.
<b> or</b>
t1 = 'hello'
t3 = 'india'
concatenate t1 t3 into t4 separated by space.
Regards
vijay -
OBIEE Group By on 2 facts and concatenated columns from different dimensions
Hi
I have a different kind of problem involving 2 fact tables with different dimensional attributes.
Fact 1 has Dim Attributes ( Cust,Facility )
Measure - Gross Amount
Fact2 has Dim attributes (Cust,Facility and Risk Group )
Measure : Exposure Amount
Since we have 2 facts with different dimensions,
to exclude the 'Risk Group' dimension column from the group by for the Fact1,
we set the 'Gross Amount' measure to total level (Risk Group Dimension ) in contents tab.
So the values from both the fact tables appears in the same report correctly.
But in the same report we have another requirement where the rating column from the customer dimension has to be concatenated with the ratings column in the facility dimension.
We have to concatenate customer.rating with the facility.rating and display it in the report.
when we just pull the individual columns from the dimensions into the report it works fine.
But when we try to concatenate the 2 columns and show it in the report,
the concatenated column does not appear in the select or the group by in the SQL Fact2.( Generated by OBIEE )
The other fact1 has the concatenated column in the select as well as the group by clause ( Generated by OBIEE )
As a result the report shows the concatenated values only for the results from the Fact1. But the results from Fact2 does not have the concatenated column values.
The report should look like the below:
Custor.Name, Customer.Id, Facility.Name, Facility.Id, Customer.Rating/Facility.Rating, Risk Group, Gross Amount, Exposure Amount
=========== ========= =========== ========= ======================== ========= =========== ===============
JPMC 123 GROSS 123 08/10 LNL 45,000 25,000
CLAIRE 456 NET 456 07/10 RNK 50,000 30,000
Thanks,
ChandraAs suggested you really want to move your none-aggregated fact attributes to a logical dimension (using the same physical table as the logical fact). Map this in the BMM layer as a snowflake, Place a hierarchy on this dimension with (at minimum) Total -> Detail levels, then on the other fact table you want to include in the report, set the content level on your other fact measures to the 'Total' level for your new logical Dim and it will allow them to be present in the same report.
-
The hardware is an iPhone 4 on iOS 5.1.1 with a capacity of 16GB (14.0GB). Currently I have 1.8GB available memory. The phone has never been jailbroken and no external accessories have ever been attached to it.
The problem:
Some of the receivers of my text messages have recently told me that a number of my text messages are coming in a little jumbled up. Apparently the message I had just sent gets concatenated with a past message or various past messages. The order where the past message gets mixed is not always the same - sometimes it's in front of what I have typed and sometimes it's in the end but in all cases inserting the past message also deletes parts of the message I typed. Furthermore when checking the thread there seems to be nothing wrong and the messages are shown in the same way I have typed them rather than how the receiver got them.
The question:
I have tried to see if other users on the same carrier, from the same locations as myself had the same problems as myself on other systems. I have checked Symbian, BB, Android and the older type of non smart phones and I have found no one with this problem. This rules out the carrier completely.
I would like to know if this is a problem which requires intervention by Apple or if it something I can fix myself. I have reinstalled the iOS5.1.1 yesterday but the problem seems to stay. I have turned the phone off and on a couple of times but it was in vain. I have also turned the phone off by holding the home and the standby buttons, but the problem seems to stay.
Any help would be very appreciated. I do not find any objection if I have to take my phone back to the official seller but if it something I can handle myself I would save them the hassle.
Thank you in advance.
DanIts because you are sending them as iMessages and not SMS.
If you want to turn iMessage off, go to settings, messages and turn it off. -
How to create a table with a variable
Hi everyone!
I have a procedure which receives a table name as a parameter and need to create a table using that name
For example:
PROCEDURE REFRESH_REPORTS (table_name varchar2) IS
BEGIN
table_name_REPORT := table_name;
execute immediate 'create table table_name_REPORT .....
But I don't get this working. I am just adding this procedure as a part of a package which is used for web/online reports.
Could someone guide me on how I could create this table?
I was getting errors like invalid table name and I even tried to use a variable which stores the entire sql statement and concatenated with the table name's variable but still that was not working.
Thank You so much in advance.
Nithya
Edited by: user645399 on Jan 20, 2010 9:42 PMuser645399 wrote:
Thank You so much for the valuable feedback.
My agency requires some reports to be generated at a certain interval, after a certain type of batch load. A few different types of reports will be generated and usually we have scripts which we run to generate the necessary tables and extract the reports from there. We retain the tables for verification purpose as it stores some valuable status of some customers and so on, which we will not be able to generate again easily. The table will have around 50,000 - 100,000 records averagely. Sometimes more.
I am automating the process now as per client's request.
So, I thought of using the same script to automate it in the web. For table name we usually changed them manually.
Now, when the user runs, he or she have to give them table name/ report name.
I thought of concatinating the sysdate and report name but what if there is a problem and the user runs it for a second time?
Unless I have a separate part of the coding to take care of this issue.
Please advice if there is an alternative.
Thank You Very Much.
Cheers!
NithyaSo why is it necessary to create a table just to create a report?
You really, really need to rethink this entire process from the beginning, not just try to shoehorn in something from a current, astoundingly bad, design. -
Error while create aggmap for concatenated dimension ???
How can I create aggmap for concatenated dimension ??
I created dimensions named awprod_lvl0 ,awprod_lvl1,awprod_lvl2,awprod_lvl3,awprod_lvl4 and concatenated with a dimension awproducts. Then I created a parent relation awproducts.parents and mapped into the relational tables using sql fetch procedure .Iam able to see values in the olap work sheet .When i tried to create aggmap for different aggregation , it is throwing an error??It is telling that awproducts and awpro_lvl4_id cannot appear because they share same base level dimension...
can anyone help in resolving this problem?????Jithesh, could you provide the exact definitions for the aggmaps, dimensions and relations that you're using?
-
FILE NAME WITH FILE EXTENTIONS
HI EXPERTS!!
I WANT TO GET THE FULL FILE NAME STRORED IN THE SERVER FOLDER. I USED FM RZL_READ_DIR_LOCAL BUT I AM GETTING ONLY 32 DIGITS OF NAME NOT FULL NAME AND ALSO SIZE PARAMETER IS CONCATENATING WITH NAME.
I WANT THE FILE NAME WITH FILE EXTENTIONS(TXT. .PDF ETC)..
PLZ SUGGEST ME HOW TO GET THE SAME..
PLZ REPLYE ME..
MAHESHHi Mahesh,
Try the below FM in the below code.
DATA:
LV_PERMISSION(10), " Permission
LV_H2, " H2
LV_FLNM(13), " File name
LV_USER(10), " User
LV_GROUP(10), " Group
LV_SIZE(15), " Size
LV_MONTH(3), " Month
LV_DAY_C(2), " Day
LV_YEAR(5), " Year
LV_FILE_NAME TYPE FILE_NAME, " Filename
LV_JUNK, " Junk
RETURN_CODE TYPE I. " Return code
DATA:
CMD_PARAMS LIKE SXPGCOLIST-PARAMETERS,
" External prg.parameters
CMD_OUTPUT TYPE BTCXPM OCCURS 0, " Log message
STATUS TYPE EXTCMDEXEX-STATUS. " Status
CONSTANTS:
LC_DIR TYPE C VALUE 'd'. " Directory
FIELD-SYMBOLS: <CMD_OUTPUT_LINE> LIKE LINE OF CMD_OUTPUT.
CMD_PARAMS = PV_DIRECTORY.
CLEAR CMD_OUTPUT.
CALL FUNCTION 'SXPG_CALL_SYSTEM'
EXPORTING
COMMANDNAME = 'Y_LS_LN'
ADDITIONAL_PARAMETERS = CMD_PARAMS
IMPORTING
STATUS = STATUS
EXITCODE = RETURN_CODE
TABLES
EXEC_PROTOCOL = CMD_OUTPUT
EXCEPTIONS
NO_PERMISSION = 1
COMMAND_NOT_FOUND = 2
PARAMETERS_TOO_LONG = 3
SECURITY_RISK = 4
WRONG_CHECK_CALL_INTERFACE = 5
PROGRAM_START_ERROR = 6
PROGRAM_TERMINATION_ERROR = 7
X_ERROR = 8
PARAMETER_EXPECTED = 9
TOO_MANY_PARAMETERS = 10
ILLEGAL_COMMAND = 11
OTHERS = 12.
Check Status first then check sy-subrc
CASE SY-SUBRC.
WHEN 0.
CASE STATUS.
WHEN 'F'.
MESSAGE I057(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 'E'.
MESSAGE I058(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 'S'.
MESSAGE I059(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 'C'.
MESSAGE I061(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
ENDCASE. " CASE STATUS.
WHEN 1.
MESSAGE I048(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 2.
MESSAGE I049(YS) WITH 'Y_LS_LN'(003).
GF_EXIT = GC_TRUE.
WHEN 3.
MESSAGE I050(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 9.
MESSAGE I054(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN 10.
MESSAGE I055(YS) WITH 'SXPG_CALL_SYSTEM'.
GF_EXIT = GC_TRUE.
WHEN 11.
MESSAGE I056(YS) WITH 'SXPG_CALL_SYSTEM'(002).
GF_EXIT = GC_TRUE.
WHEN OTHERS.
MESSAGE I022(YS) WITH SY-SUBRC.
GF_EXIT = GC_TRUE.
ENDCASE. " CASE SY-SUBRC.
IF GF_EXIT = ' '.
READ TABLE CMD_OUTPUT ASSIGNING <CMD_OUTPUT_LINE> INDEX 1.
IF SY-SUBRC = 0.
CONDENSE <CMD_OUTPUT_LINE>-MESSAGE.
IF <CMD_OUTPUT_LINE>-MESSAGE CS 'total' OR
<CMD_OUTPUT_LINE>-MESSAGE CS 'TOTAL'.
DELETE CMD_OUTPUT INDEX 1.
ENDIF.
ENDIF.
LOOP AT CMD_OUTPUT ASSIGNING <CMD_OUTPUT_LINE>.
CONDENSE <CMD_OUTPUT_LINE>-MESSAGE.
SPLIT <CMD_OUTPUT_LINE>-MESSAGE AT SPACE INTO
LV_PERMISSION
LV_H2
LV_USER
LV_GROUP
LV_SIZE
LV_MONTH
LV_DAY_C
LV_YEAR
LV_FILE_NAME
LV_JUNK.
IF LV_PERMISSION(1) = LC_DIR.
CONTINUE.
ELSE.
LV_FLNM = LV_FILE_NAME(13).
TRANSLATE LV_FLNM TO UPPER CASE.
IF LV_FLNM = '1W_FIARFUNNEL'.
PT_FILE-FILE_NAME = LV_FILE_NAME.
APPEND PT_FILE.
ENDIF. " IF LV_FLNM = '1D_FIARFUNNEL'.
ENDIF. " IF lv_permission(1) = ...
ENDLOOP. " LOOP AT CMD_OUTPUT
ENDIF. " IF GF_EXIT = ' '.
Maybe you are looking for
-
HT204365 Can I edit name (title) of a PDF file in iBook? How?
The problem: when I download a PDF, for example an article from school, it surely have a default name such as author's name. When I try to select a article from the list and a very long list, it makes thing difficult. I perfer it to be editable so I
-
ExtAudioFileRead crashes in background
My app plays music in background. I have "audio" key on in Background modes, my audio session looks like: AVAudioSession *audioSession = [AVAudioSession sharedInstance]; NSError *err = NULL; [audioSession setCategory:AVAudioSessionCategoryPlayback er
-
Hi, I have had my MacBook Pro stolen and the police have mentioned about using iCloud to see if I can track it's whereabouts - however I have no idea if I had iCloud on my MacBook or how to track it if I did - can anyone help me please? Thanks
-
Set computer to lock with password in 5 seconds. now cannot open in time because of the 5 second shutdown. What can I do to now get into my computer??
-
how can i make a function that takes a String parameter (math expression) and return the calculated result. function calc(str_exp in varchar2) return number is Result number; begin *// logic here* return(Result); end if i call it as r = calc(' 2+3*2'