Variable Substitution settings for Receiver File Adapter

Hi All,
I wanna use variables for File Name Sheme in the File Access Parameters.I had used by enclosing the variable names within %. When i wanna substitute values for those variables, it is given in the documentation(help.sap.com) that v need to set the Enable indicator. only after setting the indiactor, v can use the variables and can then enter the values for those variables in a table. but i can't see either the indicator or the table in my editor. how can i provide the values for the variables used in file name scheme/Target Directory. and for ur information,i'm using sp12.
any help wud b appreciated.
thnx
Anil

Hi Anil,
Please check out the following link ...
Re: Variable substitution - Pseudo Path Variable - file adapter
Re: Variable substitution problem
Regards,
Raj

Similar Messages

  • Dynamic  File Name for Receiver File Adapter

    Hi All,
    How can we use dynamic name for Receiver file adapter?
    Can anyone help.
    Thanks in Advance
    Chemmanz

    Hi Chemmanz,
    The dynamic filename generation concept is as follows.
    In your filename field. just give a variable with % symbols. (eg: %file% ).
    Now, under the option Variable Name Substitution, you can give how the value has to be created.
    It can be your interface name, sender service name, etc or it can be some value dynamically from your payload.
    For the former, your give
    message:interface_name ,etc
    and for the payload part you give,
    Payload: "your element root which u wanna acecss"
    Just check this link out,
    http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
    And read the contents under variable substitution and it will help you understand the concepts better.
    If you have any clarifications, do get back,
    Regards,
    Bhavesh

  • OS Command for receiver file adapter

    Hi Guys,
    I have a requirement that in the target folder before putting the file, I have to rename the exisitng file then put the file. The target folder is in another machine and I have to use FTP option to send file.
    is it possible to use OS command after processing option in the receiver file adapter to do this? please let me know how to handle this.
    Thanks
    Mukesh

    Mukesh,
    You cannot rename the file in the FTP folder. What you can do is write a OS script where it logs in into the FTP site and renames the file. Then use this OS script before message processing so that it renames the file before you write the actual file.
    If you want to rename a file which is on the applicaiton server using NFS then you can directly rename it from the command prompt.
    Regards,
    ---Satish

  • Attachments for receiver file adapter

    Hello gurus,
    I think receiver file adapter does not support attachments. But I do have a scenario where I receive additional files as SOAP payloads accompanying  the request message and I have to write them to a network directory. How can I achieve this?
    Regards,
    Gökhan

    Hi Gokhan,
    Please have a look at the following links and see if it helps
    Re: File adapter with attachment to mail
    Re: How to use File Adapter to transport files
    Best Regards

  • XML Format not poper For receiver File Adapter

    I am using XML File to xML File scenario. My receiver is SAP R/3 system. When I send file from another system, It is properly seen in payload but the file is not properly recived on SAP R/3. The XML File appears on single line and when seen on SAP side side the fileis cut after some length. Any help is appreciated.

    hi,
    >>>The XML File appears on single line and when seen on SAP side side the fileis cut after some length. Any help is appreciated.
    it's probably not the XML file file that is corrupter but the way you view the file
    do you open it from AL11? if so it does not show the whole file
    PI/XI does not cut XML files for sure
    Regards,
    Michal Krawczyk

  • REG: Acknowledgement for receiver file adapter

    Hi All,
               I have a scenario where i need to make a rfc call  to update SAP table after the file is placed in the target folder. Can this be acheived without using BPM.
    Thanks,
    Siva

    Hi Siva,
    I think this cannot be achieved without BPM. You need to go ahead with BPM.
    /people/michal.krawczyk2/blog/2006/06/22/xi-playing-with-the-file-adapters-acknowledgments
    http://www.sap-xi.com/sap-xi-scenario-rfc-file.html
    Thanks,

  • Encoding issue in receiver file adapter

    Hi experts,
    I am having a file to file scenario using integrated configuration where i am using file encoding 'US-ASCII' for converting the target file to ASCII and its not working.
    Is there any other settings need to be done in the receiver file adapter to convert to 'ASCII' encoding format?
    Do we have any other method to convert to 'ASCII' format for the receiver file?
    .txt file is used for this interface.
    Thanks!

    Hi Mahakrishnan,
    What is the format of file mentioned in sender file adapter? If SAP-PI is receiving File format in US-ASCII. Then mention US-ASCII in sender communication channel in file encoding field,file type will be text. In case the file format  received by SAP-PI is normal text file then by default sender adapter will convert it to UTF-8. Maintain the  file type=text and encoding=US-ASCII for receiver file adapter also.
    ASCII is an alias for US-ASCII file encoding, hence both mean the same encoding. Thus this format should work. If its still not working please refer to SAP note 821267.
    Regards
    Anupam
    Edited by: anupamsap on Mar 9, 2012 5:47 AM

  • Error dynamic File Name in Receiver File Adapter

    Hi all,
    Dynamic file name for Receiver file Adapter Problem
    my multi mapping look like this in design mode
    messages
         message1
              SD01_E
                   FileName
                   row
         message2
              SD02_E
                   FileName
                   row
    by processing the xml look like this:
    <ns2:SD01_E xmlns:ns2="urn:lsv.de/SAP/XXX">
    <FileName>L40SA939.xiConstant</FileName>
    - <row>
    or
    <ns2:SD02_E xmlns:ns2="urn:lsv.de/SAP/XXX">
    <FileName>L40SA939.xiConstant</FileName>
    - <row>
    in file receivere adapter  i have try this but it dos not work
    payload:SD01_E,1,FileName,1
    Error:com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 0(:main:, row:1, col:0)
    is there any way to have access to Filename  in different root elements??
    regards
    Ralf

    Hi Ralf,
    i think, you need for each XML msg (each different root element) a new adapter -> a new IF determination, new rec agreement and a new channel.
    Regards,
    Udo

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

  • Scheduling Receiver File Adapter

    Hi All,
        I would like to know if "Planning Availability Times" works for receiver file adapter (communication channel).
    My scenario is IDoc to file. The IDoc from SAP end might be sent to XI at anytime but XI has to create the target file at a specific time on a day (say 9 pm). I'm just wondering if I can use "Planning Availability Times" to schedule the receiver cc.
    Thanks in advance.
    Regards,
    Joe.

    Hi,
    Reffer these
    Polling based upon availability
    http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/frameset.htm
    /people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
    Regards
    Seshagiri

  • Sender_interface_name in Variable Substitution in Receiver File Adapter CC

    Hi,
    as per this page : http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
    it says:
    Variable Substitution (Target Directory/File Name Scheme)
    If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
    ●      Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
    The variables can refer to attributes of the message header or elements of the message payload.
    ○       If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
    sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace, message_id, message_id_hex
    Can we not access sender_interface_name and sender_interface_namespace are not mentioned in above list of variables.
    Is it not possible to access sender_interface_name or sender_interface_namespace as variable substitute parameters from within Receiver File Adapter Communication channel.
    thanks.

    >Shabarish Vijayakumar wrote:
    >>the sender interface details will always remain a constant
    >>so you can hard code the value, isnt it?
    Yes, i can hardcode, thats not a bad idea, i need to create then 3 different Reciever File Communication Channel objects, as I am dealing with 3 scenarios for which sender system and sender interface is different.
    >Shabarish Vijayakumar wrote:
    >>if you look at the mapping runtime constants, those are also for the receiver since the sender interface will always remain constant for any particular CC.
    >>http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
    yes in this link you provided i can see..
    INTERFACE     Interface
    INTERFACE_NAMESPACE     InterfaceNamespace
    SENDER_SERVICE     SenderService
    RECEIVER_SERVICE ReceiverService
    RECEIVER_NAME     ReceiverName
    RECEIVER_NAMESPACE     ReceiverNamespace
    it seems both INTERFACE (,INTERFACE_NAMESPACE) and RECEIVER_NAME(,RECEIVER_NAMESPACE) are present, may be one is for sender, and another is for receiver.. may be if i use dynamic configuration, possibly my issue would be addressed.. correct me if i am wrong.
    thanks.

  • Receiver file adapter settings

    Hi,
    I have a scenario in which I need to generate a file in tab delimited format. But in the receiver file adapter configuration we have only text/binary file creation mode. By setting the File Type in “TEXT” mode will I be able to do a tab de-limited file?? Or is there any other configuration settings need to be done?
    -Ken

    Hi Amanda,
      Thank you so much for the great info. I think I can find some stuff but still it would be helpful if you could forward the doc to [email protected] Also, yeah it looks like the receiving file format would be complex with header and footer. In the content conversion can we specify header and footer?? or is there any other way to define...FYI my source file also contains header and footer..I am just a little confused on how to set up the message types for mapping...
    Many thanks..
    -ken

  • Receiver file adapter error for special char.

    I am using MTB in my receiver file adapter. I am getting a special character from source system at end of the string. How to resolve this type of error u2013 please advice.
    This error is not coming for every message.
    Error message:
    Column value xxxx   too long - must stop, probably configuration error in file adapter
    Thanks
    Vick

    Hi,
    Itu2019s basically IDOC to file scenario.
    This error is coming for name field.
    What I am thinking at this stage to do changes in MTB by define parameters like (NameA.enclosureConversion)

  • Configuring Receiver File Adapter for J2SE

    Hi All,
    I have a scenario in which i need to convert the IDOC data into a fixed length file.
    I did mapping according to the output structure of the file.
    My Output file format is as follows...
    Document1          document2      document3      etc
    Each document contains different fields with different lengths
    In XI-FIle adapter we give Recordset structure : Document1,Document2,Document3.
    But while configuring Receiver File adapter in J2SE.
    There is no option mentioned in J2SE Adapter.
    <b>http://saphelp.border-states.com/EN/95/bb623c6369f454e10000000a114084/content.htm</b>
    Please throw some light on the same.
    Thank You
    Regards,
    Reehan

    as far as i read the document, what i understood is that the J2SE adapter has a limitation.
    your XML structure should be as mention in the link;
    <i>To convert a table in XML format to pure text format, the document format must be the same as that which is generated by the sender file/FTP adapter in mode FILE2XMBWITHROWCONVERSION <i>(with the default value <row> for the structure)</i> and the sender JDBC adapter. This means that the document structure looks like this:
    <resultset>
    <row>
    <column-name1>column-value</column-name1>
    <column-name2>column-value</column-name2>
    <column-name3>column-value</column-name3>
    </row>
    <row>
    <column-name1>column-value</column-name1>
    <column-name2>column-value</column-name2>
    <column-name3>column-value</column-name3>
    </row>
    </resultset>
    This is an example for 3 columns and 2 lines. The number of lines and columns is, of course, unlimited. <b>The XML elements in italics can be defined by the user and the elements of a line must be grouped within an element of type <row> … </row></b>.</i>
    So cannot take the <b>recordset structure</b> as we have for the normal File adapter.

Maybe you are looking for

  • No sound on my Sony Bluetooth Headset because Windows 7 can't find Bluetooth peripheral device driver

    SO, I am dealing this problem for the second day in a row and no working solution still. I own the latest iMac 2014 (though the model is exactly as 2013) 2,7 Ghz with Bluetooth 4.0, I've installed through Bootcamp Windows 7 x64. My bluetooth headset

  • What can you do with a stolen iPhone?

    My iPhone 5s was stolen last Sunday. Since then I have put a block on the SIM and, using 'Find my iPhone', have set the phone to be erased. 'Find my iPhone' shows the phone as offline all the time (I believe I had cellular data disabled on the phone)

  • Please take a look?

    Hello :) My friend is doing his thesis & he's stuck with this program. Unfortunately I don't have Java installed on this comp (in work) so I'm not much use but I was hoping someone here could point him in the right direction. Here goes... Description

  • Help with splitting a file

    I'm Starting in Java programing and need some help. Based in the information of txt file, I need to split a file.txt into "n" .txt files, depending of the blocks thats the file containt. It's delimited by """". And put the name between "UZ0RN0" the s

  • Size of print

    How do I change the size of the text when I print a message received on E-mail?  Most times the font is very small and I can't read it. Navalofficer