Simple File 2 File scenario - binary
XI freaks hello,
I want to run a simple text File to text File scenario without ANY change of the file encoding.
currently it is running using the Binary type (I don't want to mess with the content encoding of the text file).
would this be ok?
mind you..the file is taken from a Windows FS and moved to another FS...would this might cause encoding problem? should the original program create the file with the target server encoding
cheers
Got it from the market place.
Note 821267 - FAQ: XI 3.0 / PI 7.0 File Adapter
"Flat Files without File Content Conversion
Whether to configure an encoding in this case depends on if you want to pass through the file "as is", e.g. within a File Sender to File Receiver scenario, or if you want to convert the file's encoding on its way through the Integration Server. <B>For "as is" processing, configure both the sender and the receiver using the File Type setting "Binary".</B>
To apply an encoding conversion, configure the respective source and target encoding in both the sender and receiver channel."
Similar Messages
-
Error in File to File scenario
Hi All,
im trying out the file to file scenario [binary file using file content conversion]from SDN Wiki:
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/main&
On the runtime workbench, adapter engine is in red/error status due to error in the receiver comunication channel.
The sender communication channel is working fine. During testing, my file is being picked up and deleted(processing mode set to delete).
I am able to see the msgs in sxmb_moni and in Message Monitoring, the status is delivered.
However, the receiver channel does not show any error msgs at all.
Yday when i tested , i got the foll error msg:
Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'EMP.Contacts.fieldFixedLengths' or 'EMP.Contacts.fieldSeparator' is missing
However tdy i dont see any new error msgs during testing (no changes made to the recvr channel).
Given that the sender communication channel is wrking, can i safely assume that file adapter is wrking fine. If not, how do i check the status of the file adapter [in RWB, i can see the file adapter and various other adapters(with a grey diamond icon next to them). how do i interpret the status of the adapter?
Would really appreciate if anyone can advice on how to troubleshoot this?
Many thanx!
cheers
Prachi
I hv tried doing a full cpa cache refresh.Hello Prachi ,
I thinks its because of receiver File Processing Parameters,as you are considering here File Content Conversion.
If your structure is like this
<?xml version="1.0" encoding="UTF-8"?>
<ns1:Proveedor_100011 xmlns:ns1="http://sap.com/xi/webservices/buyordint">
<config>
<directory>c:/tmp</directory>
<filename>dynamicFile3.txt</filename>
</config>
<root>
<string>Header;423423</string>
<lines>
<value>LINE;</value>
</lines>
</root>
</ns1:Proveedor_100011>
Then your content conversion is -
RecordSet Structure: config,root
root.fieldSeparator = ;
root.endSeparator = 'nl'
config.fieldFixedLenghts = 0
config.fixedLenghtTooShortHandling = CUT
http://help.sap.com/saphelp_nw2004s/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
With Regards,
Raju.
Please give points if useful..... -
Error in simple(File-XI-File)scenario
Hi,
Using this blog i was doing simple(File-XI-File)scenario.
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
But i am getting the error
Runtime error
com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_MM_FILE_TO_FILE_CC_: Fatal Error: com.sap.engine.lib.xml.parser.
What could be the problem ?
Thanks.Hi,
Check ur Mapping objects and do test it in the test tab of MM or IM before activating.Once it is done do activate it.
Refer to below links as well:
/people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-i
/people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-ii
Cheers,
Prasanthi. -
Multiple target files - Idoc to File scenario - Simple question
Hi,
I have a simple IDOC to File scenario. However at the occurence of a node say node A I need to generate a file
For example if the input IDOC has 3 Nodes for Node A I need to have 3 different files one for each node.
Any help is appreicated.
Thanks
JoeHi,
Map your node A to the Target root node.
it will generate the Flat files based on node A.
Regards,
sukarna. -
Encountering error in simple file 2 file scenario
Hi,
Working on a very simple file 2 file scenario , where input contains 1 header record identified with a key field and detail record conntains more than 1 records identified with key field. Used very specific FCC. But it was unable to generate the output file (a simple text file without any translation) giving errors as below -
1. File Adapter Receiver Channel cc_target: Not initialized - cannot proceed: null
2. MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: Channel has not been correctly initialized and cannot process messages
3. Adapter Framework caught exception: Channel has not been correctly initialized and cannot process messages
4. Delivering the message to the application using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Channel has not been correctly initialized and cannot process messages.
Input File structure is like
H1,XXXXX
D1,YYYYYY
D1,ZZZZZ
D1,NNNN
H1 and D1 are key identifiers of header and detail record
Need same format output file, used FCCs (1) fieldSeperator (2) endSeparator (3)ignoreRecordsetname (4) fieldNames (5) keyfieldvalue.
Can anyone pls suggest ?
ACHi ,
Use FCC Like this.
Doccument Name MT_Source( Your Source Message Type name)
Doccument Namespace http://xxxxxx(Your Message type Name space)
Recordset Structure Header,1,Detail,*
Key Field Name field1
Key Field Type String
Header.fieldSeparator ','
Header.fieldNames field1,field2
Header.keyFieldValue 'H1'
Header.endSeparator 'nl'
Detail.fieldSeparator ','
Detail.fieldNames field1,field2
Detail.keyFieldValue 'D1'
Detail.ignoreRecordsetname true
Detail.endSeparator 'nl'
Let me know if you are getting any problem.
Thanks. -
Problem in Simple file to file scenario
Hello,
I am new to SAP PI 7.3. I am doing a simple file to file scenario. The source file contains key,name,id,gender,role & location field. I have done a simple mapping to create the same file in the target side. I have done all the configuration in ESR & ID.
But the problem is that in the target file ( Destination File ) i am getting only key field and the other fields are missing.
Note: In communication channel monitoring, the communication channel is functioning properly and in message monitor also, the status is 'delivered'.
The source payload also contains all the fields correctly. In message mapping (in ESR) also, the target payload is also generating correctly. But in the destination file I am getting the key field only and the rest fields are missing.
Can you please suggest me what to do and where is the problem?
Thanks & Regards,
MoumitaHello,
Do u have any MT name above Record node? If yes, then u have to change ur structre little bit. Check my reply in the thread pasted below.
problems with MessageTransformBean SimpleXML2Plain
BTW, if i am not wrong Iñaki has also suggested the same.
Thanks
Amit Srivastava -
Simple (File-XI-File)scenario
Hi,
I am going through Venkat Donela's simpe (File-XI-File)scenario Part1 and part2.
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1345. [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
But my XI did not pick up the input file. I use SXMB_MONI and look at the message monitoring. It says "No message has been selected'. I don't see "adapter monitoring" option on my "Runtime WorkBench".
Is there anybody could tell me how I can monitor the scenario execution? I checked the every step states in Venkat Donela's sample.
Any comments and advice will be highly appreciated.
MeiyingHi,
The best way to check if your file is being picked is to set the "Processing Mode to Delete"....So then you will know if your file is actually being picked...
Also go to Message Monitoring of RWB and check for the status. Because if you have content conversion problems then it will show there in MDT(Message Display Tool under Message Monitoring).
And if you are using NFS connection for Sender File Adapter, try to check for the checkBox "ReadOnly Files".
Pls go through the explanation of a simmilar scenario that i have explained below and compare it with what you have done..
Please go thru the following links and clear all your doubts.
Communication channel:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/65/b11c409ce22402e10000000a1550b0/frameset.htm">Assigning Communication Channels</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/2b/d5653fd1d3b81ae10000000a114084/content.htm">Communication Channel</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm">Configuring the Sender File/FTP Adapter</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm">Configuring the Receiver File/FTP Adapter</a>
Receiver agreement:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/56/02e63f48e58f15e10000000a155106/frameset.htm">Receiver Agreement</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/c1/5194426b44c56ae10000000a155106/frameset.htm">Creating a Receiver Agreement</a>
Sender agreement:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/db/73e03fc2269615e10000000a155106/frameset.htm">Sender Agreement</a>
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/22/522041cfb7f423e10000000a155106/frameset.htm">Creating a Sender Agreement</a>
For detailed info, I would suggest that you go through these weblogs:
<a href="/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1">Introduction to simple(File-XI-File)scenario for Starters</a>
<a href="/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2">Introduction to simple (File-XI-File)scenario for starters part2</a>
I hope it helps.
Regards,
Abhy
Message was edited by: Abhy Thomas -
Help with simple file to file BPM scenario
Hi Gurus,
I am doing simple file to file BPM scenario.
I am getting an error in SXI_CACHE with status code 99.
I activated the business process then status code changed to 2.
When i tried to activate the process again i am getting prompted to enter access key details.
Is there any other way to get rid of the error i.e., to get the status code to zero with giving access key details.Sample access key details are also greatly appreciated.Hi Bhavesh,
I tried doing that but of no use.
I registered at https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/minisap/minisap.htm
and got a mail with details.I was actually looking for access key details in the mail from sap.The details in the mail contains License key but not access key .Are the both access key and license key same? -
Cache Error in simple file to file scenario
Hi,
I installed a new xi with SP9 yesterday, and created a simple file to file scenario, but I face the error as follows while checking the SXMB_MONI,
Error Category : XICACHE
Error ID : UPDATE
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="XICACHE">UPDATE</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>HTTP status code401 Unauthorized</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>An error occurred when refreshing the XI runtime cache</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
What can be the problem?
Regards,
NickThanks Chandra,
But this did not solve my problem.
I am getting this error message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">AE_DETAILS_GET_ERROR</SAP:Code>
<SAP:P1>af.arb.dl380a-wm\arbdb</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>2: Unable to find URL for Adapter Engine af.arb.dl380a-wm</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error when reading the access data (URL, user, password) for the Adapter Engine af.arb.dl380a-wm\arbdb</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
<Trace level="1" type="B" name="PLSRV_CALL_ADAPTER" />
- <!-- ************************************
-->
<Trace level="1" type="Timestamp">2005-12-28T04:00:48Z CET Start of pipeline service processing PLSRVID= PLSRV_CALL_ADAPTER</Trace>
<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV" />
- <!-- ************************************
-->
<Trace level="3" type="T">Calling pipeline service: PLSRV_CALL_ADAPTER</Trace>
<Trace level="3" type="T">Reading Pipeline-Service specification...</Trace>
<Trace level="3" type="T" />
<Trace level="3" type="T">Pipeline service specification (table SXMSPLSRV)</Trace>
<Trace level="3" type="T">PLSRVID = PLSRV_CALL_ADAPTER</Trace>
<Trace level="3" type="T">PLSRVTYPE = =SWITCH=</Trace>
<Trace level="3" type="T">ADRESSMOD = SD</Trace>
<Trace level="3" type="T">P_CLASS =</Trace>
<Trace level="3" type="T">P_IFNAME =</Trace>
<Trace level="3" type="T">P_METHOD =</Trace>
<Trace level="3" type="T">FL_LOG =</Trace>
<Trace level="3" type="T">FL_DUMMY = 0</Trace>
<Trace level="3" type="T" />
<Trace level="3" type="T">Unknown channel type: File</Trace>
<Trace level="3" type="T" />
<Trace level="3" type="T">Pipeline service specification (table SXMSPLSRV)</Trace>
<Trace level="3" type="T">PLSRVID = PLSRV_CALL_ADAPTER</Trace>
<Trace level="3" type="T">PLSRVTYPE = AENGINE</Trace>
<Trace level="3" type="T">ADRESSMOD = SD</Trace>
<Trace level="3" type="T">P_CLASS = CL_XMS_PLSRV_IE_ADAPTER</Trace>
<Trace level="3" type="T">P_IFNAME = IF_XMS_PLSRV</Trace>
<Trace level="3" type="T">P_METHOD = ENTER_PLSRV</Trace>
<Trace level="3" type="T">FL_LOG =</Trace>
<Trace level="3" type="T">FL_DUMMY = 0</Trace>
<Trace level="3" type="T" />
<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
It seems my adapter engine has some problem, how can I solve it?
Regards,
Nick -
Error while doing File to File Scenario
All,
I am trying a simple file to file scenario - where xi picks up the file from a location and maps the message and dumps it in another location.
I am Getting the below error while doing the same .........
Time Stamp Status Description
2009-03-30 14:30:24 Success Channel Test_send_cc: Send binary file "d:\input\input.xml". Size 203 with QoS EO
2009-03-30 14:30:24 Success Application attempting to send an XI message asynchronously using connection AFW.
2009-03-30 14:30:24 Success Trying to put the message into the send queue.
2009-03-30 14:30:24 Success Message successfully put into the queue.
2009-03-30 14:30:24 Success The application sent the message asynchronously using connection AFW. Returning to application.
2009-03-30 14:30:24 Error Attempt to delete file "d:\input\input.xml" after processing failed. Retry
2009-03-30 14:30:24 Success The message was successfully retrieved from the send queue.
2009-03-30 14:30:24 Success The message status set to DLNG.
*+2009-03-30 14:30:24 Error Transmitting the message to endpoint http://filip:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 401 : Unauthorized.*
2009-03-30 14:30:24 Success The asynchronous message was successfully scheduled to be delivered at Mon Mar 30 14:35:24 GMT+05:30 2009.
And i cant see the meesages using the SXMB_MONI trasaction
please help me resolve ths issue
Regards,
Mahesh.
Edited by: mahesh uma on May 3, 2008 2:12 PMHi Uma,
Go through this links::
Hope these links are useful to you..
Urgent: Message not transmitted from AFW to Integration server
Error with huge file
File to JDBC error
Thanks,
Satya Kumar.. -
How do I know if a file is binary or not?
Hi All,
I am writing a simple program to scan the pattern of some ASCII files at some directory.
However, I want to filter out all of the binary file. I wonder if there is any way to test if the file is binary or not.
(note: can't use the file extension 'cause they could have the extension of the txt but still are binary file)
Thank You.In general, you can't reliably.
ASCII? My native language contains non-ASCII characters (8th bit set). I thank you not to consider my language "binary". There are buggy programs out there that do, and refuse to work correctly with my text files.
There are character set encodings that have "escape characters" for multi-byte values. E.g. UTF-8 encodes non-ASCII characters as multi-byte entities that look like "binary data" when viewed byte-by-byte.
The presence of NUL bytes might be a hint. Unless someone writes e.g. straight Unicode into a file; lots of NULs for ASCII text there.
If you insist on writing xenophobic software, look for 8th bit set and characters less than space (excluding tab). And damn the furriners, they should all use English anyway. -
File to File scenario using Transport Protocol FTP Problem
Hi,
my scenario is a file to file scenario using Transport Protocol FTP
there are 3 systems involved
a. computer 1 ( My system-source)
b. computer 2 (XI server)
c. computer 3 (Target system)
I want XI to pick file from computer 1 and post it to computer 3
I am logging on to XI server from computer 1(thro SAP GUI),
<u><b>Sender communication channel :</b></u>
Transport protocol:FTP
Messsage protocol: file
<u><b>In FTP connection Parameters:</b></u>
Server: computer 1 IP address
port:21
User name and PW---> I have given computer 1 Username and password.
Connection mode: permanently
Transfer mode: Binary
Folder: C:\ftproot\output
filename : given
<u><b>In Receiver Communication Channel</b></u>
Transport protocol:FTP
Message protocol: file
<u><b>In FTP connection Parameters:</b></u>
Server: computer 3 IP address
port:21
User name and PW---> I have given computer 3 Username and password.
Connection mode: permanently
Transfer mode: Binary
Put File: Use Temporary File
Folder:
eccserver\saploc\tmp
filename scheme: given
When I activate the scenario file is not getting picked from the source
In Adapter Framework: Message says up and running No message processing now
How to check FTP server is up and running on computer 1 (source system)and Computer 2 (XI server)?
What could be the problem ?
Thanks
dushanthHi
Consider that I dont have FTP installed on my computer. According to this blog
/people/shabarish.vijayakumar/blog/2006/08/01/along-came-a-file-adapter-mr-ftp-and-rest-of-the-gang
I have configured.
In sender comm channel I have given Ipaddress of computer 1 (which has a file to be picked)
In Receiver Comm channel I have given IP address of computer 3 (in which file to be posted)
and computer 2 is the XI server
Computer 1 has FTP installed
1. XI server should have FTP installed or not ? IF yes is it FTP client or FTP server or Guild FTP (according to the blog is enough)
2. Computer 3 should have FTP installed or not ?
Please help me I am really confused.
Thanks
dushanth -
Hi Experts,
I have a simple file to file scenario where file has to be sent to ip address 10.1.2.3 (receiver machine).
So first I tried using NFS , sharing a folde ron 10.1.2.3 , but the sender channel in XI showed error and was unable to find the path.
So I installed Guild ftp pro on 10.1.2.3 .....the scenario was nw working fine...
all was well untill I discoverd
when i had to send a file from 10.1.2.3 wher the file name was fixed with the time stamp
that when I use filename*.txt in the sender channel , the sender channel shows error in the communication channel monittoring..
further posts on sdn concluded that wild character * cannot be used in guild ftp...
ne idea on how I can proceeed further??
are there other softwares like guild ftp?
help appriciated..
Regards,
Teja
Edited by: Ravindra Teja on Jan 10, 2012 3:14 PMI had good experiences with WSFTP and Filezilla. You may try them.
>>further posts on sdn concluded that wild character * cannot be used in guild ftp
This is strange limitation of an FTP server.
Regards,
Prateek Raj Srivastava -
Datatypes for File to File Scenario
Dear all,
i have a question concerning a file to file to file scenario in XI.
I simply just want so send a RTF-file to XI via FTP adapter and store it on a different FTP server according to the file name. I do not need any information for the content of the file. So I do not want to perform a File Content Conversion.
I know that it is it possible to implement this scenario without using the integration engine. But for monitoring purposes I'd like to do it anyway.
My question ist, what kind of message types I will have to choose. From my understanding, the file adapter should just store the content of the file in the payload as a binary data. So does it matter what kind of data type for the message interfaces i choose in integration builder. Of course, a message mapping is not required,
Best regards
FlorianHI,
In File-XI-File scnearios, you need to have Sender File Communication Channel to pick the file and Receiver File Communication Channel to send the file.
You can create a Data Type something like this
<DataTypeFile>
<Row> ...</Row>
</DataTypeFile>
Also look into this Blog-
XI in the role of a FTP
FTP receiver adapter does not transfer (STORE) file
Thanks
swarup -
ALEAUD in IDOC to File Scenario
Hi,
I have a IDOC to file scenario in which im sending the PAYEXT IDOC from SAP to a bank as the IDOC-XML.
ie the user will create a payment in the SAP system , this shoud trigger an IDOC to XI. XI puts the IDOC-XML sturcture into a FTP folder path from which the bank will pick it up. Now the bank has to send an acknowledgement(asynchronously) that the payment was processed. And this response should be captured and returned to the user.
can we use ALEAUD as the acknowledgement or does using ALEAUD make no sense here?Hi,
Assuming that the bank will send you a file to the FTP server you can simply pick up this file and mapi it to the Systat IDoc. I would assumt that the IDoc status's would not be in the file so you would have to do some value mapping or other logic to determine the IDoc status codes that you want.
The IDoc is very simple with few fields so the mapping should not be a problem.
Please note you do not use BPM for this scenario. In essence this would be a new flow of File --> PI --> IDoc
Import the STATUS.SYSTAT IDoc into the Design and play from there, you can make a POC now and test the functionality which would probably be best for you at this point.
Let me know if you need more details
Edited by: Alexander Ong on Jul 14, 2009 4:57 PM
Maybe you are looking for
-
ABAP Query, To list both, the PO created and PO modified for a given period
Hi I want to create a query that list the purchasing orders created or modified during a given period. however, the creation date and the modification date are two different fields stored in differents tables. if I have these two fields in the select
-
How do I save a PDF to a disc?
-
Cant print photos in Photoshop 12 Photo Editor but can from Organizer
I cannot print single photos in my Photoshop 12 Elements Photo Editor but I can through the Organizer. I have no problems printing photos from all other software on my computer. This is a recent development. I'm using a PC [Windows 7]. Would reinsta
-
Hello, since today, before opening a pdf document, I reach a dark page where I have to click to activate the Adobe Acrobat plugin. I have Adobe PDF Plug-In For Firefox and Netscape 10.1.5 and I knew it was outdated because I check regularly the "chec
-
Exchange 2003 - Continous password prompts in Outlook 2010
Hi. A customer is experiencing continous password prompts in Outlook 2010. Outlook is configured against the Exchange 2003 BE server (FQDN) and Outlook Anywhere is configured to sync.customer.com with a valid 3rd party certificate. Outlook is confi