File adapter @ receiver end using fieldFixedLengths
Hi ,
I am using file adapter @ receiver end using content conversion.
Using field separator as 'nl'.
When i open file in Hex mode it's showing the field separator as 2 Cariage returns(CR) & 1 line feed(LF).
But the requirement is only 1 CR n 1 LF . I tried giving like this,
Datarow.fieldFixedLengths : 15,15,15,15,10,10,10,10
Datarow.endSeparator : '0x0A' or '0x0D'
but da result is same...2 CR n 1 LF..
even if i dont give endseparator then also same thing is happening..
regards,
Kishore
Hi Kishore,
Try using fieldseparator directly, instead of working around with fixedFieldlength.
cheers,
Prashanth
Similar Messages
-
Problem in file adapter @ receiver end
Hi ,
I am using file adapter @ receiver end using content conversion.
Using field separator as 'nl'.
When i open file in Hex mode it's showing the field separator as 2 Cariage returns(CR) & 1 line feed(LF).
But the requirement is only 1 CR n 1 LF .
Appriciate ur help..
Regards,
KishoreHi
I tried giving like this,
Datarow.fieldFixedLengths : 15,15,15,15,10,10,10,10
Datarow.endSeparator : '0x0A' or '0x0D'
but da result is same...2 CR n 1 LF..
even if i dont give endseparator then also same thing is happening..
Regards
Kishore -
Receiver File adapter content conversion using StrictXml2PlainBean
Hi All,
For receiver file adapter i am using the module StrictXml2PlainBean, and also i mentioned the module configuration like this
parameter name parameter value
recordTypes Header,TransactionHeader,TransactionDetail,TransactionTrailer,FileTrailer
FileTrailer.endSeparator |\n
FileTrailer.fieldSeparator |
Header.endSeparator |\n
Header.fieldSeparator |
TransactionDetail.endSeparator |\n
TransactionDetail.fieldSeparator |
TransactionHeader.endSeparator |\n
TransactionHeader.fieldSeparator |
TransactionTrailer.endSeparator |\n
TransactionTrailer.fieldSeparator |
But when i send the idoc, The receiver CC is throwing an error
Message processing failed. Cause: com.sap.aii.af.modules.conversion.xml2plain.ConversionException: Invalid structure name encountered during conversion: Transaction at XML element MT_DeliveryOrder,Transaction
My actual structure is
MT_DelvOrder
Header 0...1
Transaction 0....Unbounded
TransactionHeader 1..1
TransactionDetail 0...unbounded
TransactionTrailer 1...1
FileTrailer 0...1
The module is checking for the Transaction node,but i require the rest 3.
Same configuration i have done successfully with FCC without using the module....
So can any one suggest me where i am missing... why the module is pointint towards, the Transaction cant i ignore this node . and continue with the rest???
Regards,
Sridhar
Edited by: sridhar reddy kondam on Aug 10, 2009 12:35 AMHi Rajesh,
The same FCC configuration was working fine with FCC and when i am using this module configuration i am getting the prob...
In the file i need the Header,TransactionHeader,TransactionDetail,TransactionTail,Filetrailer
my sample output file is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_DeliveryOrder>
<Header>
</Header>0...1
<Transaction>0...Unbounded
<TransactionHeader> 1..1
</TransactionHeader>
<TransactionDetail> 0...Unbounded
</TransactionDetail>
<TransactionTrailer>1...1
</TransactionTrailer>
</Transaction>
<FileTrailer> 0...1
</FileTrailer>
Any suggestions will be great help...
I think i need to go with other options without using this module....
Regards,
Sridhar
Edited by: sridhar reddy kondam on Aug 10, 2009 6:03 AM -
How to use File Adapter Receiver to write attachments
Hi,
i have a scenario, in which our own XInotes adapter sends an XIMessage from an IBM Lotus Notes database into XI. This XIMessage contains an XML document as application main document and several PDF files as additional attachments
On the receiver side, i must use a File Adapter to write both the XML documents and the PDF attachments into a directory.
The problem is i don't know how to use the file adapter receiver to write the attachments. In the Channel Monitoring, i can see that all PDF files are transferred to the file receiver. But the file adapter writes only the XML document into the directory.
I've also tried the AF_Modules/PayloadSwapBean, but it can only swap one PDF file into the application payload. And the file name must be hard coded in the module configuration as swap.KeyName.
Could anyone give me any ideas?
thanks a lot in advance
Xianghi,
receiver file adapters do not supprt attachments.
Only File Sender adapter is capable of handling attachments not the receiver.
http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
Configuring the sender FILE adapter
The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File
access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured
under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.
Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the
MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format
and also change the file extension.
The PayloadSwapBean module is used to replace the application payload of the XI message that holds the
data with another payload which is appended to the message as an attachment. In our case, the payload
would be file1.xml whereas the attachment would be file1.jpg
The swap module is denoted in our scenario with the module key swap. It has two parameters from the
MIME header.
regards,
pradeep. -
Unable to clone File Adapter receiver channel for parallel processing
Hi Experts,
I am using variable substitution for File - RFC - File with out BPM scenario(using request response, oneway bean).
While i placed the file in the sender FTP folder, the file didnt get picked up, but in communication channel monitoring, i am getting error ' Unable to clone File Adapter receiver channel for parallel processing'.
Can anybody provide me suggestions to solve this error.
Note : without variable substitution , the interface is working good.
Is it due to, i am trying the source structure field in response file adapter?Hi,
In your CC, do you use some additional paramaters ?
like these one of point 47/48 of [Oss note 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter|https://service.sap.com/sap/support/notes/821267]
Maybe there is conflict with a parallel connexion and the bean used to do asynch-synch bridge...
Mickael -
Adapter moduler in file adapter receiver - get Target Directory from param
Hi everybody,
We are in PI 7.1
I need in an adapter module (file adapter receiver) to access to the Target Directory comming from parameters
I foound the code in a weblog
/people/sap.user72/blog/2005/07/15/copy-a-file-with-same-filename-using-xi
Here is the code I found
public ModuleData process(
ModuleContext moduleContext,
ModuleData inputModuleData)
throws ModuleException {
Object obj = null;
Message msg = null;
try {
Channel ch = new Channel(moduleContext.getChannelID());
obj = inputModuleData.getPrincipalData();
msg = (Message) obj;
XMLPayload xmlpayload = msg.getDocument();
String path = ch.getValueAsString("file.targetDir");
if (!path.endsWith("
") && !path.endsWith("/"))
if(path.indexOf("
")!=-1)
path+="
else
path += "/";
if (xmlpayload != null) {
convert(xmlpayload.getContent(), path);
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {}
return null;
private void convert(byte[] bs, String path) throws Exception {
String bs_out = new String(bs);
String filename =
bs_out.substring(
bs_out.indexOf("<FileName>") + 10,
bs_out.lastIndexOf("</FileName>"));
bs_out =
bs_out.substring(
bs_out.indexOf("<Base64>") + 8,
bs_out.lastIndexOf("</Base64>"));
byte bb[] = com.sap.aii.utilxi.base64.api.Base64.decode(bs_out);
File f1 = new File(path + filename);
FileOutputStream fos = new FileOutputStream(f1);
fos.write(bb);
fos.close();
The object Channel come s from the package import com.sap.aii.af.service.cpa.Channel;
The jar is in the build path (com.sap.aii.af.service.cpa.jar);
When I write in NWDS
Channel ch = new Channel(moduleContext.getChannelID());
NDWS gives me an error "Cannot instantiate the type Channel".
Can somebody help me about that, please?
Does that code dosn't work in pi 7.1?
Thanks in Advance for your help.
Best Regards.
E. Koralewski
Edited by: Eric Koralewski on Feb 3, 2011 1:40 PM> When I write in NWDS
> Channel ch = new Channel(moduleContext.getChannelID());
> NDWS gives me an error "Cannot instantiate the type Channel".
it should be:
Channel ch = (Channel) LookupManager.getInstance().getCPAObject(CPAObjectType.CHANNEL, moduleContext.getChannelID());
(taken from sample module ConvertCRLFfromToLF)
http://help.sap.com/javadocs/pi/pi711sp03/index.html?com/sap/aii/af/service/cpa/Channel.html
Edited by: Stefan Grube on Feb 3, 2011 2:02 PM -
Hi,
I am facing some problem in FCC for Receiver adapter. It has to convert from XML to CSV File.
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:PaymentFull_Target xmlns:ns0="http://sdn.com/Payment">
- <RECORDSET>
- <Header>
<LineItem>1</LineItem>
<SaleNumber>102</SaleNumber>
<TransNumber>105</TransNumber>
<Store>1326</Store>
<variant>Z6</variant>
<TransType>NEW</TransType>
<Adjustm_Type />
</Header>
- <Header>
<LineItem>2</LineItem>
<SaleNumber>102</SaleNumber>
<TransNumber>105</TransNumber>
<Store>1326</Store>
<variant>Z6</variant>
<TransType>NEW</TransType>
<Adjustm_Type />
</Header>
- <Header>
<LineItem>3</LineItem>
<SaleNumber>102</SaleNumber>
<TransNumber>105</TransNumber>
<Store>1326</Store>
<variant>Z6</variant>
<TransType>NEW</TransType>
<Adjustm_Type />
</Header>
</RECORDSET>
</ns0:PaymentFull_Target>
Output File is coming only with lineitem values , remaining fields are not coming.
*1,2,3*
FCC Used...
RecordSet Structure -- Header
Header.fieldNames -
LineItem,SaleNumber,TransNumber,Store,variant,TransType,Adjustm_Type
Header.fieldSeparator----- ,
Header.endSeparator----- 'nl'
Did I miss anything.. any idea whats going wrong?
Thanks
DeepthiHi Deepthi,
Mention the occurrence of header in Recordset
You specify like this:
Recordset: Header, *
Header.fieldSeparator : u2018Field Separatoru2019
-->For FCC on Receiver side you donu2019t have to mention the field names.
-->The u2018endSeparatoru2019 parameter needs to given for substructure only
Check this links:
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
/people/shabarish.vijayakumar/blog/2007/08/03/file-adapter-receiver--are-we-really-sure-about-the-concepts
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
Rgds,
Akhila -
File adapter receiver channel is not initialized.
Hi
iam wrking idoc-file scenario, as per the requirement i have created 4datatypes 4 mapping in IR with 4 communaction chanles in ID. the scenarios is working fine with 3 mappings.but in 4 the scenario
the file genaraing properly , i have cheked in SXMB_moni payload but it is not creating in destination system
in runtimeworkbench->message-monitaring-> adpater
i have find the below issues
1) File adapter receiver channel CC_DDPWCS_US_TO_101 is not initialized. Unable to proceed: null Error 2) Exception caught by adapter framework: File Adapter configuration not initialized:
3) Error Delivery of the message to the application using connection AFW failed, due to: File Adapter configuration not initialized:.
please tell me how can i reslove the issue
thanks
niruHi
i have checked the content convertion and changed as below
the structure is
Row.fieldNamesTrans_Id,Order,Item,Product_Id,Product_desc,Lot_nr,Ship_via,Exp_qty,Carousel_loc,compart,Destination,Label
Row.fieldSeparator ,
Row.fieldFixedType char
Row.endSeparator 'nl'
Row.addHeaderLine 4
Row.headerlineTrans_Id,Order,Item,Product_Id,Product_desc,Lot_nr,Ship_via,Exp_qty,Carousel_loc,compart,Destination,Label
even though iam facing the issue. iam wondering "_i have used in the similar structure for other 3 mappings in same scenario those are working perfect "_ but based on condition if 4 th mapping is executed iam facing the problem
error message in RWB/Adapeters
File adapter receiver channel CC_DDPWCS_US_TO_101 is not initialized. Unable to proceed: null
Error Exception caught by adapter framework: File Adapter configuration not initialized:
Error Delivery of the message to the application using connection AFW failed, due to: File Adapter configuration not initialized:.
please help if any of you face the similar situation , i struck-up long ago here
regards
niru -
File Adapter receiver channel : change encoding attribut in xml file
Hi,
How can I change the XML encoding attribut
from:
<?xml version="1.0" encoding="UFT-8"?>
to:
<?xml version="1.0" encoding="ISO-8859-1"?>
in my File Adapter, receiver channel ?Hi,
plz chk the following link:
http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
● Select the File Type of the document:
○ Binary
○ Text
Under File Encoding, specify a code page.
The default setting is to use the system code page that is specific to the configuration of the installed operating system.
The content of the message is converted to the corresponding code page before the message is saved as a file.
Permitted values for the code page are the existing Charsets of the Java runtime. According to the SUN specification for the Java runtime, at least the following standard character sets must be supported:
Regards -
A problem with the File adapter receiver
Hi people,
In the Integration Monitoring the system represent this problem:
File adapter receiver channel Mainframe_FA_StructureAch_CC_RC is not initialized. Unable to proceed: null
Any body can help me!!
Thanks!!Hi ,
Just check is it Activated ? Go to RWB->Adapter Monitoring
Check the status there ..
To more- Go to service market place to view the Adapter Monitoring PDF
https://websmp103.sap-ag.de/~sapdownload/011000358700002757652005E/HowtoMintorAF.pdf
Hope this helps.
Regards,
Moorthy -
Hi All,
File to File (CSV)
At the receiver side i am not getting the file it is showing problem in runtime workbench: File Adapter Receiver Channel is not initilaized Unable to proceed : null.
Thanks,
Satish.<i>File Adapter Receiver Channel is not initilaized Unable to proceed : null.</i>
>>>
1. check if your adapter is active
2. in case you have FCC just remove the same for the time being and check if it can pass the XML version (without FCC). this will confirm if it was a problem with your FCC parameters.
Let us know the proceedings !!!!! -
Same file name from sender to receiver file adapter with out using UDF
Hi All,
I am working on FILE TO FILE. My requirement is same file name from sender to receiver file adapter. Is it possible to do using only Adapter Specific message properties? i mean with out using UDF.
Thanks
KarthikHi,
>>>Is it possible to do using only Adapter Specific message properties?
yes
just enable Adapter Specific message properties in sender and receiver channel for file name
and you're done
Regards,
Michal Krawczyk -
NETWEAVER 7.0 SP15 FOR Processing Integration System
Scenarios : ecc6.0 <-> PI7.0 <-> FTP Server
PI connect to ecc6.0 use RFC Adater, PI connect to FTP use FILE Adapter,
when i set File Name Scheme "回执固定资产.RB" in File receive channel,i got a error message :
(use t-code sxi_monitor check logs, found the error happened at step "CALL ADAPTER")
com.sap.aii.af.ra.ms.api.DeliveryException: ??????20090213-102753-866.RB: The filename, directory
name, or volume label syntax is incorrect.
for testing , i replace the 'File Name Scheme' with 'TEST.RB' ,result is right.
PLZ Help. 3Q
by EricHi,
Just do the following step.
1. Counter check Target Directory is their in FTP location.
2. For testing purpose select the option Create Target Directory in File Adapter
3. Go to the Communication Channel Monitoring in RWB check exact reasong for error.
4. What is their in Processing Parameters in File Communication Channel.
5. Copy past the Error message in Communication Channel Monitoring in your next post.
With Regards
Sunil
Edited by: Sunil Pandey on Feb 13, 2009 11:05 PM -
File Adapter Receiver Asynchronous
Hi ,
I've read a couple of times now that a file adapter which is operated as a receiver is always asynchronous. This means he cannot be used in conjunction with a synchronous RFC.
Is that right ?
I haven't found anything about the asynchronous behavior of the file adapter in any official documentation.
Can please someone provide me with a link ?
Thanks in advance.
Best regards,
FrankHello,
You can use it synchronously by choosing "Best effort" in quality management of your sender file adapter.
Or if you want you can define synchronous RFC in a BPM step, independently of your sender interface.
Regards,
Chris -
Sender file adapter - Can I use *.xml for the file name
Hi Gurus,
I have some interfaces where I need to pick the file from a directory. The name of the file will have Data<i>time stamp</i> as the naming convention. Can I use *.xml to pick up my files from this directory?
The help.sap.com documentation says that we can use this naming convention.
<b>
● File Name
Specify the name of the file that you want to process. The name can contain placeholders (*, ? (placeholders for exactly one character)) so that you can select a list of files for processing.
</b>
I tried using *.xml for my file name in the communication channel, XI is not picking up this file.
Please let me know if you have the solution.
Thanks
KalyanMurthy,
Thanks for the reply.
I am using GuildFTP tool as my FTP server. In this tool, all the permissions were given for the file to pick up.
The status of the file is good.
Where in the file adapter configuration I have to select 'Read-only'?
The file adapter is working perfect with the exact name of the file.
Thanks
Kalyan
Maybe you are looking for
-
Firefox crashes and I can't open it. I have done everything you have listed
Firefox crash reporter comes up every time I try to start it. It won't open in safe mode. I deleted firefox per your instructions including in the programs files. I restarted computer and downloaded firefox to my computer desktop. I reinstalled and n
-
How can i access the jsp file in a asp file
Hi every one.. we have two projects one is developed in ASP and one is developed in JSP both are running in two different locations. now i want to include a jsp file from one project to ASP file in the other project. please tell me how can i insert t
-
How to create Process Integration in SLD
Hello colleagues, I need create Process Integration in SLD my version is PI 7.4. In development system I have create this process How to create in production? Thanks.
-
I am unable to copy photos from my iPad to my pc
-
Pop up buttons in template?
yeah , ive had a duplicating issue with the template... figured that out, now, i want to add a DW8 pop up menu to my template and it is greyed out, then we tried to make the button and pop up in an html file and copy it.. copy it and it dosent work ?