Picking UTF-16 coded xml file thru file adapter
Dear All,
We are working on an interface in which we are receiving an XML file in UTF-16 format. Now we want to send this file to a RFC in SAP. We are getting an error in picking the file as UTF-16 file format is not getting picked. Also we are not able to test the same file in message mapping.
Kindly suggest how UTF-16 file can be picked.
Regards,
NJ
Hi Stefan,
Yes, encoding is taken from XML header itself, we are able to pick the xml file but in the target side we are not getting any data ie at the target side we are not able to receive any payload. Also, how can we test mesaage mapping?
Regards,
NJ
Similar Messages
-
Reading UTF-8 Encoding xml file sqlserver
Hi ,
I am recieving a xml file from a third party vendor. it is encoded in UTF-8. while i am reading it i am getting the below error.
Msg 9420, Level 16, State 1, Line 3
XML parsing: line 30117390, character 33, illegal xml character
the characters causing the problem are like è,Ö,è.
My database default collation is ‘SQL_Latin1_General_CP1_CI_AS’
I am using the below query to read the xmlfile.
declare @xml xml
SELECT
@xml= CAST(x AS XML)
FROM
OPENROWSET(BULK 'D:\sample.xml',SINGLE_BLOB) AS T(x)
select
X.product.value('(ID/text())[1]', 'varchar(50)') as ID ,
X.product.value('(Name/text())[1]', 'varchar(50)') as Name
from
@xml.nodes('Students/Student') AS X(product)
how can i read the file successfully. any help is appreciated.
Thanks in advance.This issue normally happens when the XML file is not in the correct format. To save in the correct format open the xml file and click save as. Choose the encoding option as "UTF-8".
Regards, RSingh -
Limiting the number of files being picked up by the sender file adapter
We are running a file adapter to collect xml files from a legacy system in a shared network location. The files are picked up, information is sorted and mapped, and then sent to a proxy on our CRM system to store the data. Very simple and not-complex.
Our initial data load will consist of somewhere in the neighborhood of 900k records, which is killing CRM.
A co-worker with a bit more experience was telling me that he believes there is a way to limit the number of files that will be pulled per iteration of the file communication channel. If this is the case, can someone share with me the parameters that need to be set?
My apologies if this is a duplicate post - I have tried to look for a good answer in the forums and have come up empty.
We are running PI 7.1, and I believe it is SP 6.
Thanks in advance for the help,
BenHi Ben,
There is no standard way to limit the number of files to be processed by the communication channel.
On the Sender File CC, there is a parameter " Maximum File Size" which restricts the files bigger than the specific size, but this is just a prevention not a solution.
If you have a single big size file, then somehow you have to create small sized files out of it.
Thanks,
Pooja Pandey -
Special characters issue in output XML - file adapter - SOA 10.1.3.4
Hi,
I use a DB adapter and File adapter to retreive data from database and create output XML file.
For the database record which have special characters (for example ' , <, >), it will just output the same character in XML file, which cause other system to reject this XML file because of those characters.
Anyone have this issue ? How can i resolve that ?
ThanksTry converting the characters to < and >. This should work. Make sure the stand-alone & character is converted to & amp; (written with space as HTML will convert it back to &).
-AR -
Cannot parse UTF-8 encoded xml files
I have been having issues parsing files that were encoded with UTF-8. If I save the file as standard ANSI and parse it I do not have the issues.
Is there a reason this can occur?
Here is the error I am getting:
C:\Home\Java\testbed\tmp>java RFKGenerator -in 4874.xml -xsl cl_rfk.xsl -out 4874.rfk
Applying stylesheet cl_rfk.xsl...
Exception in thread "main" ; SystemID: file:///C:/Home/Java/testbed/tmp/2.209_M_
4874.xml; Line#: 1; Column#: -1
javax.xml.transform.TransformerException: Document root element is missing.
at org.apache.xalan.transformer.TransformerImpl.fatalError(Unknown Sourc
e)
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source
at org.apache.xalan.transformer.TransformerImpl.transform(Unknown Source
at gov.nasa.jsc.odfxml.java.RFKGenerator.main(RFKGenerator.java:89)
As I mentioned before this only occurs if the file is encoded in UTF-8 so I am not sure if there is any extra steps needed when parsing these type of files. I am using the latest xalan parser and the xerces processor that apache provides.
If you need any other information please let me know.
thank you.I found that the issue was I was using an older version of Xalan and when updated it fixed the problem. Also there are issues with parsing UTF-8 on win9x machines you should be on Win2k/XP to not encounter errors.
-
For now I have:
<?xml version="1.0" encoding="UTF-8"?>
<EPERSON filename="20081010142234">
<CONTEXTPERSON>
</CONTEXTPERSON>
<CONTEXTPERSON>
</CONTEXTPERSON>
</EPERSON>
and I need (requisite for the external system):
<?xml version="1.0" encoding="UTF-8"?>
<EPERSON filename="20081010142234" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ContextPersonMessage">
<CONTEXTPERSON>
</CONTEXTPERSON>
<CONTEXTPERSON>
</CONTEXTPERSON>
</EPERSON>
This has been done using a ExternalDefinition and importing the XSD the external application provides.
Previously I reached to have:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:EPERSON filename="20081010142234" xmlns:ns0="http://www.w3.org/2001/XMLSchema-instance">
<CONTEXTPERSON>
</CONTEXTPERSON>
<CONTEXTPERSON>
</CONTEXTPERSON>
</ns0:EPERSON>
Any suggestions ? Hard coding the "xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ContextPersonMessage"" in the mapping would also be ok for me if you have any advise in that direction.
cheers,
gregAs I know already which fields in the IDOC I need for every field in my target, maybe it would be easier to do it by hand, here is an example of target file:
<?xml version="1.0" encoding="iso-8859-1" ?>
<EPERSON filename="contextperson_000002.xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ContextPersonMessage">
<CONTEXTPERSON>
<PERSON action="update">
<TITLE>M</TITLE>
<FIRSTNAME>John</FIRSTNAME>
<NAME>Smith</NAME>
<BIRTHDATE>06.02.1973</BIRTHDATE>
<ADDRESS1>rue du stade</ADDRESS1>
<ADDRESS2>c/o Jean-pierre</ADDRESS2>
<POSTALCODE>CH-1234</POSTALCODE>
<CITY>Geneve</CITY>
<COUNTRYID>CH</COUNTRYID>
<CATEGORY>Standard</CATEGORY>
<CREATIONDATE>01.01.2000 09:00:00</CREATIONDATE>
</PERSON>
<MISCFIELD>
<MISCFIELDTYPE>PERSN</MISCFIELDTYPE>
<MISCFIELDVALUE>01000123</MISCFIELDVALUE>
</MISCFIELD>
<CONTACT>
<CONTACTTYPE>E-mail</CONTACTTYPE>
<CONTACTVALUE>john.smith_AT_example.com</CONTACTVALUE>
</CONTACT>
</CONTEXTPERSON>
</EPERSON>
I have to create a CONTEXTPERSON for every E1PLOGI that is in the HRMD_A07 IDOC.
Any tip for starting ? like how to get the HRMD_A07->E1PLOGI->E1PITYP->E1P0002-NACHN for the Name field ? The rest would be most like that one -
How can I get the directory.xml file for WL6.0?
I have installed the ALBPM Enterprise WL6.01 and started it in my server.But I get the error message when I login.
directory configuration runtime fails to initilize with
resource:/Aqualogic/j2eewl/tomcate/webapps/../../webapps/webconsole/WEB-INF/directory.xml
How can I get the XML file?aaa, ok i misunderstood your first post, i thought you are talking about unable to use the directory.xml from your application.
Ok, well the directory.xml file that ALBPM uses is allways in /albpm6.0/j2eewl/conf/directory.xml if we are not talking about Standalone. And when you start your albpm server it picks up the directory.xml file from there. But it picks him up only when you start it...so if you made any changes to it, you have to restart the server.
You should check the instalation folder of your ALBPM.
If you want to change the user/pass in the directory.xml change it in that folder and restart ALBPM.
If you don't know how to enter new password you have to use this sintax:
<encrypt>newPassword</encrypt>
Because if you open the xml file you have only <encrypted> tags, and you can't change those.
I don't know what the xml file is doing in that tomcat folder though...maybe it get's copied to that location when you start the albpm WL
Hope this helps
Edited by Lex_ at 12/13/2007 10:27 PM -
Hi,
There is a requirement to download an XML file from the Web using Fusion middleware. The XML file is available as a URL, and is updated daily.
http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml
We need to check if this is download is possible from within ESB.
One Oracle consultant reported this to be slightly tricky, but possible through HTTP Binding. We never could get in touch with him again.
So open to the forum.
So please suggest your opinions, and icing on the cake if you can also point to some tutorial or sample code.
Thanks,
Amitjust run a wget on the file and then you can pick it up with a file adapter, I note there is no XSD association with it.
-
Retrieve the complete filename picked up by file adapter
Hi all,
I would like to retrieve the complete filename which is picked up by a sender file adapter. I need to know the exact filename during runtime in order to group some messages within an BPM process. No workaround (e.g. set up multiple file adapters) could be used. Do I have a chance to realize this with a module for the file adapter or maybe a dispachter class? If yes - how?
Cheers, KatrinHi Katrin,
Check Oss note 639106.
In this note SAP has provided information on how to determine the currently processsed file.
Thanks
Lakshman -
How to know if file is being picked up by XI through sender file adapter -
Hi
How can I check if the file is being picked up XI through sender file adapter? Can you please help.
Thanks in advanceHi Rajiv,
Select teh File processing mode as
1. Read only -> After reading the file it will change the read only property of the file. Just right click on the file, select properties.If the file has been read then ReadOnly check box will be enabled. If u are testing several times then it will be more useful.
2. Archive -> Then u need to give some other folder name where u want to archive it.
3.Delete -> It will delete if the file has been successfully read.
regards,
Gowtham K.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm -
Sender File Adapter : File Name Determination
Hi All,
My Scenario :
1) Im my scenario i need only the "FileName" of the File when picked up by the Sender File Adapter.
2) Rest Content of the File need not be in the XML file format.
Now what i did was developed "File Adapter Module " to get the "FileName" when picked up by the Sender File Adapter.
Outcome : When i put the developed module at first and put the file in specified folder allowint the Sender file Adapter to pick up. Now Everything is fine working when one kind of File is placed as per my Content Coversion paramaters.
Actual : My Client would place file of any kind (.jpeg -> Mostly , gif ) i need to get only the file name in the Outbound interface , which i would split it further to my Target Interface.
How could i achieve this , when i took away this content conversion , in sxmb_moni it shows error.I need only the filename in the Outbound not the Content , moreover the hit is i donot know what could be content of my file as it could be different and varing , so i could not set particular content conversion paramters:
Second Question:
Now my outbound XML interface looks as below when i test with a file , with proper content conversion paramerters:
<?xml version="1.0" encoding="UTF-8" ?>
- <MT_DMS_FINAL>
- <Record>
- <Row>
<FirstName>2323_eer_rtr</FirstName>
</Row>
</Record>
<FileName>d:\mdmtest\srinivaS\padusrini.txt</FileName>
</MT_DMS_FINAL>
Well i have designed in my MI only FirstName , how to capture this element "FileName" which i can use it in mapping , if i have to write any UDF to capture it ,please guide me.
thx in advance for u r help
with regards
SriniHi Guys ,
Can i use File Content Conversion for .pdf document , my pdf doc content is not known, means it"s a complete info doc.I may get .jpeg any picture or drawing.
I thought i can use below file content conversion paramters:
Document Name : MT_DMS_FINAL
RecordSet Name : Record
RecordSet Structure : Row,*
Row.fieldNames - FirstName
Row.fieldSeparator - ;
Row.processFieldNames - fromConfiguration
Row.additionalLastFields - ignore
Row.missingLastfields - ignore
Now i put a pdf doc of unknown content , and my assumption was some set of charater would be dumped in XML and rest would be ingonered which is least bothered part in my scenario , unless i get the filename from runtime ot Adapter module developed
But in RWB CC monitoring i see below error :Error: org.xml.sax.SAXParseException: Illegal XML character: .
Any views on this , can any one help me out with the above requirment. Hope u guys got wat am trying to put out here
thx in advance for u r help
with regards
Srini -
Multiple Input Files using File adapter
hey Experts,
Wanted to know how i could pick up two different XML files using the Sender file adapter, which i want to process in my scenario, need ur suggestions, i dont want to use BPM. ThanksWhen you use the "additional file" feature, you have to keep in mind that the additional file enters the Integration Engine as attachment of the primary file.
Modifying this attachment (or merging the two files) is difficult, as you can't use graphical mapping. Accessing the attachment with the other mapping techniques is often cumbersome as well.
With a BPM, you could use two sender communication channels and correlation, but this alternative seems to be no option for you.
Could you please tell us
1. whether or not the two files have the same message type,
2. which processing has to be performed afterwards and
3. where does it go to when it leaves the XI?
That would greatly help us.
Kind regards,
Dennis -
File Adapter does not process the same file twice
SOA: 11.1.1.4 (non-HA).
I have a file adapter that triggers when a new file gets to a directory; the file is not deleted after the process triggers.
The process is supposed to call other services via a mediator and if any remote fault happens it should rollback automatically and re-trigger with the same file at the next polling interval.
I have literally 3 scenarios:
1). The file gets picked up once, the process fails and the file is never picked up again.
Msg in log: The file : /xx/xx/xx/abc.xml is being ignored as it has already been processed
2). If the mediator only routes to one service after the file gets picked up, it works as expect (that is rollback and restart at the next polling interval). If it has more than one sequential routing rule, I see the same error as above.
3). File does not get picked up EVEN if I "touch" or rename the file.
Msg in Log:
File Adapter ProcessName Poller enqueuing file for processing :/xx/xx/xx/abc.xml
File Adapter ProcessName Ignoring File : abc.xml as it is already enqued for processing.
I have already checked, there is no permission issue.
This is what my .jca file looks like:
<adapter-config name="getFile" adapter="File Adapter" wsdlLocation="getFile.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/FileAdapter" UIincludeWildcard="*"/>
<endpoint-activation portType="Read_ptt" operation="Read">
<activation-spec className="oracle.tip.adapter.file.inbound.ScalableFileActivationSpec">
<property name="DeleteFile" value="false"/>
<property name="MinimumAge" value="5"/>
<property name="SingleThreadModel" value="true"/>
<property name="PhysicalDirectory" value="/xx/xx"/>
<property name="Recursive" value="false"/>
<property name="PollingFrequency" value="20"/>
<property name="IncludeFiles" value=".*"/>
<property name="UseHeaders" value="true"/>
<property name="MaxRaiseSize" value="5"/>
<property name="ListSorter" value="oracle.tip.adapter.file.inbound.listing.TimestampSorterAscending"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
Thanks for looking into it in advance.
Any help with the error messages will be appreciated.You have to use MOVE operation, if there is any remote exception occured, then move the file to someother folder and again move back to the same folder where the file pickup will start.
In that way you will be use the same file picked up next time when the polling happens.
It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
Thanks,
Vijay -
Sender File adapter Pooling interval & file Size issue
Hi ALL,
I have a file size of 400 MB to be picked to be the sender file adapter i am facing issue that the system is unable to even pick the file and place in the Q for Processing.
1)we have no mapping no content conversion ....only pick the file from one loaction and place it in 3 different locations with 3 different names ...can any one help me in solving this .. ? the best workable method to achive this .
2) this file is getting created once in a day .say 2 PM .so i can give the poll intravel to 24 hours ..but some times ..the file creation in server gets delayed ..but they cont wain for the next 24 hour to come for processing the file ..so my query is can we reduce the poll intravel for 2 PM till 3PM hour for some 3 times ..and once it reches 3PM it can poll as usual with a gap of 24 hour time ..
thanks
RKHi Rupash,
>>I have a file size of 400 MB to be picked to be the sender file adapter i am facing issue that the system is unable to even pick the file and place in the Q for Processing.
Never use File adapter for picking large file (maximum size which I have seen it to work successfully is 200 MB)
Instead go for Java proxies. Check this forum post for the discussion:
Java proxy to use XI as a file mover
Also if you want some more info on Java proxies refer these blogs and articles:
/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
>>this file is getting created once in a day .say 2 PM .so i can give the poll intravel to 24 hours ..but some times ..the file creation in server gets delayed .
You can do a availability time planning refer these links for more information:
Planning Availability Times
http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/content.htm
Controlling a Communication Channel Externally Locate the document in its SAP Library structure
http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/content.htm
Regards
Suraj -
ABAP to XML file - Formatting problem and UTF-8 requirement
Hi Everyone,
Could you please guide us on the ABAP coding required to get the proper XML file format. We have prepared the code for downloading SAP transaction data into an XML file format. However, we are stuck with an improper format as per Example 1.
The file format we get is this:
Example 1:
<?xml version="1.0"?><FDXLMDOrd><FXNHdrLp><CrtDtTm>20070613094517</CrtDtTm><MsgID>319304155</MsgID><MsgTyp>850</MsgTyp><MsgSubTyp>SALES_A</MsgSubTyp><Pr
<RcvTP>FSCS</RcvTP><SndSrc>FXN</SndSrc><RcvSrc>EIB</RcvSrc><UsrID>VAR</UsrID></FXNHdrLp><OrdHdrLp><OrdNbr>319304155</OrdNbr><OrdActnCD>9</OrdActnCD><Ord
teCarrReq>FDE</RteCarrReq><RteTptSvcReq>FEIP</RteTptSvcReq></DprtRteLp><SpecInstrLp><SpecInstrTyp>SHIP</SpecInstrTyp><SpecInstr>Example Packing Instruct
les Order</RefDesc></RefLp><RefLp><RefIDQual>CPO</RefIDQual><RefID>test 1 line 1 pc - s</RefID><RefDesc>Customers Customer Purchase Order</RefDesc></Ref
Typ><EntIDQual>91</EntIDQual><EntID>H00092</EntID><EntNm>VLAD BOBES</EntNm><Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA
></AdrLnLp><ConLp><ConTypCD>IC</ConTypCD><ConNm>VLAD BOBES</ConNm><CommLp><CommNbrQual>TE</CommNbrQual><CommNbr>514-731-8361</CommNbr></CommLp></ConLp><
<Cty>MONTREAL</Cty><PstlCD>H3X 2N5</PstlCD><RgnalCD>QC</RgnalCD><CtryISOCD>CA</CtryISOCD><AddlNmLp><AddlNm1>VLAD BOBES</AddlNm1></AddlNmLp><AdrLnLp><Str
However, the format need to look like this as in Example 2 below.
We also need help in how to get " encoding="UTF-8"?> " as part of the file format.
Example 2:
<?xml version="1.0" encoding="UTF-8"?>
<FDXLMDProdRcpt>
<FXNHdrLp>
<CrtDtTm>20070612151817</CrtDtTm>
<SessID>26796</SessID>
<MsgTyp>861</MsgTyp>
<MsgSubTyp>WRE_A</MsgSubTyp>
<PrcsingPrty>5</PrcsingPrty>
<SndTPQualCD>ZZ</SndTPQualCD>
<SndTP>FSCS</SndTP>
<RcvTPQualCD>ZZ</RcvTPQualCD>
<RcvTP>EIB</RcvTP>
<SndSrc>YANTRA</SndSrc>
<RcvSrc>EIB</RcvSrc>
<UsrID>VAR</UsrID>
</FXNHdrLp>
<ProdRcptHdrLp>
<ShpID>VAR20070612NCHIC1</ShpID>
<ShpTyp> </ShpTyp>
<ShpActnCD>00</ShpActnCD>
<InTransMrgTyp> </InTransMrgTyp>
<ShpVolUOM>CI</ShpVolUOM>
<ShpWgtUOM>LB</ShpWgtUOM>
<ShpTotVol>310022.00</ShpTotVol>
<ShpTotWgt>861.00</ShpTotWgt>
<DtTmLp>
<DtTyp>050</DtTyp>
<DtTmQual>501</DtTmQual>
<DtTm>2007-06-12T15:07:41-04:00</DtTm>
</DtTmLp>
<AdrLp>
<EntTyp>RC</EntTyp>
<EntIDQual>93</EntIDQual>
<EntID>NCHIC</EntID>
<EntNm>NCHIC</EntNm>
<AutoCrtTrdPar>0</AutoCrtTrdPar>
<AutoCrtTrdParRole>0</AutoCrtTrdParRole>
<AutoUpdtTrdPar>0</AutoUpdtTrdPar>
</AdrLp>
<ProdRcptTptLp>
<TptIDQual>BOL</TptIDQual>
<TptSCAC> </TptSCAC>
<TptID> </TptID>
Thanks and Best Regards
SitaramanYou could try to use the following coding:
*& Report ZUS_SDN_UC_XML_TO_UTF8_TRANSF
REPORT zus_sdn_uc_xml_to_utf8_transf.
define local data
CONSTANTS:
gc_encoding TYPE string VALUE 'UTF-8'.
DATA:
gd_result type string,
go_ixml TYPE REF TO if_ixml,
go_stream_factory TYPE REF TO if_ixml_stream_factory,
go_encoding TYPE REF TO if_ixml_encoding,
go_resstream TYPE REF TO if_ixml_ostream.
DATA:
gt_knb1 TYPE STANDARD TABLE OF knb1,
gd_xml TYPE string,
gt_xml TYPE TABLE OF string.
START-OF-SELECTION.
SELECT * FROM knb1 INTO TABLE gt_knb1 UP TO 10 ROWS
WHERE bukrs = '1000'.
go_ixml = cl_ixml=>create( ).
go_stream_factory = go_ixml->create_stream_factory( ).
go_encoding = go_ixml->create_encoding( character_set = gc_encoding
byte_order = 0 ).
go_resstream =
go_stream_factory->create_ostream_cstring( gd_result ).
CALL METHOD go_resstream->set_encoding
EXPORTING
encoding = go_encoding.
XML Transformieren
CALL TRANSFORMATION id_indent
SOURCE itab = gt_knb1
RESULT XML go_resstream.
APPEND gd_result TO gt_xml.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
BIN_FILESIZE =
filename = 'C:\temp\xml_to_utf8.txt'
FILETYPE = 'ASC'
APPEND = SPACE
WRITE_FIELD_SEPARATOR = SPACE
HEADER = '00'
TRUNC_TRAILING_BLANKS = SPACE
WRITE_LF = 'X'
COL_SELECT = SPACE
COL_SELECT_MASK = SPACE
DAT_MODE = SPACE
CONFIRM_OVERWRITE = SPACE
NO_AUTH_CHECK = SPACE
CODEPAGE = SPACE
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = SPACE
TRUNC_TRAILING_BLANKS_EOL = 'X'
IMPORTING
FILELENGTH =
CHANGING
data_tab = gt_xml
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
END-OF-SELECTION.
However, I like to mention that the file created from out ECC 5.0 (6.40, non-Unicode) contains a special character between the XML header and the data part (when displayed using NotePad Editor):
...xml version="1.0" encoding="utf-8"?>[special character]<asx:abap xmlns:asx="http://www.sap.com/a...
Using a HexEditor the special character (0x0A) is displayed as a dot.
Also Check with FM - TREX_TEXT_TO_UTF8
Reward Points if it is helpful
Thanks
Seshu
Maybe you are looking for
-
In our organization we have around 8000 employees. If I create a foler of each employee in KM ....containing 10 files like photo, passport , some other documents.... So totally I need to create 8000 folders containg 10 files in each ....i,e 80000 fil
-
Officejet 6700 can't scan to computer
Scan to Computer suddenly stopped working (scan to USB device still works). Downloaded driver software several times; at first scan to computer would work briefly before failing, but now has stopped working altogether. Error message displayed is "sca
-
I need to find the original library of my iPhotos
Hi Terence, by mistake i clicked on the "create new" project when iphoto opened. ive lost all pictures and videos fo my childrfen over the past two years. i do have copies on an external hard disk so i didnt panic, however when i imported back these,
-
N4S: Adobe Interactive Forms - How to install the credentials and activate
In the download section for NW04S on Linux I see a note saying as follows "... the user must install the essential credential file and activate it using a unique password". I have downloaded the credentials files which is named as "SDNCerts09_Jul.zip
-
Module pool programming..
hi Gurus, while working on module pool, i am facing little problem when we execute it through t-code se51. sometime it shows 'restricted logic and complete logic'. but it doesn't appear sometime. what is the exact problem ? is there any problem with