Problem in file receive due to unicode
Hi All,
I am facing a strange problem.
I have file to JDBC scenario which works ok. This file is generated by one SAP program. Now we upgraded R/3 (4.6B to ECC6.0)and it is now unicode compatible.
This created problem for me as below:
whenever i have a special character in any field it inserts a extra character and remaining rest all my mapping fails...and i get error in JDBC receiver.....
before upgrade there were special characters in data but it was working fine.... Can anybody plz tell me how to deal with it....?
Thanks,
Atul
Hi,
XI will be successfully able to take care of UNICODE enabled data conversions/transactions.
In File Encoding parameter : UTF-8 is one of the solution,
along with it
Please refer below link for some of the previous discussions,
take a look at this response and MODE ENCODING:
Re: File Transfer non-unicode -> unicode via client
also you may take a look at this:
http://help.sap.com/saphelp_nw04/helpdata/en/79/c554dcb3dc11d5993800508b6b8b11/content.htm
/people/michael.eacrett/blog/2006/05/03/single-code-page-sap-systems-heading-towards-history--unicode-only-future
Thanks
Swarup
Similar Messages
-
Hi, I have the following scenario, File->XI->File and
I have a problem with the File adapter (receiver). I can't generate it.
I was reading blog: File-Xi-File scenario donu00B4t work.
SXMB_MONI shows the message correctly but the receiver file is not generated.
Somebody can help me?
Thanks in advanced
Regards,
Sergio.Hi Sergio,
I would suggest that you go through this blog for the entire File to File scenario and cross check this with the cofiguration done by you.
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
Also, do check these links for configuring your sender and receiver file adapters.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Regards,
Bhavesh
Message was edited by: Bhavesh Kantilal -
Problem with file receiving through abap web service
Hi experts,
I need to created web service for import file from .NET application into SAP.
ABAP function expect hexadecimal string (same as GUI_UPLOAD / GUI_DOWNLOAD) but hexadecimal string from C# is too long (double longer), and I have no idea how to convert it. Also there is a problem with code page...
Is there some better way to do this? Any idea is welcome!Hi Nemanja,
Please bear in mind that your SAP system is based on UTF-8 encoding. Since you have the xstring length doubled, most probably your sender system uses UTF-16 encoding. So what you need to do is change the encoding used by your .NET application when sending the data to SAP.
Alternatively, you can try using XSL Transformations in ABAP to have the input data converted from UTF-16-encoded xstring to ABAP structures. You can find a little example in this thread: ABAP data to XML conv with UTF-8 encoding and custom namespace. The point is to start your XSLT with the following: <?xml version="1.0" encoding="utf-16"?>.
Hope this helps,
Greg -
Problem in File Receiver comm channel
Hi,
I can't see anything in the Recevier communication channel in the RWB > Component Monitoring>Comm. channel monitoring-->Comm. channels.
I do have selected my comm channel.Its showing the message as "Comm. channel is configured correctly and started". But I cant see msgID and Explanation or error. Even, I cant fine any info in Error log.
The diagnosis i did as follows. Let me know if u come across any thing.
Checked the logs in VA but i didnt found any information and is not upto date. Bad luck
*Recreated the Rcvr comm channel again and teste. Nohope.
In the MONI its showing successfull, but i cant see output at destination.
*cache is uptodate
I have checked the queues, nothing got stuck.All queues are clear.
*I cant restart the Server since it is in production.
Your suggestions are highly appreciated.
Thanks
SRINilesh,
All the things you mentioned are done by XI IS. FYI plz chk below..
Send binary file "/home/dpiadm/xi/tmp/passthru/EDI_250123.rpz", size 60, character encoding 8859_1 with QoS EO
2007-10-19 13:48:43 Success MP: Entering module processor
2007-10-19 13:48:43 Success MP: Processing local module localejbs/SFTPFileUploadDownloadAdapterModule
2007-10-19 13:48:43 Success 192.133.217.6 /XI/SFTPTest pimsp kuljasimsim EDI_250123.rpz /home/dpiadm/SridharRajuMahali /home/dpiadm/xi/tmp/passthru/ EDI_250123.rpz Enable
2007-10-19 13:48:43 Success EDI_250123.rpz
2007-10-19 13:48:43 Success SFTPOutBoundEDIFileToFile
2007-10-19 13:48:43 Success SFTP_Sender_File
2007-10-19 13:48:43 Success 8878c990-7e6b-11dc-8137-001a4b065b86
2007-10-19 13:48:43 Success SFTPServerNameOrIpAddress 192.133.217.6
2007-10-19 13:48:43 Success Indiashining.txt SFTPOutBoundEDIFileToFile SFTP_Sender_File 8878c990-7e6b-11dc-8137-001a4b065b86 SFTPOutBoundEEIFileToFile
UNDEFINED
2007-10-19 13:48:43 Success Host Key Verified
2007-10-19 13:48:43 Success Socket Opened for Transport and connected..
2007-10-19 13:48:43 Success SFTP SshClient is connected
2007-10-19 13:48:43 Success Authentication Method is Public Key
2007-10-19 13:48:43 Success Ssh2 Client is Connected and Authenticated
2007-10-19 13:48:43 Success pimsp kuljasimsim
2007-10-19 13:48:43 Success /XI/SFTPTest
2007-10-19 13:48:43 Success /XI/SFTPTest
2007-10-19 13:48:43 Success localFolder2 + dropFileName2 /home/dpiadm/xi/tmp/passthru/EDI_250123.rpz
Entering to download file
2007-10-19 13:48:43 Success Current Directory before LCD0 : /home/dpiadm
2007-10-19 13:48:43 Success Current Directory After LCD0 :/home/dpiadm/xi/tmp/passthru
2007-10-19 13:48:43 Success download completed
2007-10-19 13:48:43 Success MP: Processing local module localejbs/CallSapAdapter
2007-10-19 13:48:43 Success Application attempting to send an XI message asynchronously using connection File_http://sap.com/xi/XI/System.
2007-10-19 13:48:43 Success Trying to put the message into the send queue.
2007-10-19 13:48:43 Success Message successfully put into the queue.
2007-10-19 13:48:43 Success The application sent the message asynchronously using connection File_http://sap.com/xi/XI/System. Returning to application.
2007-10-19 13:48:43 Success MP: Leaving module processor
The message was successfully retrieved from the send queue.
2007-10-19 13:48:43 Success Confirmation mode test found. File sent.
2007-10-19 13:48:43 Success The message status set to DLNG.
2007-10-19 13:48:44 Success The message was successfully transmitted to endpoint http://quark:8005/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System.
2007-10-19 13:48:44 Success The message status set to DLVD.
2007-10-19 13:48:44 Success The message was successfully delivered.
Note:- I AM NOT ABLE TO SEE ANYTHING IN THE RCVR COMM CHANNEL(RWB).
any Idea about, where can I see the message if it got stuck in Integration server apart from logs
Thanks
Sri Raj -
Big problem - all files lost due to login error!
Hi,
I recently installed Leopard, and I enabled the Guest account in System Preferences. Yesterday, I booted up my Macbook, and accidently logged in as Guest (instead of as myself). Instead of displaying the Guest's desktop, OS X seemed to crash, and, after a while, the Login-window reappeared.
I then just logged in as myself, and everything seemed all right.
I worked for a couple of hours, and I wanted to log out, but I got the warning that I was logged in as a Guest and that all files in my home directory would be deleted. I was, however, not logged in as guest. I stupidly clicked ok, and logged out.
An hour or so later, I logged in again, only to discover that all my files were gone! That is: not only the guest account, but also the administrator account was completely wiped out!
Luckily I could use Time Machine to restore a backup quite easily, but I was quite scared!
I think this is a serious bug, and just wanted to let you know to take care when enabling the Guest account.You is using a DBLINK and that username/password is incorrect.
if you don't know what DBLINK is using, you can query the DBA_DB_LINKS:
SQL> desc dba_db_links;
Name Null? Type
OWNER NOT NULL VARCHAR2(30)
DB_LINK NOT NULL VARCHAR2(128)
USERNAME VARCHAR2(30)
HOST VARCHAR2(2000)
CREATED NOT NULL DATE
after that you need recreate it:
conn / as sysdba
create public database link <TARGET_DB_NAME> using '<TARGET_DB_NAME>';
conn strmadmin/strmadmin@<SOURCE_DB_NAME>
create database link <TARGET_DB_NAME> connect to strmadmin identified by strmadmin; -
Problem with file transfer over the net
Hi!I'm trying to make a program that allows to send/receive files and I'm almost done,except for a little problem:the file received has some bytes missing at the end!
For example if I send a text the last 2-3 lines are missing,same thing for an image,an html document,etc.,although the file opens without any problem.As transport-level protocol I'm using TCP so it's not a networking problem,I think the problem is in the application layer so I post here the code,hoping someone helps me out(in this example I'm trying to send an image .jpg):
Sender:
Socket connectionSocket=new Socket("ipadress",port);
FileInputStream source=new FileInputStream(System.getProperty("user.home")+"\\Documents\\image.jpg");
BufferedOutputStream send=new BufferedOutputStream(connectionSocket.getOutputStream());
int c;
while ((c = source.read()) !=-1)
send.write(c1);
Receiver
ServerSocket receiverSocket=new ServerSocket(port);
Socket connection=receiverSocket.accept();
BufferedInputStream rec=new BufferedInputStream(connection.getInputStream());
FileOutputStream receivedFile=new FileOutputStream(System.getProperty("user.dir")+"\\received.jpg");
int c;
while ((c = rec.read()) != -1)
receivedFile.write(c);I think the problem is in this code:somehow the sender stops sending bytes before the end of the file is actually reached...what do u think?Thank you so much!At the end it was a very stupid mistake!:D
Btw now that the main problem is solved I continue posting asking for your opinion:is this program for you efficient enough?Or there's a better way to do file transfer? -
Nokia 3500C -problem in file transferd via bluetoo...
I m using Nokia 3500C since feb 2008 but i have problem in file receiving or transferd via bluetooth while I have 256 MB memory card + Phone memory (8.2 MB) and used is 221 MB in memory card..
Free space in memory card is 12.5 MB
Free space in Phone memory is 27.5 KB
So being full memory card problem i have suffered or other else prob.
Reply as soon as possible..
Thanks to all..you have to free up ur phone memory first. otherwise it will not transfer any file via bluetooth. you need to have enough free space in the ph. memory so that it can hold a temp file of exactly the size of the file being transferred
-
Hi, I have a problem that I receive lots of Spam messages from my office, I cannot bar the spam text from service provider due to official constrain.
I just want to know if there is any mechanisme where i can bar the message from a specific sender. I know there are some apps like Iblacklist available but we do not find it in any Iphone which is not jailbreak. I was just thinking of developing some code for it.No. You can't. Filtering would have to be done at the server level.
-
I'm using OS 10.6.8 and Mail 4.5. When I receive mails with attachments which are visible the save button doesn't work. And some contacts occasionally have problems opening files sent by me using Mail too. This was never a problem on pre-Intel Mac. A real Mac **** up ! Any ideas ?
Can you drag and drop the attachments visible in the email to the Desktop OK or does that fail ?
Re the sending: Are these recipients on Mac's or PC's as the file type could be an issue, if on Mac's then try setting the Mail Preferences Composing setting to Plain Text not Rich Text and see if that improves things. -
Problem with file content conversion in receiver file adapter
Hi All
I have a problem with file content conversion in receiver file adapter.
This is my recordset structure: Header_Record,1,Claim_Record,*,Check_Rec,1
These are the content conversion parameters:
Header_Record.fieldSeparator = ,
Header_Record.endSeparator = 'nl'
Claim_Record.fieldSeparator = ,
Claim_Record.endSeparator = 'nl'
Check_Rec.fieldSeparator = ,
Check_Rec.endSeparator = 'nl'
In SXMB_MONI, i can see that the data is correctly extracted from proxy, and correctly mapped to receiver message, and i see a checkered flag (success).
But, Adapter status is RED with the following error message:
Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
In communication channel monitoring, i get the following error message:
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
What is going wrong here? Can anyone please tell me?
Thanks
ChandraPosted in Incorrect forum.
Posted again in Process Integration forum -
Problem with Append mode in File Receiver
Hello,
I am facing some problem with Append Mode in File Receiver.
In channel config, i have given :
Construction Mode : Append
File Type : Text
Message Protocol : File Content Conversion
The size of the file which i am trying to send is about 9.5MB.
I got this error,
"Recovering from loss of connection to database; message
loaded into queue by recover job: System Job (Failover Recovery)".
So, it would seem that there was a loss of connnection to the database
while the file was being written.
Note - XI successfully recovered from the connection loss and
successfully wrote the file, however since the communication channel
was set to append, it appended to the partial file that was written
before the database connection loss. This is not correct. The file
should have been overwritten after the recovery even though the communication
channel was configured to append.
Can anyone help me on this regard.
Thanks,
Soorya.Hi Venkat,
I would suggest u to split the file in to chunks if u face any problem in processing at a time in append mode and also
Memory Requirements are must 4 processing huge files:
Q: Which memory requirements does the File Adapter have? Is there a restriction on the maximum file size it can process?
A: The maximum file size that can be processed by the File Adapter depends on a number of factors:
o The most important one is the size of the Java heap, which is shared among all messages processed at a certain point in time. In order to be able to process larger messages without an out of memory error (OOM), it is recommended to increase the size of the available Java heap and/or to reduce the concurrency in the system so that fewer messages are processed in parallel.
o Another factor negatively influencing the maximum message size in releases up to and including XI 3.0 SP 13 is an enabled charcter set (encoding) conversion if the message type is set to "Text".
o Using the transport protocol "File Transfer Protocol (FTP)" also uses more memory for processing than the transport protocol "File System (NFS)" (up to and including XI 3.0 SP 13).
o If the Message Protocol "File Content Conversion" is used in a File Sender channel, consider that not only the size of the input file affects the File Adapter's memory usage, but even more the size of the XML resulting from the conversion, which is usually a few factors larger than the original plain text file.
To reduce the memory consumption in this scenario, consider configuring the setting "Maximum Recordsets per Message" for the sender channel. This will cause the input file to be split into multiple smaller mesages.
Plz do refer the following links:
U may plan the availability of ur communication channel using "Planning Availability Times" feature
http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/frameset.htm
/people/sravya.talanki2/blog/2005/11/29/night-mare-processing-huge-files-in-sap-xi
hi check the below links for reference
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10748ef7-b2f0-2910-7cb8-c81e7f284af5
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7086f109-aaa7-2a10-0cb5-f69bd2affd2b
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2498bf90-0201-0010-4884-83568752a857
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cc1ec146-0a01-0010-90a9-b1df1d2f346f
Regards,
Vinod. -
XML-IDOC to Plain File: File Receiver Cnt Conversion Problem Nested Stucts
Hi all,
I have an IDOC-XI-File scenario and I have a problem with the file receiver adapter and the content conversion parameters when the final data type has nested structures. Imagine that I have something similar to the following:
My desire is to get something similar to this in the output file:
SEGMENT0;HEADER
SEGMENT1;100
SEGMENT2;0200000716
SEGMENT3;1000
SEGMENT2;0200000717
SEGMENT3;1000
SEGMENT3;1001
SEGMENT3;1002
But what we are getting is this:
SEGMENT0;HEADER
SEGMENT1;100
SEGMENT2;0200000716;SEGMENT3;1000
SEGMENT2;0200000717;SEGMENT3;1000;SEGMENT3;1001;SEGMENT3;1002
The content conversion parameters of the file receiver are as follow:
Recordset Structure: IDOC,EDI_DC40,E1STATS,Z1HDSTAT,Z1ITSTAT
IDOC.fieldSeparator: ;
IDOC. endSeparator: nl
IDOC. addHeaderLine: 0
EDI_DC40.fieldSeparator: ;
EDI_DC40. endSeparator: nl
EDI_DC40. addHeaderLine: 0
E1STATS.fieldSeparator: ;
E1STATS. endSeparator: nl
E1STATS. addHeaderLine: 0
Z1HDSTAT.fieldSeparator: ;
Z1HDSTAT. endSeparator: nl
Z1HDSTAT. addHeaderLine: 0
Z1ITSTAT.fieldSeparator: ;
Z1ITSTAT. endSeparator: nl
Z1ITSTAT. addHeaderLine: 0
Ive tried to use the parameter beginSeparator=nl for the segments Z1ITSTAT but its not working. I havent been able to find a solution in the other forums. Can anybody help me?
Thanks in advance
Roger Allué VallCan you explain it with my example? I can't see what you mean.
<ZSYSEX01>
.<IDOC BEGIN="1">
....<EDI_DC40 SEGMENT="SEGMENT0">
........<FIELD1>HEADER</FIELD1>
....</EDI_DC40>
....<E1STATS SEGMENT="SEGMENT1">
........<FIELD2>100</MANDT>
........<Z1HDSTAT SEGMENT="SEGMENT2">
...........<FIELD3>0200000716</FIELD3>
...........<Z1ITSTAT SEGMENT="SEGMENT3">
...............<FIELD4>1000</FIELD4>
...........</Z1ITSTAT>
........</Z1HDSTAT>
........<Z1HDSTAT SEGMENT="SEGMENT2">
...........<FIELD3>0200000717</FIELD3>
...........<Z1ITSTAT SEGMENT="SEGMENT3">
...............<FIELD4>1000</FIELD4>
...........</Z1ITSTAT>
...........<Z1ITSTAT SEGMENT="SEGMENT3">
...............<FIELD4>1001</FIELD4>
...........</Z1ITSTAT>
...........<Z1ITSTAT SEGMENT="SEGMENT3">
...............<FIELD4>1002</FIELD4>
...........</Z1ITSTAT>
........</Z1HDSTAT>
....</E1STATS>
.</IDOC>
</ZSYSEX01>
Regards, -
Adapter file Receive - conversion file problem
Hi everybody,
In an adapter file receiver, I want to convert an XML structure to a "flat file".
here is my xml structure
<ns1:MT006_blabka>
<RECORD>
<LIGNE>TEST1</LIGNE>
<LIGNE>TEST2</LIGNE>
</RECORD>
<FILE>
<FILENAME>fichier.dat</FILENAME>
<DIRECTORY>//server1/root/</DIRECTORY>
</FILE>
</ns1:MT006_blabla>
and the text file I want to receive is
<BOF>
TEST1
TEST2
<EOF>
The problem is with the paramter of conversion I use I receive
<BOF>
TEST1
TEST2
<EOF>
I always receive an empty line at the end
The record set define in conversion are "RECORD,FILE"
in parameter i put
RECORD.fieldSeparator value : 'nl'
FILE.fieldFixedlengths value : 0,0
My problem is to eliminate the empty line at the end of the file.
Is there someone who can help me ?
Thank you in advance for your collaboration.
Regards
Eric.Hi,
You will have to modify your target structure from this
<ns1:MT006_blabka>
<RECORD>
<LIGNE>TEST1</LIGNE>
<LIGNE>TEST2</LIGNE>
</RECORD>
<FILE>
<FILENAME>fichier.dat</FILENAME>
<DIRECTORY>//server1/root/</DIRECTORY>
</FILE>
</ns1:MT006_blabla>
To this
<ns1:MT006_blabka>
<RECORD>
<Struct>
<LIGNE>TEST1</LIGNE>
<LIGNE>TEST2</LIGNE>
</Struct>
</RECORD>
<FILE>
<FILENAME>fichier.dat</FILENAME>
<DIRECTORY>//server1/root/</DIRECTORY>
</FILE>
</ns1:MT006_blabla>
use the content conversion as
recordset structure = RECORD,Struct,File,
Record.fieldSeparator = 'nl'
Struct.fieldSeparator = 'nl'
file.fieldFixedLengths = 0
file.fixedLengthTooShortHandling = Cut -
Mail 2 File scenario - problems with attachments in file receiver
Hi experts,
I want to receive PDF documents via email and send them thru file adapter. Now I have some trouble with the attachments. I have configured my mailsender as follows:
localejbs/AF_Modules/PayloadSwapBean TRANSFORM
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean mail
Modules:
TRANSFORM swap.keyName Content-Disposition
TRANSFORM swap.keyName Content-Description
TRANSFORM swap.keyValue MailAttachment-1
TRANSFORM swap.keyValue attachment;filename="MailAttachment-1.pdf"
Now what modules do I have to use in my file receiver when I want to write the PDF-attachment to my directory? I already tried a lot and referred to many blogs but nothing really worked. I only get my header information in the output file.
Any ideas?
Thanks in advance.
Best regards.
Oliver.Hi
Check this blogs
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1810608850DB10913328217115658435End?blog=/pub/wlg/1685
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417700)ID1810608850DB10913328217115658435End?blog=/pub/wlg/2849
Regards
Ramesh -
IDOC to flat File----Problem in File Content Conversion at receiver
hi experts,
I am doing a IDOC to flat file secnario.
My requirment is IDOCXI-Flat file
Format of flat file is like:--
Every segment in the IDOC will be converted into a single line of file(without any delimiter). So number of lines in flat file will be equal to number of segments in IDOC.
I am facing problem in File Content conversion.
Please help me out..
Thanks
JaideepCheck this doc...
[How To...Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0 |https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a]
Maybe you are looking for
-
i need to know free login for itunes so please provide me necessary information on free procedure of free downloading apps of apple
-
Report for Hiring Action Along with BASIC Pay
Dear I have created a BDC for hiring action for which data is updated in infotypes 0,1,2,6,7,8,9,14,15,16,41,105,587,588 mentioned in the infogroup. Earlier we are not creating entries in 0008 now we need to BASIC PAY in the hring Action. What shou
-
Using somExpression in a function
I have some event script that I would like to make into a function. Because the object on which I would run this function (and many other similar functions) are on different subforms and such, I would love to be able to use the somExpression in my f
-
Need print popup to display only once
Hi Experts , I have a customer account statement in smartform . For multiple customers the clients wants the print dialog to be displayed only once and the options mentioned in the first display to be carried for other customer accounts . Please any
-
Large files are not in cache directory
I've been watching some training modules and in order to watch them off line I've been going into the cache and then just renaming the files with mp4 extension, so everything works fine except for one particular module whose size is 48344797 bytes (4