ASMA parameters in file adapter

Hi experts,
Please explain when exactly we will get the requirement to use  ASMA attributes in file adapter and provide few examples?

HI,
Just to add a quick note, in the case of adapter like File Adapter you have the option in the Sender / Receiver File Adapter to select the ASMA and the corresponding Attribute ( eg : FileName, Directory etc ) to be used from the SOAP Header.
In the case of few other adapters like SOAP, you do not have such explicit option. You add the ASMA to the SOAP Header using a UDF and you just select ASMA and Varibale Transport Binding in the Receiver SOAP adapter and all the SOAP Adapter value are replaced with header ASMA.
Each adapter has a few specific ASMA and these can be seen along with the technical names while trying to set some condtion in the Condition Editory under Context Objects.
If we check ASMA of file adapter ......all the information corresponding to that attributes will be available in the SOAP header
Every adapter has a defined set of attributes, which are described individually as part of the configuration for each of the adapters. So these attributes would be visible. And better to call it Message Header instead of SOAP header.
If we check ASMA in the receiver file adapter then receiver file adapter will pick those values from the SOAP header and will assign to the target file.
Yes, if mapping of these attributes are done.
Even we can directly set the target file name by accessing the system parameters through UDF.
Yes
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean
/people/sravya.talanki2/blog/2006/12/20/accessing-system-parameters-in-mapping-runtime
/people/alessandro.guarneri/blog/2007/03/18/basic-spam-protection-for-xi-mail-adapter
Thanks
Swarup

