File size problem when performing XML Transformation into Excel
Hi All,
We are performing XML Transformation in ABAP which can open in Excel and saving to common share. But the file size of excel is around 50MB. After opening the excel and save with diffrent name the file is getting compressed and its below 1MB. So what kind of settings does we need to make to the transformation code which will create the excel files with less memory/size??
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="AAAAAAA"/>
<tt:root name="BBBBBBBB"/>
<tt:root name="CCCCCCCC"/>
<tt:template>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<ProtectObjects>True</ProtectObjects>
<ProtectScenarios>True</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>
</tt:template>
</tt:transform>
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
</DocumentProperties>
<CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<ContentTypeId dt:dt="string">0x01010049B4763FE606154C9C9BC639FE7EE179</ContentTypeId>
</CustomDocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<Colors>
<Color>
<Index>0</Index>
<RGB>#FF0000</RGB>
</Color>
<Color>
<Index>1</Index>
<RGB>#FFE4B5</RGB>
</Color>
<Color>
<Index>2</Index>
<RGB>#FFF8DC</RGB>
</Color>
<Color>
<Index>3</Index>
<RGB>#000000</RGB>
</Color>
</Colors>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>7305</WindowHeight>
<WindowWidth>11340</WindowWidth>
<WindowTopX>0</WindowTopX>
<WindowTopY>0</WindowTopY>
<TabRatio>334</TabRatio>
<ProtectStructure>True</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
</DocumentProperties>
<CustomDocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<ContentTypeId dt:dt="string">0x01010049B4763FE606154C9C9BC639FE7EE179</ContentTypeId>
</CustomDocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
Hi Raghu,
have a look at the XLSX file generated by Excel, you'll see that it's simply a zipped file. So you can't do it with a transformation, but you need CL_ABAP_ZIP class. I advise you to look at the abap2xslx project ABAP code (currently 3.0) to see how it works.
Best regards,
Sandra
Similar Messages
-
Video file size triples when transferred from camera into FCP
I recorded about 16gb of video in avchd on a canon hf10. When I import it into fcp6 using pro ress 422, the file sizes are enormous, about 100 gb from the original 16. How did this happen and how do I shrink my finished project it back down to fit on a dvd. I used compressor and Mpeg2 and got it down to 3.7gb but the quality was horrendous. I used compressor and h.264 and it took 24 hours then crashed before finishing.
using a canon vixia hf10, and FCP 6.
Thanks!AVCHD is not a convenient format for editing so FCP converts it to ProRes which as you have discovered is around 50GB for an hour of footage.
ProRes enables it to be edited more easily and with better quality.
The size in gigabytes of your project is completely irrelevant . . . . it could be a terabyte with no problems.
All that matters is the length (time) of the project . . . . as long as it is no more than a couple of hours or so you will have no problems fitting it onto a DVD as iDVD or DVD Studio Pro etc. will compress it all down to around 4GB to fit. -
Problem when inserting xml flow into jspx page
When I drag and drop the xml into the jspx I should get a pop up menu where I would choose region (Im following a tutorial) but I get nothing. I drag and drop and It just opens it in the design editor.
I would appreciate any help you guys could giveOK, let cover the basics first:
JDev version?
I assume you are on 11.1.1.2.0 or 11.1.1.3.0:
You created a new task flow (right click on the 'Web content'->new->'ADF Task FLow'
the check box 'Createas Bounden Task flow was set and the check box for 'Create with Page Fragments' was set
The filename was something like 'search-email-flow.xml'
This should create a new bounden task flow with the name of search-email-flow (which creates a xml file with the same name).
Then you put one view to the flow. After creating the page fragment (the file created should have the jsff file type) you saved all work.
The you open up an existing jspx file and drag the new flow from the 'Page Flows' folder under 'Web content' onto the design view of the jspx file.
after dropping the flow you should then see the 'Create' dialog. e careful, you can't drop the flow everywhere on the page. You should drop in into a panel group or some other container. If you drop it i.e. onto a table you see the effect you described: it's opening the flow!
Timo -
Got error message when store XML documents into XML DB repository, via WebD
Hi experts,
I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
I got error message when store XML documents into XML DB repository, via WebDAV.
I have successfully registered 5 related schemas and generated 1 table.
I have inserted 40 .xml files into this auto generated table.
using these data I created relational view successfully.
but since I couldn't store XML documents into XML DB repository, via WebDAV
when I query using below code:
SELECT rv.res.getClobVal()
FROM resource_view rv
WHERE rv.any_path = '/home/DEV/messages/4fe1-865d-da0db9212f34.xml';
I got nothing.
My ftp code is listed below:
ftp> open localhost 2100
Connected to I0025B368E2F9.
220- C0025B368E2F9
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 I0025B368E2F9 FTP Server (Oracle XML DB/Oracle Database) ready.
User (I0025B368E2F9:(none)): fda_xml
331 pass required for FDA_XML
Password:
230 FDA_XML logged in
ftp> cd /home/DEV/message
250 CWD Command successful
ftp> pwd
257 "/home/DEV/message" is current directory.
ftp> ls -la
200 PORT Command successful
150 ASCII Data Connection
drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 .
drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 ..
226 ASCII Transfer Complete
ftp: 115 bytes received in 0.00Seconds 115000.00Kbytes/sec.
250 SET_CHARSET Command Successful
ftp> put C:\ED\SPL\E_Reon_Data\loaded\4fe1-865d-da0db9212f34.xml
200 PORT Command successful
150 ASCII Data Connection
550- Error Response
ORA-00600: internal error code, arguments: [qmxConvUnkType], [], [], [], [], [], [], [], [], [], [], []
550 End Error Response
ftp: 3394 bytes sent in 0.00Seconds 3394000.00Kbytes/sec.
I have tried all suggestion from another thread such as:
alter system set events ='31150 trace name context forever, level 0x4000'
SQL> alter system set shared_servers = 1;
but failed.
is there anyone can help?
Thanks.
Edited by: Cow on Mar 29, 2011 12:58 AMHi experts,
I am in I am in Oracle Enterprise Manager 11g 11.2.0.1.0.
SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 22 11:40:23 2011
I got error message when store XML documents into XML DB repository, via WebDAV.
I have successfully registered 5 related schemas and generated 1 table.
I have inserted 40 .xml files into this auto generated table.
using these data I created relational view successfully.
but since I couldn't store XML documents into XML DB repository, via WebDAV
when I query using below code:
SELECT rv.res.getClobVal()
FROM resource_view rv
WHERE rv.any_path = '/home/DEV/messages/4fe1-865d-da0db9212f34.xml';
I got nothing.
My ftp code is listed below:
ftp> open localhost 2100
Connected to I0025B368E2F9.
220- C0025B368E2F9
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 I0025B368E2F9 FTP Server (Oracle XML DB/Oracle Database) ready.
User (I0025B368E2F9:(none)): fda_xml
331 pass required for FDA_XML
Password:
230 FDA_XML logged in
ftp> cd /home/DEV/message
250 CWD Command successful
ftp> pwd
257 "/home/DEV/message" is current directory.
ftp> ls -la
200 PORT Command successful
150 ASCII Data Connection
drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 .
drw-r--r-- 2 FDA_XML oracle 0 DEC 17 19:19 ..
226 ASCII Transfer Complete
ftp: 115 bytes received in 0.00Seconds 115000.00Kbytes/sec.
250 SET_CHARSET Command Successful
ftp> put C:\ED\SPL\E_Reon_Data\loaded\4fe1-865d-da0db9212f34.xml
200 PORT Command successful
150 ASCII Data Connection
550- Error Response
ORA-00600: internal error code, arguments: [qmxConvUnkType], [], [], [], [], [], [], [], [], [], [], []
550 End Error Response
ftp: 3394 bytes sent in 0.00Seconds 3394000.00Kbytes/sec.
I have tried all suggestion from another thread such as:
alter system set events ='31150 trace name context forever, level 0x4000'
SQL> alter system set shared_servers = 1;
but failed.
is there anyone can help?
Thanks.
Edited by: Cow on Mar 29, 2011 12:58 AM -
Project file size bloat when editing sound media in Audition
Whenever I clean up a voice-over clip in using Audition, the size of the clip in Captivate remains about the same, but the project file size increases by about the amount of the original clip.
For example, the size of the original sound clip is 1098.90. The size of the edited clip is 1103.98. The size of the original project file is 5416, but the size of the saved file with the edited clip is 6496. I'm using Captivate 7 and the latest version of Audition CC. I've cleared my cache and removed any unused media.
All I am doing to the clip is some noise reduction and EQ tweaking.
It seems like Captivate is saving both versions of the sound clip.
UPDATE:
I've also tried saving the sound file as a .wav from Audition into a folder and then updating the sound clip in Captivate. Same bloat problem.
I have also copied the slides into a blank project. Again, same file size problem.
Any ideas?
Message was edited by: Tangent001Here is the 'before' Audio Library:
Here is the 'After' Audio Library:
Here is a comparison of the project file sizes: -
Report file size limitation when printing?
Does anyone know of a file size limitation when printing a .NET run Crystal report? We run a browser app, which opens a new browser when a report is printed. That works fine. When we PRINT, the ActiveX print dialog box appears. If the report is large (> 40 pages or so) it crashes our entire application. It works ok if we export to PDF then print, but I am trying to get to the bottom of why it is crashing.
Hello,
What version of Cr and .NET?
Does your printer have limited memory?
Is it local printer?
Have you tried installing the latest Drivers for it?
What Browser are you using and have you tried any other?
40 pages not much local memory so it shouldn't be a problem.
Create a new Printer and select File rather than port or LPT as the destination to see if it's a physical printer or network issue.
Try a different printer altogether also.
Also refer to Rule of Engagement posting before submitting your question so you provide as much info first.
Thank you
Don -
Safari problem: when I switch back into safari from another application, the menu bar comes up but no tabs or windows. What's going on? Just started yesterday. I have found a workaround: when I Command Tab back to safari, I hit command T to open a new tab and Command W to close it, and my other tabs are visible.
I have tried shutting down, closing tabs, with no success. What's going on and how can I fix it?
Thanks,
Cindi B
PS: I'm not sure of the actual OS level, but I have not allowed it to upgrade to Maverick yet; concerned about it because of a few things I've read...A Safari extension or third party plugin may be causing the menu bar issue.
From the Safari menu bar click Safari > Preferences then select the Extensions tab. Turn that OFF, quit and relaunch Safari to test. If that helped, turn one extension on then quit and relaunch Safari to test until you find the incompatible extension then click uninstall.
If it's not an extensions issue, try troubleshooting third party plug-ins.
Back to Safari > Preferences. This time select the Security tab. Deselect: Allow plug-ins. Quit and relaunch Safari to test.
If that made a difference, instructions for troubleshooting plugins here.
As for which OS X is installed.
Click the Apple () menu top left in your screen. From the drop down menu click About This Mac.
The version is noted there.
v10.6 Snow Leopard v10.7 Lion v10.8 Mountain Lion
It's your choice whether or not to upgrade to Mavericks. If you decide to do this, make sure your Mac meets the requirements noted here. -
Is there a Maximum file size limit when combining pdf files
I am trying to combine files 8 PDF files created with i Explore using Acrobat XI Standard, the process is completed but when opening the file not all 8 individual files have been combined only the first two have been combined, the process shows all eight being read and combined.
I can open and view each of the original 8 individual files and read the content without any issue, the largest of the eight files is 15,559kb and the smallest is 9,435kb
if anyone can assist that would be most appreciatedHi Tayls450,
This should not have happened as there is no maximum file size limit when combining PDFs.
Please let me know if there are some password protected PDFs also?
Also, I would suggest you to choose 'Repair Acrobat Installation' option from the Help menu.
Regards,
Anubha -
I exported a short video of mine from Final Cut Express and the size of the file came out to 7.3 GB. When I put it into an iDVD project, it says that the file is only 800 MB. I tried just burning it onto a dual layer disc anyway to see if it might still burn at the original file size, but the disc came out unusable for some reason, and obviously hadn't been burned anywhere near full-capacity. So, I tried it again, and the exact same thing happened.
I guess my first question is: why is iDVD changing the size of the file? I want the quality to be the best it can be, so keeping it at 7.3 GB as opposed to 800 MB is rather important.
Secondly, why did the dual layer discs come out unusable? I've burned single layer discs before and they haven't been an issue. Also, I know for a fact that the drive can burn dual layer discs, so that isn't the issue.
Thanks in advance to anyone who can provide me with help on this issue.LivelyJamesS wrote:
I exported a short video of mine from Final Cut Express and the size of the file came out to 7.3 GB. When I put it into an iDVD project, it says that the file is only 800 MB.
Guessing here but it looks like you edited/exported an SD/DV sequence of about 30 min in FCE. DVD needs to be MPEG-2 so iDVD compresses the original file down to the size that you report.
LivelyJamesS wrote:
I guess my first question is: why is iDVD changing the size of the file? I want the quality to be the best it can be, so keeping it at 7.3 GB as opposed to 800 MB is rather important.
The quality will be what the MPEG-2 compression and the software allow for. MPEG-2 is DVD standard .... there's no way around that.
LivelyJamesS wrote:
Secondly, why did the dual layer discs come out unusable? I've burned single layer discs before and they haven't been an issue. Also, I know for a fact that the drive can burn dual layer discs, so that isn't the issue.
Guessing again but it would seem that you burned a Data DVD instead of a Video DVD which would be unusable by a set-top player. As I said above you can't get around DVD standards.
If by any chance your video was HD originally you can try to go the Blu-Ray route using Roxio Toast or FCS 3 (discontinued) or FCP X. You will also need a Blu-Ray burner. -
Xslt ecc6 ISO-8859-1 problem when download xml file
Hello,
i create an ABAP test program:
*& Report Z_ABAP_TO_XML *
*& Write the data from an internal ABAP table into an XML document, *
*& and write it onto your frontend computer *
REPORT z_abap_to_xml.
TYPE-POOLS: abap.
CONSTANTS gs_file TYPE string VALUE 'C:\Users\Marco Consultant\Desktop\test.xml'.
* This is the structure for the data to go into the XML file
TYPES: BEGIN OF ts_person,
cust_id(4) TYPE n,
firstname(20) TYPE c,
lastname(20) TYPE c,
END OF ts_person.
* Table for the XML content
DATA: gt_itab TYPE STANDARD TABLE OF char2048.
* Table and work area for the data to fill the XML file with
DATA: gt_person TYPE STANDARD TABLE OF ts_person,
gs_person TYPE ts_person.
* Source table that contains references
* of the internal tables that go into the XML file
DATA: gt_source_itab TYPE abap_trans_srcbind_tab,
gs_source_wa TYPE abap_trans_resbind.
* For error handling
DATA: gs_rif_ex TYPE REF TO cx_root,
gs_var_text TYPE string.
* Fill the internal table
gs_person-cust_id = '3'.
gs_person-firstname = 'Bill'.
gs_person-lastname = 'Gates'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '4'.
gs_person-firstname = 'Frodo'.
gs_person-lastname = 'Baggins'.
APPEND gs_person TO gt_person.
* Fill the source table with a reference to the data table.
* Within the XSLT stylesheet, the data table can be accessed with
* "IPERSON".
GET REFERENCE OF gt_person INTO gs_source_wa-value.
gs_source_wa-name = 'IPERSON'.
APPEND gs_source_wa TO gt_source_itab.
* Perform the XSLT stylesheet
TRY.
CALL TRANSFORMATION z_abap_to_xml
SOURCE (gt_source_itab)
RESULT XML gt_itab.
CATCH cx_root INTO gs_rif_ex.
gs_var_text = gs_rif_ex->get_text( ).
gs_var_text = gs_rif_ex->get_text( ).
MESSAGE gs_var_text TYPE 'E'.
ENDTRY.
* Download the XML file to your client
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = gs_file
CHANGING
data_tab = gt_itab
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
and i created XSLT test conversion:
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output encoding="iso-8859-1" indent="yes" method="xml" version="1.0"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/">
<CUSTOMERS>
<xsl:apply-templates select="//IPERSON/item"/>
</CUSTOMERS>
</xsl:template>
<xsl:template match="IPERSON/item">
<item>
<customer_id>
<xsl:value-of select="CUST_ID"/>
</customer_id>
<first_name>
<xsl:value-of select="FIRSTNAME"/>
</first_name>
<last_name>
<xsl:value-of select="LASTNAME"/>
</last_name>
</item>
</xsl:template>
</xsl:transform>
Seem all correct infact the program download a file XML but the file have the encoding="UTF-16" also if i have specified "iso-8859-1" and if i tried to opend the xml file the file appears not correct because is generated with as first character "#", why?
Below the xml generated..
What i have to do to generate a correct XML without errors?
#<?xml version="1.0" encoding="utf-16"?>
<CUSTOMERS>
<item>
<customer_id>0003</customer_id>
<first_name>Bill</first_name>
<last_name>Gates</last_name>
</item>
<item>
<customer_id>0004</customer_id>
<first_name>Frodo</first_name>
<last_name>Baggins</last_name>
</item>
</CUSTOMERS>hello all!
i resolve the problem using:
* Perform the XSLT stylesheet
g_ixml = cl_ixml=>create( ).
g_stream_factory = g_ixml->CREATE_STREAM_FACTORY( ).
g_encoding = g_ixml->create_encoding( character_set = 'utf-16' "unicode
byte_order = 0 ).
resstream = g_stream_factory->CREATE_OSTREAM_ITABLE( table = gt_xml_itab ).
call method resstream->set_encoding
exporting encoding = g_encoding.
I think it's the right way, i put all my ABAP program updated:
*& Report Z_ABAP_TO_XML *
*& Write the data from an internal ABAP table into an XML document, *
*& and write it onto your frontend computer *
REPORT z_abap_to_xml.
TYPE-POOLS: abap.
CONSTANTS gs_file TYPE string VALUE 'C:UsersMarco ConsultantDesktop est.xml'.
data: g_ixml type ref to if_ixml.
data: g_stream_factory type ref to IF_IXML_STREAM_FACTORY.
data: resstream type ref to if_ixml_ostream.
data: g_encoding type ref to if_ixml_encoding.
* This is the structure for the data to go into the XML file
TYPES: BEGIN OF ts_person,
cust_id(4) TYPE n,
firstname(20) TYPE c,
lastname(20) TYPE c,
END OF ts_person.
* Table for the XML content
DATA: gt_xml_itab TYPE STANDARD TABLE OF char2048.
* Table and work area for the data to fill the XML file with
DATA: gt_person TYPE STANDARD TABLE OF ts_person,
gs_person TYPE ts_person.
* Source table that contains references
* of the internal tables that go into the XML file
DATA: gt_source_itab TYPE abap_trans_srcbind_tab,
gs_source_wa TYPE abap_trans_resbind.
* For error handling
DATA: gs_rif_ex TYPE REF TO cx_root,
gs_var_text TYPE string.
* Fill the internal table
gs_person-cust_id = '3'.
gs_person-firstname = 'Bill'.
gs_person-lastname = 'Gates'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '4'.
gs_person-firstname = 'Frodo'.
gs_person-lastname = 'Baggins'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '5'.
gs_person-firstname = 'Frodo'.
gs_person-lastname = 'Baggins'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '6'.
gs_person-firstname = 'Frodo'.
gs_person-lastname = 'Baggins'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '7'.
gs_person-firstname = 'Frodo'.
gs_person-lastname = 'Baggins'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '8'.
gs_person-firstname = 'Frodo'.
gs_person-lastname = 'Baggins'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '9'.
gs_person-firstname = 'Frodo'.
gs_person-lastname = 'Baggins'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '10'.
gs_person-firstname = 'Frodo'.
gs_person-lastname = 'Baggins'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '11'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
gs_person-cust_id = '88'.
gs_person-firstname = 'Frodoèé'.
gs_person-lastname = 'Baggins~¦Üu0192'.
APPEND gs_person TO gt_person.
* Fill the source table with a reference to the data table.
* Within the XSLT stylesheet, the data table can be accessed with
* "IPERSON".
GET REFERENCE OF gt_person INTO gs_source_wa-value.
gs_source_wa-name = 'IPERSON'.
APPEND gs_source_wa TO gt_source_itab.
* Perform the XSLT stylesheet
g_ixml = cl_ixml=>create( ).
g_stream_factory = g_ixml->CREATE_STREAM_FACTORY( ).
g_encoding = g_ixml->create_encoding( character_set = 'utf-16' "unicode
byte_order = 0 ).
resstream = g_stream_factory->CREATE_OSTREAM_ITABLE( table = gt_xml_itab ).
call method resstream->set_encoding
exporting encoding = g_encoding.
TRY.
CALL TRANSFORMATION z_abap_to_xml
SOURCE (gt_source_itab)
RESULT XML gt_xml_itab.
CATCH cx_root INTO gs_rif_ex.
gs_var_text = gs_rif_ex->get_text( ).
gs_var_text = gs_rif_ex->get_text( ).
MESSAGE gs_var_text TYPE 'E'.
ENDTRY.
* Download the XML file to your client
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = gs_file
FILETYPE = 'BIN'
CHANGING
data_tab = gt_xml_itab
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*-- we don't need the stream any more, so let's close it...
CALL METHOD resstream->CLOSE( ).
CLEAR resstream. -
Memory problem when store xml into XMLDB from CLOB source
Hi,
We have performed a stress test and looped the following
stored procedures for 1500 XML documents.
We found the UGA and PGA memory for this oracle process increased tremendously.
PGA memory
==========
6MB -> 2.9GB
UGA memory
==========
5MB -> 2.8GB
We have also experienced ORA-4030 error when more XML documents were inserted.
The PGA & UGA memory would not ever be released. We have checked that
the PGA & UGA memory for this process are still 2.9GB & 2.8GB the day after the stress test.
Stored Procedure
================
create or replace procedure clob_to_xml (indocid IN NUMBER) AS
clobdoc clob := EMPTY_CLOB();
myParser dbms_xmlparser.Parser;
indomdoc dbms_xmldom.domdocument;
xsltdomdoc dbms_xmldom.domdocument;
xsl dbms_xslprocessor.stylesheet;
outdomdocf dbms_xmldom.domdocumentfragment;
outnode dbms_xmldom.domnode;
outclobdoc clob := EMPTY_CLOB();
proc dbms_xslprocessor.processor;
xsltpath doc_types.canonical_doc_trim_xslt_name%type;
xmltabname doc_types.xmldb_table_name%type;
doc_type doc_types.doc_type%type;
doc_type_version doc_types.doc_type_version%type;
category doc_types.category%type;
sqlstring varchar2(500);
outxmldoc xmltype;
begin
-- clobdoc := :new.canonical_doc_content;
begin
select canonical_doc_content into clobdoc
from canonical_doc
where dttn_doc_id = indocid;
exception
when no_data_found then raise_application_error(-20001,'Doc ID ' || indocid || ' cannot be found');
when others then raise;
end;
begin
select dt.canonical_doc_trim_xslt_name, dt.xmldb_table_name, ddi.doc_type,ddi.doc_type_version, dt.category
into xsltpath, xmltabname, doc_type, doc_type_version, category
from
dttn_doc_info ddi,
doc_types dt
where ddi.dttn_doc_id = indocid
and ddi.doc_type = dt.doc_type
and ddi.doc_type_version = dt.doc_type_version;
exception
when no_data_found then raise_application_error(-20001,'Doc Type is not defined');
-- when others then raise;
end;
if (category <> 0 ) then
--only support business document at this moment
return;
end if;
if (xsltpath is null or xsltpath = '') then
raise_application_error (-20001,'XSLT is not defined on doc_type table - ' || doc_type);
end if;
if (xmltabname is null or xmltabname = '') then
raise_application_error (-20001,'XMLTable is not defined on doc_type table - ' || doc_type);
end if;
myParser := dbms_xmlparser.newParser;
dbms_xmlparser.parseClob(myParser, clobdoc);
indomdoc := dbms_xmlparser.getDocument(myParser);
dbms_xmlparser.parseClob(myParser, xdbURIType(xsltpath).getClob());
xsltdomdoc := dbms_xmlparser.getDocument(myParser);
xsl := dbms_xslprocessor.newstylesheet(xsltdomdoc, '');
proc := dbms_xslprocessor.newProcessor;
--apply stylesheet to DOM document
outdomdocf := dbms_xslprocessor.processxsl(proc, xsl, indomdoc);
outnode := dbms_xmldom.makenode(outdomdocf);
-- PL/SQL DOM API for XMLType can be used here
dbms_lob.createTemporary(outclobdoc, true);
dbms_xmldom.writeToClob(outnode, outclobdoc);
begin
sqlstring := 'INSERT INTO ' || xmltabname || ' values (:1, :2)';
EXECUTE IMMEDIATE sqlstring USING indocid, outxmldoc;
exception
when others then
begin
rollback;
raise_application_error (-20001,'Cannot insert into XMLDB , docid = ' || indocid);
end;
end;
dbms_lob.freeTemporary(outclobdoc);
DBMS_XMLDOM.freeDocument(indomdoc);
DBMS_XMLDOM.freeDocument(xsltdomdoc);
DBMS_XMLDOM.freeDocFrag(outdomdocf);
DBMS_XMLPARSER.freeParser(myParser);
DBMS_XSLPROCESSOR.freeProcessor(proc);
end;
Is there anything wrong with the Stored Procedure ?
My oracle version is 10.1.0.4.
Thanks & Regards,
NMMark,
I think you missed it. OP gave you the version.
My oracle version is 10.1.0.4.Rahul. -
File size wrong when editing in Photoshop
Sometimes when I right click on an image in Lightroom and choose Edit in Photoshop, the resulting file in Photoshop has a size of 72 dpi and usually like around 3" on the long side. The original file is 13 mp so it isn't because the initial file is small. This happens maybe 20% of the time, and I cannot find a pattern to it.
My workaround is to open that image in Bridge, go through ACR and it is then fine in Photoshop.
I am using the Photoshop CS3 beta, but I don't suspect that is the problem.
Anyone else having this issue? Is it something I am inadvertantly doing? Or if it is a known problem is there a fix?Hmmm. Wonder why these few images would be any different than the ones before/after them? They are all raw files from my 5D, imported by Lightroom from my cf card. And again, I can process the same files I had problems with in Lightroom through Bridge and go into ACR and they are fine that way. Next time it happens, I will email you the CR2 file...thanks. Hopefully you can see something interesting about it!
Is there some place in Lightroom that I can specify what ppi and/or file size to use when I edit in Photoshop? The files (other than these weird ones) are currently coming in at 240 and I'd prefer 300. Just saves me one little step of changing it, but hey every step helps in a workflow! -
File size limitation when using BufferedWriter(FileWriter) on Linux
I am using a Java application (console-based) on Linux RH8.0 with a Pentium III processor.
I preprocess Javascript scripts that #include other Javascript scripts.
(in fact these scripts are Javascript Server pages)
I try putting all the result of the preprocess into one BIG temporary file
created using File.createTempFile(prefix,".jsp");
where prefix = "analyse"
I write into this file by instanciating one 'new BufferedWriter(new FileWriter(...))'
and then calling the write() and newLine() methods.
But the temporary file seems to be limited whatever I do to 221184 bytes, which is too short for me.
Could someone help me please ?Do you call flush() on the BufferedWriter when you've
finished writing to it? I've had problems in the past
with files being truncated/empty when I've neglected
to do that. (Although admittedly, it doesn't sound all
that likely to be the case for you...)
How much output is missing? You say that the file size
of 221184 is "too short", how much output were you
expecting?
Oh, and as you're running on a Linux-based OS, try
checking to make sure that your file size isn't being
limited - to check, run "ulimit -a" and look for the
'file size' line. By default on Mandrake, it's
unlimited, and I'd expect that to be the case for
RedHat too, but you never know...Thanks, I just realized that I forgot to close() my temporary file before reading it, so it had not the opportunity to flush...
Thanks a lot.
Stephane -
Hi,
I am using Adobe Acrobat Elements 7.0 in my computer to convert files like .txt and .doc to .pdf files. But currently I'm facing a problem with the converted .pdf file size. For example, my .doc file is 5MB and after I convert to a .pdf file, it becomes 10MB. The file size basically multiplies itself by 2.
I've tried converting .txt and .doc files and it gives me the same problem. I've tried reinstalling, tried all kinds of settings, and recreating user profile but it doesn't help. Can anyone help me? Thank you very much.Sorry. The problem is caused when I want to password protect a .pdf using elements. So I used Adobe Reader to open the .pdf file then I'll print using Adobe Printer so that I can password protect it and output file size is actually 10 times the normal .pdf file.
Please help!! -
Hi,
I haven't worked with video in Photoshop before and I am having the following issue:
I imported a .mov file into photoshop. I trimmed the file by moving the start and finish points to the relevant points on the timeline. I then cropped the image to get rid of unwanted footage on the edge of the screen. I then selected export - render video. On the panel I chose to select only "currently selected frames" as the range and I chose "Quick Time Movie" as the file type. When I check the properties of my newly rendered movie the file size has increased by several times. The file sizes are now much too large.
I know that I must need to alter some of the render settings but having tried altering many of the settings the result is always the same - a very large file size that is much bigger than my oringinal file.
If anyone can let me know how I can carry out a simple crop & trim on a .mov file and end up with a smaller more compact file after rendering the video I would really appreciate it. Thanks in advance!Hi Marion,
Thanks very much for your message. I have downloaded that program and it's definitely handy for examining the details of the original file. You mentioned in your message about not having to recode the file - The file I'm editing is originally from a Q3 Zoom video recorder and I can use their in-built software (handyware) to trim the file - this doesn't recode the file and so the file size just reduces by the required amount. Unfortunately there is no facility to crop the file with this software - I've looked for other software that would allow cropping without having to recode the file but I haven't found anything suitable for a simple procudure like this - do you know of any software that allows you to crop a file without recoding? Thanks.
Maybe you are looking for
-
I am in the market for a TV media player. I have a lot of videos and photos on an external HDD and i would love to be able to play them on my big new TV. I have been thinking about buying a "Buffalo home theatre" or a "WD TV Live". BUT..... I would
-
Hard drives icons allways get confused on the desktop
After starting my HD icons appear where they like to. No permission repair, no DiskWarrior would help. Any ideas..? Thanks bafomet
-
Need to reinstall Photoshop on new computer
Stolen laptop...got new one and need to reinstall Photoshop CS3 on my new one. Adobe "customer service" is not helpful. I have the original $1,500 software, but when I try to install it. I get an error notice and it only installs a portion (PDF). Adv
-
Hi, I need to export to BW the billing plan from SD (VA41, VA42, VA43). I wrote an extractor based on a function modul, the extractor works fines (delta init is ok), uising the how to. Now I want to have this extractor in delta mode using BTE (I don'
-
Writing vals in characteristic of $PARENT or $ROOT of configurable material
Hi, I'm trying to write some values on a characteristic of the $PARENT and $ROOT elements located in the tree of the BOM for a configurable material. But, if i try to define something like this in a procedure dependency : $ROOT.Total_price = $SELF.Pr