XML to spool in 46C
Hi
I wish to use the XML classes to create an XML document in 46C. However, I do not wish to download the document, I wish to write it to the spool. Are there any standard methods for this in this version? The render_2_string method mentioned in another forum is not available and I thought I'd ask around before coding my own version of writing to the spool. My issue at the moment is being able to print one tag per line and therefore determining the start and end when I have elements and elements with attributes etc.
I have checked out the thread
How can I convert IF_IXML_DOCUMENT to STRING?
but wonder if the methods used are not applicable in 46C.
Any help much appreciated.
Cheers
Ian
Message was edited by: Ian Stubbings
Ok, so some progress. I can use the following to instroduce what I think are tabs to the output stream:
l_pretty_print = 'X'.
Pretty print the document
CALL METHOD l_ostream->set_pretty_print
exporting
PRETTY_PRINT = l_pretty_print
Now I wish to split the XML stream at these characters.
<?xml version="1.0"?>#<pack_type>EMAIL</pack_type>#<customer/>#<print_destn>email</print_destn>#<delivery>EMAIL</delivery>
However, the hex representation show a value of 23 but when I split on this value, nothing happens. The value is defined as type x so where is the issue?
Any help greatly appreciated.
Ian
Similar Messages
-
Special characters in CLOB are making report fail
Hi-
I am working on a report which is refering CLOB column from database. If the CLOB had special characters like & or <, the report is returning error 'Expected name instead of .' I created a view and stored CLOB as varchar2 and refered the view in query and the report works fine, but the drawback of this is varchar2 max limit is 4000 chars and the text i intend to show is more than 4000 chars.
Can someone share any ideas on how to get around this error?
Thanks in advance.Hmm, thought I'd dig a little to see what you guys mean. Indeed XML Publisher Data Template doesn't translate CLOB special characters and so BIP chokes!
My advice - log a bug and write XML output in PL/SQL.
Here's my working for reference (note spaces added after & to preserve special chars!):
CREATE TABLE test_clob (
id NUMBER(15)
, file_name VARCHAR2(1000)
, file_contents CLOB
, timestamp DATE
insert into test_clob
(id,file_name, file_contents)
values
(3,'Greeting = <Hello, world>','Greeting = <Hello, my funky file contents>');
ed gg.sql
select '<?xml version="1.0" encoding="UTF-8" ?>'
from dual;
select xmlelement("row",
xmlelement("file_name", file_name),
xmlelement("file_contents", file_contents))
from test_clob
where id = 3;
:q
set serverout off termout off echo off verify off head off trimspool on
set lines 300 pages 0 long 20000
spool gg.xml
@gg
spool off
exit
cat gg.xml
<?xml version="1.0" encoding="UTF-8" ?>
<row><file_name>Greeting = & lt;Hello, world& gt;</file_name><file_contents>Greeting = & lt;Hello, my funky file contents& gt;</file_contents></row>
OKAY: both fields translated! Let's try using dataTemplate
<?xml version = '1.0' encoding = 'utf-8'?>
<dataTemplate name="XXV8_CLOB" description="$Header$" defaultPackage="" Version="1.0">
<parameters>
</parameters>
<properties>
<property name="include_parameters" value="true" />
<property name="include_null_Element" value="true" />
<property name="include_rowsettag" value="false" />
<property name="scalable_mode" value="on" />
<property name="debug_mode" value="off" />
</properties>
<dataQuery>
<sqlStatement name="Q_LOBS">
<![CDATA[
select file_name, file_contents
from test_clob
where id = 3
]]>
</sqlStatement>
</dataQuery>
</dataTemplate>
OUTPUT:
<?xml version="1.0" encoding="UTF-8"?>
<XXV8_CLOB>
<LIST_Q_LOBS>
<Q_LOBS>
<FILE_NAME>Greeting = & lt;Hello, world& gt;</FILE_NAME>
<FILE_CONTENTS>
Greeting = <Hello, my funky file contents></FILE_CONTENTS>
</Q_LOBS>
</LIST_Q_LOBS>
</XXV8_CLOB>
CHOKE:
Post-processing of request 2805016 failed at 18-MAR-2008 22:59:19 with the error message:
One or more post-processing actions failed. Consult the OPP service log for details.
Error message in OPP output processor:
Template code: XXV8_CLOB
Template app: XXV8
Language: en
Territory: US
Output type: PDF
[3/18/08 10:59:18 PM] [UNEXPECTED] [752315:RT2805016] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:517)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:224)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
Caused by: oracle.xdo.parser.v2.XMLParseException: Expected name instead of ,.
at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:324)
at oracle.xdo.parser.v2.XMLReader.scanNameChars(XMLReader.java:1056)
at oracle.xdo.parser.v2.XMLReader.scanQName(XMLReader.java:1768)
at oracle.xdo.parser.v2.NonValidatingParser.parseAttr(NonValidatingParser.java:1444)
at oracle.xdo.parser.v2.NonValidatingParser.parseAttributes(NonValidatingParser.java:1394)
at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1225)
at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:314)
at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:281)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:266)
... 17 moreAs you can see the varchar special characters are "escaped" or translated or whatever you want, but not the CLOB!
Regards,
Gareth
Blog: http://garethroberts.blogspot.com/ -
ABAP Report WRITE, how to ouptut long lines without additional formatting?
I am developing a program, which dumps objects as XML and I need to create one big XML file at the end. I would like to start it as a background job and get this XML as spooled output at the end. The problem is that the XMLs come from CALL TRANSFORMATION as one big string without any CR LF and in the report spooled output there are additional "formatting" like header, pages etc.:
#COL0N#COL0H07.12.09 Programm EHFND_GENERATE_BO_DOCU 1
#<bopf_bo><item><KEY>gB4L/AeoHd6tl1YoR5AdIg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
#<bopf_bo><item><KEY>gB4L/AeoHd6tl2lLeQUKOQ==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
#<bopf_bo><item><KEY>gB4L/AeoHd6tmEQlByTUEg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
#<bopf_bo><item><KEY>gB4L/AeoHd6xjRciawUXeQ==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
#<bopf_bo><item><KEY>gB4L/AeoHe6t31MGbgZYFg==</KEY><PARENT_KEY/><ROOT_KEY>gB4L/A
P
|#COL0N#COL0H07.12.09 Programm EHFND_GENERATE_BO_DOCU 2
|#######################################################################################
|#<bopf_bo><item><KEY>gCFaXDIYHe60jgYnuB9agQ==</KEY><PARENT_KEY/><ROOT_KEY>gCFaXD
Is it possble to make the WRITE statement automatically insert CR LF so I do not loose the XML data and also do not output
any additional symbols? My purpose is to get clean XML data at the end, which can be e.g. directly loaded into explorer.
I already have a solution which fills a DB table with all XMLs and finaly I create the file with cl_gui_frontend_services=>gui_download but I would like to have a simplier solution using only the abap report output.
Edited by: Rob Burbank on Dec 8, 2009 10:56 AMBetter option would be writing this XML string to File on the application server using OPEN DATASET ... TRANSFER .... CLOSE DATASET. You can give the provision in the same program to download this application server file to Presentation.
Regards,
Naimesh Patel -
I want XSF output for a smartform. I have made the necessary changes in the output type and output device. Also made changes in SPRO.
When I produce normal (standard) PDF for the smartform it executes with no error and the pdf is properly generated.
But when I do the same for XSF output it gives an error that "table XYZ does not fit the main window". I tried changing the size of the table as well but the error still remains.
If the same smartform works properly for standard PDF output why should it have size issues with XSF output?
help would be appreciated. Am I missing out on something?Hello again,
I am able to get the XSF output in the spool. Now my problem is that I am having that XML file in the spool, but I need to redirect this XML File (spool) to my middleware (seebeyond in this case ) .
Now how to configure it in SAP so that it is redirected to seebeyond automatically the moment spool gets created.
At the moment I am not looking to write an ABAP to run in background to pick up the spools and drop to middleware.
Any ideas gurus? am I on the right track ?
Cheers, -
Hello all,
The spools of a SmartForm that I developed are missing the line:
<?xml version="1.0" encoding="utf-8" ?><sf>
The spool starts with:
<smartxsf xmlns="urn:sap-com:SmartForms:2000:xsf"><header><general><version>1.14.2< (so on...)
The Functional Counsultant wants the spool to look like:
<?xml version="1.0" encoding="utf-8" ?><sf><smartxsf xmlns="urn:sap-com:SmartForms:2000:xsf"><header><general><version>1.14.2< (so on...)
Only such a spool can be printed successfully. If the line is missing, no print out can be taken.
Could you please tell me what settings need to be done in order to see the missing line in the spools?
Thanks and regards,
Ameya
Edited by: Ameya_Tulpule on Mar 9, 2011 8:58 AMhii,
http://help.sap.com/saphelp_nw70/helpdata/en/a5/28d3b6d26211d4b646006094192fe3/content.htm
Go to this link click under Activating XSF Output
statically
dynamically
Overriding the Output Format
Desired Output Format
Settings for Overriding
Standard output
(OTF)
XSFCMODE = 'X'.
XSF = SPACE.
XDFCMODE = 'X'.
XDF = SPACE.
XSF
XSFCMODE = 'X'.
XSF = 'X'.
XDFCMODE = SPACE.
XSF+HTML
XSFCMODE = 'X'.
XSF = 'X'.
XSFFORMAT = 'X'.
XDFCMODE = SPACE.
XDF
XDFCMODE = 'X'.
XDF = 'X'.
XSFCMODE = SPACE.
Matching Parameters for Static Attributes
Output Format
Input Field in Form
Parameter of Structure SSFCOMPOP
(possible settings)
XSF
Output mode
(for XDFOUTMODE='S')
XSFOUTMODE ('S'|'A')
Output device
XSFOUTDEV
XSF+HTML
Output mode
XSFOUTMODE ('A')
BSP page/URL
XSFACTION
XDF
Output mode
XDFOUTMODE ('S'|'A')
Output mode
(for XDFOUTMODE='S')
XDFOUTDEV
regards,
Sridhar.V -
Print content of XML string to a spool
Hello,
In my program I have an XML string. I can display this on the screen using FM DISPLAY_XML_STRING.
The problem is that when running the program in background, it does not generate a spool.
Is there a standard way (function module or class) which parses the XML string and prints the xml document to the spool?
Kind Regards
Koen Van LoockeHi
Try using this FM: CRM_IC_XML_XSTRING2STRING. It will give XML string when you specify byte string.
Then you can display the same using WRITE statement. -
REGARDING CONVERSION OF SPOOL (XML FORMAT ) INTO READABLE FORMAT
HELLO EVRYONE, I AM GETTING MY SMARTFORM OUTPUT IN XML FORMAT ON SPOOL, I WANT TO CHECK IT SO I NEED THAT XML OUTPUT IN TEXT FORMAT OR ANY OTHER READABLE FORMAT, PLEASE REPLY ME. ITS URGENT.
THANKS & REGARDS,
VIMARSH B.Hi Check this link..
http://www.****************/Tutorials/Smartforms/OTF2PDF.htm
IT contains the code to convert smartform output to PDF File
Regards,
Sai Ramesh -
Question : I do not want <ROW num="1"> in xml file I need just <row> </row>. Because I want to change it to <TRANSACTIONS> <TRANSACTION> using Replace.
Please can any one help me to remove num = "1" and num ="2" from xml file ?
--MY SPOOL SCRIPT START HERE
set serverout on
set feedback off
spool C:\emp.XML
Declare
queryCtx DBMS_XMLquery.ctxType;
result CLOB;
procedure printClobOut(result IN OUT NOCOPY CLOB) is
xmlstr varchar2(32767);
line varchar2(2000);
begin
dbms_output.enable(99999999);
xmlstr := dbms_lob.SUBSTR(result,32767);
loop
exit when xmlstr is null;
line := substr(xmlstr,1,instr(xmlstr,chr(10))-1);
dbms_output.put_line(' '||line);
xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
end loop;
end;
begin
-- set up the query context...!
queryCtx := DBMS_XMLQuery.newContext('select ename,job,salary from emp');
-- get the result..!
result := BMS_XMLQuery.getXML(queryCtx);
-- Now you can use the result to put it in tables/send as messages..
printClobOut(result);
DBMS_XMLQuery.closeContext(queryCtx); -- you must close the query handle..
end;
spool off
--MY SPOOL SCRIPT ENDS HERE
THE ABOVE WORKS AND CREATES XML FILE AS SHOWN BELOW WHICH IS GOOD
<?xml version = '1.0'?>
<ROWSET>
<ROW num="1">
<ENAME>JOHN</ENAME>
<JOB>MANAGER</JOB>
<SALARY>3000</SALARY>
</ROW>
<ROW num="2">
<ROW num="2">
<ENAME>KATTU</ENAME>
<JOB>SALESMAN</JOB>
<SALARY>1000</SALARY>
</ROW>
</ROWSET>you requirement.. !!
11:44:18 zug7_real>SET SERVEROUTPUT ON
11:44:19 zug7_real>set feedback off
11:44:19 zug7_real>spool F:\emp.XML
SP2-0332: Cannot create spool file.
11:44:19 zug7_real>DECLARE
11:44:19 2 v_ctx DBMS_XMLGen.ctxHandle;
11:44:19 3 v_file Utl_File.File_Type;
11:44:19 4 v_xml CLOB;
11:44:19 5 v_more BOOLEAN := TRUE;
11:44:19 6 procedure printClobOut(result IN OUT NOCOPY CLOB) is
11:44:19 7 xmlstr varchar2(32767);
11:44:19 8 line varchar2(2000);
11:44:19 9 begin
11:44:19 10 dbms_output.enable(99999999);
11:44:19 11 xmlstr := dbms_lob.SUBSTR(result,32767);
11:44:19 12 loop
11:44:19 13 exit when xmlstr is null;
11:44:19 14 line := substr(xmlstr,1,instr(xmlstr,chr(10))-1);
11:44:19 15 dbms_output.put_line(' '||line);
11:44:19 16 xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
11:44:19 17 end loop;
11:44:19 18 end;
11:44:19 19 BEGIN
11:44:19 20 -- Create XML context.
11:44:19 21 v_ctx := DBMS_XMLGen.newContext('select n1,n2 from view_1 ');
11:44:19 22 -- Set parameters to alter default Rowset and Row tag names and de
fault case.
11:44:19 23 --DBMS_XMLGen.setRowsetTag(v_ctx, 'TEST');
11:44:19 24 --DBMS_XMLGen.setRowTag(v_ctx, '');
11:44:19 25 --DBMS_XMLGen.setTagCase(v_ctx, DBMS_XMLGen.LOWER_CASE);
11:44:19 26 -- Add an IE specfic XSL stylesheet reference so browser can trans
form the file.
11:44:19 27 --DBMS_XMLGen.setStylesheetHeader(v_ctx, 'C:\Development\XML\IESty
le.xsl', 'text/xsl');
11:44:19 28 -- Create the XML document.
11:44:19 29 v_xml := DBMS_XMLGen.GetXML(v_ctx);
11:44:19 30 DBMS_XMLGen.closeContext(v_ctx);
11:44:19 31 -- Output XML document to file.
11:44:19 32 printClobOut(v_xml);
11:44:19 33 END;
11:44:19 34 /
<?xml version="1.0"?>
<ROWSET>
<ROW>
<N1>10</N1>
<N2>40</N2>
</ROW>
<ROW>
<N1>10</N1>
<N2>50</N2>
</ROW>
<ROW>
<N1>20</N1>
<N2>40</N2>
</ROW>
<ROW>
<N1>20</N1>
<N2>50</N2>
</ROW>
</ROWSET>- Pavan Kumar N -
Error 70 - Código do status 225: Rejeição: Falha no Schema XML da Nfe.
Bom dia grupo!
Nós estamos atualmente recebendo a seguinte mensagem de erro da SEFAZ relacionado aos batches que nós enviamos: Error status 70 "Error from the authorities" and Código do status (Status Code) 225: Rejeição: Falha no Schema XML da Nfe.
Nossa configuração é 46C com muitos OSS notes aplicados (veja abaixo)
Nós estamos realmente parados neste momento e não temos nem ideia de onde começar.
Atenciosamente,
Marc de Ruijter
OSS notes for NF-e phase 2
989115 Nota Fiscal Electronica (NF-e) - Overview Note
852302 Implementation Overview ISS 2004 - Legal Change MP135/LC116
759965 New Condition Formulas for MP-135 and ISS 2004
747607 Basic Customizing for MP135 and ISS legal change Brazil
980214 DDIC changes: PIS / Cofins Tax Law and Tax Situation
981123 PIS / Cofins Tax Law and Tax Situation
981687 NFe: For Services in Muncipio Sao Paulo
934846 Syntax error: TYPE-POOL 'SXRT' is unknown
979881 Message S 000 in NF writer when mandatory fields not filled
980213 Nota Fiscal Electronica (NF-e) of SEFAZ - Phase 2
1037070 NF-e of SEFAZ - Phase 2, Enhancement 01
1014600 No output found for the Nota Fiscal
1052575 NF-e of SEFAZ - Phase 2 / DDIC changes after shipment
1043688 NF-e of SEFAZ - Phase 2, Enhancement 02
1062468 NF-e: Multiple volume structure for XML file
1062251 NF-e: Extension of BADI Interface FILL_HAEDER
1070261 NF-e of SEFAZ - Phase 2, Enhancement 03
1094041 NF-e of SEFAZ - Phase 2, Enhancement 04
1000130 Public System for Digital Bookkeeping (SPED) - Overview Note
1008306 SD: Manual changes of CFOP for services when ISS tax applies
998194 Missing ISS Tax Situation in the Nota Fiscal
1047606 SD/Brazil: Using of error log during Nota Fiscal creation
120449 SD-Brazil Exchange variance error in Nota Fiscal
92383 LSA:BR:SD: Tax laws in return nota fiscal
689157 Nota Fiscal Split and number of Packages
987882 ISS Tax Law (field J_1BTAXLW3) not copied from sales order
989965 CFOP redermination in the delivery document not working
909835 Message 8B 679 raised during the delivery process
337554 SD: No. of packages in Nota Fiscal
533046 Repair order inconsistent to object list
920330 Error when changing the tax codes in a sales order
998195 PIS/COFINS/ISS Tax Law and Tax Situation in SD
104606 EDI/IDoc: Mapping IDoc types to ANSI X12
1094041 NF-e of SEFAZ - Phase 2, Enhancement 04
1105588 J_1BLFZF: Runtime error OBJECTS_OBJREF_NOT_ASSIGNED
OSS notes for XML ver 1.1 and NF-e phase 3
1065334 NF-e: Extension of BADI Interface FILL_ITEM with tax table
1068615 NF-e: Extension of BADI Interface with SD document flow
1079826 NF-e: BAdI Interface Enhancement for NF Messages
1069919 NF-e: Partner in Block E should always be main partner
1090279 NF-e monitor: automatic refresh upon user actions
1093252 NF-e: ICMS tax situation in XML File and DANFE
1113127 NFe: New XML Layout - Version 1.10
1114348 NF-e - xNFe integration - backend
1122294 Send/resend NF-e: fill VBFA for BAdI item method
1124075 NF-e: Serie not taken from Contingency NF-Type
1144194 NF-e: Cancellation/Skipping Reason
Bug Fix notes for NF-e BAPI.
1049946 NF-e: Adaption of Nota Fiscal Bapis
1147934 NFe: Random number should not be generated for incoming NFes
1150733 NFe: Randon number and check digit not cleared
1154995 NF-e: NF BAPI - enhancement for NF-e processing
1158622 NF-e: NF BAPI - no input of random number possible
Bug Fix notes for Contingency process
1158612 NF-e: Wrong partner in Block-E for Entrada
1240212 NF-e: One time Vendor data not transferred to XML file
1255450 NF-e: Jurisdiction code for one time vendor / customer
1257030 NF-e: Country Name for one time vendor / customer
1069018 Cancellation of incoming NFe shows error J1B_NFE 003
1070077 NF-e: Protocol number and document status for Denied NF-e
1145148 NFe: Cancellation for Contingency NFes
1152263 NF-e monitor: wrong action status '7' for C-NF-e
1146914 NFe: Synchronous call to messaging system from backend
1149356 NFe: Dump when NFe is cancelled with MIGO
1152081 NFe: Dump when NFe is cancelled with VL09
1153533 NFe: Dump when NFe in contingency is cancelled with VL09
1156116 NF-e: Contingency by stock transfers
1160107 NF-e: Cancellation of contingency NF-e with DOCSTA = 1 or 2
1161347 NF-e: Cancellation of Contingency NF-e - correction
1238648 NF-e monitor: req. action '3' (send) wrong for swtch. NF-e
1165953 NF-e: Numbering Gaps
1244326 NF-e: Numbering gaps - Status update in table J_1BNFENUMGAP
1245425 NF-e monitor: required process step - contingency
1252567 NF-e: Resend of NF-e - rejected or with validation error
1266344 NF-e: Action Indicator for NF-e with validation error
1254565 NF-e: Synchronization of RFC call between ERP and xNFe
1053626 MIRO: wrong document reference in nota fiscal
1073259 NF-e: Transfers - Outgoing NF-e No. not taken by Incoming
1153874 NF-e: GR for future delivery takes wrong NF-e number
1174946 NF-e: Serie not considered for duplicate NF-e number in MIRO
Miscellaneous bug fix notes
1175538 NF-e: Reference between NF and NF-e
1244881 NF-e: Mixed scenario in MIRO shows error 8B219
1257422 MIRO: Error 8B 219 by posting of reference invoices
1150843 NFe: Text for cancel reason not transferred to XML file
Bug Fix Notes Group 2
1059699 NF-e: Reference between NF and NF-e
1139062 NF-e incoming: Posted via J1B1N -> Wrong Document Status
1144199 NF-e: SD Billing and Contingency
1145089 NF-e: Cancellation despite rejected cancel request
1149787 NF-e: Wrong status-code text in NF-e history
1151112 NF-e: cancellation-reason text gets lost (pre req of 1150172)
1150172 NF-e monitor: selection leads to dump
1068379 Creation of Billing document issues an error 8B 145 (pre req of 1145089)
1152842 NF-e: cancellation reason does not work
1154700 NF-e: Random number & check digit not stored in active table
1073145 PIS / COFINS Tax Laws for Transfers (pre req for 1155231)
1082527 Missing PIS / COFINS Tax Laws for Transfers (pre req for 1155231)
997868 VL02N: CFOP, tax laws not copied from delivery (error 8B148) u2013 (pre req of 1155231)
1155231 PIS/COFINS tax law in NF/NF-e by split valuated material
1155424 NF-e monitor: Menu -> "Check MS Connection" does not work
1159177 NF-e: FUNC J_1B_NFE_SET_STATUS_IN_BACKEND set as Rem.Enabl
1161951 NF-e monitor: "Resend" functionality.
1162232 NF-e: switch to contingency not possible after MSS Update
1162512 NF-e: cancellation reason not initial at first-time call.
1162629 NF-e: creation date gets deleted from NF-e data-base table
1164283 NF-e: SCS '5' - upon authr.to cancel system does not cancel
1165155 NF-e Monitor: BACK (F3) leads to cancellation
1165360 NF-e Monitor: new selection parameter - creation user
1168394 NF-e: Reference document not taken from Nota Fiscal header
1168798 NF-e: User decision for used NF-Type for Material Movements
1171383 NF Writer: Copy NF-e that was switched to contingency.
799445 Nota Fiscal creation: Consideration of local dates (pre req of 1171383)
1104003 NF-Writer: Serie not taken from Reference NF (pre req of 1171383)
1156037 NF-e: NF-Writer allow reference with different NF-types (pre req of 1171383)
1175759 NF-e: central contingency per business place - correction
1239598 NF-e: Random number and check digits are lost in NF writer.
1163888 NF-e: Random Number includes spaces (pre req of 1239598)
1245425 NF-e monitor: required process step u2013 contingency. u2013 applied in bug fix notes no need to apply.
1246700 NF-e: Wrong reference for NF entradas.
1257688 NF-e: Update termination with error J1B_NFE 021
1258021 NF-e: Dump by creation of NF header text for XML file
1258974 NF-e: Monitor report aborts with DBIF_RSQL_INVALID_RSQL
1265172 NF-e - Decouple RFC from DB Update
1285851 NF-e: Cancellation of none authorized documents
1288925 NF-e: References between NF-e and non NF-e
1272677 NF-e: Cancellation for Material Document with serial number (pre req for 1288925)
1247602 NF-e: Cancellation of material documents with serial numbers
1163104 NF-e: Cancel Material documents with initial cancel reason
1293944 NF-e: Cancellation of material documents with batch classes.
1267128 NF-e: Cancellation goods movement with MVT 844 not possible (pre req for 1293944)
1300000 NF-e: Decouple - Contingency
1314856 NF-e: Decouple - Contingency in J1BNFE and VF01 & VF04
1321837 F-e: Cancel of material documents not possible
1092028 NF-e: Protocol number in NF-header overwritten (pre req for 1265172)
1114283 NF-e: cancellation - document status cleared in J_1BNFDOC (pre req for 1265172)
1234053 Local time / local date in NF header and NF-e XML (pre req for 1265172)
1288994 NF-e: Decupling note 1265172 causes error for incoming NF-e (pre req for 1300000)
1297042 NF-e: NF-e number missed in access key after decoupling (pre req for 1300000)
1087535 RFFOBR_A,U:Doc.no should be filled with 9 digits in DME file Applied OSS note 1087535 to the object Z_RFFORIY1 which was copied from RFFORIY1
1097455 NFE: Bank files should accommodate Doc. Numbers with 9 digits
304961 Wrong boleto check digit with carteira data (pre req of 1097455) - Not relevant
336117 Include due date factor in Boleto barcode for A/R (pre req of 1097455) - Not relevant
705726 ITAU: Boleto has negative interest value (pre req of 1097455) - Not relevant
846297 Func Mod - BOLETO_DATA not printing correct nosso numero (pre req of 1097455) - Not relevant
852782 BOLETO_DATA - Corrections of note 846297 for Bredesco only (pre req of 1097455) - Not relevant
1227478 Dump in payment run (F110) when XBLNR is empty
1138278 NFe: Field PREDBC not filled in XML interface structure (pre req of 1149585)
1149585 NFe: CST field required in XML file for taxes not in NFe
1053855 VL02N raises error 8B 053 "Branch not foundu201D
1165696 RFEBBU00: Error in batch input due to changes in Nota Fiscal
1180402 NF-e: BADI methods FILL_HEADER and FILL_ITEM
1180672 NF-e: Gap numbering check doesnu2019t consider the series
1225338 RFEBBU00: Additional changes to the note 1165696
1241922 NF-e: Report J_1BNFECHECKNUMBERRANGES xNFe adaption
1244326 NF-e: Numbering gaps - Status update in table J_1BNFENUMGAP (Applied using other Kintana)
1270813 NF-e: Year not included in the XML file
1247264 NF-e: Error in RFC to /XNFE/NFE_CREATE after note 1241922 (pre req for 1274200)
1274200 NF-e: Numbering gaps report sends SERIE with spaces
1276185 NF-e: Numbering gaps report sends SERIE with spaces
1294917 NF-e: Gap numbering check - several corrections
1324538 Missing address for OT Customer in J_1B_NFE_CREATE_TXT_FILE
1331432 NF-e: Numbering gaps report detects gaps for initial series
1332167 NF-e: Rep. J_1BNFECHECKNUMBERRANGES aborts with error DC 006
1092341 RFFOBR_A,RFFOBR_D: Performance problem while rebate calcula
1237089 RFEBBU10:While uploading ITAU Bank returnfile- Error(F5 170)
1051314 Check Digit missing from Boleto number (pre req for 1306966)
1306966 J_1BBR30:XREF3 is not updated correctly with Boletofrom bank
1005924 RFFOBR_A-The DME file does not include Rebate for ITAU (pre req for 1287633)
1287633 RFFOBR_A: Discount amount not calculated correctly
1234054 NF-e: function J_1B_NFE_MS_REQUESTS_DATA is not RFC enabled
1297534 NFe cancellation problems in GRC
1243964 NF-e: Adaption of xNFe interface of function NFE/NFE_SKIP
1165746 NF-e: Cancel - Error log not updated
1327465 The program /xnfe/update_erp_status is not updating R/3
1326691 BAdI for controlling the RFC call of external systems
1333136 Prevent simultaneous click on buttons in NF-e monitor
1333742 NF-e got the status 218
1354192 Validation rules: correction for fields TPLACA and T_UF1
1373175 Lock object for /XNFE/NFE_CREATE to prevent double transm
1376500 BAPIRET2 to provide the detailed information to ERP
1267455 Not possible to create different DOCREF per item using BAPI (pre req for 1373321)
1373321 BAPI_J_1B_NF_CREATEFROMDATA: DOCREF from Header go to item
1328583 NF-Writer posting of NF/NFe when mandatory fields not filled
1338166 NF-e: Random number and check digit lost after note 1328583
1259918 NF-e: RFC calls for request for cancellation or skip
1152140 NF-e: backend allows inconsistent new SCS (pre-req for 1298283)
1162852 NF-e: Inbound errors missed in error log of Monitor Report (pre-req for 1298283)
1163056 NF-e: Problems with printing via BADI method CALL_RSNAST00 (pre-req for 1298283)
1276438 NF-e: Parallel Phase not identified in messaging system (pre-req for 1298283)
1296515 NF-e: J1BNFE reset rejected NF-e after skipping request (pre-req for 1298283)
1297823 NF-e: Cancelled NF-e shows wrong action indicator (pre-req for 1298283)
1298283 NF-e: Skip for NF-e with validation error
1362969 NF-e: check cancellation for billing documents
1368159 NF-e: cancellation of invoices via original application only
1370933 NF-e: Accept Rejection to Cancel - wrong status in monitor
1376324 NF-e: Skip for NF-e with validation error
1140579 NFe: Field length conflicts from backend interface to XML
1357713 NF-e: Cancel of incoming NF-es does not update active table.
1173018 NF-e: Field control for Random Number and Check Digit (pre-req for 1366320)
1321517 NF-e: MIRO Credit Memos for NF-e shows error 8B 020 (pre-req for 1366320)
1366320 NF-e MIRO:Save is allowed without mandatory fields filled for NFe
1375066 NF-e: J_1BNFECHECKNUMBERRANGES ends too early, wrong subrc
1375894 NF-e: J1BNFE authority check for company code
1377879 NF-e: Report J_BNFECALLRFC aborts with message A098
1379062 NF-e: posting GR after cancellation leads to wrong NF-e
1357777 Cancel billing document without Nota Fiscal cancellation
1380861 NF-e Resend(proc.stat.07) with Signature error impossible
1362025 Error while sending Bacen Code EX with 0 on begining
1249819 NF-e: Field MODFRETE filled incorrectlyBom dia Marc de Ruijter,
Não dá para ler sua thread, mas imagino que seu validador esteja desligado.
No GRC vá em SPRO --> SAP GRC Nota Fiscal Electronica --> Configure System Response for Each Tax Number (CNPJ)
Para ligar/desligar o Validador basta clicar no check box na coluna Validation.
Observação: Para correto funcionamento do GRC deve-se sempre utilizar o validador ligado.
Após isto refaça seu teste, é provável que você receba um erro de validação para a NF-e. Veja em GRC Web monitor -> NFe Detailed View -> Validation History.
Atenciosamente,
Fernando Da Ró -
Script for generating XML file ... problem with null values
Greetings everyone,
i come here with a question that troubles me for some time now. I have a script which i run from SQLPLUS every now and then to generate an XML file.
Problem is that data which needs to be in XML is not allways <> NULL and i need to hide those tags that are empty </tag>.
I will post below my script and if you could help me with it it would be really great!
Thanks for reading!
set long 20000000
set long 20000000
set linesize 32000
SET ECHO OFF
SET TRIMSPOOL on
SET HEADING OFF
SET PAGESIZE 50000
SET VERIFY OFF
SET FEEDBACK OFF
SET TERMOUT OFF
spool C:\test.xml
set serveroutput on
begin
dbms_output.put_line('<?xml version="1.0" encoding="utf-8" ?>');
end;
SELECT
XMLELEMENT("ReportRoot",XMLATTRIBUTES('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi", 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd" , '1.0' as "Version",sysdate as "CreationDate",to_char(sysdate,'hh:mm:ss') as "CreationTime",'1524544845' as "id"),
XMLELEMENT("Porocila",XMLELEMENT("JOLY",(SELECT XMLAGG (XMLELEMENT("RefNrReport",replace('SON'||to_char(ref_ST,'00000'),' ',''))) from access_table_2 where ref_ST = &1),
XMLELEMENT("ReportDate",sysdate),XMLELEMENT("Labeling",'545254450'),
(SELECT XMLAGG (XMLELEMENT("Reportf",
XMLELEMENT("access",access),
XMLELEMENT("date",date),
XMLELEMENT("datep",datep),
XMLELEMENT("ModificationInfo",'M'),XMLELEMENT("ModificationReason",modireason)))
from v_xml_test where id_dok = &1 and ind_print = '1'))))
.extract('/*')
from dual
spool off
exitNow lets pretend that XMLELEMENT("datep",datep), is sometimes NULL and i do not want to display it.may be
with t as
select sysdate datep from dual union all
select null datep from dual
select xmlagg(xmlelement("Reportf",
case when datep is not null then XMLELEMENT("datep", datep)
end
from t -
How to suppress blank page and selection criteria in SPOOL ?
My Z program submits two programs to spool and converts the ABAP List in the spool to PDF and emails.
After upgrade to ECC6, the first (a report painter report) resulting PDF there was one blank page and the contents were displayed on second page. For the second report (RKPEP003 - CJI3) the selection criteria that the report used was printed as the first page of output and the result on a subsequent page. The same thing happens when I individually execute these two reports directly in SE38 with the same selection criteria. I believe the blank page is there in the spool because when I view the spool as a RAW, there is a P in the first column, however the spool shows that there is only one page in the first and two in the second (this is true - one for selection criteria "which I don't want" and then the actual content). In 46C, when I look at the RAW view of the spool there is no additional P's in the first column.
I do not want to have the blank page on the first report and the selection criteria listed on the output of the report. How can I do that ? I am thinking get_print_parameters can in someway get me there, but I am not sure.
Thanks
Hari
Edited by: Hari Sudarsanan on Apr 8, 2009 7:28 PM
Edited by: Hari Sudarsanan on Apr 8, 2009 8:05 PMThe first report painter program writes a regular ABAP list.
The second outputs an ALV. -
How to get the output of the Send Separate Remittance Advices in XML in R12
Hi All,
I have a requirement where we want the output of the standard report 'Send Separate Remittance Advices' to come in XML, currently its coming in PDF format.
Can you please help?
Thanks,
Dilip
Edited by: 990784 on Mar 12, 2013 2:57 PMRefer 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 -
howdy all,
could you please help me to resovle the very much odd issue of IE11 on Win7sp1x64 as below.
Note: my original post @ MS support is here [oops, sorry, I'm not allowed to paste a normal link here] "http://answers.microsoft.com/en-us/ie/forum/ie11-windows_7/print-spooler-error-id-808-internet-explorer-11-on/f52ff25c-4702-4ce3-827e-e1e9a5d324cf"
and now it's a repost due to advice of MS MVP PA Bear.
SUMMARY:
my 1st post there:
howdy all pros around,
i'd much appreciate any pro advice concerning the absolutely odd printer spooler issue as below.
sorry to post this again when there are a lot of look same cases available posted and discussed but now i shall insist that this is niether a printer driver nor a ms win7 spooler itself issue but the one of solely Internet Explorer 11
[11.0.9600.17041] installed onto fully updated Win7sp1x64(!) when i have 3 win7sp1 machines around and this issue doesn't occur on single 32-bit win7 pc!
the funniest point is that the issue doesn't prevent both win7sp1x64 computers to print normally!
also this never occurs while printing any docs or even web pages from Google Chrome.
but it always appears in win7 admin logs twice(!) while printing any web page from IE11! although there is no problem if you print web page from IE11 to PDF file...
this never happened with IE8 before its update thru MS Update to IE11 a couple of days ago.
error in short:
The print spooler failed to load a plug-in module C:\Windows\system32\spool\DRIVERS\x64\3\UNIDRVUI.DLL, error code 0xc1. See the event user data for context information.
error in details:
Log Name: Microsoft-Windows-PrintService/Admin
Source: Microsoft-Windows-PrintService
Date: 2014-Jun-01 8:19:51 PM
Event ID: 808
Task Category: Initializing
Level: Error
Keywords: Print Spooler
User: .......
Computer: ...... PC
Description:
The print spooler failed to load a plug-in module C:\Windows\system32\spool\DRIVERS\x64\3\UNIDRVUI.DLL, error code 0xc1. See the event user data for context information.
Event Xml:
< Event xmlns=
<System>
<Provider Name="Microsoft-Windows-PrintService" Guid="{747EF6FD-E535-4D16-B510-42C90F6873A1}" />
<EventID>808</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>36</Task>
<Opcode>12</Opcode>
<Keywords>0x8000000000020000</Keywords>
<TimeCreated SystemTime="2014-06-01T11:19:51.957120800Z" />
<EventRecordID>343</EventRecordID>
<Correlation />
<Execution ProcessID="10148" ThreadID="2188" />
<Channel>Microsoft-Windows-PrintService/Admin</Channel>
<Computer>...pc name...</Computer>
<Security UserID="S-1-5-21-2467594599-1786318240-3752314299-1000" />
</System>
<UserData>
<LoadPluginFailed xmlns:auto-ns3="..." xmlns="http ...">
<PluginDllName>C:\Windows\system32\spool\DRIVERS\x64\3\UNIDRVUI.DLL</PluginDllName>
<ErrorCode>0xc1</ErrorCode>
<Context>112</Context>
</LoadPluginFailed>
</UserData>
< /Event>
you shall be assured that i've carefully looked thru many threads regarding the similar issues, and i'd much appreciate any non-common advice, when all common ways like uninstall/install printer etc don't work for sure.
thanks much
p.s. my printer model is hp deskjet 970cse - connected to a router thru usb and installed on all 3 win7sp1 machines as a local printer via the created standard tcp/ip port.
p.p.s. btw here are results of tool filever.exe as kindly provided long ago by Alan Morris of MS [oops, sorry, I'm not allowed to paste a normal link here] "http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/windows-7-hp-printer-problems/6833a54c-6974-4fe9-b74c-93ed879781b0?page=2"
from one of my win7sp1x64 machines:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\...>filever c:\windows\system32\spool\drivers\x64\3\*.dll
--a-- W32x64 DLL ENU 11.0.0.305 shp 55,432 09-23-2012 adobepdf.dll
--a-- W32x64 DLL ENU 11.0.0.305 shp 26,768 09-23-2012 adobepdfui.dll
--a-- W32x64 DLL ENU 11.0.0.305 shp 39,048 09-23-2012 adregp.dll
--a-- W32x64 DLL ENU 11.0.0.305 shp 1,294,472 09-23-2012 aduigp.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 623,104 11-21-2010 fxsapi.dll
--a-- W32x64 DRV ENU 0.3.7601.17514 shp 380,416 11-21-2010 fxsdrv.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 6,566,400 11-21-2010 fxsres.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 434,688 11-21-2010 fxstiff.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 160,256 11-21-2010 fxsui.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 156,672 11-21-2010 fxswzrd.dll
--a-- W32x64 DLL ENU 1.0.0.1 shp 522,240 06-22-2009 hpf900al.dll
--a-- W32x64 DLL ENU 0.20.6.0 shp 1,692,672 05-07-2008 hpfimg50.dll
--a-- W32x64 DLL ENU 1.0.0.1 shp 79,872 05-07-2008 hpfud50.dll
--a-- W32x64 DLL ENU 1.0.0.1 shp 134,144 06-22-2009 hpfui50.dll
--a-- W32x64 DRV ENU 0.3.7601.18126 shp 1,402,880 04-10-2013 jnwdrv.dll
--a-- W32x64 DRV ENU 0.3.7600.16385 shp 98,816 07-14-2009 jnwdui.dll
--a-- W32x64 DRV ENU 0.3.7601.17514 shp 715,776 11-21-2010 mxdwdrv.dll
--a-- W32x64 DLL ENU 0.3.7601.17514 shp 221,184 11-21-2010 mxdwdui.dll
--a-- W32x64 DLL ENU 1.0.0.1 shp 16,384 09-20-2010 oemps.dll
--a-- W32x64 DRV ENU 0.3.6000.16386 shp 850,432 09-20-2010 ps5ui.dll
--a-- W32x64 DRV ENU 0.3.6000.16386 shp 628,736 09-20-2010 pscript5.dll
--a-- W32x64 DRV - 0.3.151.3 shp 47,392 12-08-2013 tpprn.dll
--a-- W32x64 DLL ENU 7.15.297.19 shp 172,328 12-08-2013 tpprnui.dll
--a-- W32x64 DLL - 7.15.297.20 shp 75,512 12-08-2013 tpprnuichs.dll
--a-- W32x64 DLL CHT 7.15.297.21 shp 75,544 12-08-2013 tpprnuicht.dll
--a-- W32x64 DLL - 7.15.297.22 shp 80,208 12-08-2013 tpprnuicsy.dll
--a-- W32x64 DLL DEU 7.15.297.23 shp 81,704 12-08-2013 tpprnuideu.dll
--a-- W32x64 DLL - 7.15.297.24 shp 80,200 12-08-2013 tpprnuiell.dll
--a-- W32x64 DLL ESN 7.15.297.25 shp 80,712 12-08-2013 tpprnuiesn.dll
--a-- W32x64 DLL - 7.15.297.26 shp 81,208 12-08-2013 tpprnuifra.dll
--a-- W32x64 DLL - 7.15.297.27 shp 80,224 12-08-2013 tpprnuihun.dll
--a-- W32x64 DLL JPN 7.15.302.41 shp 76,656 12-08-2013 tpprnuijpn.dll
--a-- W32x64 DLL - 7.15.297.29 shp 76,568 12-08-2013 tpprnuikor.dll
--a-- W32x64 DLL - 7.15.297.30 shp 80,176 12-08-2013 tpprnuiplk.dll
--a-- W32x64 DLL - 7.15.297.31 shp 79,680 12-08-2013 tpprnuiptg.dll
--a-- W32x64 DLL - 7.15.297.32 shp 80,728 12-08-2013 tpprnuirus.dll
--a-- W32x64 DLL - 7.15.297.33 shp 80,184 12-08-2013 tpprnuitha.dll
--a-- W32x64 DLL - 7.9.30.2 shp 152,816 12-08-2013 tpps.dll
--a-- W32x64 DRV ENU 0.3.7601.17514 shp 479,232 11-21-2010 unidrv.dll
--a-- W32x64 DRV ENU 0.3.7601.17514 shp 884,224 11-21-2010 unidrvui.dll
--a-- W32x64 DRV ENU 0.3.7601.17514 shp 762,368 11-21-2010 unires.dll
--a-- W32x64 DLL ENU 6.1.7601.17514 shp 1,576,448 11-21-2010 xpssvcs.dll
well, as far as i can see all binaries here are x64. moreover these files are same on another x64 pc and similar on x86 one but naturally x86 and located in another folder w32x86.
my last post there:
oops. action replay.
1. z printer works well (i.e. printing anyting w/o any problem) on 3 PCs - 2 of 3 with win7sp1x64; and 1 of 3 - win7sp1x86. all 3 with IE11 installed.
2. however BOTH (that is 2 of 3) above PCs of win7sp1x64 return errors to admin log every time when printing any web page from IE11. this occurs only if printing from IE11. non of other printing jobs are affected including a printing from Google
Chrome and Opera.
3. win7sp1x86 PC prints from IE11 w/o any errors in log!
4. a quote from my initial post:
you shall be assured that i've carefully looked thru many threads regarding the similar issues, and i'd much appreciate any non-common advice, when all common ways like uninstall/install printer etc don't work for sure.
appreciate.
THANKS A LOT!
UPDATE! i'm sorry to provide you with a bit incomplete/incorrect error sympthoms.
this error is being returned to win7sp1x64 PCs print server logs not only while printing from IE11 but from MS Office 2003 & 2007 as well, however all non-MS applications to print out from (Adobe, ACDSee, Chrome, Opera, etc.) aren't affected at all.
also test page printing is always OK!
so i've amended the header of my post accordingly.
thanks again!howdy Karen,
2 (two) PCs of quite similar win7sp1x64 config affected!
sorry but your kind prompt doesn't work. i've not only tried to remove all printers except AdobePDF Converter, CANVAS PS, Fax, MS XPS Writer in common way from Devices & Printers menu but also removed all their dependencies in Printer Server config menu
(access thru DOS printui /s /t2) except same AdobePDF Converter, CANVAS PS, MS XPS Writer (all x64 Type 3 - User Mode).
moreover i've managed to update the troubled core component thru a manual install of HP PLC6 Universal Driver, so now its updated as below:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\..>printui /s /t2
C:\Users\..>filever c:\windows\system32\spool\drivers\x64\3\*.dll
--a-- W32x64 DLL ENU 11.0.0.305 shp 55,432 09-23-2012 adobepdf.dll
--a-- W32x64 DLL ENU 11.0.0.305 shp 26,768 09-23-2012 adobepdfui.dll
--a-- W32x64 DLL ENU 11.0.0.305 shp 39,048 09-23-2012 adregp.dll
--a-- W32x64 DLL ENU 11.0.0.305 shp 1,294,472 09-23-2012 aduigp.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 623,104 11-21-2010 fxsapi.dll
--a-- W32x64 DRV ENU 0.3.7601.17514 shp 380,416 11-21-2010 fxsdrv.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 6,566,400 11-21-2010 fxsres.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 434,688 11-21-2010 fxstiff.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 160,256 11-21-2010 fxsui.dll
--a-- W32x64 DRV ENU 6.1.7601.17514 shp 156,672 11-21-2010 fxswzrd.dll
--a-- W32x64 DLL ENU 1.0.0.1 shp 522,240 06-23-2009 hpf900al.dll
--a-- W32x64 DLL ENU 0.1.6.7 shp 5,263,872 05-08-2008 hpfiglhn.dll
--a-- W32x64 DLL ENU 0.5.1.0 shp 231,936 06-23-2009 hpfime50.dll
--a-- W32x64 DLL ENU 0.20.6.0 shp 1,692,672 05-08-2008 hpfimg50.dll
--a-- W32x64 DLL ENU 0.4.5.0 shp 16,384 05-08-2008 hpfres50.dll
--a-- W32x64 DLL ENU 1.0.0.1 shp 79,872 05-08-2008 hpfud50.dll
--a-- W32x64 DLL ENU 1.0.0.1 shp 134,144 06-23-2009 hpfui50.dll
--a-- W32x64 DLL ENU 61.53.25.9 shp 1,485,312 06-23-2009 hpz3alhn.dll
--a-- W32x64 DLL ENU 61.53.25.9 shp 1,442,304 05-08-2008 hpz3rlhn.dll
--a-- W32x64 DLL ENU 61.53.25.9 shp 365,568 06-23-2009 hpzevlhn.dll
--a-- W32x64 DLL ENU 61.53.25.9 shp 88,064 06-23-2009 hpzprlhn.dll
--a-- W32x64 DLL ENU 61.53.25.9 shp 562,176 05-08-2008 hpzsslhn.dll
--a-- W32x64 DLL ENU 61.53.25.9 shp 3,447,808 05-08-2008 hpzstlhn.dll
--a-- W32x64 DLL ENU 61.53.25.9 shp 2,414,080 06-23-2009 hpzuilhn.dll
--a-- W32x64 DRV ENU 0.3.7601.18126 shp 1,402,880 04-10-2013 jnwdrv.dll
--a-- W32x64 DRV ENU 0.3.7600.16385 shp 98,816 07-14-2009 jnwdui.dll
--a-- W32x64 DRV ENU 0.3.7601.17514 shp 715,776 11-21-2010 mxdwdrv.dll
--a-- W32x64 DLL ENU 0.3.7601.17514 shp 221,184 11-21-2010 mxdwdui.dll
--a-- W32x64 DLL ENU 1.0.0.1 shp 16,384 09-20-2010 oemps.dll
--a-- W32x64 DRV ENU 0.3.7601.21853 shp 854,304 12-04-2013 ps5ui.dll
--a-- W32x64 DRV ENU 0.3.7601.21853 shp 636,704 12-04-2013 pscript5.dll
--a-- W32x64 DRV - 0.3.151.3 shp 47,392 12-08-2013 tpprn.dll
--a-- W32x64 DLL ENU 7.15.297.19 shp 172,328 12-08-2013 tpprnui.dll
--a-- W32x64 DLL - 7.15.297.20 shp 75,512 12-08-2013 tpprnuichs.dll
--a-- W32x64 DLL CHT 7.15.297.21 shp 75,544 12-08-2013 tpprnuicht.dll
--a-- W32x64 DLL - 7.15.297.22 shp 80,208 12-08-2013 tpprnuicsy.dll
--a-- W32x64 DLL DEU 7.15.297.23 shp 81,704 12-08-2013 tpprnuideu.dll
--a-- W32x64 DLL - 7.15.297.24 shp 80,200 12-08-2013 tpprnuiell.dll
--a-- W32x64 DLL ESN 7.15.297.25 shp 80,712 12-08-2013 tpprnuiesn.dll
--a-- W32x64 DLL - 7.15.297.26 shp 81,208 12-08-2013 tpprnuifra.dll
--a-- W32x64 DLL - 7.15.297.27 shp 80,224 12-08-2013 tpprnuihun.dll
--a-- W32x64 DLL JPN 7.15.302.41 shp 76,656 12-08-2013 tpprnuijpn.dll
--a-- W32x64 DLL - 7.15.297.29 shp 76,568 12-08-2013 tpprnuikor.dll
--a-- W32x64 DLL - 7.15.297.30 shp 80,176 12-08-2013 tpprnuiplk.dll
--a-- W32x64 DLL - 7.15.297.31 shp 79,680 12-08-2013 tpprnuiptg.dll
--a-- W32x64 DLL - 7.15.297.32 shp 80,728 12-08-2013 tpprnuirus.dll
--a-- W32x64 DLL - 7.15.297.33 shp 80,184 12-08-2013 tpprnuitha.dll
--a-- W32x64 DLL - 7.9.30.2 shp 152,816 12-08-2013 tpps.dll
--a-- W32x64 DRV ENU 0.3.7601.21853 shp 485,664 12-04-2013 unidrv.dll
--a-- W32x64 DRV ENU 0.3.7601.21853 shp 890,656 12-04-2013 unidrvui.dll
--a-- W32x64 DRV ENU 0.3.7601.17514 shp 768,800 12-04-2013 unires.dll
--a-- W32x64 DLL ENU 6.1.7601.17514 shp 1,576,448 11-21-2010 xpssvcs.dll
C:\Users\..>
than made a clean Deskjet 970ce printer install.
same thing - test page printing OK but same error in log if print from IE11 and MS Office.
any other ideas?
thanks -
XMLType column based on XML Schema: several questions
Hi,
I've a table on an oracle db version 10.1.0.4 where I stage the xml files containing orders created on a third party's system using BizTalk.
Although the storage I opted for is based on an XML Schema, defined by this third-party, I am facing big perfomance issues with files bigger than a few hundreds of kBs.
For instance, a 32Mb file takes more than 2 hours to be processed.
Now, after reading other threads in this forum and the documentation, my understanding of the problem is that the whole issue is with the correct indexing of the nested tables.
Here is my current XML Schema definition:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xdb="http://xmlns.oracle.com/xdb"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
xdb:storeVarrayAsTable="true">
<xs:include schemaLocation="private/Types.xsd"/>
<xs:element name="PickData">
<xs:complexType xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="ProdRun">
<xs:complexType xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="Nr" type="xs:int"/>
<xs:element name="Date" type="string8"/>
<xs:element name="Final" type="xs:int"/>
<xs:element name="PickWave" maxOccurs="unbounded">
<xs:complexType xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="Nr" type="string10"/>
<xs:element name="ProdLine" type="string2"/>
<xs:element name="TourSeq" type="xs:int"/>
<xs:element name="Tour" type="string20"/>
<xs:element name="Customer" maxOccurs="unbounded">
<xs:complexType xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="Seq" type="string20"/>
<xs:element name="Cust" type="string10"/>
<xs:element name="Mod" type="string30"/>
<xs:element name="Tod" type="string30"/>
<xs:element name="InvOrder" maxOccurs="unbounded">
<xs:complexType xdb:maintainDOM="false">
<xs:sequence>
<xs:element name="Nr" type="string20"/>
<xs:element name="Item" type="string20"/>
<xs:element name="Qty" type="xs:int"/>
<xs:element name="Priority" type="xs:int"/>
<xs:element name="Reordering" type="xs:int"/>
<xs:element name="DelDate" type="string8"/>
<xs:element name="HlOrder" type="string20"/>
</xs:sequence>
</xs:complexType>
<xs:unique name="InvOrderKey">
<xs:selector xpath="InvOrder"/>
<xs:field xpath="Nr"/>
</xs:unique>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="CustomerKey">
<xs:selector xpath="Customer"/>
<xs:field xpath="Seq"/>
</xs:unique>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="PickWaveKey">
<xs:selector xpath="PickWave"/>
<xs:field xpath="Nr"/>
</xs:unique>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:unique name="ProdRunKey">
<xs:selector xpath="ProdRun"/>
<xs:field xpath="Nr"/>
</xs:unique>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Here is the included sub-schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:simpleType name="string2">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="2"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string5">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="5"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string6">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string8">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="8"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string10">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string15">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="15"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string20">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="20"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string30">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string40">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string50">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="string250">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="250"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
The statement for creating my table is
CREATE TABLE "XML_ORDERS"
("ID" NUMBER(7,0) NOT NULL ENABLE,
"XMLFILE" "SYS"."XMLTYPE" ,
"INSERTED" DATE DEFAULT sysdate,
CONSTRAINT "XML_ORDERS_PK" PRIMARY KEY ("ID") USING INDEX ENABLE
) XMLTYPE COLUMN XMLFILE STORE AS OBJECT RELATIONAL
XMLSCHEMA "private/PickData.xsd" ELEMENT "PickData"
Here is a simple instance document:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<PickData xsi:noNamespaceSchemaLocation="private/PickData.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ProdRun>
<Nr>5</Nr>
<Date>15112005</Date>
<Final>1</Final>
<PickWave>
<Nr>IPW0000017</Nr>
<ProdLine>01</ProdLine>
<TourSeq>1</TourSeq>
<Tour>00000043_078</Tour>
<Customer>
<Seq>5</Seq>
<Cust>100000006</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000457</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000742</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000459</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000742</HlOrder>
</InvOrder>
</Customer>
<Customer>
<Seq>6</Seq>
<Cust>100000013</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000461</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000743</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000463</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000743</HlOrder>
</InvOrder>
</Customer>
<Customer>
<Seq>2</Seq>
<Cust>100000114</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000465</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000744</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000467</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000744</HlOrder>
</InvOrder>
</Customer>
<Customer>
<Seq>3</Seq>
<Cust>100000140</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000469</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000745</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000471</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000745</HlOrder>
</InvOrder>
</Customer>
<Customer>
<Seq>7</Seq>
<Cust>100000143</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000473</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000746</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000475</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000746</HlOrder>
</InvOrder>
</Customer>
<Customer>
<Seq>8</Seq>
<Cust>100000145</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000477</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000747</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000479</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000747</HlOrder>
</InvOrder>
</Customer>
<Customer>
<Seq>9</Seq>
<Cust>100000146</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000481</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>0</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000748</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000483</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000748</HlOrder>
</InvOrder>
</Customer>
<Customer>
<Seq>4</Seq>
<Cust>100000147</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000485</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>0</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000750</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000487</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000750</HlOrder>
</InvOrder>
</Customer>
<Customer>
<Seq>10</Seq>
<Cust>100000148</Cust>
<Mod>FO</Mod>
<Tod>DDU</Tod>
<InvOrder>
<Nr>IIO0000489</Nr>
<Item>100000036</Item>
<Qty>20</Qty>
<Priority>0</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000751</HlOrder>
</InvOrder>
<InvOrder>
<Nr>IIO0000491</Nr>
<Item>100000045</Item>
<Qty>20</Qty>
<Priority>1</Priority>
<Reordering>0</Reordering>
<DelDate>15112005</DelDate>
<HlOrder>CSO000751</HlOrder>
</InvOrder>
</Customer>
</PickWave>
</ProdRun>
</PickData>
When I registered the XMLSchema, the following types and tables were automatically created and you can see the hierarchy below:
(by the way, I could not find any xdb_utilities.printNestedTables mentioned elsewhere)
XML_ORDERS
|_PickData381_T
|___ProdRun382_T
|_____PickWave388_COLL
|_______PickWave383_T
|_________Customer387_COLL
|___________Customer384_T
|_____________InvOrder386_COLL
These objects are then used in the following nested tables:
TABLE_NAME TABLE_TYPE_NAME PARENT_TABLE_NAME PARENT_TABLE_COLUMN
SYS_NTaK/5zar5S0WitSsgu6OKPQ== PickWave388_COLL PickData389_TAB "XMLDATA"."ProdRun"."PickWave"
SYS_NTf6QvwVm8SFKz+K/YYWq+WQ== Item408_COLL ProdData409_TAB "XMLDATA"."Item"
SYS_NTtu05ilrRQqmuEN4k+07VDA== Customer402_COLL OutboundParty403_TAB "XMLDATA"."Customer"
SYS_NTK6fhWq5uTJ+vKcgBpNm1Fg== InvOrder386_COLL SYS_NTIIzv7bkXQSSS43igtfi5eg== InvOrder
SYS_NTIIzv7bkXQSSS43igtfi5eg== Customer387_COLL SYS_NTaK/5zar5S0WitSsgu6OKPQ== Customer
I enabled sql tracing and I got the following TKPROF output
INSERT INTO IMP_ORDERS (PICK_INVORDERNR, PICK_ITEM, PICK_QTY, PICK_PRIORITY,
PICK_REORDERING, PICK_HLORDER, PICK_DELDATE, PICK_CUST, PICK_MOD, PICK_TOD,
PICK_SEQ, PICK_PICKWAVENR, PICK_PICKWAVEPRODLINE, PICK_PICKWAVETOUR,
PICK_PICKWAVETOURSEQ, PICK_ORDKEY, PICK_RUNKEY) SELECT INVORDERNR, ITEM,
QTY, PRIORITY, REORDERING, HLORDER, DELDATE, CUST, MOD, TOD, SEQ,
PICKWAVENR, PICKWAVEPRODLINE, PICKWAVETOUR, PICKWAVETOURSEQ, ROWNUM AS
PICK_ORDKEY, PRODRUNID FROM (SELECT /*+ cardinality(g 15)*/
EXTRACTVALUE(VALUE(G), '/InvOrder/Nr') AS INVORDERNR, EXTRACTVALUE(VALUE(G),
'/InvOrder/Item') AS ITEM, EXTRACTVALUE(VALUE(G), '/InvOrder/Qty') AS QTY,
EXTRACTVALUE(VALUE(G), '/InvOrder/Priority') AS PRIORITY,
EXTRACTVALUE(VALUE(G), '/InvOrder/Reordering') AS REORDERING,
EXTRACTVALUE(VALUE(G), '/InvOrder/HlOrder') AS HLORDER,
TO_DATE(EXTRACTVALUE(VALUE(G), '/InvOrder/DelDate'),'DDMMYYYY') AS DELDATE,
F.CUST, F.MOD, F.TOD, F.SEQ, F.PICKWAVENR, F.PICKWAVEPRODLINE,
F.PICKWAVETOUR, F.PICKWAVETOURSEQ, F.PRODRUNNR, F.PRODRUNDATE,
F.PRODRUNFINAL, F.PRODRUNID FROM (SELECT /*+ cardinality(e 60)*/VALUE(E) AS
CUSTOMERNODE, EXTRACTVALUE(VALUE(E), '/Customer/Cust') AS CUST,
EXTRACTVALUE(VALUE(E), '/Customer/Mod') AS MOD, EXTRACTVALUE(VALUE(E),
'/Customer/Tod') AS TOD, TO_NUMBER(EXTRACTVALUE(VALUE(E), '/Customer/Seq'))
AS SEQ, D.PICKWAVENR, D.PICKWAVEPRODLINE, D.PICKWAVETOUR, D.PICKWAVETOURSEQ,
D.PRODRUNNR, D.PRODRUNDATE, D.PRODRUNFINAL, D.PRODRUNID FROM (SELECT /*+
cardinality(c 100)*/VALUE(C) AS PICKWAVENODE, EXTRACTVALUE(VALUE(C),
'/PickWave/Nr') AS PICKWAVENR, TO_NUMBER(EXTRACTVALUE(VALUE(C),
'/PickWave/ProdLine')) AS PICKWAVEPRODLINE, EXTRACTVALUE(VALUE(C),
'/PickWave/Tour') AS PICKWAVETOUR, TO_NUMBER(EXTRACTVALUE(VALUE(C),
'/PickWave/TourSeq')) AS PICKWAVETOURSEQ, A.PRODRUNNR, A.PRODRUNDATE,
A.PRODRUNFINAL, A.PRODRUNID FROM (SELECT /*+ cardinality(b 1)*/VALUE(B) AS
PRODRUNNODE, EXTRACTVALUE(VALUE(B), '/ProdRun/Nr') AS PRODRUNNR,
TO_DATE(EXTRACTVALUE(VALUE(B), '/ProdRun/Date'),'DDMMYYYY') AS PRODRUNDATE,
EXTRACTVALUE(VALUE(B), '/ProdRun/Final') AS PRODRUNFINAL, X.ID PRODRUNID
FROM XML_ORDERS X, TABLE(XMLSEQUENCE(EXTRACT(X.XMLFILE,'/PickData/ProdRun'))
) B WHERE X.ID = :B1 ) A, TABLE(XMLSEQUENCE(EXTRACT(A.PRODRUNNODE,
'/ProdRun/PickWave'))) C ) D, TABLE(XMLSEQUENCE(EXTRACT(D.PICKWAVENODE,
'/PickWave/Customer'))) E ) F, TABLE(XMLSEQUENCE(EXTRACT(F.CUSTOMERNODE,
'/Customer/InvOrder'))) G ORDER BY PICKWAVEPRODLINE, PICKWAVETOURSEQ,
PICKWAVENR, SEQ )
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 4324.09 9994.65 0 57193 0 0
Fetch 0 0.00 0.00 0 0 0 0
total 2 4324.09 9994.65 0 57193 0 0
Misses in library cache during parse: 1
Misses in library cache during execute: 1
Optimizer mode: ALL_ROWS
Parsing user id: 68 (recursive depth: 1)
Rows Row Source Operation
0 COUNT (cr=0 pr=0 pw=0 time=180 us)
0 VIEW (cr=0 pr=0 pw=0 time=166 us)
0 SORT ORDER BY (cr=0 pr=0 pw=0 time=152 us)
40866 NESTED LOOPS (cr=54973 pr=0 pw=0 time=31065606 us)
1363 NESTED LOOPS (cr=54937 pr=0 pw=0 time=11037183 us)
1 NESTED LOOPS (cr=54889 pr=0 pw=0 time=10145883 us)
1 NESTED LOOPS (cr=54841 pr=0 pw=0 time=9799012 us)
1 TABLE ACCESS BY INDEX ROWID XML_ORDERS (cr=2 pr=0 pw=0 time=222 us)
1 INDEX UNIQUE SCAN XML_ORDERS_PK (cr=1 pr=0 pw=0 time=126 us)(object id 58551)
1 COLLECTION ITERATOR PICKLER FETCH (cr=54839 pr=0 pw=0 time=9798748 us)
1 COLLECTION ITERATOR PICKLER FETCH (cr=48 pr=0 pw=0 time=346818 us)
1363 COLLECTION ITERATOR PICKLER FETCH (cr=48 pr=0 pw=0 time=870830 us)
40866 COLLECTION ITERATOR PICKLER FETCH (cr=36 pr=0 pw=0 time=18739302 us)
Note that I cancelled this operation before it was over so I imagine that these figures refer to the statistics as of the time when the operation was interrupted.
So, here are finally my questions.
In order to create the constraints on the nested tables as shown in other threads, do I need to drop the existing xml_orders table and ancillary object types and recreate them or is there a way to add such constraints using the existing system generated object names?
Secondly, the xml_orders table may contain severale documents, not just one and his current primary key is the column ID. So, in order to uniquely identify the deepest element in the xml document, I need first to select the relevant document by means of the id column.
Would it be better to create the indexes containing this id column together with the nested_table_id and array_index?
Thanks for you help.
Flavio
PS: I wrote a 10 lines xsl transformation that I passed on to Saxon together with the 32Mb file. It took less than 1 minute to produce a flat file that was loaded almost instantly by SQL*Loader. So, what I am looking for is a procedure loading this stuff in less than 2 minutes or possibly less.Does the following help
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 27 21:44:53 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> spool registerSchema_&4..log
SQL> set trimspool on
SQL> connect &1/&2
Connected.
SQL> --
SQL> declare
2 result boolean;
3 begin
4 result := dbms_xdb.createResource('/home/&1/xsd/&4',
5 bfilename(USER,'&4'),nls_charset_id('AL32UTF8'));
6 end;
7 /
old 4: result := dbms_xdb.createResource('/home/&1/xsd/&4',
new 4: result := dbms_xdb.createResource('/home/OTNTEST/xsd/GetaxTypes.xsd',
old 5: bfilename(USER,'&4'),nls_charset_id('AL32UTF8'));
new 5: bfilename(USER,'GetaxTypes.xsd'),nls_charset_id('AL32UTF8'));
PL/SQL procedure successfully completed.
SQL> commit
2 /
Commit complete.
SQL> alter session set events='31098 trace name context forever'
2 /
Session altered.
SQL> begin
2 dbms_xmlschema.registerSchema
3 (
4 schemaURL => '&3',
5 schemaDoc => xdbURIType('/home/&1/xsd/&4').getClob(),
6 local => TRUE,
7 genTypes => TRUE,
8 genBean => FALSE,
9 genTables => &5
10 );
11 end;
12 /
old 4: schemaURL => '&3',
new 4: schemaURL => 'private/GetaxTypes.xsd',
old 5: schemaDoc => xdbURIType('/home/&1/xsd/&4').getClob(),
new 5: schemaDoc => xdbURIType('/home/OTNTEST/xsd/GetaxTypes.xsd').getClob(),
old 9: genTables => &5
new 9: genTables => TRUE
PL/SQL procedure successfully completed.
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 27 21:44:55 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> spool registerSchema_&4..log
SQL> set trimspool on
SQL> connect &1/&2
Connected.
SQL> --
SQL> declare
2 result boolean;
3 begin
4 result := dbms_xdb.createResource('/home/&1/xsd/&4',
5 bfilename(USER,'&4'),nls_charset_id('AL32UTF8'));
6 end;
7 /
old 4: result := dbms_xdb.createResource('/home/&1/xsd/&4',
new 4: result := dbms_xdb.createResource('/home/OTNTEST/xsd/PickData.xsd',
old 5: bfilename(USER,'&4'),nls_charset_id('AL32UTF8'));
new 5: bfilename(USER,'PickData.xsd'),nls_charset_id('AL32UTF8'));
PL/SQL procedure successfully completed.
SQL> commit
2 /
Commit complete.
SQL> alter session set events='31098 trace name context forever'
2 /
Session altered.
SQL> begin
2 dbms_xmlschema.registerSchema
3 (
4 schemaURL => '&3',
5 schemaDoc => xdbURIType('/home/&1/xsd/&4').getClob(),
6 local => TRUE,
7 genTypes => TRUE,
8 genBean => FALSE,
9 genTables => &5
10 );
11 end;
12 /
old 4: schemaURL => '&3',
new 4: schemaURL => 'private/PickData.xsd',
old 5: schemaDoc => xdbURIType('/home/&1/xsd/&4').getClob(),
new 5: schemaDoc => xdbURIType('/home/OTNTEST/xsd/PickData.xsd').getClob(),
old 9: genTables => &5
new 9: genTables => TRUE
PL/SQL procedure successfully completed.
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 27 21:44:58 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> spool createTable.log
SQL> --
SQL> connect &1/&2
Connected.
SQL> --
SQL> CREATE TABLE "XML_ORDERS"
2 ("ID" NUMBER(7,0) NOT NULL ENABLE,
3 "XMLFILE" "SYS"."XMLTYPE" ,
4 "INSERTED" DATE DEFAULT sysdate,
5 CONSTRAINT "XML_ORDERS_PK" PRIMARY KEY ("ID") USING INDEX ENABLE
6 ) XMLTYPE COLUMN XMLFILE STORE AS OBJECT RELATIONAL
7 XMLSCHEMA "private/PickData.xsd"
8 ELEMENT "PickData"
9 VARRAY XMLFILE."XMLDATA"."ProdRun"."PickWave" STORE AS TABLE PickWave_TAB
10 (
11 ( primary key (nested_table_id, array_index)
12 ) organization index overflow
13 VARRAY "Customer" STORE AS TABLE Customer_TAB
14 (
15 (primary key (nested_table_id, array_index)
16 ) organization index overflow
17 VARRAY "InvOrder" STORE AS TABLE InvOrder_TAB
18 (
19 (primary key (nested_table_id, array_index)
20 ) organization index overflow
21 )
22 )
23 )
24 /
Table created.
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 27 21:44:59 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> spool insertFile_&3..log
SQL> set trimspool on
SQL> connect &1/&2
Connected.
SQL> --
SQL> set timing on
SQL> set long 10000
SQL> --
SQL> insert into XML_ORDERS (ID, XMLFILE) values (&4, xmltype(bfilename(USER,'&3'),nls_charset_id('AL32UTF8')))
2 /
old 1: insert into XML_ORDERS (ID, XMLFILE) values (&4, xmltype(bfilename(USER,'&3'),nls_charset_id('AL32UTF8')))
new 1: insert into XML_ORDERS (ID, XMLFILE) values (10, xmltype(bfilename(USER,'testcase.xml'),nls_charset_id('AL32UT
8')))
1 row created.
Elapsed: 00:00:00.11
SQL> commit
2 /
Commit complete.
Elapsed: 00:00:00.01
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Dec 27 21:44:59 2005
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> spool testcase.log
SQL> set trimspool on
SQL> connect &1/&2
Connected.
SQL> --
SQL> set timing on
SQL> set long 10000
SQL> set pages 0 lines 140
SQL> --
SQL> -- Testcase code here
SQL> --
SQL> set autotrace on explain
SQL> --
SQL> create or replace view PROD_RUN_VIEW
2 (
3 PRODRUNNODE,
4 PRODRUNNR,
5 PRODRUNDATE,
6 PRODRUNID,
7 PRODRUNFINAL
8 )
9 as
10 select EXTRACT(XMLFILE,'/PickData/ProdRun'),
11 EXTRACTVALUE(XMLFILE , '/PickData/ProdRun/Nr'),
12 TO_DATE(EXTRACTVALUE(XMLFILE, '/PickData/ProdRun/Date'),'DDMMYYYY'),
13 ID,
14 EXTRACTVALUE(XMLFILE,'/PickData/ProdRun/Final')
15 from XML_ORDERS
16 /
View created.
Elapsed: 00:00:00.09
SQL> create or replace view PICK_WAVE_VIEW
2 (
3 PICKWAVENODE,
4 PICKWAVENR,
5 PICKWAVEPRODLINE,
6 PICKWAVETOUR,
7 PICKWAVETOURSEQ,
8 PRODRUNNR,
9 PRODRUNDATE,
10 PRODRUNID,
11 PRODRUNFINAL
12 )
13 as
14 select value(PW),
15 extractValue(value(PW),'/PickWave/Nr'),
16 TO_NUMBER(EXTRACTVALUE(value(PW),'/PickWave/ProdLine')),
17 extractValue(value(PW),'/PickWave/Tour'),
18 TO_NUMBER(extractValue(value(PW),'/PickWave/TourSeq')),
19 PRODRUNNR,
20 PRODRUNDATE,
21 PRODRUNID,
22 PRODRUNFINAL
23 FROM PROD_RUN_VIEW, table(xmlsequence(extract(PRODRUNNODE,'/ProdRun/PickWave'))) PW
24 /
View created.
Elapsed: 00:00:00.09
SQL> create or replace view CUSTOMER_VIEW
2 (
3 CUSTOMERNODE,
4 CUST,
5 MOD,
6 TOD,
7 SEQ,
8 PICKWAVENR,
9 PICKWAVEPRODLINE,
10 PICKWAVETOUR,
11 PICKWAVETOURSEQ,
12 PRODRUNNR,
13 PRODRUNDATE,
14 PRODRUNFINAL,
15 PRODRUNID
16 )
17 as
18 select value(CUST),
19 EXTRACTVALUE(VALUE(CUST), '/Customer/Cust'),
20 EXTRACTVALUE(VALUE(CUST), '/Customer/Mod'),
21 EXTRACTVALUE(VALUE(CUST), '/Customer/Tod'),
22 TO_NUMBER(EXTRACTVALUE(VALUE(CUST), '/Customer/Seq')),
23 PICKWAVENR,
24 PICKWAVEPRODLINE,
25 PICKWAVETOUR,
26 PICKWAVETOURSEQ,
27 PRODRUNNR,
28 PRODRUNDATE,
29 PRODRUNFINAL,
30 PRODRUNID
31 from PICK_WAVE_VIEW, table(xmlsequence(extract(PICKWAVENODE,'/PickWave/Customer'))) CUST
32 /
View created.
Elapsed: 00:00:00.10
SQL>
SQL> create or replace view INVOICE_ORDER_VIEW
2 (
3 INVORDERNR,
4 ITEM,
5 QTY,
6 PRIORITY,
7 REORDERING,
8 HLORDER,
9 DELDATE,
10 CUST,
11 MOD,
12 TOD,
13 SEQ,
14 PICKWAVENR,
15 PICKWAVEPRODLINE,
16 PICKWAVETOUR,
17 PICKWAVETOURSEQ,
18 PRODRUNNR,
19 PRODRUNDATE,
20 PRODRUNFINAL,
21 PRODRUNID
22 )
23 as
24 SELECT EXTRACTVALUE(VALUE(INV), '/InvOrder/Nr'),
25 EXTRACTVALUE(VALUE(INV), '/InvOrder/Item'),
26 EXTRACTVALUE(VALUE(INV), '/InvOrder/Qty'),
27 EXTRACTVALUE(VALUE(INV), '/InvOrder/Priority'),
28 EXTRACTVALUE(VALUE(INV), '/InvOrder/Reordering'),
29 EXTRACTVALUE(VALUE(INV), '/InvOrder/HlOrder'),
30 TO_DATE(EXTRACTVALUE(VALUE(INV), '/InvOrder/DelDate'),'DDMMYYYY'),
31 CUST,
32 MOD,
33 TOD,
34 SEQ,
35 PICKWAVENR,
36 PICKWAVEPRODLINE,
37 PICKWAVETOUR,
38 PICKWAVETOURSEQ,
39 PRODRUNNR,
40 PRODRUNDATE,
41 PRODRUNFINAL,
42 PRODRUNID
43 FROM CUSTOMER_VIEW, table(xmlsequence(extract(CUSTOMERNODE,'Customer/InvOrder'))) INV
44 /
View created.
Elapsed: 00:00:00.13
SQL> select * from INVOICE_ORDER_VIEW
2 /
IIO0000461 100000036 20 1 0 CSO000743 15-NOV-05 100000013
FO DDU 6 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000463 100000045 20 1 0 CSO000743 15-NOV-05 100000013
FO DDU 6 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000473 100000036 20 1 0 CSO000746 15-NOV-05 100000143
FO DDU 7 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000475 100000045 20 1 0 CSO000746 15-NOV-05 100000143
FO DDU 7 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000469 100000036 20 1 0 CSO000745 15-NOV-05 100000140
FO DDU 3 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000471 100000045 20 1 0 CSO000745 15-NOV-05 100000140
FO DDU 3 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000489 100000036 20 0 0 CSO000751 15-NOV-05 100000148
FO DDU 10 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000491 100000045 20 1 0 CSO000751 15-NOV-05 100000148
FO DDU 10 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000481 100000036 20 0 0 CSO000748 15-NOV-05 100000146
FO DDU 9 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000483 100000045 20 1 0 CSO000748 15-NOV-05 100000146
FO DDU 9 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000485 100000036 20 0 0 CSO000750 15-NOV-05 100000147
FO DDU 4 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000487 100000045 20 1 0 CSO000750 15-NOV-05 100000147
FO DDU 4 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000457 100000036 20 1 0 CSO000742 15-NOV-05 100000006
FO DDU 5 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000459 100000045 20 1 0 CSO000742 15-NOV-05 100000006
FO DDU 5 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000477 100000036 20 1 0 CSO000747 15-NOV-05 100000145
FO DDU 8 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000479 100000045 20 1 0 CSO000747 15-NOV-05 100000145
FO DDU 8 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000465 100000036 20 1 0 CSO000744 15-NOV-05 100000114
FO DDU 2 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
IIO0000467 100000045 20 1 0 CSO000744 15-NOV-05 100000114
FO DDU 2 IPW0000017 1 00000043_078
1
5 15-NOV-05 1 10
18 rows selected.
Elapsed: 00:00:00.22
Execution Plan
Plan hash value: 1730223965
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 18 | 10278 | 877 (0)| 00:00:11 |
| 1 | NESTED LOOPS | | 18 | 10278 | 877 (0)| 00:00:11 |
| 2 | NESTED LOOPS | | 18 | 8424 | 841 (0)| 00:00:11 |
| 3 | MERGE JOIN CARTESIAN | | 18 | 4680 | 805 (0)| 00:00:10 |
| 4 | TABLE ACCESS FULL | XML_ORDERS | 1 | 67 | 3 (0)| 00:00:01 |
| 5 | BUFFER SORT | | 18 | 3474 | 802 (0)| 00:00:10 |
| 6 | INDEX FAST FULL SCAN| SYS_IOT_TOP_64187 | 18 | 3474 | 802 (0)| 00:00:10 |
|* 7 | INDEX UNIQUE SCAN | SYS_IOT_TOP_64185 | 1 | 208 | 2 (0)| 00:00:01 |
|* 8 | INDEX RANGE SCAN | SYS_C008783 | 1 | | 0 (0)| 00:00:01 |
|* 9 | INDEX UNIQUE SCAN | SYS_IOT_TOP_64183 | 1 | 103 | 2 (0)| 00:00:01 |
|* 10 | INDEX RANGE SCAN | SYS_C008785 | 1 | | 0 (0)| 00:00:01 |
Predicate Information (identified by operation id):
7 - access("NESTED_TABLE_ID"="CUSTOMER_TAB"."SYS_NC0000800009$")
8 - access("NESTED_TABLE_ID"="CUSTOMER_TAB"."SYS_NC0000800009$")
9 - access("NESTED_TABLE_ID"="PICKWAVE_TAB"."SYS_NC0000800009$")
filter("NESTED_TABLE_ID"="XML_ORDERS"."SYS_NC0001000011$")
10 - access("NESTED_TABLE_ID"="PICKWAVE_TAB"."SYS_NC0000800009$")
Note
- dynamic sampling used for this statement
SQL> quit
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
C:\oracle\xdb\otn\347125>You were sequencing the ProdRun node, which is a mistake. Only nodes which occur multiple times should be sequenced... -
Error while printing (SAP spool error)
Hi,
I have configured a printer of type 'C : Direct Operating System Call'. On printing a page, an error occurs with the following log entries
SAP spool error log
=====================
Print request processing log
The host spool is reporting errors
Windows/NT error 1775: "A null context handle was passed from the client to the host during a remote procedure call."
Errors occurred processing this print request
Error during print request output. l_rc = 1
There may be no printout
Please. can someone help me out here.
Thanks!
Regards,
AngadOk I am upgrading from R/3 46C to ECC 6.0, on the 46c system the printers are configured as follow:
Device type HPLJ4 : HP Laserjet 4 series
Spool server sapprod1_PRD_00 sapprod1
Device class Standard printer
Host spool access method C: Direct operating system call
Host printer
srtroot03.startek.com\srt-dc-c4-sharp
Host name sapprod1
On the ECC 6.0 system the printers are configured as follows:
Device Type HPLJ4 : HP Laserjet 4 series
Spool Server srtsapeccdev1_DEV_00
Server Description
Host srtsapeccdev1
Device Class Standard printer
Host Spool Access Method C: Direct operating system call
Host printer
srtroot03.startek.co\srt-dc-c4-sharp
HostName srtsapeccdev1
The 46c system prints just fine, on the ECC 6.0 systems; I can not get the printers to work. I have made sure that the hosts file on the ECC server has the printer host address, and I get the following error back:
SAP spool error log
=====================
Print request processing log
The host spool is reporting errors
Windows/NT error 5 [
srtroot03.startek.com\srt-dc-c4-sharp]: "Access is denied."
Errors occurred processing this print request
Error during print request output. l_rc = 1
There may be no printout
The access to the Printer Host is wide open, what do I need to do to resolve this issue.
Maybe you are looking for
-
The battery on my son's brand new 64G iPod touch drained while it was synced yo the mac. Now it says 100% charged when it's connected to a charger, but drops to zero as soon as it's disconnected. It would appear that, either the battery is faulty or
-
Set the position of push buttons
Hi, I have created two push buttons using the method add_button of cl_gui_toolbar class. But those two push buttons are coming side by side. But I need to show them one after the other. Is there any way to display the buttons one after the other. I t
-
IPod Touch location service doesnt work at all.
Hi guys, just having this issue, I have my iPod touch since 8 months ago, It worked fine, perfect. I upgrade it to iOS 5 and it worked fine, it was perfect. But today the location service doesnt work, I triend with the google maps app, the Facebook a
-
5230 - Software design, lots left to be desired
I posted this in the wrong place earlier so having to re-post OK? =========== Only had the phone 3 or 4 days and it's a BIG BIG pain. Every time you start the engine up you have to reconnect to the hands free having to go through 5 or 6 different pag
-
Pallet sheet for finished products printed in the not expected printer
Hello to all, I have an issue right now with a user printing pallet sheet for finished products in Z602 printer. The user wanted it to be printed in printer Z630. I have checked transaction SU01 and found that the output device assigned to the user