Sender File adapter with nested structure
friends,
Source structure is looks like below
<mt_details>
<header>
<key> </key>
<id > </id>
<name> </name>
<contact>
<key> </key>
<pno> </pno>
</contact>
</header>
</mt_details>
If both the nodes i.e <header>&<contact> are at same level then the sender adapter picking the file as requried.But in this case the <contact> node is subnode of <header> Please help how in configuring the sender file adpter(Fixed file).
Sample file :
HDRE100testname
PHO999999999
Ravi Pal
Hi Ravi,
I dont think this is possible, Just read the following link,
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
and the content under FILE STRUCUTRE says,
<i>The structure of these substructures must be fixed and corresponds to the description of the row structure logic in the table below.</i>
The strcuture that you want is not supported.
Regards,
Bhavesh
Similar Messages
-
Sender File Adapter with file conversion
Hi guys,
Im using a Sender File adapter with file conversion. The message to be processed has a structure with fixed lengths and in your content are some values that needs to be ignored.
An example:
value1 <b>value2</b> value3
I want to ignore <b>value 2</b> but I cant find a parameter for that! Do I need to define dummy fields on my data type and ignore those fields during mapping? Or there is a specific parameter for that?
Thanks in advance,
Ricardo.hi,
there always is another way:)
you can import the whole line to one field
and cut it inside the adapter module
(then you can define start and stop of the substring that you need to use)
but of course it's not standard even though it's quite easy to achieve in java
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a> -
How to use File Adapter with hierarchial Structure?
Hi,
How to use File Adapter with hierarchial Structure like..
Data:
--Header Details:
Line Item Details:
Data
Bcoz I am getting a Flatfile in a hierarchial way as shown below.
Header Details :1
Line Item a
Line Item b
Header Details :2
Line Item c
Line Item d
KishoreHey Kishore,
In order to create a structure you need to use the file with convertion mode on the sending communication channel of the file adapter.
check the link for the needed configuration paramters.
If the structure is more complexed you can use the Contetnt master(CM) from itemfield which allows to ceate XML file from complex flat files and more.
<a href="http://help.sap.com/saphelp_erp2005/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm">File sender adapter</a>
If you have any question i'll be more than happy to assist.
Nimrod Gisis -
Sender file adapter with content conversion Simple XML
Hi experts,
I'm trying to parametrize my sender file adapter content conversion.
I'm receiving a text file with one single line like:
AA1;AA2; AA3;
and I want to convert it to an XML like
<MT_A1>
<field1>AA1</field1>
<field2>AA2</field2>
<field3>AA3</field3>
</MT_A1>
Actually I know how to do somenthing like
<MT_A1>
<LINE>
<field1>AA1</field1>
<field2>AA2</field2>
<field3>AA3</field3>
<LINE>
</MT_A1>
What I want is remove the <LINE> tag from my XML.
Regards
Gonzalo
Edited by: Gonzalo del Castillo on Nov 28, 2008 2:18 PMHi
Use this help document for receiver FCC
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Content Conversion (Pattern/Random content in input file)
File conversion text to xml (Few Last Post) -
Sender File Adapter with file conversion Multimapping
Hello all,
i have to use multimapping with the file sender adapter
XML for multimapping ist like this
ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:KVNR_Senden_MT xmlns:ns1="urn:lsv.de/SENDER">
<Inhalt>
<KE/>
<VF/>
<BBNRAB/>
<BBNREP/>
<VERNR/>
<ED/>
<FEKZ/>
in File adapter
DocumentName Messages
RecordsetName Inhalt
Recorset Struc Inhalt,20
Inhalt.fieldFixedLength 4,5,6.....
Inhalt.fieldNames KE,VF,.....
but were can I generate Message1?????
any Hints?
regards
ralfsorry but the message tags will not be add dynamically
i have change an existing message mapping 1:1 with file content conversion
into a multimapping.
by changing into multimapping the message was surrounded with
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>.......
no changing in File Adapter an in the IE there was an error
com.sap.aii.utilxi.misc.api.BaseRuntimeException geworfen: RuntimeException in Message-Mapping transformatio~.
if i added the stuct
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>.......
by hand and it works???
so i think i had to add
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>.......
to the file content conversion but i don't know how to do it???
Ralf -
Sender file adapter with FCC not creating last field
Hi,
I've got the following file:
field1;field2;field3
FCC is the following:
Recordset streucture: ITEM,*
ITEM.fieldSeparator ;
ITEM.endSeparator 'nl'
ITEM.fieldNames FIELD1,FIELD2,FIELD3
ignoreRecordsetName true
I expect to generate the following XML:
<FIELD1>field1</FIELD1>
<FIELD2>field2</FIELD2>
<FIELD3>field3</FIELD3>
That's working OK. The problem is when I receive a file with the FIELD3 empty. Example:
field1;;
I expect:
<FIELD1>field1</FIELD1>
</FIELD2>
</FIELD3>
But I get:
<FIELD1>field1</FIELD1>
</FIELD2>
And this raises an error during the mapping because the FIELD3 is mandatory in the Data Type definition, even it's emptyI expect:
<FIELD1>field1</FIELD1>
</FIELD2>
</FIELD3>
But I get:
<FIELD1>field1</FIELD1>
</FIELD2>
use a mapwithdefault in your mapping so that it will always create an empty node if there was no value to be mapped to the target field. -
Is there any way to send Attachements with Sender file adapter
Hi,
I am Using File to Proxy communication model. Is there any way I can use file attachments with Sender file adapter with communication protocol "FTP". Please on suggest this.
Regards,
Daniel.LAHi,
I think there is no Option with FTP Protocol to send the files as Attachments.
Try this
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
Regards
Seshagiri -
Send a mail if no file in Sender File Adapter
Hello guys,
I have one doubt. I have a sender File adapter with FTP transfer protocol. I want to pull the file every 24 hours. If the file does not exist, there is any way to have an error and send a mail to the client?
Is a requierement to do one interface, they want that XI sends a mail if no file is encounteref in the server when XI goes to pull the file. Is this possible?
Many thanks in advance.
Regards,
Xavi.Hi,
Refer to following link
Read Excel instead of XML through FileAdapter
This has good example of developing module. Only code is available. For further help you can look in Help.sap for crating module they also provide sample code.
No need to call alert from module . go upto 24 hars if no file is received set your own structure.
Give condition in receiver detrmination to send mail if file is not picked.
revert back for any clearity.
Thanks
Sunil Singh -
Sender file adapter missingLastFields Parameter
hi all,
i have a wierd problem...
i use a sender file adapter with content conversion to read the data of a file.
all is fine until he get to a record when the last couple of fields are not in the file (and it's ok that they don't appear). i want the adapter to put no data in the last couple of fields but convert them to the XML tags.
i am using the parameters: missingLastFields and keepIncompleteFields to keep the fields although they don't appear in the file.
the parameters i am using are these:
SA140.fieldNames:
ActionCode,UpdateType,IDNumber,Filler1,RecordCode,Filler2,ExteriorColour1,Filler3,ExteriorColour2,Filler4,ExteriorColour3,Filler5,ExteriorColour4,Filler6,ExteriorColour5,Filler7,ColourArea1,Filler8,ColourArea2,Filler9,ColourArea3,Filler10,ColourArea4,Filler11,ColourArea5,Filler12,TireCode1,Filler13,TireCode2,Filler14,TireCode3,Filler15,TireCode4,Filler16,TireCode5
SA140.fieldFixedLengths:
2,2,10,4,3,41,5,1,5,1,5,1,5,1,5,1,2,1,2,1,2,1,2,1,2,1,6,10,6,10,6,10,6,10,6
SA140.keyFieldValue:
140
SA140.missingLastFields:
Ignore (i used the parameter "add" too and it still didn't work)
SA140.keepIncompleteFieids
true
the row i am trying to read is:
024018837002186 21140 1799 KW16 RW17 1010 9147 F18L19 7503 F18L19 7502 F18K27 7508
as you see a couple of the last fields are showing in the text.
could you please tell what am i doing wrong?
maybe there is another parameter i missed?
regards,
roi grosfeldsorry but it still doesn't work...
i am getting the same error:
Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 5 according to structure 'SA140':java.lang.Exception: Consistency error: last field in structure 'SA140.' is incomplete - specify 'keepIncompleteFields' parameter accordingly to allow this
regards,
roi grosfeld -
File content Conversion Issuse for a Sender File Adapter
Hi All ,
I am working for a Migration project , so my File structure will be as follows
<HEADER>
<DATA1>
<DATA2>
<DATA3>
<HEADER>
<ITEM>
<ITEM1>
<ITEM2>
<ITEM3>
<ITEM>
WHERE i do have flat file will be as follows
10001,20081902,US
10,soda,1
30,soda,4
40,soda,5
10002,20081902,US
10,steel,1
30,steel,4
40,steel,5
how to pick this file using FCC from sendere flat file adapter without keyfields , and i can use fixed length alsoSridhar,
You can use a work around like this. Create a generic Data Type something like below.
<Message Type>
<Recordset> - root node
<ROW> - element with occurence 0..unbounded
Now create an outbound MI with the above MT, in FCC in sender file adapter, give Recordset structure as ROW, *
This way , you will read the entire file inside XI as an XML like below
<ROW> header record </ROW>
<ROW> item record 1 </ROW>
<ROW> item record 2 </ROW>
<ROW>....</ROW>
In XI , since your header row & item rows are fixed length, now, you can use that in a UDF in your message mapping , or parse the xml using DOM parser in Java mapping, you should be good. Hope this helps.
~Saravana -
Error in sender file adapter: source directory does not exist
Hi,
The PI system is 7.11
I've created sender file adapter with following details:
Transport Protocol : File System
Source directory: /interfaces/In
I checked in AL11 that this path really exists and it does. (I can even see the .txt file that should be processed.)
But still i get in Communication Channel Monitoring the following error:
"Configured Source directory "/interfaces/In" does not exist.
(i also tried to give the source directory as "interfaces/In" and as "//interfaces/In" but still the same error.
Any suggestions as to what is wrong?
kr
RobertActually, Need to use forward slash (/) to separate directory names in accordance with the Java specification.
But wanted to try if that works..
Also check directory name , path again as this is case sensitive...
--Divyesh -
Sender File Adapter. Fixed Lengths and Field Separator
Hello guys,
I have a doubt in Sender File Adapter with Content Conversion.
I have a text file like:
a,b,c,,e
I have the configuration in the adapter:
Register.fieldNames: a,b,c,d,e
Register.fieldSeparator: ,
The question I have is can I format the length of the text when i create the XML?
I woul like to create the XML like:
<Row>
<Register>
<a>a </a>
<a>b </a>
<a>c </a>
<a> </a>
<a>e </a>
</Register>
</Row>
I would like that when I create the file in Field A I have length = 4, but I have only 1 in the entry, and I want to fill the rest of the length with spaces.
I tried with FieldFixedLengths but when I test it the fields are not being formatted and take the commas as part of the field.
I know that this can be done in Receiver File Adapter, you leave for example one field of 5 length and you format it to 12 length with spaces.
Is this possible for Sender File ADapter?
Many thanks.
Regards,
Xavi.hi,
See the example given in this bog, in this blog the string has been splited into different fields as per the field length, so you may use the same concept to get your output.
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
I hope it helps you.
Regards,
Sarvesh -
Module processing inside Sender File Adapter
Hello,
I am trying to analyze whether I can create a specialized module inside Sender File Adapter. As of right now, the Sender File Adapter and Receiver as well, assume endSeparator character in the end of each record. For files that do not have this field, it is just on continuous string, I assumed I can create an
adapter module
call it BEFORE data in the file is being converted to XML format
Insert 'nl' character (since the record length is fixed)
Call regular adapter processing (converting to/from XML)
However, creating any module inside Sender File Adapter, the payload of the main document is already in XML format. Is there anyway to avoid it?
Thanks for your help,
Dmitriy MindichIt is not possible with the standard functionality.
So maintain the sender file adapter with no conversion, but in the module tab enter following modules:
1. Your module
2. The conversion module (*)
3. The standard module.
(*) for details look here:
Look here:
http://service.sap.com/nw-howtoguides
-> Exchange Infrastructure
-> How To Use the Content Conversion Module in JMS Adapter
Regards
Stefan -
Sender File adapter not picking the file ABCD.PRN extension file
Hi
Am doing File to Abap Proxy scenario. My source will be in text format of fixed length of fileds 7.
My souce file will be generated by a third party machine with the extension EEE150809.PRN. In my scenario my file adapter should pick the file and update the same in ECC via a Proxy.
I have configured the Sender File adapter with Message Protocol - Content Conversion but file adapter is not picking the file. I have checked the Communication channel and status is fine. But the same Communication Channel works for .XML file.
What are the parameters that I have to consider with the file extension .PRN using File adapter?
Thanks.
S.Hi Swarna,
You dont need to worry about the extension when picking the file. You can try using EEE* so that is picks all the files starting with EEE. If you have the fixed name then you can try giving EEE150809.*. Also EEE150809.PRN should not have any issue. Try to see in sender commu ication cahnnel for anyerrors. Probably there might be some network issues or authorisation issues. If you are reading with NFS then ask them to give necessary permissions. If you are reading through FTP check the user id and pwd you are using.
Regards,
---Satish -
Escape sequence on sender file adapter
Hello XI experts,
My scenario is,
Customer System => <CSV File> => File Adapter => Integration Engine
I'm thinking of using Sender File Adapter with File Content Conversion
and setting "," as FieldSeparator.
If there is "," in a text field and I don't want the Adapter to recognize it
as separator, how can I difine escape sequence?
For example,
#default#
aaa,bbb,ccc,SAP,Oracle....
->
aaa
bbb
ccc
SAP
Oracle
#My requirement - define & as escape sequence#
aaa,bbb,ccc,SAP&,Oracle....
->
aaa
bbb
ccc
SAP,Oracle
Any infomaton is appreciated.
Regards,
TomoatsuHi,
You can use the following parmeter: NameA.enclosureSign
Check here for the same:
http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Regards
Vijaya
Maybe you are looking for
-
Why do I keep getting an error message when trying to use passbook?
Why do I keep getting an error message when trying to use passbook?
-
CR XI - Pass a Multi-value Parameter to a Stored Procedure
Hello, Here is my problem ! My Main Report accept a Multi-value Parameter "myParameter". I create a formula "lstParameter" (Join({?myParameter},',') linked to my SubReport (string static parameter based on a Stored Procedure which returns a RefCurs
-
Select statement performance improvement.
HI Guru's, I am new to ABAP. I have the below select stement 000304 SELECT mandt msgguid pid exetimest 000305 INTO TABLE lt_key 000306 UP TO lv_del_rows ROWS 000307 FROM (gv_master) 000308 WHERE 000309
-
Cups Job History shows Name 'Unknown' User 'Withheld'
We have previously used the cups interface to review our print job history and indenify problems with jobs that went missing at the press. This worked great in previously versions of OS X, but in Lion every job we send, regardless of what printer we
-
Hi! Please which Web MDM link should I acess to change the MDM settings? Thanks, Rodrigo