Missing blanks in my File Receiver Communication Channel

Hi there,
In my scenario I need to map each segment from an IDoc to one line in a target file (n segments..n lines). Even when the mapping passes the data as I want, if one line begins by leading blanks then I'm loosing this blanks, so I suspect the file content conversion is doing some kind of trim by default. Anybody knows how to avoid that?
Thanks in advance.

Hi,
In receiving file adapter we can handle empty messages
Choose Handling Empty Messages
       Write Empty File
       An empty file (length 0 bytes) is put in the target directory
      Ignore
   A file is not put in the target directory
http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
Regards
Chilla

Similar Messages

  • File Overwriting in File Receiver Communication Channel

    Hi,
    I have an IDoc to File scenario.
    My file receiver communication channel has the following parameters :
    - File name scheme = %timestamp%_AOBSD4RL.MES
      (I'm using variable substition and the variable "timestamp" is initialized at mapping time with the current time in format yyyyMMddHHmmss).
    - File Construction Mode = Create
    - Option "Overwrite Existing File" not activated
    When two inbound messages result in the same target file name, the second one overwrites the first one although the "Overwirte Existing File" setting is not active in the receiver channel.  Is this a bug in XI ? (I'm on 7.00 SP11)
    And is it possible to say to the receiver channel to process only 1 message per second so there will no more target file with same name ?
    Thanks in advance,
    Laurence

    Hi Laurence,
    There is no such facility with Receiver File Adapter to process single message in one step.
    I want to suggest you a may possible way to overcome( it's just an idea), though I never worked with them I think it will work.
    As you the file name is assigned to message with timestamp at receiver communication channel step you can schedule the outbound queue in such a way that it will transfer the message in delay.
    Try to investigate further more, But i m not sure that Queue Scheduling is supported by SP11 or not.
    Regards,
    Shri
    Reward point if it helps you

  • File receiver communication channel

    Hi All,
    I am working on a IDOC to FILE scenario. In my target structure I have 10 fields. I need to transfer only 9 fields to my file.
    I am using the 10th field to hold the file name, which is used in the variable substitution in the receiver file communication channel.
    Kindly advice how to not to send 10th field.
    I am using the following parameters in content conversion: (1) fieldSeparator, fieldFixedLengths
    This is a multi mapping scenario, where a IDOC will generate 10 files (So I cant use dynamic configuration for file names).
    Thanks & Regards,
    Navneeth K.

    Hi Navneeth,
    Please refer the below blog:
    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
    You have to use fixedLengthTooShortHandling parameter.
    -Supriya.

  • Losing 0x0D in Content Conversion of a file receiver communication channel

    Hi everyone,  I have a file to file scenario in which I receive an XML like this:
    <MT_IDOCS>
    <IDOCS>
    <IDOC>E2EDK14                       10000000000000000010000020000010200600
    E2EDK14                       10000000000000000010000030000010200712
    </IDOC>
    </IDOCS>
    <MT_IDOCS>
    Actually this is just to give you an idea, but inside the IDOC tag I have a whole IDoc with the flat file structure that is going to be processed by with program RSEINB00. The incoming file has characters 0x0D and 0x0A between both lines, which is correct and is the desired format for program RSEINB00.
    But when I download this XML using content conversion, the resulting file has lost the 0x0D character, it still has the 0x0A, but all 0x0D are gone.
    The content conversion is set like this
    Recordset structure IDOCS
    IDOCS.fieldSeparator     $$$$$$
    IDOCS.endSeparator     '0'
    (I don't know exactly why they did it that one...anyway only 1 IDOCS tag is expected). The I have to extract the exact bytes from inside the IDOC tag and download them to a file. Is it possible to handle it from the content conversion? Thanks!

    Hi Pablo,
       maybe the problem relates to the file encoding you have specified in the Communication Channels. Maybe the file is being picked up from a Windows system which uses Carriage Return (CR) in conjunction with the line feed character ( LF) to indicate
    the end of an ASCII text file. The hex code 0D0A. Whereas the receiver system maybe a Unix systems which uses only LF (0A).
    The module
       ConvertCRLFfromToLF
    using parameter value
      LFtoCRLF
    may resolve this
    e.g.,
    see the 'Example' SAP online help -
    [Adapter Framework Module Interfaces|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/32/43d84072378031e10000000a1550b0/content.htm]

  • Access interface related entries from within Receiver Communication Channel

    Hi,
    when i open the interface determintation that i created, i can see.
    Sender Details:
    Communication Component:Sys_Sample_One_D
    Interface: UserMasterQuery_Outb
    Namespace: urn:sample.com:I_Legacy_JDBC_Application
    Receiver Details:
    Communication Component:Sys_Sample_Two_D
    Interface:EmployeeEmailProcessing_Inb
    Namespace:urn:sample.com:I_Legacy_FileApplication
    Interface Mapping: UserMasterResultset_to_EmployeeEmail
    I created a Generic File Receiver communication Channel for my receiver BS: CC_FileReceiver
    In the target FileName field of the Communication channel, i would not like to hardcode any filename value, but my requirement is, the filename should be the same as the name of the Receiver Interface, that has been used in the message exchange.
    in my case, it should be something like EmployeeEmailProcessing_Inb.xml
    How can we access dynamically the interface related entries in the Communication channel, and how can we set those values in the Target Filename value of the File Receiver communication channel.
    in short, if i use the same communication channel for other scenario, the received filename should be different based on the receiver interface name that is executed.
    It would be even more better if i could access/set the receiver namespace value as part of the TargetFileName or TargetFileDirectory values.
    pls let me know how this can be possible.
    Thanks in advance,
    Madhu

    Hi Shabarish,
    thanks for your blog.
    After i saw the blog, the UDF can be created in ESR.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(u201Chttp://sap.com/xi/XI/System/Fileu201D,u201CFileNameu201D);
    String MyFileName = a + "_" + b +".xml";
    conf.put(key, myFileName);
    At this point, i can see that the required value is stored in certain key in the DynamicConfiguration.
    In the blog, i could not see anything related to ID.
    My question is, what do we need to do ID,
    when we create the FileReceiver Communication Channel, in that we need to specify the mandatory field "Source File Name". what value do we need to enter here.
    Are there any additional things do we need to do in Communication Channel in ID.

  • O/P file in receiver communication channel.

    Consider a file to file scenario..
    and in the receiver Communication Channel,We have to specify the name of the output file right.but i want my output in a different way.....
    my output file names are different.....what shall io do now....
    Any ideas...

    Hi Reddy,
    your requirement is not clear...
    Try these
    Dynamic File Name Part 1
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
    Dynamic File Name Part 2
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    XI: The same filename from a sender to a receiver file adapter - SP14
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Sachin

  • How to configure receiver communication channel in File to mail scenario?

    Hi all,
            I'm working in FIle-to-Mail Scenario. I did all the required configuration In Integration repository. As per my Scenario whenever a text file stored in Application server of the R/3 system. it should be sent as a attchment with a mail.so i set a sender communication channel with file adapter in sender R/3 system . i dont know which business system should i refer for my receiver communication channel.because my receiver end is  a mail server. should i create any third party business system for this one?
    can anyone suggest me to define a receiver comm channel in a right manner?
    helpful answers will be rewarded.

    Hi,
    Check these
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    /people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
    http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm
    Regards
    Seshagiri

  • Error in Receiver Communication Channel in FCC

    I have a simple scenario of Proxy to File. I have to just one field in complete row. So my structure is as below : MT_RecordIB -> Records.  So my XSD looks like this :
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://XXXl.com/INF31018/SAPSerOrd_DaysIn" targetNamespace="http://hnwl.com/INF31018/SAPSerOrd_DaysIn">
       <xsd:element name="MT_RecordIB" type="DT_RecordIB" />
       <xsd:complexType name="DT_RecordIB">
          <xsd:sequence>
             <xsd:element name="Records" type="xsd:string" />
          </xsd:sequence>
       </xsd:complexType>
    </xsd:schema>
    I have used FCC and the parameters are :
    Recordset Structure                                  Records
    Records.fieldSeparator             'nl'
    But I am getting following error in Receiver Communication Channel :
    Failed to process message content. Reason: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'ns0:MT_RecordIB' found in document', probably configuration error in file adapter (XML parser error)' (Software version: 3.0.21)
    Thanks,
    Pankaj Singh

    Hey Pankaj,
    Your content conversion parameter might be configured improperly.
    Refer this blogs
    /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
    Refer the following threads for your problem
    [ Unknown structure 'ns0:MT_dbglgtr_FileName' found in document'|Unknown structure 'ns0:MT_dbglgtr_FileName' found in document']
    Rgds
    Ramesh

  • Need to use only one sender and receiver communication channel.

    Hello Experts.
    I have a scenario where in I have to use only one sender and receiver communication channel to push files from different source directories to different receiver directories.
    For Eg;
    Sender                              
    D://dir1/file1 --->                  E://dir1/File1
    F://dir2/file2 ---->                 G://dir2/file2
    H://dir3/file3----->                 I://dir3/file3.
    Can this be achieved by using pass through scenario?
    Please let me know if the requirement is not clear.     
    Thanks in advance.
    Advit Ramesh

    Hi Advit,
    I think it is possible. You have to use the Advanced Selection for Source file in the sender channel to define multiple files to be picked up. Also, the Dynamic configuration must also be enabled and used in the mapping so you can manipulate the target directory and target file name based on your source files.
    For Polling from multiple directories:
    http://wiki.scn.sap.com/wiki/display/XI/File+Sender+Adapter+-+Polling+Multiple+Directories
    Dynamic Configuration:
    Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki

  • File Receiver Comm Channel in error

    Hi All,
    I am getting below error in my receiver communication channel -
    Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Unable to clone File Adapter receiver channel for parallel processing
    This is just FiletoFile scenario. I am trying to use VARIABLE SUBSTITUTION here to give dynamic name to the file at receiver. I haven't use FCC here.
    If I dont use VARIABLE SUBSTITUTION then scenario is working fine.
    Thanks & Regards,
    Rashmi Joshi

    Hi Abhradeep,
    I am getting new error now -
    Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: Vname
    I have changed the reference value as -
    Emp_ID
    payload:MT_File,1,Record,1,Emp_ID,1
    Thanks & regards,
    Rashmi Joshi

  • Recordset structure in receiver communication channel

    Hi gurus!
    I have a problem with my receiver communication channel it says "Unknown structure 'Headers' found in document', probably configuration error in file adapter (XML parser error)'"
    It's for sure that the problem is in the configuration of the adapter.
    My scenario is from iDoc to File and i need to write only one header and many Lines, i made the data type like:
    Headers
    ---Header
    Lines
    ---Line
    And the problem is in the configurarion of the recordset structure and the lines below.
    If you know another way better to make the data type to acommplish what i've to do, just tell me I just made it that way because i thought it could work.
    If something is not clear just let me know, what i more need is the config. of the receiver adapter.
    Thanx in advance.
        Juan

    Hi Juan
    If i understand correctly .. you are doing FCC on your receiver communication channel...and the following is your Target Data type
    Headers
    ---Header
    Lines
    ---Line
    and FCC parameters you created are as below
    Recordset structure: Headers,Header,Lines,Line
    Header.fieldSeparator \r\n
    Header.endSeparator \r\n
    Line.fieldSeparator \r\n
    Line.endSeparator \r\n
      If the above data is correct, then I would like you try out the FCC parameters in my previous post. Because in the FCC parameters, you used only substructures(Header and Line) and you did not mention the lists ( Headers and Lines). That's why i think it is errored out.
    If my interpretation is wrong, please let me know where i went wrong, i will try to look at again.

  • File Recever Communication Channel Error in PI 7.3

    Hi Experts,
    I have configured a scenario File to File. I am using the PI 7.3 version. In both channels module tab I have given the below details:
      Number    Module Name                                                                 Type                             Module key
            1        Localejbs/swift/FileActConversionToSWIFTModule      Local EnterpriseBean    0
            2        CallSapAdapter                                                              Local Enterprise Bean   1
    These parameters are available for the module FileActConversionToSWIFTModule
    Module Key      Parameter Name              Parameter Value
      0                       UseLocalSecurity             true           
      0                       KeyId                                SWIFT
    While monitoring the communication channel, I got below error in receiver communication channel.
    *Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.xi.swift.ParserException: java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'swiftMsgSig'*.
    Regards
    vishnu
    Edited by: vishnu sreenu on Oct 15, 2011 1:43 PM

    Hi Experts,
    I have configured a scenario File to File. I am using the PI 7.3 version. In both channels module tab I have given the below details:
    The interface i have configured between BCM-SwiftNet systems.
    Number Module Name Type Module key
    1 Localejbs/swift/FileActConversionToSWIFTModule Local EnterpriseBean 0
    2 CallSapAdapter Local Enterprise Bean 1
    These parameters are available for the module FileActConversionToSWIFTModule
    Module Key Parameter Name Parameter Value
    0 UseLocalSecurity true
    0 KeyId SWIFT
    While monitoring the communication channel, I got below error in receiver communication channel.
    *Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.xi.swift.ParserException: java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'swiftMsgSig'*.
    Regards
    vishnu

  • SSL in Soap receiver communication channel

    Hi,
    I have a webservices that works fine in Soap UI. The webservice provider uses the SSL, but works like a web browser, doesn´t need to install a certificate before access the webservice.
    But when i try to use SAP PI using the soap receiver communication channel, the soap adater return the follow message:
    "Peer certificate rejected by ChainVerifier"
    I read some thing about using axis to solve this problem but I can´t find anything to configure this scenario.
    If someone had this problem and solved it, i will apreciate the help.
    Thanks
    Fabricio

    I Have 2 communication channel:
    1) This works fine
    Adapter Type: SOAP
    Receiver
    Transport Protocol: HTTP
    Message Protocol: SOAP 1.1
    Adapter Engine: Integration Server
    Target URL: https://gw-homologa.serasa.com.br/wsacheixml/wsacheixml.asmx
    SOAP Action: https://sitenet05.serasa.com.br/WSAcheiXML/WSAcheiXML/ConsultaAchei
    2) This doesn´t work
    Adapter Type: SOAP
    Receiver
    Transport Protocol: HTTP
    Message Protocol: SOAP 1.1
    Adapter Engine: Integration Server
    Authentication: Basic
    User/Password
    Target URL: https://treina.spc.org.br/spc/remoting/ws/consulta/consultaWebService
    SOAP Action: blank
    Both are https and the certificate is sent at communication time (There isn´t a certificate to install in the Key Store in Visual Administrator)
    I read that Axis manage this kind of integration with webservices, because the certificate must be installed at the moment of sending http request.
    I don´t know why the first interface works fine an the another doesn´t work, then I´m trying with Axis.
    In the SOAP UI both interfaces work fine.
    Thanks

  • Error in HTTP_AAE receiver communication channel, PI 7.4 dual stack

    Dear Experts,
    I am facing the below certificate error in HTTP_AAE receiver communication channel while using the third party (bank) private key. Third party bank server is HTTPS enabled, moreover they have generated the public and private keys on their server, and they shared the corresponding private keys in .p12 format to us. Our scenario in SAP PI is synchronous ABAP Proxy to HTTP_AAE, when I see the message in SXMB_MONI after testing, we get he below certificate error, though we have provided the correct path from keystorage view and keystorage entry in HTTP_AAE receiver communication channel
    “com.sap.aii.adapter.http.api.HttpAdapterException: ERROR_SENDING_HTTP_REQUEST, sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”
    We have imported the private key provided by bank in Netweaver admin key storage, by following the below steps.
    NWA -> Certificates -> Key Storage -> TrustedCA->Import Entry->Entry Type->PKCS#12 Key Pair->select the .p12 file->import.
    Please see the attached doc for related screenshots.
    Please experts help me experts as this is on high priority from client, also suggest me if I am doing anything wrong here.
    Thanks,
    Farhan

    Hi Farhaan,
    do you have only one certificate or multiple certificate? HTTPS can have 2 or 3 certificates (Root, Intermediate [optional, if any 3rd party person is there in the middle then we can get this certificate] and system certificates).
    The issue is with the certificate and it can be because All the certificate is not present or path is not correct.
    Please refer the below wiki in which solution is given for this peroblem.
    Troubleshooting 7.1 - End-User Experience Monitoring - SCN Wiki
    The similar issue is resolved by applying SP level patch, please refer the below discussion
    SAP PI 7. 3 HTTP_AAE Receiver with SSL
    Please check the below blog -
    Configure the HTTP_AAE receiver communication channel with SSL
    please also check the below discussion
    Where to Import Clients SSL certificate for HTTP_AAE
    regards,
    Harish

  • Dynamic user credentials for XI receiver communication channel

    Hi Experts,
    I am working on File(XML ) to ABAP  proxy scenario. I want to know if I get the user-id and password information to login to R/3 system as part of the XML  payload, can I use this information to connect to R/3 system in my XI Receiver communication channel?
    Using a generic user credentials either in RFC destination or specifying it in communication channel configuration will not work. This is because the requirement is that the objects that will be created in inbound ABAP  proxy (for ex Material Master) should be created with the user information that is coming from payload rather than a generic user.
    Any pointers how to acheive this?
    Thanks and regards,
    Prasad
    Edited by: Prasad MLN on Nov 16, 2009 4:00 PM

    Hi,
        You might want to learn more about Principal Propagation in sap XI:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID2039785750DB21057082877817322485End?blog=/pub/wlg/7068%3Fpage%3Dlast%26x-order%3Ddate
    http://help.sap.com/saphelp_nwpi71/helpdata/en/45/0f16bef65c7249e10000000a155369/content.htm
    Regards,
    Ravi Kanth Talagana

Maybe you are looking for

  • Pass query result as parameter to javascript

    Hello, I'm a beginner with javascript, so (maybe) sorry for this question. Is it possible to use a query result as parameter in a javascript function for example like this? <cfquery name="select_data"> select name from user_table </cfquery> <script l

  • Convert Array to Proper English?

    Here's my problem: I have a bunch of arrays ranging from 2 to 8 members. They look, of course, like this: "red,green,blue" but I need to wind up with a string of : "red, green, and blue" with a space after each comma and an "and" before the last memb

  • If apple cant fix my iphone 4 will they replace it even if its not under warrenty?

    I tryed to get my iphone screen fixed but they man suggested i bring it to apple because hes unable to fix it because he might break the modem? if apple cannot fix it will they replace it ?

  • Post-Install Error on EBS 12 - Login Page Error RW-50016 on Linux

    Hi All, Post-Install Error on EBS 12 - Login Page Error RW-50016 on Linux Thanks in advance.

  • Red flash frame

    Hello, As instructed in this thread, I've started a new thread regarding this problem. I work as an editor at a channel with Premiere CC 7.2.1 installed as our NLE. We have several 27" iMacs, 21" iMacs and about a dozen MacbookPro's. We have experien