Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

XML file not generating Completely

Former Member
0 Likes
1,204

Hi ,

I am reading a file from the Application Server of XML format in Binary Mode. After reading I am checking the contents and with every 255 Char I am appending the contents in the different row, thus creating a internal table having one field of length 255.

I am using this table to send an email to the recepient using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'. This is generating a Attachment. But when I open this in Internet browser, It is not getting compete contents.

I am not sure, If I have missed something.

Regards,

Arpit

4 REPLIES 4
Read only

Former Member
0 Likes
905

This is the Error I am getting .

ISDD>00000000</ISDD>

<ISDZ>000000</ISDZ>

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

Read only

0 Likes
905

Hi Arpit,

If you have posted the error message correctly and there is no typo, then the below tag is incorrect as < at the beginning of

the tag is missing

ISDD>00000000</ISDD>

Are you sure that the source file is correct?...also try using CL_BCS instead of "SO_NEW*API", there is a lot of material available on it.

Open the attachment using an XML editor and validate the XML structure see if there is anything wrong in it...there are quite a few free XML editors available on internet.

Regards,

Chen

Edited by: Chen K V on May 27, 2011 2:20 PM

Edited by: Chen K V on May 27, 2011 2:20 PM

Read only

0 Likes
905

Hi Chen,

Thanks for thr reply. The XML file contains data related to Idocs.The complete result If I open a XML file is

<?xml version="1.0" encoding="UTF-8" ?>

- <DELVRY03>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

<TABNAM>EDI_DC40</TABNAM>

<MANDT>002</MANDT>

<DOCNUM>0000000000071931</DOCNUM>

<DOCREL>620</DOCREL>

<STATUS>30</STATUS>

<DIRECT>1</DIRECT>

<OUTMOD>2</OUTMOD>

<IDOCTYP>DELVRY03</IDOCTYP>

<MESTYP>SHPORD</MESTYP>

<STDMES>SHPORD</STDMES>

<SNDPOR>SAPAD1</SNDPOR>

<SNDPRT>LS</SNDPRT>

<SNDPRN>AD1002LS</SNDPRN>

<RCVPOR>XML_PORT</RCVPOR>

<RCVPRT>LS</RCVPRT>

<RCVPFC>LS</RCVPFC>

<RCVPRN>HT</RCVPRN>

<CREDAT>20110405</CREDAT>

<CRETIM>070247</CRETIM>

<SERIAL>20110218054703</SERIAL>

</EDI_DC40>

- <E1EDL20 SEGMENT="1">

<VBELN>0080004041</VBELN>

<VSTEL>GB03</VSTEL>

<VKORG>170</VKORG>

<INCO1>DDU</INCO1>

<ROUTE>DGGBPA</ROUTE>

<VSBED>E1</VSBED>

<BTGEW>315.000</BTGEW>

<NTGEW>315.000</NTGEW>

<GEWEI>KGM</GEWEI>

<VOLUM>0.000</VOLUM>

<ANZPK>00000</ANZPK>

<PODAT>20110218</PODAT>

<POTIM>161703</POTIM>

- <E1EDL22 SEGMENT="1">

<VSTEL_BEZ>FSQ HT West Drayton</VSTEL_BEZ>

<VKORG_BEZ>FSQ</VKORG_BEZ>

<INCO1_BEZ>Delivered Duty Unpaid</INCO1_BEZ>

<VSBED_BEZ>UK Standard</VSBED_BEZ>

</E1EDL22>

- <E1EDL21 SEGMENT="1">

<LFART>ZCOR</LFART>

<LPRIO>02</LPRIO>

<TRAGR>Z001</TRAGR>

- <E1EDL23 SEGMENT="1">

<LFART_BEZ>Correction Delivery</LFART_BEZ>

<LPRIO_BEZ>Standard</LPRIO_BEZ>

<TRAGR_BEZ>Standard</TRAGR_BEZ>

</E1EDL23>

</E1EDL21>

- <E1EDL18 SEGMENT="1">

<QUALF>ORI</QUALF>

</E1EDL18>

- <E1ADRM1 SEGMENT="1">

<PARTNER_Q>AG</PARTNER_Q>

<PARTNER_ID>0060004842</PARTNER_ID>

