File adapter  - fieldSeparator parameter

Hello everyone!
I've configured an FTP sender adapter that picks up CSV files. The fields in the file are separated by a spaces, eg. <b>DTL  1     14800575110370 12 0000003</b>
What do I indicate in the "fieldSeparator" parameter of the Content Conversion to indicate that the fields are separated by a 'space'?
Warm regards,
Glenn

Hi,
The Hexadesimal notation for space is '0X20' and fro TAB separator is '0X09'.
for more details check this link.
http://help.sap.com/saphelp_nw70/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
Regards,
Phani
Reward points if helpful

Similar Messages

  • File adapter configuration parameter for "hexadecimal conversion"

    (File adapter for XI 2.0)
    Does anybody know the exact File adapter configuration parameters for reading a file with hexadecimal control characters as seperators. My file has
    3 types of seperators - i.e "2F", "05" & "0D2F"
    Eg: xml.fieldSeparator= "2F"
    When I specify this the file is getting split into fields
    at all the seperators in the file. I guess I am not using the right format in my defination ?
    Dorai

    Is there any special format for reading a file containing hexadecimal control characters?
    The file to be processed has hexadecimal separators:
    Field Delimiter        : '09' or '05'
    End of record delimiter: '0A' or '25'
    End of Table delimiter : '07' or '2F'
    Initially i would like to read the file into XI as it is i.e without any split by using "xml.fieldFixedLengths= "
    However, everytime I process the file(with hexadecimal contol characters), I have noticed that my file is getting split, even when I did not specify anything for field separator(i.e when i used fixed field length).
    Thanks,
    Dorai

  • 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 grosfeld

    sorry 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 adapter "Directory" parameter

    Hello colleague,
    While going through the documentation of file adapter the statement regarding directory of the file was not
    clear -> "The directory specified must be accessible by the service user of the Adapter engine, with appropriate read/write permissions".
    Where can i find the service user of adapter engine and how can i set its permissions. I want to use a directory on my local pc. But when i specify the absolute path -> //<pc name>/<location>/ the file is not picked up.
    Could you pls. help.
    Regards,
    Gajendra.

    Hi Gajendra,
    If u place a file in ur local pc, then giving the absolute path in the communication channel configuration wont help.
    For enabling XI to pick up a file from ur pc u should first install an FTP server in ur system.
    These servers are easily available on net. Foe ex u can download the GOLDEN FTP Server and install it on ur pc.
    Once this is done u need to create a folder in ur system where u will place all the files to be polled by XI. This folder needs to be added to the server with full control enabled.
    Next step is while configuring the communication channel, the file protocol should be FTP. Give the IP address of ur pc here.
    This will help xi in picking up files from ur local pc.
    Regards
    Neetu

  • File Adapter--Processing parameter configuration

    Hi Experts,
    I need to configured the sender and reciever FTP Adapter to Archive a 37 MB text file within a FTP server.
    It is taking 20 min to archive the file.
    does this requirement requires any change in Parameter configuration(like transfer mode, channel availabilty planning( i am using daily with duration 30 min) to make it fast.
    Thank you,
    MK

    Hi Experts,
    To archive huge files using FTP adapter, i looked at the Michal weblog to zip the file :
    /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
    please explain how and where to write the below file
    @ECHO OFF
    7za.exe a -tzip D:\file_cat\%2.zip %1
    del %1
    and also explain
    Zipping a file can also be done with jar.
    For example,
    jar cvf m.zip m.txt
    will zip m.txt into m.zip
    No need for any other software as jar is highly likely to be on the XI/PI server...
    and how to implement it in the FTP  adapter configuration.
    Thanks in Advance.

  • CUT parameter in the content conversion of the Receiever File Adapter

    Hi,
    I have mentioned the CUT parameter in content conversion in the receiver file adapter, it is working fine. The only problem is it inserts one blank line in the file. Is there any way to remove this blank line other than running script.
    Your help is appreciated.
    Thanks,
    Prateek

    Hi Prateek,
    If your File Content COnversion is Row Level(not in field level)?
    i.e fieldSeparator = 'nl' if so try like this-
        endSeparator = 0
    Hope it will remove the blank line.
    Regards,
    Moorthy

  • File access parameter in file adapter at receiver side

    Hi Experts,
    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction    mode = add time stamp and put file directly .but it is showing time in file name????????
    2. i want my file name as  TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    Regards

    1- i am using file adapter at receiver side. i want to create my file with time stamp for that i have given the file construction mode = add time stamp and put file directly .but it is showing time in file name????????
    The addtime stamp will add timestamp as the last part of the filename before the extension.
    2. i want my file name as TimeSheet_Country_Date_time.csv so for this what value i have to give in file Name Scheme parameter.
    You can achieve this using dynamic file naming UDF in mapping and using ASMA in file adapter.
    Use current date function and generate the current date. Then use substring to pick date,time from it and format it according to your requirement (TimeSheet_Country_Date_time).Else you can write a UDF to generate the file name as per your requirement and then pass it to the dynamic filenaming UDF in the mapping.
    Search SDN for dynamic file naming.

  • Which will execute first in File Adapter (parameter,Identifier,module)

    Hi,
    I have written a module for my sender file adapter, and choose FCC to parase my complex structure...here my doubt is whether adapter module will call first or FCC which is there in Identifier tab in file adapter?
    Regards,
    Irshad.

    Chandras sekhar,
    i have already seen that blog...
    could you plz read my message once again?
    Regards,
    Mansoor
    ya i got it..Call sap adapter module will store the message in send queue.
    just want to know which module is building the xi header whether it is same call sap adapter module or is there any specific module which will convert native message to xi message.
    Is call sap adapter module is the responsible for building the xi message header with the help of cpa lookup? if its so again confuse for me.....
    In File adapter we have 3 tabs one is parameter identifier and module...As u said first parameter tab will run as per FCC/ File message protocol then this parsed/content of text file will be input to the module tab .in this module tab we have custom modules and standard module these modules are executed in the same sequence as mentioned.
    what is the module name which converts native message to xi message?
    Regards,
    Mansoor

  • Command Line Parameter in File Adapter in SAP PI

    Hi
    Can any body explaine me what is the purpose of 'Command Line' parameter in File Adapter (Sender/Receiver).
    Regards,

    Hi,
    Refer below two links for more help!
    SAP XI File Adapter OS Command Line Feature     
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sapXIFileAdapterOSCommandLine+Feature
    More with the File Adapter      
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/morewiththeFileAdapter
    Regards,
    Jilan

  • File adapter parameter "Msecs to Wait Before Modification Check" is gone

    We are using PI 7.1 and we have the problem that the file adapter (ftp) picks up incomplete files from time to time. That causes a mapping error.
    Have a look at sap note 821267 question 3.
    https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=821267
    Here you can find a solution. But in reality this parameter isn't there. And if you check the current documentation
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/655453b48a4ddfe10000000a1553f7/content.htm
    you can't find this parameter too.
    Has anybody of you the same effect? Does anybody of you know the reason? And the most important question is: What is the solution for this problem. The suggested work around in this note isn't possible for us.

    Hi,
    May be this thread can give you some idea to deal with your problem.. see my reply there
    Re: Use temporary file in FTP receiver adapter
    Sorry this will not help you here..
    One solution which I think is.....
    Put file in your source directory with diff name, and write an script which will rename it to its original name.
    The logic for scrip should be something like this.
    First of all when reading the file for the very first time then check the size and wait for 10 sec and then again check the size. If both size are same then scrip should rename the file to its original name.
    Regards,
    Sarvesh
    Edited by: Sarvesh Singh on Mar 26, 2009 4:35 PM

  • 'lastFieldsOptional' parameter in Inbound File adapter ?

    Hi there,
    Im getting the following error from the adapter engine when trying to process a flat file.
    At The same time the adapter recommends to use the 'lastFieldsOptional' parameter, however,this parameter cannot be found in the provided documentation. can someone tell me what's exactly the problem here? How can I specify this 'lastFieldsOptional' parameter in the IB file configuration file? I have try to put this parameter in the config file, but the results are the same.
    xml.lastFieldsOptional
    Tue Nov 02 11:14:35 CET 2004 *****
    11:14:35 (4023): File adapter initialized successfully
    11:14:35 (4007): File adapter started
    11:14:35 (4051): Process 1 file(s):
    11:14:35 : /tmp/TF20041024.txt
    11:14:35 (4052): Start processing "TXT" file "/tmp/TF20041024.txt" size 264324 in "EO mode
    11:14:35 (4058): Start converting to XML format 
    11:14:35 (4060): ERROR: Stop processing file "/tmp/TF20041024.txt" (exception "java.lang.Exception: ERROR converting document line no. 1 : java.lang.Exception: Consistency error: field(s) missing - specify 'lastFieldsOptional' parameter to allow this" in XML renderer)
    11:14:35 (4077): Retry  mode -  wait 1200 sec, 0 msec interval before retry

    HI there,
    I just found the solution, the correct syntax of this "unknown" parameter from the file adapter is:
    xml.lastFieldsOptional=YES
    After this change in the config file the adapter is able to process the file.
    Cheers,
    Rob.

  • Receiver File Adapter: Problem with NewLine Content Conversion Parameter

    Hello Everybody
    On our SAP-XI (SAP NetWeaver 2004s, sp14) I have the scenario to send a price catalogue (IDoc PRICECATALOGUE.PRICECATALOGUE02) from SAP R/3 as csv PRICAT file to a file share.
    In the receiver communication channel I have defined
    Message Protocol = File Content Conversion
    using the following RecordSet:
    RecordSet = HeaderRow,MainBody
    One header row is followed by one or more main body rows. The csv PRICAT message format demands that there is an empty row (i.e. one carriage return) between header and main body and another carriage return after the last main body row:
    <Header Row>
    carriage return
    <MainBody 1>
    <MainBody 2>
    carriage return
    As content conversion parameters I tried to use NewLine ('nl') to create the carriage returns in the file:
    HeaderRow.fieldSeparator = ,
    HeaderRow.endSeparator = 'nl'     " new line
    MainBody.fieldSeparator = ,
    MainBody.endSeparator = 'nl'
    Using the settings I have been able to created the carriage return at the end of the file but not the one between header and main body.
    As workaround I have used the following approach:
    " Add the following XSLT mapping between header and body:
                <SeparatorLine>
                    <value>
                        <xsl:value-of select=" '' "/>
                    </value>
                </SeparatorLine>
    RecordSet and parameters have been changed accordingly:
    RecordSet = HeaderRow,SeparatorLine,MainBody
    HeaderRow.fieldSeparator = ,
    HeaderRow.endSeparator = 'nl'  
    SeparatorLine.fieldFixedLength = 0,0   " sic! 
    MainBody.fieldSeparator = ,
    MainBody.endSeparator = 'nl'
    Has anybody an idea why I failed to receive the first carriage return and has somebody a more elegant solution?
    Kind Regards
       Uwe

    Hi,
    Thanks for reply. I have already used 'nl'.
    When i open into the notepad it is showing [] boxes rather then new line.
    e.g. 1 [] 2 []
    but when we open into wordpad it opens properly.
    Customer wants when he opens in notepad it should show line by line.
    e.g.
    1
    2
    How should i convince to customer ?

  • 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
    Chandra

    Posted in Incorrect forum.
    Posted again in Process Integration forum

  • 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 AM

    Hi 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

  • RECEIVER FILE ADAPTER FCC ERROR

    Hi team
    My scenario is a text file has to be picked up by PI, has to processe it and the receiver is Proxy and it has to get updated and sent back to FTP location.
    i am using Sender File Adapter with FCC and Also receiver File Adapter with FCC.
    Both the sender and receiver structures are same; i am using the same FCC parameters for both the sides.
    in Receiver File Adapter i am getting the following errors
    1) Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    Parameter '.fieldFixedLengths' or '.fieldSeparator' is missing
    2)Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
    please help me out
    thank you
    Edited by: vemugantivn on Aug 16, 2010 12:19 PM

    Hi,
    > 1) Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    >  Parameter '.fieldFixedLengths' or '.fieldSeparator' is missing
    > 2)Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
    > Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
    It is saying that you are not using the fieldSeparator parqameter.
    have you provided the field separator parameter? if not then give like below
    order_row.fieldSeparator : ,  (give what ever the separater you are using)
    or 
    order_row.fieldSeparator : 10,5,...  (if you are using fixed length)
    Regards
    Ramesh

Maybe you are looking for

  • Mac mini running very slow after downloading yosemite

    Why is my mac mini (mid 2011) 2.5GHz Intel Core i5 now running very slow in all aspects after upgrading to OS X yosemite 10.10.1? Here is a recent EtreCheck Report Problem description: Mac mini running very slow after upgrading to yosemite EtreCheck

  • Why no boot support for external USB HDs?

    I found this after laying out cash on a Lacie 160gb Porsche drive - i Carbon Copy Cloned my startup disk onto the external, go to start-up disk in Sys Preferences, and choose the shiny new drive. It doesn't boot. So I search and find this: http://doc

  • Lightroom 4 importing causing program to crash.

    Lightroom 4 will not import files. Windows 7 pop-up states; "there is a problem with this program that is preventing it from running correctly will check for solution". "Windows failed to find a solution must shut down program now". This prevents the

  • Thunderbolt - everything too small to read at high res

    I want to use my Thunderbolt at full resolution but everything is just too small to read without eventually getting a headache !  I bought a large screen to make reduce the strain. Is there a way around this?

  • Windows Live in 6220c, Problem Solve!!

    Initially encounter problem in windows live in nokia 6220c, but after installing the lastest update version 4 from nokia updates, the windows live is woking now.