How to get the given output format..
Hi,I want to write a code in ABAP in such a way that I should get the output in the right side format.
Ex:
1200 - > 1,200
12000 - > 12,000
120000 -> 120,000
1200000 -> 1,200,000
12000000 -> 12,000,000
120000000 - > 120,000,000
Thanks.
HI tushar,
1. I don't know whether i understood u r question !
2. FOr writing with COMMA,
if we use simple WRITE,
then it will show just as u want !
regards,
amit m.
Similar Messages
-
How to get the Query output to Excel
Hi ,
Can you tell me how to get the Query output to excel with out using any third party tool?
Can you tell me how to write the code in Webservice and call it..
Please explain it Elaboartly..
Thanks in Advance!!!
Miniwhats your source system?
you can use Live office, or query as a webservice if you are getting data from universe
if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
good luck -
How to get the system date format string?
Hello, everybody!
I want to create a MaskFormatter with a mask for dates. So, I could suply as the constructor parameter: "##/##/####'. However, what if the year comes first in the current system date format settings, or the month is in the second place or in the first?... So, I can't just suppose that the current locale format for dates is like the one above. So, my question is: is there a way to get the SYSTEM DATE FORMAT STRING in Java? Searching in google I saw that this was already asked in this forum:
http://forum.java.sun.com/thread.jspa?threadID=301034&messageID=1193794
but there was no effective answer. Does someone already know how to get this?
Thank you.
MarcosHi, not sure, but
import java.text.*;
SimpleDateFormat sdf = new SimpleDateFormat();
System.out.println(sdf.toPattern());
will output something like dd/MM/yy HH:mm
hthThank you very much. It worked. -
How to get the date time format in OCI
How to get a date time format in OCI instead of only date
You would have to use the OCIDateTime datatype for this. Refer to
OCI documentation for more details. -
How to get the desired output in the format ...?
Hi all,
I am having data like this.
Col1 col2 col3
1 2 1
1 2 2
1 2 3
2 3 7
2 3 8
2 3 9
I want to output the data like this
1 2 1,2,3
2 3 7,8,9
How to get this.
Thanks in advance,
PalIn simple sql...
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> select * from t
2 /
COL1 COL2 COL3
1 2 1
1 2 2
1 2 3
2 3 7
2 3 8
2 3 9
6 rows selected.
SQL> select max(decode(rno,1,to_number(col1||col2||col3))) col1, max(decode(rno,2,col3)) col2, max(decode(rno,3,col3)) col3
2 from (select row_number() over(partition by col1,col2 order by col3) rno, t.*
3 from t)
4 group by col1
5 /
COL1 COL2 COL3
121 2 3
237 8 9
SQL>Thanks,
Karthick. -
How to get the EPS Option Format?
I need to find out the saved eps option format that is "TIFF (8 bit color)" or TIFF (Black & White) which showed in EPS Option dialog window. I have attached the screen shot for your review. Kindly advise me how to get this information with out opening the file in illustrator.
Thanks for looking into this.An interesting question. According to the EPSF 3.0 file specification (which can be downloaded here), the 30-byte header right at the beginning of the file only identifies basic type, size, and address of the preview, You can tell whether there is any preview at all, and, in the case of the Windows (DOS) EPS binary file header, whether the preview format is WMF or TIFF. Unfortunately, I don't see any way to differentiate between 8-bit and b/w TIFF previews.
Still, you can get an idea by using a viewer/file management application, such as ST Thumbnails Explorer, which uses the EPS preview for on-screen display. If you know your artwork contains color information, the thumbnails will tell you whether that preview is 8-bit color or black-and-white.
You're out of luck if you don't have color information in the file (because both 8-bit and b/w previews will appear monochromatic). -
How to get the document file format?
Hi all,
Im using Illustrator CS3 SDK to find the file format. In pluginhandler.cpp,the following code showing as inactive preprocessor block(disabled)
#ifdef ADDS_FILE_FORMAT
if ( sSPBasic->IsEqual( caller, kCallerAIFileFormat ) ) {
if ( sSPBasic->IsEqual( selector, kSelectorAIGetFileFormatParameters ) )
error = goGetFormatParms( ( AIFileFormatMessage* )message );
else if ( sSPBasic->IsEqual( selector, kSelectorAIGoFileFormat ) )
error = goFileFormat( ( AIFileFormatMessage* )message );
else if ( sSPBasic->IsEqual( selector, kSelectorAICheckFileFormat ) )
error = goCheckFormat( ( AIFileFormatMessage* )message );
else
#endif
So the above code is not executing so im not getting the file format. Can anyone guide me regarding this... Will this cause any problem in getting file format?? Im blank regarding this. Anyone pls guide meThe code you posted only coms into play if you have added a file format of your own for saving, exporting or opening. It shouldn't matter to getting the file format.
If Illustrator is giving you the right results in CS3 but not in AI10, its very possible AI10's version was simply busted. Or it was subject to a limitation CS3 is not. I know at one point certain document attributes were not available until the document had been saved; could that be the problem here? -
How to modify this query to get the desired output format
I hv written a Query to display all the parent table names and their primary key columns(relevant to this foreign key of the child table).The query is given below...
SELECT DISTINCT(TABLE_NAME) AS PARENT_TABLE,COLUMN_NAME AS PARENT_COLUMN
FROM ALL_CONS_COLUMNS
WHERE CONSTRAINT_NAME IN (SELECT AC.R_CONSTRAINT_NAME
FROM ALL_CONSTRAINTS AC
WHERE AC.TABLE_NAME=TABLE_NAME
AND AC.TABLE_NAME='&TABLE'
AND AC.R_CONSTRAINT_NAME IS NOT NULL);
This query will display all the parent tables and their primary key columns.Now my problem is that how to modify this query to also display the foreign key column name of the child table.
I want the query result in the following format.The query should display the following columns.1)child table's name,2)child table's foreign key column name,3)the corresponding parent table's name,4)the parent table's primary key column name(which is the foreign key in the child table).
For Example I want the output as follows...
TAKE THE CASE OF SCOTT.EMP(AS INPUT TO YOUR QUERY)
CHILD_TABLE CHILD_COLUMN PARENT_TABLE PARENT_COLUMN
EMP DEPTNO DEPT DEPTNO
In this result I hv used alias name for the columns.The query should display this only for the foreign keys in the child table.In the query which I sent to you earlier will give the parent table and the parent column names,But I also want to append the child table and child column names there.
any help on how to tackle would be appreciated.Try this query
SELECT c.table_name child_table,
c.column_name child_column,
p.table_name parent_table,
p.column_name parent_column
FROM user_constraints a,user_constraints b,user_cons_columns c,
user_cons_columns p
WHERE a.r_constraint_name=b.constraint_name and
a.constraint_name=c.constraint_name and
b.constraint_name=p.constraint_name and
c.position=p.position
ORDER BY c.constraint_name,c.position
Anwar -
Sql query to get the given output
Hi Friends
My table data is given below
user transaction_date transaction_type
1 01-Aug-2011 a
1 02-Aug-2011 c
1 03-Aug-2011 a
1 03-Aug-2011 b
1 04-Aug-2011 a
1 04-Aug-2011 b
2 03-Aug-2011 a
2 03-Aug-2011 b
2 04-Aug-2011 c
2 04-Aug-2011 b
2 05-Aug-2011 a
2 05-Aug-2011 b
2 07-Aug-2011 a
2 07-Aug-2011 b
I want the count for each user as, how many times he did a transaction type 'b' immediately after transaction type a ?
Like the output for above data should be
user count
1 2
2 3
Thanks in advance :)Assuming there was information in the transaction date to indicate the sequence of the transactions then it would be something like...
SQL> ed
Wrote file afiedt.buf
1 with t as (select 1 as usr, to_date('01-Aug-2011 00:00:00','DD-MON-YYYY HH24:MI:SS') as transaction_date, 'a' as transaction_type from dual union all
2 select 1, to_date('02-Aug-2011 00:00:00','DD-MON-YYYY HH24:MI:SS'), 'c' from dual union all
3 select 1, to_date('03-Aug-2011 00:00:00','DD-MON-YYYY HH24:MI:SS'), 'a' from dual union all
4 select 1, to_date('03-Aug-2011 00:00:01','DD-MON-YYYY HH24:MI:SS'), 'b' from dual union all
5 select 1, to_date('04-Aug-2011 00:00:00','DD-MON-YYYY HH24:MI:SS'), 'a' from dual union all
6 select 1, to_date('04-Aug-2011 00:00:01','DD-MON-YYYY HH24:MI:SS'), 'b' from dual union all
7 select 2, to_date('03-Aug-2011 00:00:00','DD-MON-YYYY HH24:MI:SS'), 'a' from dual union all
8 select 2, to_date('03-Aug-2011 00:00:01','DD-MON-YYYY HH24:MI:SS'), 'b' from dual union all
9 select 2, to_date('04-Aug-2011 00:00:00','DD-MON-YYYY HH24:MI:SS'), 'c' from dual union all
10 select 2, to_date('04-Aug-2011 00:00:01','DD-MON-YYYY HH24:MI:SS'), 'b' from dual union all
11 select 2, to_date('05-Aug-2011 00:00:00','DD-MON-YYYY HH24:MI:SS'), 'a' from dual union all
12 select 2, to_date('05-Aug-2011 00:00:01','DD-MON-YYYY HH24:MI:SS'), 'b' from dual union all
13 select 2, to_date('07-Aug-2011 00:00:00','DD-MON-YYYY HH24:MI:SS'), 'a' from dual union all
14 select 2, to_date('07-Aug-2011 00:00:01','DD-MON-YYYY HH24:MI:SS'), 'b' from dual
15 )
16 --
17 -- end of test data
18 --
19 select usr, sum(sum_ab) as sum_ab
20 from (
21 select usr
22 ,case when transaction_type = 'b'
23 and lag(transaction_type) over (partition by usr order by transaction_date) = 'a'
24 then 1
25 else 0
26 end as sum_ab
27 from t
28 )
29* group by usr
SQL> /
USR SUM_AB
1 2
2 3which is essentially the same as Etbin posted, but without the assumption that the ordering is by transaction_type. -
How to get the HTML data formatted display using the Rrt template
hi,
I have a table which has data with html tags in it.
eg as shown below.
sample text is as follows:
<BR>
<b>MY TEST HERE HAS SOME BOLD TEXT IN IT. THIS WHOLE LINE SHOULD BE BOLD</b><br>and the rest of the text will not be bold.
<BR><br>
now I want to be able to display this text with the proper format using BI publisher / rt template.
my report shows the tags as is instead of being formatted.
please let me know how i can fix this
Thanks
knuthttp://blogs.oracle.com/xmlpublisher/2007/01/02.
-
How to get the job output to be displayed/send in a report?
Dear All,
IHAC that have a couple of jobs which they all work fine and return the desired value, and now the customer wants to take the output of the jobs and place it in one big report?
The jobs created are the daily health checks that the DBAs run. They would like to have all the output from all the jobs consolidated in one report to be sent to them every morning on their emails.
Kindly advise if this is doable.There isn't really a way to redirect a job's output. Unless you try to dig it out of the repository. Trust me it will be a hell of a job to puzzle out the locations and SQL statements to get it.
You might consider trying to migrate your jobs into reports (if possible). Reports can be redirected to e-mail recipients.
Regards
Rob -
How to get the desire output from sql query
Consider an Order Table: ...
Order Table:
Order Id Item Qty
O1 A1 5
O2 A2 1
O3 A3 3
Please provide SQL which will explode the above data into single unit level records as shown below
Desired Output:
Order Id Order Id Qty
O1 A1 1
O1 A1 1
O1 A1 1
O1 A1 1
O1 A1 1
O2 A2 1
O3 A3 1
O3 A3 1
O3 A3 1How do I ask a question on the forums?
SQL and PL/SQL FAQ -
How to get the following output
Table 1 Table 2
EmpCode EmpName EmpCode EmpPhone
10001 ABC 10001 12345
10002 BCD 10001 23456
10003 CDE 10001 34567
10004 EFG 10006 45678
10005 FGH 10007 56789
10006 GHI 10007 67890
10007 HIJ 10010 78901
10008 IJK 10010 89012
10009 JKL 10010 90123
10010 KLM 10011 13579
10011 LMN 10012 35791
10012 MNO 10012 57913
10013 NOP 10012 79135
10014 OPQ 10017 91357
10015 PQR 10017 12390
10016 QRS 10019 23479
10017 RST
10018 STU
10019 TUV
output
EmpCode EmpName EmpPhone
10001 ABC 12345/23456/34567
10002 BCD
10003 CDE
10004 EFG
10005 FGH
10006 GHI 45678
10007 HIJ 56789/67890
10008 IJK
10009 JKL
10010 KLM 78901/89012/90123
10011 LMN 13579
10012 MNO 35791/57913/79135
10013 NOP
10014 OPQ
10015 PQR
10016 QRS
10017 RST 91357/12390
10018 STU
10019 TUV 23479
Srimanta,
Check this:
select t1.EmpCode,t1.EmpName,STUFF((select '/'+EmpPhone from Table2 where EmpCode=t1.EmpCode for xml path('')),1,1,'') as PhoneNum
from Table1 t1
left join Table2 t2 on t1.EmpCode=t2.EmpCode
group by t1.EmpCode,t1.EmpName
Edited : small change in code(highlighted - t1 instead of t2)
Thanks,
Jay
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to get the console output generated by a executable program?
when I am trying to use method getOutputSteam of Process to gain the outputStream,I got nothing!
I have also tried to use stream redirect,also no result!
please help me! Thank you in advance!
my main code are below:
Process ps=Runtime.getRuntime().exec("xxx.exe");/*xxx.exe is a executable program which will generate a console with the message I want to gain.*/
int exitVal= ps.waitFor();
if(exitVal==0){
BufferredReader br = new BufferedReader(new InputStreamReader(ps.getInputStream())); String st;
while((st = br.readLine()) !=null){
System.out.println("write:"+st);
}//my result show that I got nothing from the progam.
}I've seen this kind of problem with an offending xxx.exe. Generally it means that the program isn't flushing its output immediately, so your java program never sees it.
-
How to get the query output depending on the current date
i created a region of type "query",inside it created region using wizard of type "table" . in the query i filter the data depending on the current date (taken from dual table) . but still it showing no output on the page. i run the same query in the toad and its showing the 2-3 rows.
If anybody know where the problem is then do inform me.
thanks in advance.i got the answer by trying out in OAF
Maybe you are looking for
-
I have a slide with multiple rollover captions. I'm trying to figure out a way to track which captions are viewed so that when they have all been viewed, they can advance to the next slide for a quiz. I would also like to show a check mark next to th
-
X11 loop!!HELP!! X11 won't stop opening and closing?
Here is my crash log: Process: X11.bin [22896] Path: /Applications/Utilities/X11.app/Contents/MacOS/X11.bin Identifier: org.x.X11 Version: 2.6.3 (2.6.3) Build Info: X11server-106003000000000~56 Code Type: X8
-
Run_report_object returns null
Hello, I am having a problem with forms/reports integration on my local Windows machine. (Forms 9i, Reports 6i). I have a report object TEST, pointing at the test.rdf. The report is OK, I can run it from the browser with no problem at all (http://x52
-
Hi, I am working in a 11i to R12 (oracle apps) upgrade and i am totally new to oracle apps itself. I am trying to modify an existing package for R12 and i am not finding ORG_ID in the tables CE_SYSTEM_PARAMETERS and CE_BANK_ACCOUNTS (replacement for
-
Hi All I wanted to know how to do the set up for IDOC in a XI System . Would be great if any body can give me the steps involved in configuring the IDOC in XI and R/3 System Any help on this is highly appreciated regards raj