Similar Messages

  • File Content Conversion Parameters in FIle Adapter

    Hi
    I am doing a scenario - XML file to Text file using File content conversion parameters in Receiver File Adapter Channel.
    I given FCC Parameters like:
    DATA.addHeaderLine - '0'
    DATA.fieldSeparator - ,
    DATA.endSeparator - 'nl'
    But im getting error in Receiver File Adapter as - fieldSeparator not specified.
                 i would be greatful if any one help me.
    Regards
    Rajesh

    Hi Rajesh,
    There are lot of blogs which explain File Content Conversion in different scenarios:-
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /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/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    I hope this helps.
    Regards.
    Praveen

  • Regarding the content conversion parameters in file adapter

    Hi Experts,
                   i had a requirement where i am having a nested structure on fcc side.Ingeneral we can specify the keyfield parameter as
    follows.For example Header.keyFileldNames
    But how can i specify the nested structure.for example
    my structure
    Header
         field1
              fieldA
              fieldB
    Inthis case how can i specify the keyfield parameter.
    Thanks
    Giridhar

    Hi,
    Refer to the replyin your previous thread. it contains good blogs.
    Go through this as well,
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Regards,
    Bhavesh

  • Target Directory & File Name parameters in Receiver File Adapter with ASMA

    Hi Experts..
    I have the following question....
    What am I suppose to inform in the Target Directory & File Name obligatory parameters in Receiver File Adapter if I am using ASMA to fill it? Is it any dummy value?
    Also, if you have any step by step guide/blog to forward on how to use ASMA in file adapter I will be greatful.
    Thanks in advance,
    Daniela

    You can give any dummy value in dir and file name... Just go through these blogs
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    /people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot

  • FCC Parameters are required in the Receiver  File Adapter

    Hi ,
       Sorry for posting this  question again.. my  Structure is
    MT_CADVICE_STRING
    .     .  Batach -
    1:Unbounded (Node)
    .     .      .Header_String -
    1:1       
    .     .      .Line_Item       -
    1:Unbounded  (Node)
    .     .      .      .LineItem_String -
    1:1 
    for this structure  I'm geting data in the XML format.. .. my scenario is simple File to File scenario.. now i want to convert this XML to  a normal Text file  by using FCC in the Receiver file adapter..
    and in the Receiver side   i want the file in the bellow  format:  (each field i want to get in the separate line  but at presnt I'm getting the continution of all lines I'm not getting the data in a separate lines..)
    Header_string  
    LineItem_String
    LineItem_String
    Header_String
    LineItem_String
    so, any abody  can help on this...
    And in the Receiver Communication channel i keep the FCC parameters like  as bellow :
    RecordsetStructure : Batch,LineItem
    Batch.fieldSeparator:  'nl'
    LineItem.fieldSeparator: 'nl'
    Batch.endSeparator:  'nl'
    LineItem.endSeparator: 'nl'
    For more information.. My source file is like bellow
      <?xml version="1.0" encoding="utf-8" ?>
    - <nr1:MT_CADVICE_STRING xmlns:nr1="urn:Test.com:SD:CAdvice">
    - <Batch>
      <Header_String>1 B 1110300014200804108218 36892.80 03 10.000 10.000 0.00 0.00 008000021720080410558000.00 91958.40 649958.40 0.00 649958.40 2678.40 1000003461100000346110000034611000003461123456 18 18 0.00 $</Header_String>
    - <LineItem>
      <LineItem_String>2 B 1110300014 1 000000000001234567000000000001 5.000 0.00 45000.00 10800.00.00 16.00 279000.00 0.00 rcl/ML0080200804100000000357 200804100.00 01 02 000000002.00 860.13321.00 $</LineItem_String>
      </LineItem>
    - <LineItem>
      <LineItem_String>2 B 1110300014 2 000000000001234567000000000001 5.000 0.00 45000.00 10800.00.00 16.00 279000.00 0.00 rcl/ML0080200804100000000357 200804100.00 01 02 000000002.00 860.13321.00 $</LineItem_String>
      </LineItem>
      </Batch>
      </nr1:MT_CADVICE_STRING >
    Regards
    Jain

    Hi jain
    Provide as below definitely it will work,
    RecordSet Structure :  batch,Line_Item,LineItem_String
    batch.fieldSeparator        ---      'nl'
    Line_Item.fieldSeparator  -
         'nl'
    LineItem_String.fieldSeparator  ---   'nl'
    All your fields will come in a separate line.
    Regards,
    Sasi
    Edited by: sasitharan on Jul 28, 2008 11:36 AM

  • How do i extract Delimited falt file-Sender File adapter FCC Parameters

    Hello,
    I'm trying to extract data from a flat file. The file is built as tab delimited. I cant find the option of tab delimited in the XI Sender File adapter FCC Parameters. How do i extract tab delimited file?
    Please Advice,
    Rajesh

    HI,
    You can use Fieldseperator as '0X09'...
    Look at this blog...........you can solve this problem...
    NAB the TAB (File Adapter)                              
    Thanks,
    Madhu
    Edited by: Madhu sudhan Reddy on Jul 28, 2008 9:02 AM

  • File Adapter - Content conversion parameters at Receiver

    Hi all,
    I'm trying to translate a XML message to a text line file.
    My XML message is this:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:Proveedor_100011 xmlns:ns1="http://sap.com/xi/webservices/buyordint">
    <config>
    <directory>c:/tmp</directory>
    <filename>dynamicFile3.txt</filename>
    </config>
    <root><string>Header;423423</string>
    <lines>
    <value>LINE;</value>
    </lines>
    </root>
    </ns1:Proveedor_100011>
    I only want to write to text file the "root" TAG content.
    I try different "Content conversion parameters" in the integration builder (configuration)
    For example:
    RecordSet Structure: root
    root.addHeaderLine   0
    root.fieldSeparator  ;
    root.endSeparator    ;
    but the better result is all XML content.
    Can someone tell me how to skip "Config" TAG and only write the "ROOT" one?
    I'll apreciate any help.
    Thanks in advance,
    Diego.

    Hi Sravya,
    I've tried again without better luck.
    I change the root element of my message from
    Proveedor_100011 to Proveedor100011. (removed underscore)
    I created the next message as in your weblog:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://sap.com/xi/webservices/buyordint" targetNamespace="http://sap.com/xi/webservices/buyordint">
    <xsd:element name="Proveedor100011" type="Proveedor100011" />
    <xsd:complexType name="Proveedor100011">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    54650790d48f11dab96c001438eb3b44
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:sequence>
    <xsd:element name="root">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f20d48e11dab854d06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="head" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f21d48e11da8f1dd06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="rows" minOccurs="0" maxOccurs="unbounded">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f22d48e11da894ad06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="value" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f23d48e11dab889d06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="filenode">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f24d48e11daab91d06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="filename" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f25d48e11da8becd06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    <xsd:element name="filepath" type="xsd:string">
    <xsd:annotation>
    <xsd:appinfo source="http://sap.com/xi/TextID">
    45f01f26d48e11dac56cd06ec0a8004a
    </xsd:appinfo>
    </xsd:annotation>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:schema>
    <Proveedor100011>
    <root>
    <rows>
    <value></value>
    </rows>
    </root>
    <filenode>
    <filename></filename>
    <filepath></filepath>
    </filenode>
    </Proveedor100011>
    I've tried to set "Recordset Structure" in file adapter configuration to "root,filenode" and to "Proveedor110001, filenode" but no output is writed
    We are using XI version: SAPKB64015, which version did  you use in your weblog?
    Thanks and regards,
    Diego.

  • Receiver file adapter parameters

    Hi ALL,
    In FTP connection parameters which User Name and password we have give and from whom we should take it ...we have take this password from basis?
    Regards
    Ganaga

    Hi,
    Incase if you are using the FTP file adapter, you should probably have the following details
    FTP hostname/IP address
    FTP port (if default 21)
    User name
    Password
    Source/Target directory from where the file needs to picked/delivered
    Incase if the FTP server has anonymous login then you need not provide the user name and password for the ftp connection parameters
    Regards,
    Nithiyanandam

  • Passing mulitple parameters to unix shell script via File adapter

    Hi,
    I have the following usecase.
    I have a set of files A, B, C, D  etc in a directory dir.  I also have a EOT ( end of transaction file).
    I need to merge this file once the EOT file is present in XI application server (  using NFS with File adpter).
    I have a script which can take the following paramters:
    1. EOT file name
    2. File names for A,B,C,D
    3. Directory names.
    Is it possible to send muliple parameters to the unix script from the File adapter?
    please share any blogs which do so.
    Thanks in advance,
    Best Regards
    Abhishek

    Hi,
    You can always call script from file adapter using "OS command" functionality, pass additional parameter like you do in unix for existing script (exact command which you type on unix prompt).
    Adapter will simply pass your OS command to operating system, so from XI point of view nothing is changed and it is your script which should take care of parameters.
    Regards,
    Gourav

  • File adapter parameters

    Hi Experts,
    In  file adapter, in file access parameter what is sourse directory , file name?
    and in processing parameter what is archive directory?
    i gone through the IDOC-File scenario PDFS but still confused
    suppose iam sending file from legasy system to XI and XI converting it to IDOC here,
    the sourse dierectort is path of XI system where sourse  file is located  or is the location where the result file is stored and what is archive directory
    Thanks for your time
    Regards
    niru

    hi,
    In file adapter, in file access parameter what is sourse directory
    this is the address for the source file where it is placed.
    if u r using NFS protocol please change \ to /.
    the file name must be same as the sender file name.
    in the receiver file adapter  the
    you need to give the address for the target directory where u want to put the target file
    regards,
    navneet

  • Sender File Adapter missing processing parameters

    Hi All,
    On my Dev box in ID for configurations of Sender File adapter I am able to see the following options:
    1)    Handling of Empty Files
    2) Archive Source Files with Errors
    But I am unable to see them on QA box.What could be the error.

    Hi All,
    I checked the metadata in IR in Dev and QA.
    They are different.
    In QA i dont see the " Handling of Empty Files"
    What could be the problem
    Thanks

  • Email attachment name in sender mail adapter to the receiver file adapter

    HI ,
    Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
    Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
    I assume , i need to do following steps :Please confirm.
    1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
    2. select ASMA option in advanced tab in sender mail adapter
    3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
    4. Also select file name option in ASMA in sender mail adapter
    Thanks,
    Vamsi

    Hi Vamsi,
    your scenario is also described here: Re: sender mail adapter - attachment name
    If you use the Module getAttachmentName, which is described here,
    http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
    your scenario should work as you described it.
    You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
    Fileadapter (http://sap.com/xi/XI/System/File/FileName).
    regards,
    Daniel

  • File adapter specific message attributes

    Hi,
    If we check ASMA of file adapter ......all the information corresponding to that attributes will be available in the SOAP header. If we check ASMA in the receiver file adapter then receiver file adapter will pick those values from the SOAP header and will assign to the target file.
    Even we can directly set the target file name by accessing the system parameters through UDF.
    please correct me if my understanding is wrong.
    thanks
    kumar

    Hi Kumar,
    <i>If we check ASMA of file adapter ......all the information corresponding to that attributes will be available in the SOAP header</i>
    Every adapter has a defined set of attributes, which are described individually as part of the configuration for each of the adapters. So these attributes would be visible. And better to call it Message Header instead of SOAP header.
    <i>If we check ASMA in the receiver file adapter then receiver file adapter will pick those values from the SOAP header and will assign to the target file.</i>
    Yes, if mapping of these attributes are done.
    <i>Even we can directly set the target file name by accessing the system parameters through UDF.</i>
    Yes
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    <i>[Reward points if helpful]</i>
    Regards,
    Prateek

  • Configurig FCC in Receiver File Adapter

    Dear All,
    It is a IDOC to FILE Structure where after mapping there are only two fields in the target structure and the occurrence is only once.
    The two fields are - filename and data
         <Message>
              <filename>brand0412</filename>
              <data>CO BLUE ALTERNATE Y</data>
         </Message>
    I would like to create a text file with the following requirements:
         1) the name of the text file -> value of field filename -> brand0412.txt
         2) the content of the text file should be -> the value of the data field -> CO BLUE ALTERNATE Y
    i.e.
    File name - brand0412.txt
    Content - CO BLUE ALTERNATE Y
    What are the parameters I should use for FCC?

    Hi Rana,
    You can use DynamicConfiguration to name the text file. You can find the Dynamic configuration UDFs on SDN. Here are few , modify as per your requirement.
    Target file name using Dynamic Configuration
    SAP XI Dynamic Configuration - Code Gallery - SCN Wiki
    Dynamic File Name - UDF
    Map as below :
    Filename -> DynamicConfiguration UDF ->TargetMessage
    Your target structure will look like
         <TargetMessage>
                   <Message>
              <data>CO BLUE ALTERNATE Y</data>
                   </Message>
         </TargetMessage>
    Select FileName in ASMA properties in receiver adapter.
    Once you have done this , configure the receiver adapter using FCC parameter. refer below.
    XI/PI: File Content Conversion for Simple Structure

  • FileName in Sender File Adapter Module

    Hi Folks,
    In my sender file adapter have written a module to read the picked file name. The protocol used is NFS.
    Notice that the file name read in the module has the absolute path, including the directory path. E.g The file name xyz has to be picked from source directory
    XIServer\Outbound. In the module when I retrieve the file name, it comes up as
    XIServer\Outbound\xyz. Is this expected behaviour?
    I was expecting just the file name<xyz> to be retrieved.
    Thanks,
    Anand

    HI,
    Create an UDF and write this code.
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key =
    DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String ourSourceFileName = conf.get(key);
    return  ourSourceFileName;
    in Adapter u will have Adapter specific parameters check the file name check box.
    Using this UDF u will get the file name at target side.
    Regards,
    Phani.

