Output format problem.
Hey guys! You've always helped me out and I hope you can help me out with this problem I have.
I was asked to give two videos a specific output, one of them I developed in After Effects, the other is a Quicktime (.MOV) video.
I'm actively trying but I can't seem to figure out how to deliver the exact requirements they're asking of me. Here goes.
My animation on AE was made at 720x480, Square pixels.
The .MOV is at (according to QuickTime Inspector) 720x486 (640x480) Linear PCM. At 29.97 FPS, 53.62 Mbit/s Current Size 648x480.
Their requirements are:
Wrapper: Quicktime Selfcontained
Header: ALIS
Scan: Interlaced
Field Dominance: Lower field
Compressor: DVCPRO 50
Bit Rate: 50 Mnps
FPS: 29.97
Codec Audio: PCM
Aspect Ratio: 4:03
They're asking for Betacam format.
I have, honestly no idea how to get all those requirements in the file.
I can output it compressed by DVCPRO50 from AE, but I can't alter the Bitrate and the aspect is changed to 0.91, I have no idea how to get the PCM audio codec, or how to change the field dominance.
I've been using AE for a while now, but I've never been asked to get a different format other than Quicktime with H264 compression.
I'm sorry this is so long, but, I hope you guys can help me out on how to get these specifications on these files. Wether it can be done directly from AE, or if I have to use Adobe Media Encoder, or something of the sort.
If you need ANY information I haven't given you, please let me know.
Thanks for your attention!!
You may recieve faster and more useful help if you post your question in the Afert Effects forum,
http://forums.adobe.com/community/aftereffects_general_discussion
This one is only for discussions on the forums themselves.
Similar Messages
-
ME81N - Analysis of Order Values - output format problem
Hi all,
In transaction ME81N, we are unable to change the output format to a different type of output such as a File Store, Excel file etc.
All the options appear to be greyed out and it defaults only to SAP List Viewer.
Do you know why we are unable to modify this option and whether there is an issue with this? Or whether this is restricted via other means?
thanks and regardsI think you are looking for diff one
you are having the issue on the first screen it self.
To resolve that issue go to header and click on GOTO-Variants- save as variant
here you will see the std SAP variant SAP&BEWA
go to the bottom screen
Now scroll down the botton screen where you can find the all the fields you are looking as Protected and hide
uncheck all the filels which you want as protected and hide
and save the variant then go back to ME81N main screen and you will see that selectio is available.
sorry for confusion -
How do i maintain my file format after calling a method to over write it with new data?
Instead of /n i get junk square boxes and it writes the output ina singleline.
jenniferfile is the abstract path name converted to string
public void saveFile(String file) throws IOException
//get slots
LinkedList allSlots = getAllSlots();
//create fake class
ClassItem fakeClass = new ClassItem("%3ACLIPS_TOP_LEVEL_SLOT_CLASS", "abstract", "USER", allSlots);
fakeClass.setComment("\"Fake class to save top-level slot information\"");
//open file
PrintWriter out = new PrintWriter( new FileWriter(file));
//print fake class
out.println(fakeClass.toDefinition(this));
//get all classes
LinkedList allClasses = getAllClasses();
//create set of classes added (to make sure don't print it twice)
HashSet classesPrinted = new HashSet();
//print out each class
for (int i = 0; i< allClasses.size(); i++)
//get class
ClassItem classItem = (ClassItem)(allClasses.get(i));
//get superclasses (must print them first)
LinkedList superClasses = getSuperClasses(classItem.getName());
//print superclasses first
for (int j = 0; j< superClasses.size() ; j++)
//get superclass
ClassItem superClassItem = (ClassItem)(superClasses.get(j));
//if not printed already
if( !classesPrinted.contains(superClassItem))
//print it
out.println(superClassItem.toDefinition(this));
//mark as printed
classesPrinted.add(superClassItem);
//if not printed already
if( !classesPrinted.contains(classItem))
//finally print the class as well
out.println(classItem.toDefinition(this));
//mark as printed
classesPrinted.add(classItem);
//close file
out.close();
}Please take a look at the code -
Output formatting problems with SO_DOCUMENT_SEND_API1
Hi,
I am sending an output file via email using the function module SO_DOCUMENT_SEND_API1.
The tlines table which I am passing into this function has 66 lines in it and I expect there to be 66 lines in the output file attached in the email. However, everything seems to be output into a single line.
If I send the output directly to the server it is fine.
Has anyone seen anything like this before or have any suggestions on what might be causing this?
Thanks,
RubyHere is the another program which Converts the spool into PDF and sends as attach file .
*& Report ZSPOOLTOPDF *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
* to sap-spool
* spool parameters %_print
* archive parameters %_print
* without spool dynpro
* and return.
* Get spool id from program called above
* IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
* FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
* FORM get_job_details *
FORM get_job_details.
* Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
* FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
* FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
* perform send_email using p_email2.
ENDFORM.
* FORM send_email *
* --> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
* Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
* CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
* If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
* Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
* FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
* Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
* Fill the document data.
w_doc_data-doc_size = 1.
* Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
* Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
* Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
* Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
* Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
* Populate zerror return code
ld_error = sy-subrc.
* Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
reward points if it is usefull ...
Girish -
Problem with Excel output format
Hi Guys,
I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
Example Numeric fields --> Right Aligned, text fields --> Left Aligned
One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
Our client want excel output on priority.
Is there any limitation for excel output format of reports?
It is very urgent for us please help.
Any help would be highly appreciated.
Thanks,
Pragati
Edited by: user11237443 on Aug 27, 2009 1:22 AMHi Mahi,
Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
I have read that blog for excel limitations but i have more question?
1) What about the negative values?
if any field is displaying negative amount then excel not displaying right value for that:(
2)How can we align header or data?
Do XMLP with EBS provide any solution for formatting in excel?
3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
Here are so many formatting issues do we need to write any code in xml for that?
Please help.
Many Thanks,
Pragati -
Hi ,
Whle submitting AP prepayment balance report able to get the output in XML format.
But, if for the same report when the output format is changed to PDF or Text not able to get the report.
Anybody pls suggest any changes to be done in setup to resolve the problem.
Thank you in advance.
RajAre there any errors recorded in the log file of the concurrent request ?
HTH
Srini -
Output format in background is not same as Foreground
Dear All,
I am running a report in Background but output is not coming in desired format. Suppose output contains 35 columns ( while running the report in Foreground) but in doesn't show all the columns in background. Is there any SAP Standard settings by which we can set the output format as per our requirement while running the job in background.Thanx Sourabh for your reply,
I have check the variant , it is correct. It's a common problem that end users are facing in my organization.
What I want that if standard output has width of 35 columns ( in foreground ), it must show all the columns in background also. -
Attempt to process file failed with Exception in XML Parser-format problem
Hi all,
Iam getting an unusual error in the J2EE stack in XI.
And the message is:
006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)' 2006-11-30 17:31:07 Error Exception caught by adapter framework: null 2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
My scenerio iam posting IDOC to a flat file with content conversion in the receiver side,the mapping got executed successfully and in the audit log i found that the error was after the 'Start converting XML document content to plain text'.
This means that error occured during content conversion of XML to the prescribed file format.
Can anyone suggest any better approach using which we may trace the junk data in IDoc. Manual adhoc approach could take time and is error prone.
Thanks in advance...
karunHi Bhavesh,
Thanks for the early reply. I checked the mapping and everything is fine and the output is also in valid XML format.
The audit log shows that the mapping got executed successfully and the error is after the step 'Start converting XML document content to plain text '. Is there any constraint in the file adapter regarding the message size for parsing.
2006-11-30 17:30:50 Success Transfer: "BIN" mode, size 2912595 bytes, character encoding -
2006-11-30 17:30:50 Success Start converting XML document content to plain text
2006-11-30 17:31:07 Error Attempt to process file failed with Exception in XML Parser (format problem?):'com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)(:main:, row=1, col=1044002) -> com.sap.engine.lib.xml.parser.ParserException: Invalid char #0xf(:main:, row:1, col:1044002)'
2006-11-30 17:31:07 Error Exception caught by adapter framework: null
2006-11-30 17:31:07 Error Delivery of the message to the application using connection AFW failed, due to: RecoverableException.
2006-11-30 17:31:07 Success The asynchronous message was successfully scheduled to be delivered at Thu Nov 30 17:36:07 GMT 2006.
2006-11-30 17:31:07 Success The message status set to WAIT.
2006-11-30 17:31:08 Success Acknowledgement creation triggered for type: SystemErrorAck
2006-11-30 17:31:08 Success Acknowledgement sent successfully for type: SystemErrorAck
2006-11-30 17:36:08 Success Retrying to deliver message to the application. Retry: 1 -
Different resolution in preview and output format
Hi Folks
I need your help. We already captured a lot of e-learning material but come to a problem.
The output format quality is less good than the preview quality.
Win7 /Captivate 6
Capture resolution for software simulation is 1024x768.
Producing the material in swf and html. No compressing, set to best quality.
Open the preview: quality is nearly the same as the original source.
Open the swf directly or the html --> output looks cloudy, diffuse.
Test with an without scalable html. In case of scalable html it is hard to find the right resolution (1024x768) on a 1280x1024 resolution monitor, but you can find it and the the output is clear as the preview.
The output format resolution within the project is set to 1024x768. We measured the "true" output resolution on different produced output formats, and they are all a little bit higher than 1024x768, about 4% more heigh and width.
Of course, I was able to change the html-script which sets the start-format for an swf to open, if I change it to 1024x768 and save it, the quality of the swf is like the preview and sharp and ok. But in case of scalable html I cannot set the format. However, why the swf -even when i start/opeen it directly- didn't start with the right resolution set in the settings within the project?
Also our target group should not "search" for the sharp resolution by scaling the output window.
Why does captivate change the resolution? why is the preview ok and the produced swf not? I didn't understand that fact.
Also we like to produce with TOC, so the widht for TOC is 250. If I change the html script in that case to 1024+250=1274x768 the swf is also unshapr/cloudy and I havee no change to fit it to the right resolution (1024+TOC).
Regards
RobVamsi mailed me offline and I have suggested looking at Using RH7 on my site where this problem is covered.
See www.grainge.org for RoboHelp and Authoring tips
Follow me @petergrainge -
Error in REST Web Service with Output Format as Text
Hi All,
I am referencing a REST web service, and can successfully connect to it and retrieve results with the Output Format set to XML.
I don't need the individual node values, I just want to capture the entire XML as a string, and populate a table column with it.
When I create a new Rest web service reference, with Output Format set to Text, and then create a form/report to run it, I get the following error when I click 'Submit':
ORA-06550: line 1, column 63: PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following: ( - + case mod new not null others avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date pipe
Error Error sending request.
There are control characters in the XML, but surely this is handled by Apex, so I'm not sure what the problem is here.
Any ideas most welcome.
Thanks,
RhodriRhodri:
Application Express expects text response to actually be text response, delimited by other characters denoting a new value, and a new record set. You should leave the response as XML. The XML document will be stored in the xmltype01 column of the collection you specify. You can then convert that xmltype01 column to a clob if you like using .toClobVal().
Regards,
Jason -
Hello All,
I'm having problems trying to format the output of one of my queries. I'm new to SQL and I consider my writing the query a HUGE win.... but I can't seem to get the correct output format.
Per the code below, it is outputting the Last Name (lname) of the employee, a count of what I want, and the overall rank. I would like to concatenate the employee number (emp#) the first (fname) and last name (lname) together into the same column in the output.
The concatenation code would be something like the below.
Desired concatenation:
emp# || ' - ' || lname || ', ' || fname AS EMPLOYEE
I'm using Oracle 11g Express. Please let me know if you need any supporting information to assist you.
I appreciate all your help!!! Thank you.
Query
SELECT EMPLOYEE, PREPARED,
RANK() OVER (ORDER BY Prepared DESC) AS rank
FROM (SELECT lname EMPLOYEE , COUNT(DISTINCT reportnum) PREPARED
FROM employee
LEFT OUTER JOIN faultreport USING (empno)
GROUP BY lname
ORDER BY Prepared DESC)
WHERE rownum < 15;Hi,
8bb7968b-e6ae-456c-8459-f418352e9e0a wrote:
Hello All,
I'm having problems trying to format the output of one of my queries. I'm new to SQL and I consider my writing the query a HUGE win.... but I can't seem to get the correct output format.
Per the code below, it is outputting the Last Name (lname) of the employee, a count of what I want, and the overall rank. I would like to concatenate the employee number (emp#) the first (fname) and last name (lname) together into the same column in the output.
The concatenation code would be something like the below.
Desired concatenation:
emp# || ' - ' || lname || ', ' || fname AS EMPLOYEE
I'm using Oracle 11g Express. Please let me know if you need any supporting information to assist you.
Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002
I appreciate all your help!!! Thank you.
Query
SELECT EMPLOYEE, PREPARED,
RANK() OVER (ORDER BY Prepared DESC) AS rank
FROM (SELECT lname EMPLOYEE , COUNT(DISTINCT reportnum) PREPARED
FROM employee
LEFT OUTER JOIN faultreport USING (empno)
GROUP BY lname
ORDER BY Prepared DESC)
WHERE rownum < 15;
It looks like you've found the right way to concatenate the columns. How to use that in your query depends on your data, and what you want the query to do with that data.
If you GROUP BY lname, what do you want the concatenated value to be when different rows having the same lname have different fnames and/or emp#s?
Do you want to GROUP BY the new concatenated employee instead of lname? -
HI
I WANT OUTPUT FORMAT IN THIS WAY
number 1___nar _ __1__REV____1________________1______________1
1 S 1 Q 1 S 1 Q 1 1 1 1 1
Suggest me how to write this<b>is your problem solved????</b>
u marked as solved..
its ok kkk -
How can i set permanent neat output format
Hello Experts ;
Good Evening !
Always i a, having problem with table output format.
please provide permanent solution for neat output.
i am not asking for following output. i need permanent solution because every i have to adjust axx to a 99;
My emp table output looks like following below
SQL> column econtact_no format a55;
SQL> /
EID ENAME EQUAL ESALARY ECITY EPERK
ECONTACT_NO
1 sona mba 10000 xxxxxxx
2 maya mca 15000 xxxxxx
Thanks !Hi,
It looks like you're asking about formatting done by the front end. How to control that depends on your front end, so say what front end you're using. (This forum is supposed to be for SQL and PL/SQL language questions, so this may not be the best place to ask this question.)
It looks like you might be using SQL*Plus as your front end. As far as I know, the default column formats can't actually be changed in any version of SQL*Plus, but you can put changes into LOGIN.SQL scripts, that get run automatically whenever you start a SQL*Plus session, and that may be just as good for your purposes. -
Scheduled Reports Output Format
Dear All,
Does anyone know how I can schedule WEBI reports in the same formats as crystal reports? I currently use BOXI r3.
The current WEBI options are only:
Web Intelligence
Excel
Adobe Acrobat
Where the crystal options are:
MS Excel
MS Word
PDF
RTF
TXT
TTX
CSV
XML
I need to be able to schedule a series of WEBI reports in csv & txt formats to an FTP location.
Thanks in advance,
StuartI believe the only option for WEBI reports output formats are Web Intelligence, Microsoft Excel and Adobe Acrobat.
We have been having problems with scheduled reports output format in Excel. WEBI report's page layout is set to Legal and Landscape. But, MS Excel does not keep the same WEBI page layout margins for legal and landscape, and the report does not fit to page on Excel. WEBI formatting works best on Adobe Acrobat.
We opened a ticket with SAP... their response was it is a known issue with no solution. -
Formatting problem when transform to PDF
Hi all,
I've found a problem with program RSTXPDFT4 and functions CONVERT_ABAPSPOOL ... and CONVERT_OTFSPOOL...
I want to convert to PDF the spool generated by a report using "classic" list programming (write and so on).
Output format is x_65_132, which is ok while I'm in SAPGUI, but when transforming it with report RSTXPDFT4, I get a PDF file in a x_65_80 (I think) format, so I'm having half of my list cut.
I've searched for notes and forums, and I found nothing about this.
Any Ideas? Is this a limitation of these FM's? Is there any other way of converting a list spool into PDF?
Thanks in advance,
RafaHi all,
yesterday I went home and I tried the same in the MIniWas I have installed in my laptop, and the result was exactly the same!!
The test I made was: run a program in online mode, generate a spool request, and then use standard program RSTXPDFT4 to convert this request into a PDF file.
The report is defined as 65 x 132 (which should be landscape), but the PDF file appears in portrait (65 x 80 I presume).
I think the problem is in the funcions CONVERTxxx_SPOOLJOBxxx.
Did anybody have this problem? Should I think that it's not possible to convert list output spools to PDF???
Here is the code I used at home in the report.
REPORT z_test_list NO STANDARD PAGE HEADING
LINE-SIZE 132
LINE-COUNT 65
MESSAGE-ID zzrn_msj.
* tablas **********************************************************************
TABLES: usr01.
* variables globales **********************************************************************
DATA: aux_usr TYPE bapibname-bapibname,
wa_address TYPE bapiaddr3 ,
it_profiles TYPE TABLE OF bapiprof,
wa_profiles TYPE bapiprof,
it_groups TYPE TABLE OF bapiagr,
wa_groups TYPE bapiagr,
it_return TYPE TABLE OF bapiret2,
wa_return TYPE bapiret2,
resto TYPE i.
* pantalla de selección **********************************************************************
SELECT-OPTIONS: so_usr FOR usr01-bname.
TOP-OF-PAGE.
FORMAT COLOR COL_HEADING.
WRITE: /01 'LISTADO DE CARACTERISTICAS DE USUARIOS DEL SISTEMA ', SY-SYSID.
ULINE.
FORMAT COLOR COL_TOTAL.
WRITE: /01 'Fecha del listado:', sy-datum, ' -- ', sy-uzeit.
ULINE.
SKIP 1.
START-OF-SELECTION.
SELECT bname
INTO aux_usr
FROM usr01
WHERE bname IN so_usr.
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
username = aux_usr
* CACHE_RESULTS = 'X'
IMPORTING
* LOGONDATA =
* DEFAULTS =
address = wa_address
* COMPANY =
* SNC =
* REF_USER =
* ALIAS =
* UCLASS =
* LASTMODIFIED =
* ISLOCKED =
TABLES
* PARAMETER =
profiles = it_profiles
activitygroups = it_groups
return = it_return
* ADDTEL =
* ADDFAX =
* ADDTTX =
* ADDTLX =
* ADDSMTP =
* ADDRML =
* ADDX400 =
* ADDRFC =
* ADDPRT =
* ADDSSF =
* ADDURI =
* ADDPAG =
* ADDCOMREM =
* PARAMETER1 =
* GROUPS =
* UCLASSSYS =
* EXTIDHEAD =
* EXTIDPART =
* SYSTEMS =
LOOP AT it_return INTO wa_return WHERE type EQ 'E'.
resto = sy-tabix MOD 2.
IF resto = 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
WRITE: /01 'ERROR' COLOR COL_NEGATIVE, wa_return-message.
ENDLOOP.
CHECK sy-subrc NE 0.
WRITE: /01 'DATOS DEL USUARIO' COLOR COL_GROUP INTENSIFIED ON.
ULINE.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
WRITE: /01 sy-vline, space, aux_usr(10), space, sy-vline, space, wa_address-fullname(50), space, sy-vline, space, wa_address-e_mail(50), space, sy-vline.
ULINE.
FORMAT COLOR COL_NORMAL RESET.
SKIP 1.
WRITE: /01 'PERFILES ASIGNADOS' COLOR COL_GROUP INTENSIFIED ON.
WRITE: /01(87) sy-uline.
LOOP AT it_profiles INTO wa_profiles.
resto = sy-tabix MOD 2.
IF resto = 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
WRITE: /01 sy-vline, space, wa_profiles-bapiprof, space, sy-vline, space, wa_profiles-bapiptext, space, sy-vline.
ENDLOOP.
WRITE: /01(87) sy-uline.
FORMAT COLOR COL_NORMAL RESET.
SKIP 1.
WRITE: /01 'ROLES ASIGNADOS' COLOR COL_GROUP INTENSIFIED ON.
WRITE: /01(125) sy-uline.
LOOP AT it_groups INTO wa_groups.
resto = sy-tabix MOD 2.
IF resto = 0.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ELSE.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ENDIF.
WRITE: /01 sy-vline, space, wa_groups-agr_name, space, sy-vline, space, wa_groups-agr_text, space, sy-vline.
ENDLOOP.
WRITE: /01(125) sy-uline.
NEW-PAGE.
ENDSELECT.
Maybe you are looking for
-
Zen vision M 30GB - dead battery
Need asistance, bought two Vision M units at same time two years ago, one used frequently works perfectly, the other used infrequently n- no in last six months can not get to recharge - appears battery totally dead - tried to troubleshooting tip on c
-
Hi, > How about placing all non-ServiceObject Classes in a compiled library and all > Service Objects in a project(s). > This way your code is hidden and you can still use Service Objects in your > production. This may not be the best thing to do dep
-
Dreamweaver CS6 FTP server set up not displaying
The server tab when clicked doesn't show up any options for me so I can't add any sites or manage current sites. This is a major issue for me and I am paying for a subscription to use this software that isn't functioning properly Pls can someone help
-
Hi Guys I am in the middle of career change and very interested in Business objects (analytic) but I do have only bachelor in business not in computer science I was browsing profile for BO professionals in linkedin and all of them have background in
-
Regarding precalculated report with authorization
I created a web report which contains all the country data, the query having authorization variable, after precaluclation I tried to see the report using a user who is restricted by country level, it saying no authorization but if I access through