Mail Adapter and File content conversion.
I have a scenario to send data from SAP to 4 different boards. I have used a Multi mapping for this scenario. I am using Proxy for SAP to xi and SOAP, File and Mail adapter for the external connections.
Questions:
1) I need to send a mail in CSV or Excell format in one scenario. I have used AF_StrictXml2Plain Module but its not working? any thoughts?
2) In the file adapter I have to add the YYYYMMDD (current Date) to the file name? when I use timestamp i get the time too, any way of getting only date? I cant use the Variable substitution as i dont have date in my payload.
3) Receiver File content conversion:
My Message Type Looks like this
MT_XX_XX
Row
title
xxx
I have used these parameters:
Recordset Structure: Row
Row.addHeaderLine : 0
Row.fieldSeparator : ,
Row.endSeparator: 'nl'
am I doing something worng, the file content conversion doesnt work.
Please let me know
Thanks in advance
Hi,
Make sure u are using the bean before the mail adapter bean.
Before using the file content conversion make sure that there are no substructures in it , in order to use addheader line as 0. else use addheaderline 3 and give the headerline as comma seperated values
for e.g if this is the type then addheader line= 0
Type 1 :
Record_Mt
Row
field1
field2
else if this the type then addheaderline = 3
*Type 2: *
Record_Mt
Row1
field1
field2
Row2
field1
field2
add module like this
localejbs/sap.com/AF_Modules/StrictXml2PlainBean
with the module key e.g. key
for type 1 struct (as above )add parameter- key as singleRecordType and value as Row with comma seperated value. (remember header line is 0)
for type 2 structure (as above )add parameter- key as recordTypes and value as Row1, Row2 with comma seperated value. (remember header line is 3)
Similar Messages
-
Error in Receiver File adapter using File content Conversion
Hi,
I am getting the following error in the receiver file adapter.
Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'statement.fieldFixedLengths' or 'statement.fieldSeparator' is missing
I am using the below parameters for FCC:
Recordset Structure - statement
statement.endSeparator - 'nl'
statement.fieldSeparator - '0X09'
statement.fieldNames -xblnr,wrbtr,newbs,kostl,newko,prctr,xref1,rke_wwfud,rke_wwst3,blart,bukrs,bldate,budat,gjahr,monat,ctype,waers,bktxt,posnr,wbs_element,mwxkz,businessplace,businessplace,c_waers,c_wrbtr,g_ctype,g_waers,g_wrbtr,h_ctype,h_waers,h_wrbtr,trade_id,lob,sgtxt,zuonr,reason_rev,ldgrp,tcode,lifnr
ignoreRecordsetName - true
Please let me know where i am going wrong.
Thanks,
AparnaHi Aparna,
I feel the problem in your content conversion parameters is with
statement.fieldNames and ignoreRecordsetName
When you are confirguring receiver file adapter for file content conversion the above one is not required. Please refer below link for details on configuring content conversion in file adapter
[http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm]
Hope this helps !!
Regards,
Amit -
Purpose of message protocol file and file content conversion
hi
i am currently working in idoc to file scenario,
In what cases we will go file and file content conversion in message protocol for file adapter.
can anyone specify the real significance of it? bcoz this may help me and continue my scenario in its suitable path.
Regards
Saravanakumar PKHi,
In XI (internal) all XML message are based on the XI Message Protocol.
See: http://help.sap.com/saphelp_nw70/helpdata/en/b6/0b733cb7d61952e10000000a11405a/frameset.htm
XI Protocol is nothing but an SAP XI extension of SOAP protocol and SOAP protocol is nothing but a SOAP request in a HTTP protocol. SOAP request is nothing but SOAP extension of an XML message. Hence finally it drill downs to the fact that XI message is in fact an XML message with some extra information in the header which are SAP specific like the SAP Runtime, SAP Hoplist, etc...
File Content Conversion
Integration Engine understands only XML messages.Now if u r handling normal text file such as 'tab separated' file,'# separated' file, or a CSV file, you need to convert the content of the file to XML and File Content Conversion mechanism helps to do this job.This File Content conversion mechanism(option)is present with the File Adapters.both Sender and Receiver.
How to do FCC:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
/people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
Thanks
Swarup -
File Sender adapter with File content conversion
Hi
I'm having problems picking up a flat file that has some junk characters in the file.
I'm usign a file sender adapter with file content conversion. The adapters shows the following error-
Conversion of complete file content of to XML format failed around position 0: sun.io.MalformedInputException
this is the sample data with junk char's -
A20099201009999009999060815160505051700130008151vÿÿÿÿ³ r 0OK0476 31N016227241915840IV 00840 ÿÿÿ ÿ ÿÿÿÿÿÿÿÿ ÿ ÿÿÿ
There is not much in the file content conversion. This is a fixed length file, I'm just pickign it up & passing it to an inbound proxy. All my processing is in the proxy.
I'd appreciate any suggestions.
Thanks
RachanaHi Rachana,
Do you use a specific "encoding" like UTF-8 or ISO-8859-1 in your Sender CC?
To be simple, Encoding is linked to country, you can find all "iso-nnnn" via google or some of them in sap help.
http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm
Moreover, with your source file opened thanks to Notepad (for instance), use option "save UNDER", you will the encoding use by your file
Mickael -
Error in configuring File Sender Adapter with File Content Conversion
Hi
i am designing a File to File scenario using file content conversion in which the input is comma separated file and output is a XML document.
mentioned below are the configuration information:
Recordset Name: Substr
Substr.fieldSeparator: ,
Substr.endSeparator: 'nl'
Substr.fieldNames: Name, Password
Substr.keyFieldValue: Name
and the error i can see in adapter framework is:
Sender Adapter v0830 for Party '', Service 'FileContentConversion':
Configured at 14:30:45 2005-04-07
Initialization error: Conversion initialization failed with java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
Mandatory parameter 'Substr.fieldNames': no value found
plz help me ASAP.
thanks and regards,
Varun JoshiHi Varun...
Regarding ur error.....the name and password u send in csv is not getting recognised.. so u have to check the data type structure.
there must be a recordset name and subelement must be recordset structure..the data type must be
<datatypename>
<recordsetname>
<recordsetructurename>
<name>
<password>
please try in this format and ur name and password will get recognised -
Sender File Adapter: Flat file content conversion to "multileveled" XML
Hi all,
I would like to do following conversion with file adapter:
- Input flat file schema:
A...
B,,,
C:::
- Desired XML form:
<mesage>
<A>
<B>
<C>:::</C>
</B>
</A>
</message
>
All found examples (internet or XI documentation) do offer only "flat" XML option:
<mesage>
<A>...</A>
<B>,,,</B>
<C>:::</C>
</message>
Does anybody have an idea ?
Thanx and regards
JuricaFile Adapters content conversion does not supprot such a nested strucutre currently.
The only format supported is the one shown in ths link,
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Either write a module that will do this conversion or Change the datatye for the source to the format shown in help.sap.
Regards
Bhavesh -
Receiver File Adapter with File content Conversion
I have a requirement to send 2 different files to the target directory. Source is the same and different mapping for the 2 files.
This I can achieve through multi-mapping but there is a problem. How can I use the File content for receiver File adapter which is using Multimapping.
The structure of the 2 files also different.Why would you need FCC on receiver file adapter? If you need different files to be generated from the source, you could create two receiver channels with different mappings and just add them to the same Receiver Detemination. Isn't feasible?
-
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 -
PI 7.1 Error:- Receiver Adapter with File Content Conversion
Hi,
I am doing XML to Flat file scenario in PI 7.1.
I have done Recevier side below configuration:_
Recordset Structure - Contact,*
Contact.fieldNames Name,LastName
Contact.fieldFixedLengths 10,20
But still it is throwing error in Recevier Communication channel monitoring.
ERROR-
Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '.fieldFixedLengths' or '.fieldSeparator' is missing
Do the needful.
Thanks,
Anshulyou never give the occurrence in the receiver recordset structure.
i.e it will never be,
a,*,b,*,c,1,d,1 etc but it would be just a,b,c,d
ex. /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion -
Multi mapping and File Content Conversion
Hi,
I've created a similar interface to the the one in this blog
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
In the Config, I receive a CSV and use FCC in the File Adapter to build the XML file. Because of the multimapping, XI adds the following to my Message Mapping
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
Do I need to add this XML to the FCC??No,you dont need to add extra tags.
Those tags are only for XI internal processing.
Thanx
Aamir -
File-Sender: Verification of file content during file content conversion
Hello,
I have a question regarding file verification when using the file-sender adapter.
I got a flat file (.csv) that I convert into XML with the file-sender adapter and file-content-conversion.
In the file there is a column RecTyp that is my KeyFieldValue. Possible values for RecTyp are B, D, U, T.
So far so good. All this works perfectly.
If (due to an error) there is another value in RecTyp than the 4 mentioned above (B;D;U;T) the file adapter ignores this row today. And here begins my issue:
I want to change this behavior. That means in detail, I want to check if there is another value in my KeyFieldValue RecTyp than specified. If this is the case an exception should be thrown. The whole message should not be delivered.
We had the idea to use the module-processor for this verification .
But may be there are other suggestions. Or may be some one can provide an appropriate module that is already written, etc .
Does anyone have an idea?
Kind regards,
TobiasHi,
It is better to pick the file in generic way i.e Row by Row and then go with the validation with the help of Adapter Modules or in the Mapping.
For more-
/people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
Thanks,
Moorthy -
Doubt regarding Sender adapter file content conversion to RFC
Hi Experts,
Below is the my Source and Target XML structure ( i have creaated source structure same as target RFC structure), This scenario is working fine when i give XML file as input. File -> XI -> RFC , xml file is able to update the information in R3.
How should i configure sender file adapter for file content conversion for above structure(in this case input is fixed lenth text), and i could able to change source structure according to our req, without changing target RFC strucuture.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT_I>X</COMMIT_I>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>testxml</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
I have configured sender file adapter with FCC like :
Document name as: MT_HSA_IDNumber
Document name space as: urn:passhe.com/UpdateIdNumberISA32
Record structure as: COMMIT_I,1,IDENTIFICATION,1
COMMIT_I.fieldNames : COMMIT_I
COMMIT_I.fieldFixedlengths: 1
IDENTIFICATION.fieldNames: STUDENT,ID_TYPE,ID_NUMBER,VALID_FROM,VALID_TO
IDENTIFICATION.fieldFixedlengths: 12,6,60,8,8
i am getting error like this: even when i change source structure like below metioned:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_HSA_IDNumber xmlns:ns0="urn:passhe.com/UpdateIdNumberISA32">
<COMMIT>
<COMMIT_I>X</COMMIT_I>
</COMMIT>
<IDENTIFICATION>
<STUDENT>6500001191</STUDENT>
<ID_TYPE>FS0030</ID_TYPE>
<ID_NUMBER>idnumber1</ID_NUMBER>
<VALID_FROM>20070421</VALID_FROM>
<VALID_TO>20091231</VALID_TO>
</IDENTIFICATION>
</ns0:MT_HSA_IDNumber>
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'COMMIT_I.fieldFixedLengths' or 'COMMIT_I.fieldSeparator' is missing Consistency check: no. of arguments in 'COMMIT_I.fieldFixedLength' does not match 'COMMIT_I.fieldNames' (0 <> 1)
Please help me out
thanks
dhanushHi Dhanush,
Try giving the Sender FCC this way for the source structure you have mentioned above.
Record structure as: COMMIT,1,IDENTIFICATION,1
COMMIT.fieldNames : COMMIT_I
COMMIT.fieldFixedlengths: 1
Hope this helps.
Thanks and Regards,
Induja -
Sender Adapter File Content Conversion
Hi everyone,
Can someone help me out here?
For some reasons, out of the fields declared, only 20 gets filled!
Scenario, I've configured the file sender adapter with file content conversion. It's picking up an fixed length ASCII file.
Here are the Content Converion Parameters:
Document Name: MT_Site
Recordset Name: Rootnode
Recordset Structure: Site,*
Recordset Sequence: Ascending
Site.fieldNames= Site_Number,Participant_Number,OPIS_Terminal,ntework_list,tax_code1,tax_code2,tax_code3,tax_code4,CFN_Product,CFN_Product_1,CFN_Product_2,CFN_Product_3,CFN_Product_4,CFN_Product_5,CFN_Product_6,CFN_Product_7,CFN_Product_8,CFN_Product_9,Name,Address,City,Province_state,Region,Filler
Site.fieldFixedLengths= 6,4,4,6,2,2,2,2,2,2,2,2,2,2,2,2,2,2,30,26,26,2,1,1
Site.processFieldName= fromConfiguration
Site.lastFieldsOptional= YES
Site.endSeparator= 'nl'
So only the first 20 fields gets filled!
Thanks for your help on this!check if the number of characters in the file matches the total in the content conversion for one record line.
if ur message type has three fields a1,b1,c1 of length 10,10,5 respectivvely and the same is maintained in CC, if u have the file data as 123456789abcdef the data for <b>a1</b> will be 123456789a and for <b>B1</b> it will be bcdef and no data for C.....hence this check
Message was edited by:
Prabhu S -
File Content Conversion and Empty file issue
Hello,
The issue is :
I have configured a file sender adapter with file Content Conversion. I have 2 kinds of records Header and Items.
i have defined the 'Key Field Name' based on the first character of each line of my flat file and the values associated :
Header.keyFieldValue = 1
Item.keyFieldValue = 2
Flat file example :
1;Headerfield1;Headerfield2
2;ItemField1;ItemField1;ItemField1;ItemField1;
2;ItemField1;ItemField1;ItemField1;ItemField1;
2;ItemField1;ItemField1;ItemField1;ItemField1;
and everything works fine !
But now imagine you receive a bad file like this :
xxxxx;ohhohoh;llllll
y;sdfsdfs;zezerz;zerzer
e;zerzerze;zezerzerzer
The result is : IS receive nothing and no alert is generated ?!!!???
What i have seen is that the adapter doesn't find any corresponding value for keyFieldValue so it consider that the flat file is empty and i do nothing, the file is archived and that's all no alert is generated ????
But i want to receive an alert for checking that the processed flat file was not correct !
If anybody has an idea, it will be great !
Regards,
VincentHi Vincent.
Sometimes it really #!@#%%#.. me off when customers excepts that XI will solve their whole organization interfacing problems (and the world hunger as well...:)...
even when it comes to the responsible systems that creates the file(sometimes with bugs and problems even before XI came to the org.).as in every developed application or out of the box one, the application has to take care of its outputs and deal with errors. when it cant deliver what other systems expects her to it has to inform some one...
When it comes to the Adapter frame work XI expects the system in its landscape to be responsible for the data they send (well formed and with the defined structure...IDocs,XML,flat files).
as mentioned in my colleagues previous postings you can take care of data verification during mapping and so..
I belive it is possible to monitor the incoming file before it is parsed to XML (not sure it is the right way to) and maybe we'll get a solution to that in the future (today we can monitor the comm. channel wether its configures well or not,maybe it will be possible in the future to alert when an incoming file is empty)
Regards.
Nimrod -
Regarding file content conversion and jdbc adapters
hi
can any one send me the details about the sender jdbc adapter and the receiver jdbc adapter.
i need the output of sender jdbc adapter(structure)also fro the receiver jdbc adapter.
for file content conversion -
can any one send abt the sender and receiver of the FCC adapter.
also provide some links abt these in blogs.
thanks in advance .Hi..
You can search those links in SDN.
FILE to JDBC Adapter using SAP XI 3.0 --Receiver Jdbc adapter .
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/jdbcTOJDBC& ---for both sender and receiver jdbc adapter configuration
Content Conversion (Pattern/Random content in input file) ---for FCC
Regards,
Leela
Maybe you are looking for
-
How do you replace an existing MUSE site with a completely new version?
I am working on a complete revamp of my MUSE website. I do not want to take down the current one until the new version is ready... Do I have to delete the current version and then relaunch the new one? The site is being hosted by Business Catalyst. P
-
G6 Zoom Knob is stuck!!
I bought this Canon G6 in 2004. it has been a good camera. A few issues i have is that the rubber habd grip is coming off, the LCD swivel screen is loose, even thoiugh the two screws are still very tight, and FINALLY, just yeaterday i was taking pho
-
Just purchased MBP with OSX 10.8.5....
I bought this off of eBay and I love it. I also purchased a old iMac that has Snow Leopard 10.6.3 on it. I read that when you purchase and download the OS through the App Store that you can put it on all of your computers. Since the MBP came with it
-
IPhoto as Library and Adobe Elements Organizer as download client
I wanted to use Adobe Elements 9 Organizer as the download client as I can actually see image files saved and grouped by folders and iPhoto as library and creative authoring. Will using iPhoto to create library from Pictures Folder (those saved by El
-
Hi, i want a chart graph rotate 90 degrees but i do not how have somebody a idea? thanks