Output in the required format
hi viewers,
i need a query to get the output in the following format;
note: i need ename with mgr name;
Example like;
empno ename mgr mgrname
7698 BLAKE 7839 KING
7782 CLARK 7839 KING
7902 FORD 7566 JONES
7876 ADAMS 7788 SCOTT
ok friends reply me if possible.
hema
you can also use hierarchical query
SQL> select empno,ename,prior empno mgr,prior ename mgrname
2 from emp
3 start with mgr is null
4 connect by prior empno=mgr
5 order by ename;
EMPNO ENAME MGR MGRNAME
7876 ADAMS 7788 SCOTT
7499 ALLEN 7698 BLAKE
7698 BLAKE 7839 KING
7782 CLARK 7839 KING
7902 FORD 7566 JONES
7900 JAMES 7698 BLAKE
7566 JONES 7839 KING
7839 KING
7654 MARTIN 7698 BLAKE
7934 MILLER 7782 CLARK
7788 SCOTT 7566 JONES
7369 SMITH 7902 FORD
7844 TURNER 7698 BLAKE
7521 WARD 7698 BLAKE
Similar Messages
-
DMEE - Output in the required format
Hi
I need an output in this format:
........1........2........3........4........5........6....
101 DEUT0797B CoCd 0905271433A094101DEUTSCHE BANK Company Name <CR/LF>
5200Company Name Payment Type 1 CCD
090527 1DEUT07970000001 <CR/LF>
622000052000987032 0028050900 First Name
Last Name 0DEUT07970000001 <CR/LF>
820000000100000052000000000000000000280509001
DEUT07970000001 <CR/LF>
9000001000001000000010000005200000000000000000028050900
<CR/LF>
99999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999 <CR/LF>
99999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999 <CR/LF>
99999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999 <CR/LF>
99999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999 <CR/LF>
99999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999 <CR/LF>
<END>
But the output I get as per DME is
........1........2........3........4........5........6....
000 CoCd 0906011646 DEUTSCHE BANK
Company name
<CR/LF>
000CompanyName
T
090501 2805
1986
Srini XXX
28.000000 00000000000000000000000000000000000
00000000000000000000000000000 28.0
0 <CR/LF>
<END>
Can someone help me on this.
Mainly I want to know how these 999999999999999999 etc have been generated. What config in DMEE I need to do.
Regards
Malathi. UHello,
You get data from REGUH and REGUP tables.
Most of the files will have header, transactions and trailer.
Please let me know how you have created the current DME structure. Have you copied from some standard structure or you have created on your own?
Please check if there are any standard DME strcuture for your country / bank available in the system. Refer to them.
Regards,
Ravi -
How to get the output in the required format
Hi,
I have a table Months
it has 2 columns month_id (number) and month_name(varchar2).
I wish to get the o/p from a select query such that ,
when user chooses a specific month_id it should appear first and rest all months should come below it in ascending order.
example - if the month_id choosen is 3
then the output should be like
Month_id Month
3 March
1 January
2 February
4 April
5 May
How to do this ?
Thanks.Here is one way ->
satyaki>
satyaki>with date_tab
2 as
3 (
4 select rownum month_id
5 from dual
6 connect by rownum < 13
7 )
8 select month_id,
9 to_char(add_months(trunc(sysdate,'YEAR'), month_id - 1),'Month') Month
10 from date_tab;
MONTH_ID MONTH
1 January
2 February
3 March
4 April
5 May
6 June
7 July
8 August
9 September
10 October
11 November
MONTH_ID MONTH
12 December
12 rows selected.
Elapsed: 00:00:00.00
satyaki>Regards.
Satyaki De. -
Is it possible to see the Drill down output in the expanded format by default in SSRS reports?
Hi Guys,
I have created a drill down report. If i preview my report , by default i can see the out put in the aggregated level and i have to drill it to down levels if i want. My requirement is i want to see the data in the leaf level by default means report
should be displayed in the expanded format to the leaf level, if i want i can drill up the report later.
Is this possible in SSRS? Can some one help me out on this?
Thanks in advance.
Regards,
kiranHi ,
Thanks for the reply. but if i follow this steps i can see the output in the expanded format but + and - symbols will be interchanged. That means if i drill up i have (-) before the column name and if i drill down it will be (+).
For this to work you need to set properties initial appearance of toggle image
see this example
http://www.mssqltips.com/sqlservertip/1329/drill-down-techniques-in-ssrs-with-the-visibility-property/
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Hi, Required Output in the follwoing format
Hi viewers,
my data looks like this ( EMPNO is Primary Key)
empno ename sal deptno
7839 KING 9500 10
7844 TURNER 1500 30
7876 ADAMS 1100 20
8234 KING 8000 10
9812 ADAMS 8500 20
i Need out in the following order
deptno ename empno sal
10 KING 7839 9500
8234 8000
20 ADAMS 7876 1100
9812 8500See Hema,
Nothing big deal in it.
SQL> clear breaks
breaks cleared
SQL> INSERT INTO EMP VALUES (8888,'KING','PRESIDENT',NULL,'17-NOV-81',5000,NULL,10);
1 row created.
SQL> INSERT INTO EMP VALUES (9999,'ADAMS','CLERK',7788,'12-JAN-83',1100,NULL,20);
1 row created.
SQL> commit
2 /
Commit complete.
SQL> break on deptno on ename
SQL> select deptno, ename, empno, sal
2 from emp
3 order by deptno, ename
4 /
DEPTNO ENAME EMPNO SAL
10 CLARK 7782 2450
KING 7839 5000
8888 5000
MILLER 7934 1300
20 ADAMS 7876 1100
9999 1100
FORD 7902 3000
JONES 7566 2975
SCOTT 7788 3000
SMITH 7369 800
30 ALLEN 7499 1600
BLAKE 7698 2850
JAMES 7900 950
MARTIN 7654 1250
TURNER 7844 1500
WARD 7521 1250
16 rows selected.
SQL> Cheers
Sarma. -
Report output in the form of XML
Hi All,
May i have any inputs pls.
Requirement---
A report when ran should give the output in the XML format.
Thanks.hi,
try this FM...
DMC_CONVERT_TABLE_TO_XML
Regards,
Shankar. -
Need output like below mentioned format
Hi,
By using below query , iam getting output in the below formate as metioned
select
m.year "Year",
--decode(m.year,like '200%','a') "DG",
--decode(instr(m.year,'200'),0,Null,'Shallow Water <1000 Feet') "DG",
--decode(substr('Shallow Water <1000 Feet',1,1),'S','Shallow Water <1000 Feet') "DG1",
'Shallow Water <1000 Feet' as "Depth Group",
'Deep Water 1000-5000 Feet' as "Depth Group",
'Ultra Deep Water > 5000 Feet' as "Depth Group",
sum(decode(M.FLUID,'O',nvl(M.YEAR_TO_DATE,0))) "Ytd Oil" ,
from pden_monthly_prod m,pi_pden_well w,pden p
--- Make sure all necessary Table joins are done
where P.ENTITY=M.ENTITY
and p.entity = w.entity
---- define limitations by column values
and m.year between 2000 and 2012
and ((p.entity_type in ('LEASE','WELL') and p.province_state not in ('17','42') and p.pi_situation_cd <> 'F')
or (p.entity_type = 'ALLOCATED' and p.province_state in ('17','42') and p.pi_situation_cd <> 'F')
or (p.entity_type = 'WELL' and p.province_state = '42' and p.pi_situation_cd <> 'F')
or(p.pi_situation_cd = 'F'))
and m.fluid in ('O','CN','G','CG','OW','GW','LW','FW')
and nvl(w.water_depth,'0') <1000
--or w.water_depth between 1000 and 5000
--or w.water_depth >5000
--for Federal state only (FOS)
and P.PI_SITUATION_CD IN ('F','S')
and p.province_state in ('17','42','60','01')
group by m.year
,'Shallow Water <1000 Feet'
,'Deep Water 1000-5000 Feet'
,'Ultra Deep Water > 5000 Feet'
order by m.year
i am getting output is
Year Depth Group Depth Group Depth Group Ytd Oil
2000 a b c 200
2001 a b c 150
2002 a b c 110
2003 a b c 100
but i need output like the below format
Year Depth Group Ytd Oil
2000 a 200
2000 b 200
2000 c 200
2000Total 600
2001 a 150
2001 b 150
2001 c 150
2001Total 450
2002 a 110
2002 b 110
2002 c 110
2002Total 330
2003 a 100
2003 b 100
2003 c 100
2003Total 300
could you please help on this ?UNPIVOT is equal to:
with t1 as (select 'a' f1, 1 f2, 2 f3, 3 f4 from dual union all
select 'b', 4, 5, 6 from dual union all
select 'c', 7, 8, 9 from dual union all
select 'd', 10, 11, 12 from dual)
select a.f1, b.f,
case b.f
when 'F2' then a.f2
when 'F3' then a.f3
when 'F4' then a.f4
end res
from t1 a, (select 'F2' f from dual union all
select 'F3' f from dual union all
select 'F4' f from dual) b
order by 1, 2 -
How to print the form output in news paper format
Hi All,
How we will print the data in the output in newspaper format in SAP script?
Can any body give some idea on this.
Thanks&Regards
MaheshIf what I understand is correct..!!!!!!!!!
design the windows in required format. and make the window belongs to all required pages and just type the matter there itself. then run the form from ABAP editor.
Cheers. -
Get the required XML format..
Hi Guru's,
I am trying to post the data to the External URL.
The scenario is asynchronous. I have done with the configuration part and able to successfully ping to the External Server.
The issue is the XML format that i am sending to the external server is :
*xml
=
< ?xml version="1.0" encoding="UTF-8"? >\n< ns1:MT_SEND_DATA_URL xmlns:ns1="http:/XXXX/XXXX/X_X_X" >
< REQUEST >
< INVITE_DETAIL >
< MSG_ID >
< /MSG_ID >
< SERVICE >
< /SERVICE >
< MAIL_LINK >
< /MAIL_LINK >
< OPT_MESSAGE > poiuyt poiuy</OPT_MESSAGE >
< RECV_EMAIL >< /RECV_EMAIL >
< SENDER_EMAIL >com< /SENDER_EMAIL >
< SENDER_NAME > < /SENDER_NAME >
< USER_ID >123456< /USER_ID >
< /INVITE_DETAIL >
< META >
< ACTION >qwerty< /ACTION >
< /META >
< /REQUEST >
< /ns1:MT_SEND_DATA_URL >*
while the required Output format should be :
*<?xml version=\"1.0\" encoding=\"UTF-8\"?>
< request >
< meta >
< action>XXXXe</action >
< /meta >
< invite_details >
< user_id>1105288</user_id >
< senders_name><![CDATA[abc]]></senders_name >
< senders_email><![CDATA[ ]]></senders_email >
< user_id><![CDATA[000000]]></user_id >
< emails><![CDATA[ ]]></emails >
< opt_message><![CDATA[]]></opt_message >
< mail_link><![CDATA[http://www.xyz.com]]></mail_link >
< service><![CDATA[abc]]></service >
< msg_id><![CDATA[def]]></msg_id >
< /invite_details >
< /request >*
Please provide the Solution for this.
Thanks,
regards,
akshay ruia.Hi,
If you doesn't have the XSD or WSDL file.
Create a Data type structure as
< meta >
< action>XXXXe</action >
< /meta >
< invite_details >
< user_id>1105288</user_id >
< senders_name><![CDATAabc]></senders_name >
< senders_email><![CDATA ]></senders_email >
< user_id><![CDATA000000]></user_id >
< emails><![CDATA ]></emails >
< opt_message><!CDATA[]></opt_message >
< mail_link><![CDATAhttp://www.xyz.com]></mail_link >
< service><![CDATAabc]></service >
< msg_id><![CDATAdef]></msg_id >
< /invite_details >
Create a messge type as request i.e. message type name should be request and delete the namespace in XML Namespace text box
In Messge Mapping you can check the format of the message -
Hi All,
working in animation project to be broadcasted on a TV channel as HD1080 50i,
1- all the animation layers was rendered from TOONBOOM as .SWF to keep it in vector for compositing issue.
Dose SWF lose any quality? we always use TGA sequence with alpha in our past SD projects but now we found SWF is a smaller file size and allows zooming Because it keeps all vector lines.
2- compositing each scene in after effects cs6 and then render them.
What is the best format for output to deal with premiere cs6 as a real time playback ( my editing pc includes gtx680 4gb., many HGST 3tb with raid controller,64g ram, aja kona 3g) so do I go with TGA sequence (I think it will destroy the raid Because of the large number of small-sized files in read and write ) or MOV uncompressed (I'm afraid of the space size and don’t know it will play in real time ) or what is the best compressed format Maintaining video image quality as its now will be my only master source?
Many thanks,
sherifThanks Rick for your reply,
Regarding the SWF i moved to flash pro forums and they are supporting me now,
My system is a pc, win.64, I7-3930K, 64G RAM, EVGA GTX680 4G, Many HGST 3TB with raid controler,
Some advised me to go with Quicktime Prores HQ or DNXHD or DPX ,
In this year project my client's requirement for delivery is :
DNxHD 120 Codec, wrapped with QuickTime rapper, which means a file with MOV extension and the codec used is DNxHD 120 ( 1080@50i HD)
So do i work with dnxhd 120 from the beginning to the delivery? (and it will be my only master source) or another format encode it at the end to dnxhd 120? ( i will distribut this project to many channels after the first run exclusivity period end with different requirements).
Thanks,
Sherif -
i am on windows 8 platform, i used adobe elements to work on my image - the output is in dng format, how do i convert this to jpg format?
When you make a DNG that's like making another raw file, so you will need to convert the DNG file just like your original raw. Don't use the Save button in the raw converter. That's just a link to the DNG converter. Normally you would click Open instead and then save in the editor as a jpg or other image format of your choice.
-
Changing the file format of spool output when scheduling a background job.
Hello Experts,
I have an issue. It is related to Spool output format. I created a job for one report program for which the output is a list output. I have added one recipient in the 'Spool list recipient' while creating the job SM36. After the job is finished the spool output is sent to the recipient mail id as .htm format as an attachment. But the attachment should be excel sheet or text file. No coding in the program should be used to convert the file format. Only settings in the spool while creating job should be manipulated. Please help me in solving this issue.
Regards.Hi Sunil,
You can use the logic for converting spool to PDF using program : RSTXPDFT4 . Alternatively you can use FM: CONVERT_ABAPSPOOLJOB_2_PDF . In this FM you need to pass the Spool id .
u can make use of these FM's SO_DOCUMENT_SEND_API1
SO_NEW_DOCUMENT_SEND_API1
Check out the following wiki:
https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertsspoolrequestintoPDFdocumentand+emails
hope this will use full to you.
Thanks!! -
With Java 1.4.2:
What is the correct way to format output in the java.io.PrintStream?
The following is incorrect, even though it is still used in the The JavaTM Tutorial at: http://java.sun.com/docs/books/tutorial/essential/
System.out.formatThis returns "cannot resolve the method 'format'"
Any detailed suggestions or information is greatly appreciated.The following is incorrect, even though it is still
used in the The JavaTM Tutorial at:
http://java.sun.com/docs/books/tutorial/essential/
The whole format thing has been introduced in 1.5. The tutorial also states it's been "updated to 1.5.".
That's all I've got to say for I don't know how you can format a PrintWriter, let alone a PrintStream, prior to 1.5. I'm not really sure there is any way. Any "legacy way", that is. There almost certainly are third-party API which achieve similar results. -
Send the output of the report in a zip format
Hi,
I have a report,
Currently when we run the report we are sending the file in excel format to the external mail id using the FM SO_DOCUMENT_SEND_API1.
But now the requirement is to ZIP the data in the format of an excel form and then send it to the Mail.
If any of you have done with this,
Please help me with a sample code starting from converting to Zip and then sending the mail.
Iam having two versions of SAP 4.7 and ECC 6.0.
Regards,
SasidharHi,
In my report program i have my data in an internal table.
lets say ITAB.
Now we cna send the data from this table easily in amail as an excel attachment using FM SO_DOCUMENT_SEND_API1.
But in our case,
we want our ITAB data to be first converted into an excel format and then convert this into a zip file and send as an attachment.
How cna we cna make use of classes CL_ABAP_ZIP AND CL_DOCUMENT_BCS.
I have checked all th threads as specified by you.
But now where its clear on this.
Can anybody have a sample code for this.
Please help me.
Regards,
sasi -
How to get the output of the report in pdf format
how to get the output of the report in pdf format?
Thanks in advance,
madan.Refer these links
http://www.sap-img.com/bc037.htm
http://www.members.tripod.com/abap4/Save_Report_Output_to_a_PDF_File.html
CONVERT_ABAPSPOOLJOB_2_PDF FM convert abap spool output to PDF
Maybe you are looking for
-
Not a question but hopefully an answer to what seems to be a common problem. I have just taken delivery of a shiny new imac running Mountain Lion. I migrated software and files form my old imac without problem and reconnected all devices. I found th
-
When can I order a new iMac?
When will orders start being accepted for new 27" iMacs? I see they'll be availablein December, but can I order ahead of time?
-
How to configure SNMP agent for Oracle 10g
Hello, I've installed oracle 10g in a Windows 2000 SP4 and I want to monitor database using SNMP. I've already installed Windows SNMP agent but I haven't any idea how to configure Oracle in order to grant SNMP monitoring. What should I do? Is Oracle
-
Status of the httpservice request?
Im using httpservice to get XML from a live URL of a web service I run.... works great and Im just trying to make it a little more elegant and presentable... is there a way for me to have an animated busy indicator on the stage and have it sit on top
-
Is a kernel DSDT like a Loadable Kernel Module?
Hi all. In the middle of trying to resurrect a (shhh)Mandriva distro,,, well the data and programs from it. During archLinux install there is a prompt "Do you need support for booting the lernel with a custom DSDT file? Poked around the web and foun