Maybe you are looking for

  • I want to use an apple tv as a sound streamer

    The thing is - what do I do? My TV is connected to my Yamaha receiver. So from now on, my TV will allways be on when I'm using my Apple TV? Or I could connet the ATV to my receiver via optical cable, and use it on AirPlay mode only? Thanks!

  • Batch-find-and-replace.jsx

    Hi there, I wrote a batch-processing script for find change queries and thought I share it with you. You can get it over here  You can process GREP, TEXT, GLYPH and OBJECT searches.  Purpouse While creating books in InDesign with several documents we

  • In desperate help with Dreamweaver Forms

    I am looking to create a textfield within my form for viewers to enter a certain phrase or code to enable them to view my next page on my website. In other words, I am creating a simple game on dreamweaver were viewers have to enter a code within a t

  • Problems after wrt45g v5.1 hard reset

    Hello, I need to recover my password, and in short - get to factory defaults. So I followed the manual - hold down the reset button for 30 seconds. Then I plug in my eth cable and connect to 192.168.1.1 via browser but it doesn't work. The power led

  • How do you get firefox not to report personal information

    A federal Goverment Agency posted some of my personal information on the web and is doing so illigally in violation of the privacy act, and other reporting laws, can some one tell me how to get Fire Fox not to report this illegal information ?