Default XML structures in IPC
Hi,
My client wants to implement IPC and connect over PI to other systems.
Is there some documentation on how to achieve this?
Is there something like default XML messages that we can implement?
thx
Robert
One way to make your program use the Saxon 6 transformer is to make this line of code run in its initialization:System.setProperty("javax.xml.transform.TransformerFactory",
"com.icl.saxon.TransformerFactoryImpl");This is for Saxon 6, note, the class name you should use for Saxon 7 is something else. You should find the exact name in the Saxon documentation somewhere.
I don't have any Resin experience, but you need to find the place where you can specify Java system properties for Resin and specify that one (javax.xml.transform.TransformerFactory) there. The command-line version would be
java -Djavax.xml.transform.TransformerFactory=...
Similar Messages
-
BI Publisher 11.1.1.5.0
The problem is that Publisher generates XML templates that is not supported by apex by default.
For example default xml data model based on SQL Query is like
<?xml version="1.0" encoding="UTF-8"?>
<DATA_DS>
<G_1>
<Q>X</Q>
</G_1>
</DATA_DS>Corresponding rtf template is
<?for-each-group:G_1;./Q?><?Q?><?end for-each-group?>But APEX expects it to be like this
<?for-each-group:ROW;./Q?><?Q?><?end for-each-group?>because for the same SQL it generates xml as follow
<?xml version="1.0" encoding="UTF-8"?>
<ROWSET>
<ROW>
<Q>X</Q>
</ROW>
</ROWSET>I know the xml of data model can be overridden individually.
Is it possible to adjust default generating xml and fix corresponding G_X BIP tags to apex xml tags ?
Regards,
Igorone of the way u can manually edit the group name in Data Model - Structure tab .
i don't think u can make it by default to come with ROW as far as i know for all the reports we develop unless u make one time change in data model structure tabf for every data model we create. -
Want to see xml structure in Excel format
Hi All,
Is there any tool by which we can see the xml structure to Excel sheet.
RegardsXMLSpy, can show the xml structure in Excel format
<!--<?xml version="1.0"?>
<?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:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Created>1996-12-17T01:32:42Z</Created>
<LastSaved>2000-11-18T06:53:49Z</LastSaved>
<Version>11.9999</Version>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<RemovePersonalInformation/>
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>4530</WindowHeight>
<WindowWidth>8505</WindowWidth>
<WindowTopX>480</WindowTopX>
<WindowTopY>120</WindowTopY>
<AcceptLabelsInFormulas/>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font ss:FontName="宋体" x:CharSet="134" ss:Size="12"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
<Style ss:ID="s21">
<Font ss:FontName="Arial Narrow" x:Family="Swiss" ss:Size="12"/>
<Interior ss:Color="#00CCFF" ss:Pattern="Solid"/>
</Style>
<Style ss:ID="s22">
<Font ss:FontName="Arial Narrow" x:Family="Swiss" ss:Size="12"/>
</Style>
</Styles>
<Worksheet ss:Name="Sheet1">
<Table ss:ExpandedColumnCount="3" ss:ExpandedRowCount="3" x:FullColumns="1" x:FullRows="1" ss:StyleID="s22" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="14.25">
<Row ss:AutoFitHeight="0">
<Cell ss:StyleID="s21">
<Data ss:Type="String">COL1</Data>
</Cell>
<Cell ss:StyleID="s21">
<Data ss:Type="String">COL2</Data>
</Cell>
<Cell ss:StyleID="s21">
<Data ss:Type="String">COL3</Data>
</Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell>
<Data ss:Type="String">A1</Data>
</Cell>
<Cell>
<Data ss:Type="String">B1</Data>
</Cell>
<Cell>
<Data ss:Type="String">C1</Data>
</Cell>
</Row>
<Row ss:AutoFitHeight="0">
<Cell>
<Data ss:Type="String">A2</Data>
</Cell>
<Cell>
<Data ss:Type="String">B2</Data>
</Cell>
<Cell>
<Data ss:Type="String">C2</Data>
</Cell>
</Row>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Unsynced/>
<Print>
<ValidPrinterInfo/>
<PaperSizeIndex>9</PaperSizeIndex>
<HorizontalResolution>300</HorizontalResolution>
<VerticalResolution>300</VerticalResolution>
</Print>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>16</ActiveRow>
<ActiveCol>2</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="Sheet2">
<Table ss:ExpandedColumnCount="0" ss:ExpandedRowCount="0" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="14.25"/>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Unsynced/>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
<Worksheet ss:Name="Sheet3">
<Table ss:ExpandedColumnCount="0" ss:ExpandedRowCount="0" x:FullColumns="1" x:FullRows="1" ss:DefaultColumnWidth="54" ss:DefaultRowHeight="14.25"/>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Unsynced/>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>-->
Edited by: Eric on Mar 3, 2010 6:59 AM
Edited by: Eric on Mar 3, 2010 7:01 AM -
How can I get the XML structure from a flat structure?
Hi all,
in my XI SP 12 I use a JMS adapter to read information using the WebSphereMQ transport protocol.
The structure that I receive have this format:
<Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value>
<NumberRecordType_B><NumberRecordType_c>
<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
the problem is that in this structure each line is not separated by a carriage return or a comma, I have all the information in a single line:
<Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value><NumberRecordType_B><NumberRecordType_c><Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>...<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value><Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>...<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
and the customer don't want to insert a line separator.
Then, the question is:
How can I get the XML structure from this structure?
If possible, I don't want to develop new Module and add it in the JMS Module Sequence.
PS I have already read the article "How to Use the Content Conversion Module with the XI 3 J2EE JMS Adapter.pdf" and it doesn't seem to help me.
Best Regards,
PaoloTo get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
ServletContext context = getServlet().getServletContext();
String tempContextVar =
context.getInitParameter("<your context param >"); -
One Communication Channel for two XML-Structure
Hi to all!
i'm Newbee in XI.
i register one Communication Channel to recieve two different XML-Structure and when i sent second structure there was a Mapping error, because XI waiting for first XML-Structure.
I'd like to ask if there are any additional condition that i must tune up to make it possible or just it's impossible?Hi,
Please refer below links
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/121b053d-0401-0010-539f-f9295efb7bad
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3a913f71-0601-0010-7a83-dfd3208a9a0b
how to find the URL of deployed Web services?
Creating .NET Web service
http://www.15seconds.com/issue/010430.htm
Also refer SOAP Framework to generate the common wsdl for both the messages with single SOAP CC
http://help.sap.com/saphelp_nw04s/helpdata/en/bb/ddb33d2ae46b3be10000000a114084/frameset.htm
Thanks
swarup -
Special characters in XML structure when prepared using String
Hi,
I am preparing an XML structure using 'String'. I print the prepared XML structure in the server log. Issue is that I am seeing extra characters([[ and ]]) that I am not printing.
Please let me know how to get rid of those.
Code Excerpt
String xmlHeader = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
String lsb_xmlcon = xmlHeader;
logger.info("ReqXMLString Process 1 --->" + lsb_xmlcon);
lsb_xmlcon = lsb_xmlcon +("\n");
logger.info("ReqXMLString Process 1.1 --->" + lsb_xmlcon);
lsb_xmlcon = lsb_xmlcon +("<REQUEST>");
lsb_xmlcon = lsb_xmlcon +("\n");
logger.info("ReqXMLString Process 1.2 --->" + lsb_xmlcon);
Log
ReqXMLString Process 1 ---><?xml version="1.0" encoding="utf-8" ?>
ReqXMLString Process 1.1 ---><?xml version="1.0" encoding="utf-8" ?>[[
ReqXMLString Process 1.2 ---><?xml version="1.0" encoding="utf-8" ?>[[
<REQUEST>
Thanks,
Message was edited by: 996913
This issue is observed only while running the code in server, not from Jdev.
When we append the additional tags without new line character, "\n", there are no extra characters being added. Also, in other case also. where we used "Marshaller" to prepare the XML, we have seen this issue.
After we set the below property to false, we got rid of the extra characters.
jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false);
Apparently the insertion of new line when the code runs on server(Weblogic 10.3.6.0) is creating the issue.
Please let me know if anyone has come across a similar scenario.
Thanks,I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?
-
How to use For-Each Structure with Multiple node XML structure
Hi,
How to use for-each (BPEL 2.0) construct for Multinode XML structure.
Here is the easy case: I have list of suppliers specified by supplier
<supplierList>
<supplier>1</supplier>
<supplier>2</supplier>
<supplier>3</supplier>
</supplierList>
Now there is a web service http://hostname/getsupplierdetails/wsdl which accepts one supplier at a time.
like
<supplier>1</supplier>
reponse object is
<message> notfound/found </message>
But how can I use for each of XML node to call this service and collect the result like
<supplierList1>
<Suppinfo>
<supplier>1</supplier>
<message> not found</message>
</suppinfo>
<suppinfo>
<supplier>1</supplier>
<message> not found</message>
</suppinfo>
</supplierlist1>
ThanksFor looping you use foreach loop and , loop for the number of occurences and when constructing response, adding a new element you have to use bpelx:append. Good sample at Enterprise Integration: Oracle SOA Suite 11g: Populating a list or an array in BPEL without using XSLT.
-
Attribute "action" missing or wrong XML structure
Does anyone know what's the problem of below XML format ? I want to triggle a stored procedure in AS/400 from SAPXI after receiving records. But the message "No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)" is found
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_t1 xmlns:ns0="http://cxx.xxx.hk/zxxxpxx/jdbc">
<storedProcedurename>
<action>EXECUTE</action>
<table>LIBRARY.PROCNAME</table>
<TRNX_TYPE IsInput="true" TYPE="CHAR">content 1</TRNX_TYPE>
<TRNX_NO IsInput="true" TYPE="CHAR">content 2</TRNX_NO>
</storedProcedurename>
</ns0:MT_t1>Dear all,
Thanks for your help and now I can submit a stored procedure via SAP XI by using below XML format. I try to define two output parameters at the end of this XML. How to get the return value ? Should I define a response message type ? and what is the XML format ?
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_SYN_t1 xmlns:ns0="http://xxx.xxu.hk/zxxxpgs/jdbc">
<update>
<storedProcedurename action="EXECUTE">
<table>LIBRARY.PANSYTEST</table>
<TRNX_TYPE IsInput="TRUE" TYPE="CHAR">4</TRNX_TYPE>
<TRNX_NO IsInput="TRUE" TYPE="CHAR">2</TRNX_NO>
<ACTIN IsInput="TRUE" TYPE="CHAR">23</ACTIN>
<RCRT_DATM IsInput="TRUE" TYPE="CHAR">3</RCRT_DATM>
<RCRT_USER IsInput="TRUE" TYPE="CHAR">8</RCRT_USER>
<STUD_ID IsInput="TRUE" TYPE="CHAR">8</STUD_ID>
<AWD_SEQ IsInput="TRUE" TYPE="CHAR">6899</AWD_SEQ>
<AW_PSDATE IsInput="TRUE" TYPE="CHAR">89</AW_PSDATE>
<AW_PEDATE IsInput="TRUE" TYPE="CHAR">99</AW_PEDATE>
<OUT_TRNX_TYPE IsOutput="TRUE" TYPE="CHAR">4</OUT_TRNX_TYPE>
<OUT_TRNX_NO IsOutput="TRUE" TYPE="CHAR">2</OUT_TRNX_NO>
</storedProcedurename>
</update>
</ns0:MT_SYN_t1> -
Mapping an XML structure into one field
Make use of XSLT mapping (available on SDN...just search with CDATA...i think there is a new feature in PI7.1 (Copy XMl to subtree....something like that).
Regards,
Abhishek.Hi,
Chk this:
/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
Re: Conversion of source XML structure to single string using PI 7.1
Thanks
Amit -
XSLT Mapping to convert u201C.CSVu201D file into XML Structure.
Hi All,
I wanted to know can we use XSLT Mapping to convert u201C.CSVu201D file into XML Structure.
I am communicating between two XI Systems. First XI system is going to give u201C.CSVu201D file as main document. I need to post IDOC Corresponding to this. So what I want to do is read this u201C.CSVu201D file (Main document in payload) and first convet it into XML and then use second mapping which will convert XML to IDOC.
I know this is possible with JAVA Mapping but just wanted to confirm can we do this with XSLT mapping as well?
Regards,
GouriHi Amit,
I know this way it shd work as i am able see other XSLT files. But this particular file is not visible.
I am copying following code only in sample.xslt file.
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fn="fn"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
version="2.0" exclude-result-prefixes="xs fn">
<xsl:output indent="yes" encoding="US-ASCII" />
<xsl:param name="pathToCSV" select="'file:///c:/csv.csv'" />
<xsl:function name="fn:getTokens" as="xs:string+">
<xsl:param name="str" as="xs:string" />
<xsl:analyze-string select="concat($str, ',')" regex='(("["]*")+|[,]*),'>
<xsl:matching-substring>
<xsl:sequence select='replace(regex-group(1), "^""|""$|("")""", "$1")' />
</xsl:matching-substring>
</xsl:analyze-string>
</xsl:function>
<xsl:template match="/" name="main">
<xsl:choose>
<xsl:when test="unparsed-text-available($pathToCSV)">
<xsl:variable name="csv" select="unparsed-text($pathToCSV)" />
<xsl:variable name="lines" select="tokenize($csv, ' ')" as="xs:string+" />
<xsl:variable name="elemNames" select="fn:getTokens($lines[1])" as="xs:string+" />
<root>
<xsl:for-each select="$lines[position() > 1]">
<row>
<xsl:variable name="lineItems" select="fn:getTokens(.)" as="xs:string+" />
<xsl:for-each select="$elemNames">
<xsl:variable name="pos" select="position()" />
<elem name="{.}">
<xsl:value-of select="$lineItems[$pos]" />
</elem>
</xsl:for-each>
</row>
</xsl:for-each>
</root>
</xsl:when>
<xsl:otherwise>
<xsl:text>Cannot locate : </xsl:text><xsl:value-of select="$pathToCSV" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
Is this correct?
-Gouri -
Download XML structure to Application server
Hi all.
I am generating an XML structure based on some data that I select from HR e-Recruiting, and I need to save the generated XML file on the application server, not the presentation server (local computer). Most of the code I have found on SDN (contributed by Robert Eijpe) and I must admit that I do not understand everything the code does.
I have attached the source code and the resulting XML structure:
REPORT zhr_test2_tk.
TYPE-POOLS: ixml.
TYPES: BEGIN OF xml_line,
data(256) TYPE x,
END OF xml_line.
DATA: l_ixml TYPE REF TO if_ixml,
l_streamfactory TYPE REF TO if_ixml_stream_factory,
l_ostream TYPE REF TO if_ixml_ostream,
l_renderer TYPE REF TO if_ixml_renderer,
l_document TYPE REF TO if_ixml_document.
DATA: l_element_position TYPE REF TO if_ixml_element,
l_element_title TYPE REF TO if_ixml_element,
* l_element_flight TYPE REF TO if_ixml_element,
* l_element_from TYPE REF TO if_ixml_element,
* l_element_to TYPE REF TO if_ixml_element,
l_element_dummy TYPE REF TO if_ixml_element,
l_value TYPE string.
DATA: l_xml_table TYPE TABLE OF xml_line,
l_xml_size TYPE i,
l_rc TYPE i.
DATA: lt_erec TYPE TABLE OF hrp5126,
l_erec TYPE hrp5126.
DATA: date(10),
time(4),
filepath TYPE string.
CONSTANTS: filedir TYPE string VALUE 'C:tmp',
filename TYPE string VALUE 'ZHR_test'.
START-OF-SELECTION.
* fill internal table
SELECT * FROM hrp5126 INTO TABLE lt_erec.
* Start filling xml DOM object from internal table lt_erec.
LOOP AT lt_erec INTO l_erec.
*Create the root node 'position'
IF sy-tabix EQ 1.
* create an ixml factory
l_ixml = cl_ixml=>create( ).
* create Document Object Model
l_document = l_ixml->create_document( ).
* Fill root node with value 'position'
l_element_position = l_document->create_simple_element(
name = 'position'
parent = l_document ).
ENDIF.
IF sy-tabix GT 1.
* create element jobtitle as child of position
l_value = l_erec-jobtitle.
l_element_title = l_document->create_simple_element(
name = 'job_title'
parent = l_element_position
value = l_value ).
l_value = l_erec-empl_start_date.
l_element_dummy = l_document->create_simple_element(
name = 'StartDate'
parent = l_element_title
value = l_value ).
l_value = l_erec-empl_end_date.
l_element_dummy = l_document->create_simple_element(
name = 'EndDate'
parent = l_element_title
value = l_value ).
ENDIF.
ENDLOOP.
IF sy-subrc NE 0.
WRITE: 'No data in table hrp5125'.
ENDIF.
* create a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
* connect internal XML table to streamfactory
l_ostream = l_streamfactory->create_ostream_itable(
table = l_xml_table ).
* render the document
l_renderer = l_ixml->create_renderer( ostream = l_ostream
document = l_document ).
l_rc = l_renderer->render( ).
* Get time and date
WRITE sy-uzeit+2(2) TO time+2(2).
WRITE sy-uzeit+0(2) TO time+0(2).
WRITE sy-datum+4(2) TO date+0(2).
WRITE sy-datum+6(2) TO date+2(2).
WRITE sy-datum+0(4) TO date+4(4).
*Build filename with date and time reference
CONCATENATE filedir filename date time '.xml' INTO filepath.
<i>* This is the code I hope to modify in order to save the xml structure on the application server, with a specified filepath.</i>
<b> OPEN DATASET filepath FOR OUTPUT IN BINARY MODE.
LOOP AT lt_erec into l_erec.
TRANSFER l_erec TO filepath.
ENDLOOP.
CLOSE DATASET filepath.</b>
* save XML document
l_xml_size = l_ostream->get_num_written_raw( ).
*This is the code for download to local computer
* CALL METHOD cl_gui_frontend_services=>gui_download
* EXPORTING
* bin_filesize = l_xml_size
* filename = filepath
* filetype = 'BIN'
* CHANGING
* data_tab = l_xml_table
* 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
* OTHERS = 22.
* IF sy-subrc <> 0.
* MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
* WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
<b>XML result:</b>
<?xml version="1.0" ?>
<position>
<job_title>Test Process Template</job_title>
<job_title>jjjj</job_title>
<job_title>Test Job Req. 20092005</job_title>
<job_title>Created 22.09</job_title>
<job_title>title 07.12</job_title>
<job_title>Test fra portal</job_title>
<job_title>Test med 100328</job_title>
<job_title>Test restricted recruiter</job_title>
<job_title>Test restricted recruiter</job_title>
<job_title>Workshop requisition job title</job_title>
</position>
Any help is greatly appreciated.
Best Regards,
Thomas KjelsrudHi Guillaume,
The thing is that the code I presented to you is incorrect. I am asking the question of how to download / save an XML (not an internal table) to the application server. Using the gui_download will not satisfy me need, as it only downloads to the presentation server (local machine that I run my SAP session on), when I need it to download to the application server. The Open Dataset and Transfer statements are (as far as I know) only used for downloading internal tables to the application server.
So I guess my question should be like this instead:
"How can I save the XML structure that is created in the above program to the file system in the application server?"
It is a bit hard to explain this, so please ask me more questions if required.
Thank you for helping.
Best regards,
Thomas -
How create an xml structure in a pdf form
Hi genius guys,
some one can help me to create a correct xml structure (root, subroot1, subroot2, etc etc) in a pdf form and not only the single tag?
Example: I give a pdf with form to be filled and after I extract xml data. Now I have this:
<?xml version="1.0" encoding="UTF-8"?>
<fields xmlns:xfdf="http://ns.adobe.com/xfdf-transition/"
><A1classe
>1995</A1classe
><A1cognome
>Fanna</A1cognome
><A1nome
>Tonino</A1nome
><Annodifondazione xfdf:original="Anno di fondazione"
>1965</Annodifondazione
><C1classe
>1976</C1classe
><C1cognome
>Di Gennaro</C1cognome
><C1nome
>Antonio</C1nome
><Campionato
>ECCELLENZA</Campionato
><Campodigioco
>Comunale di Villabartolomea</Campodigioco
><Colorisociali
>Giallo Rosso</Colorisociali
><D1classe
>1984</D1classe
><D1cognome
>Fontolan</D1cognome
><D1nome
>Beppe</D1nome
><Girone
>A</Girone
><P1classe
>1980</P1classe
><P1cognome
>Zoff</P1cognome
><P1nome
>Dino</P1nome
><P2classe
>1974</P2classe
><P2cognome
>Garella</P2cognome
><P2nome
>Claudio</P2nome
><S1cognome
>Baudo</S1cognome
><S1mansione
>Presidente</S1mansione
><S1nome
>Pippo</S1nome
><S2cognome
>Togni</S2cognome
><S2mansione
>Vice Presidente</S2mansione
><S2nome
>Darix</S2nome
><Sede
>Via Pisacane,8 - Villabartolomea</Sede
><Squadra
>VILLABARTOLOMEA</Squadra
><T1cognome
>Dallara</T1cognome
><T1mansione
>Allenatore</T1mansione
><T1nome
>Toni</T1nome
><T2cognome
>Silvan</T2cognome
><T2mansione
>Magazziniere</T2mansione
><T2nome
>Mago</T2nome
></fields
>
and I need this:
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:xfdf="http://ns.adobe.com/xfdf-transition/"
><attaccanti>
<A1classe
>1995</A1classe
><A1cognome
>Fanna</A1cognome
><A1nome
>Tonino</A1nome
>
</attaccanti>
<Annodifondazione xfdf:original="Anno di fondazione"
>1965</Annodifondazione
>
<centrocampisti>
<C1classe
>1976</C1classe
><C1cognome
>Di Gennaro</C1cognome
><C1nome
>Antonio</C1nome>
</centrocampisti>
<Campionato
>ECCELLENZA</Campionato
><Campodigioco
>Comunale di Villabartolomea</Campodigioco
><Colorisociali
>Giallo Rosso</Colorisociali
>
<difensori>
<D1classe
>1984</D1classe
><D1cognome
>Fontolan</D1cognome
><D1nome
>Beppe</D1nome
></difensori>
<Girone
>A</Girone
><portieri>
<P1classe
>1980</P1classe
><P1cognome
>Zoff</P1cognome
><P1nome
>Dino</P1nome
><P2classe
>1974</P2classe
><P2cognome
>Garella</P2cognome
><P2nome
>Claudio</P2nome
></portieri>
<societa>
<S1cognome
>Baudo</S1cognome
><S1mansione
>Presidente</S1mansione
><S1nome
>Pippo</S1nome
><S2cognome
>Togni</S2cognome
><S2mansione
>Vice Presidente</S2mansione
><S2nome
>Darix</S2nome
></societa>
<Sede
>Via Pisacane,8 - Villabartolomea</Sede
><Squadra
>VILLABARTOLOMEA</Squadra
><tecnici>
<T1cognome
>Dallara</T1cognome
><T1mansione
>Allenatore</T1mansione
><T1nome
>Toni</T1nome
><T2cognome
>Silvan</T2cognome
><T2mansione
>Magazziniere</T2mansione
><T2nome
>Mago</T2nome
>
</tecnici></root
>
Thanx, PaoloI solve the trouble using "." to separate the tagname and create the correct structure for xml.
example:
team.player.1name
team.player.1surname
team.player.1rol
team.player.2name
team.player.2surname
team.player.2role
this give me:
<team>
<player>
<1name>XXXX</1name>
<1surname>YYY</1surname>
<1role>forward</1role>
</player>
<player>
<2name>XXXX</2name>
<2surname>YYY</2surname>
<2role>forward</2role>
</player>
</team> -
Consistency error:more fields found in XML structure than specified in conv
Hi,
I am doing a File 0 RFC- File in PI 7.1 and facing the following error:
2009-12-07 09:45:05 Error MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value '20000000|3022|800.99|10.11.2009|Testing 22222|')', probably configuration error in file adapter (XML parser error)'
2009-12-07 09:45:05 Error File processing failed with com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value '20000000|3022|800.99|10.11.2009|Testing 22222|')', probably configuration error in file adapter (XML parser error)'
my output file record structure :
DT_out
itab_out 0.........1
item 0...... unbounded
STR 0........1
So i have given in the receiver FCC parameters as:
Record structure : item
Content conversion parameters:
item.fieldFixedLengths 255
item.endSeparator 'nl'
could anyone pls help me in solving this error at the earliest.
thanksmy problem has been solved by giving the FCC parameters as shown below:
my output file record structure :
DT_out
itab_out 0.........1
item 0...... unbounded
STR 0........1
So i have given in the receiver FCC parameters as:
Record structure : item,ITAB_OUT
Content conversion parameters:
item.fieldFixedLengths 255
item.endSeparator 'nl'
ITAB_OUT.fieldFixedLengths 255
ITAB_OUT.endSeparator 'nl' -
More fields in XML structure error in Adapter Monitor
Hi all
I am getting the following error in the adapter monitor
Error: Message processing failed: Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value ' ')', probably configuration error in file adapter (XML parser error)'
I am using FCC in the rx adapter. I have also checked the fields for any extra fields but there isnt any.
kindly suggest what could be throwing the error
regards
krishnaHi raj
here are the CC parameters.
BEGIN.addHeaderLine 0
BEGIN.fieldFixedLengths 2,1,3,2,4,1,8,12,8,2,307,12,8,12,18
BEGIN.fixedLengthTooShortHandling Ignore
BEGIN.endSeparator '0x0D''0x0A'
CLIENT_RECORD.addHeaderLine 0
CLIENT_RECORD.fieldFixedLengths 2,12,9,4,15,15,4,20,12,9,8,1,1,25,10,1,25,10,1,6,1,1,1,1,1,10,8,1,25,2,1,1,1,106,12,38
CLIENT_RECORD.fixedLengthTooShortHandling Ignore
CLIENT_RECORD.endSeparator '0x0D''0x0A'
RELATION_RECORD.addHeaderLine 0
RELATION_RECORD.fieldFixedLengths 2,12,9,4,20,20,2,2,9,8,1,25,10,1,25,10,1,6,1,1,181,12,38
RELATION_RECORD.fixedLengthTooShortHandling Ignore
RELATION_RECORD.endSeparator '0x0D''0x0A'
ADDRESS_RECORD.addHeaderLine 0
ADDRESS_RECORD.fieldFixedLengths 2,12,9,4,20,20,2,2,5,6,8,24,24,2,35,15,4,15,4,70,8,8,1,50,12,38
ADDRESS_RECORD.fixedLengthTooShortHandling Ignore
ADDRESS_RECORD.endSeparator '0x0D''0x0A'
GIVING_REC.addHeaderLine 0
GIVING_REC.fieldFixedLengths 2,12,9,4,20,9,1,1,1,1,1,1,1,1,1,1,1,1,1,281,12,38
GIVING_REC.fixedLengthTooShortHandling Ignore
GIVING_REC.endSeparator '0x0D''0x0A'
ZIKT_REC.addHeaderLine 0
ZIKT_REC.fieldFixedLengths 2,12,9,4,20,9,2,3,2,8,1,1,277,12,38
ZIKT_REC.fixedLengthTooShortHandling Ignore
ZIKT_REC.endSeparator '0x0D''0x0A'
BEPER_REC.addHeaderLine 0
BEPER_REC.fieldFixedLengths 2,12,9,4,20,9,1,1,1,291,12,38
BEPER_REC.fixedLengthTooShortHandling Cut
BEPER_REC.endSeparator '0x0D''0x0A'
SCORE_BEPER_REC.addHeaderLine 0
SCORE_BEPER_REC.fieldFixedLengths 2,12,9,4,20,9,1,3,4,1,1,284,12,38
SCORE_BEPER_REC.fixedLengthTooShortHandling Ignore
SCORE_BEPER_REC.endSeparator '0x0D''0x0A'
INDBES_REC.addHeaderLine 0
INDBES_REC.fieldFixedLengths 2,12,9,4,20,9,9,2,2,8,8,8,1,256,12,38
INDBES_REC.fixedLengthTooShortHandling Ignore
INDBES_REC.endSeparator '0x0D''0x0A'
FUNCTIONAL_REC.addHeaderLine 0
FUNCTIONAL_REC.fieldFixedLengths 2,12,9,4,20,9,9,3,2,8,8,8,1,4,2,2,1,1,1,1,8,1,1,233,12,38
FUNCTIONAL_REC.fixedLengthTooShortHandling Ignore
FUNCTIONAL_REC.endSeparator '0x0D''0x0A'
ACT_REC.addHeaderLine 0
ACT_REC.fieldFixedLengths 2,12,9,4,20,9,9,3,2,8,3,5,1,263,12,38
ACT_REC.fixedLengthTooShortHandling Ignore
ACT_REC.endSeparator '0x0D''0x0A'
SCORE_REC.addHeaderLine 0
SCORE_REC.fieldFixedLengths 2,12,9,4,20,9,3,4,1,1,285,12,38
SCORE_REC.fixedLengthTooShortHandling Ignore
SCORE_REC.endSeparator '0x0D''0x0A'
ZFUNCTIONAL_REC.addHeaderLine 0
ZFUNCTIONAL_REC.fieldFixedLengths 2,12,9,4,20,9,9,12,3,2,8,8,5,1,8,8,8,4,2,2,1,1,1,1,210,12,38
ZFUNCTIONAL_REC.fixedLengthTooShortHandling Ignore
ZFUNCTIONAL_REC.endSeparator '0x0D''0x0A'
ZACT_REC.addHeaderLine 0
ZACT_REC.fieldFixedLengths 2,12,9,4,20,9,9,3,2,3,5,8,8,5,8,1,242,12,38
ZACT_REC.fixedLengthTooShortHandling Ignore
ZACT_REC.endSeparator '0x0D''0x0A'
COMMENT.addHeaderLine 0
COMMENT.fieldFixedLengths 2,12,4,140,1,191,12,38
COMMENT.fixedLengthTooShortHandling Ignore
COMMENT.endSeparator '0x0D''0x0A'
END_REC.addHeaderLine 0
END_REC.fieldFixedLengths 2,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,1,257,50
END_REC.fixedLengthTooShortHandling Ignore
END_REC.endSeparator '0x0D''0x0A'
REgards
krishna -
[CS3 JS] Is it possible to export just the XML structure?
Hello,
I am using scripts to find various objects in an InDesign document and tagging them.
I will then want to export the XML structure but not any of the content. I'm just learning XML and do not see a way to do this.
Thanks,
TomShare/export using QuickTime to an audio only codec such as MP3.
Maybe you are looking for
-
Need Help with ESATA on MSI P35 Neo2-FR
I have the MSI P35 Neo2-FR motherboard http://www.msi.com/index.php?func=proddesc&maincat_no=1&cat2_no=&cat3_no=&prod_no=1261 and trying to get the eternal ESATA to work. It works with one individual HD. I'm using an external ESATA drive with 3 HD
-
Every time I open a photo in Edit mode and then try to move to another photo, either by clicking the "next" arrow or by clicking on another photo in the bar at the top of the screen, iPhoto simply crashes. Any ideas why? I only have 256mb of memory,
-
Hi I am new working with brio. I need to do this in Interactive reporting. SELECT DISTINCT al1.pdship, al1.pdsddt, al2.pmppds, al1.pditcd, al3.ititds, al1.pdlimt, al1.pdbkct, al1.pdofct, al1.pdopcl, al1.pdppid, al2.pmpkid, al2.pmefdt, al2.pmefbt, al2
-
Cisco Prime Infrastructure 1.2 licensing
I have a customer that is running CiscoWorks 3.2 and they also have NCS 1.1 (upgraded from WCS 7.0). They have found that it costs way more to upgrade CiscoWorks to Cisco Prime Infrastructure than it would be to just buy licenses after they finish u
-
Update App for Content Viewer?
So today I return from vacation and try to view my folio on the iPad and now I get a message once again that the issue is available for download but requires a newer version of the Adobe Content Viewer app. What's the deal with this? I have the most