<LANGUAGE>EN</LANGUAGE>

<FORMOFADDR>Mr.</FORMOFADDR>

<NAME1>Sabu P Kuriakose</NAME1>

<NAME2>KURIA</NAME2>

<STREET1>Flat 2 St.Raphael's House. Sherborne Roa</STREET1>

<POSTL_COD1>RG215TG</POSTL_COD1>

<CITY1>Basingstoke</CITY1>

<TELEPHONE1>01256351078</TELEPHONE1>

<COUNTRY1>GB</COUNTRY1>

<REGION>HA</REGION>

</E1ADRM1>

- <E1ADRM1 SEGMENT="1">

<PARTNER_Q>WE</PARTNER_Q>

<PARTNER_ID>0060004842</PARTNER_ID>

<LANGUAGE>EN</LANGUAGE>

<FORMOFADDR>Mr.</FORMOFADDR>

<NAME1>Sabu P Kuriakose</NAME1>

<NAME2>KURIA</NAME2>

<STREET1>Flat 2 St.Raphael's House. Sherborne Roa</STREET1>

<POSTL_COD1>RG215TG</POSTL_COD1>

<CITY1>Basingstoke</CITY1>

<TELEPHONE1>01256351078</TELEPHONE1>

<COUNTRY1>GB</COUNTRY1>

<REGION>HA</REGION>

</E1ADRM1>

- <E1ADRM1 SEGMENT="1">

<PARTNER_Q>OSP</PARTNER_Q>

<PARTNER_ID>GB03</PARTNER_ID>

<LANGUAGE>EN</LANGUAGE>

<NAME1>Four Square UK</NAME1>

<STREET1>Armstrong Road</STREET1>

<POSTL_COD1>RG24 8NU</POSTL_COD1>

<CITY1>Basingstoke</CITY1>

<COUNTRY1>GB</COUNTRY1>

<REGION>HA</REGION>

</E1ADRM1>

- <E1ADRM1 SEGMENT="1">

<PARTNER_Q>OSO</PARTNER_Q>

<PARTNER_ID>170</PARTNER_ID>

<LANGUAGE>EN</LANGUAGE>

<NAME1>Four Square UK</NAME1>

<STREET1>Armstrong Road</STREET1>

<POSTL_COD1>RG24 8NU</POSTL_COD1>

<CITY1>Basingstoke</CITY1>

<COUNTRY1>GB</COUNTRY1>

<REGION>HA</REGION>

</E1ADRM1>

- <E1EDT13 SEGMENT="1">

<QUALF>006</QUALF>

<NTANF>20100420</NTANF>

<NTANZ>000000</NTANZ>

<NTEND>20100420</NTEND>

<NTENZ>000000</NTENZ>

<ISDD>20100419</ISDD>

<ISDZ>000000</ISDZ>

<IEDD>20100419</IEDD>

<IEDZ>000000</IEDZ>

</E1EDT13>

- <E1EDT13 SEGMENT="1">

<QUALF>003</QUALF>

<NTANF>20100420</NTANF>

<NTANZ>000000</NTANZ>

<NTEND>20100420</NTEND>

<NTENZ>000000</NTENZ>

<ISDD>00000000</ISDD>

<ISDZ>000000</ISDZ>

<IEDD>00000000</IEDD>

<IEDZ>000000</IEDZ>

</E1EDT13>

- <E1EDT13 SEGMENT="1">

<QUALF>001</QUALF>

<NTANF>20100420</NTANF>

<NTANZ>000000</NTANZ>

<NTEND>20100420</NTEND>

<NTENZ>000000</NTENZ>

<ISDD>00000000</ISDD>

<ISDZ>000000</ISDZ>

The XML page cannot be displayed

Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.

-


Invalid at the top level of the document. Error processing resource 'file:///C:/TEMP/notesEC3FD6/~4120145.xml'.

Regards,

Arpit

Read only

0 Likes
905

Hi Arpit,

If the XML content you have posted is the complete file, then the XML file is not complete, it is missing at least the below nodes


</E1EDT13>
</E1EDL20>
</IDOC>
</DELVRY03>

Add the above lines at the end of you file and try opening the file, may be you are missing the last append or something, check your program again.

Regards,

Chen