<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Dynamic Receiver File adapter Authentication in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaa-p/11933438#M4484013</link>
    <description>&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;Thanks for your inputs... I have shared my inputs above for the same. Please check and let me know in case of any.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karan K.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Feb 2021 08:55:34 GMT</pubDate>
    <dc:creator>former_member285898</dc:creator>
    <dc:date>2021-02-01T08:55:34Z</dc:date>
    <item>
      <title>Dynamic Receiver File adapter Authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaq-p/11933435</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
  &lt;P&gt;Kindly help for below mentioned queries.&lt;/P&gt;
  &lt;P&gt;&lt;U&gt;Scenario:&lt;/U&gt;&lt;/P&gt;
  &lt;P&gt;Proxy (ECC)-&amp;gt; PI-&amp;gt; (FTP) Third party&lt;/P&gt;
  &lt;P&gt;&lt;U&gt;Requirements:&lt;/U&gt;&lt;/P&gt;
  &lt;P&gt;1) Dynamic IP,Port,User credential and Folder path configuration in Receiver FTP Adapter&lt;/P&gt;
  &lt;P&gt;2) In case connectivity to particular File system fails then switching to other File system and dumping data in Real time.&lt;/P&gt;
  &lt;P&gt;&lt;U&gt;Queries:&lt;/U&gt;&lt;/P&gt;
  &lt;P&gt;1) For 1st requirement, I assigned IP details using Variable substitution method, but it is not working. Getting Unknown host exception&lt;/P&gt;
  &lt;P&gt;2) Using ASMA parameter (for 1st requirement) or Custom Adapter module, both requirements can be achievable?&lt;/P&gt;
  &lt;P&gt;Please let me know in case any query or info required.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Karan Kholakiya&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jun 2019 11:46:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaq-p/11933435</guid>
      <dc:creator>former_member285898</dc:creator>
      <dc:date>2019-06-24T11:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Receiver File adapter Authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaa-p/11933436#M4484011</link>
      <description>&lt;P&gt;Hi Karan,&lt;/P&gt;&lt;P&gt;Ideally its very rare to have Dynamic IP address, port number and user account. Variable substitution is for target  directory and file name scheme.&lt;/P&gt;&lt;P&gt;Folders/sub folders and file name scheme(i.e. file name and path directory) and can be handled dynamically using ASMA if required inputs are passed from Source system.&lt;/P&gt;&lt;P&gt;public StringASMAFilename(String REFNO, String CREDAT, String CRETIM, String basedirectory, Container container) throws StreamTransformationException{&lt;/P&gt;&lt;P&gt;String filename = new String(""); &lt;/P&gt;&lt;P&gt;
DynamicConfiguration conf1 = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION); 
DynamicConfigurationKey key1 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName"); &lt;/P&gt;&lt;P&gt;
filename = "GY" + "_" + REFNO+ "_"  + "_" + CREDAT + "_" + CRETIM + ".csv"; 
conf1.put(key1,filename); &lt;/P&gt;&lt;P&gt;
DynamicConfigurationKey key2 = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory"); &lt;/P&gt;&lt;P&gt;
String forwardslash = "/"; &lt;/P&gt;&lt;P&gt;
String outputdirectory = basedirectory + REFNO +  forwardslash; &lt;/P&gt;&lt;P&gt;conf1.put(key2,outputdirectory); &lt;/P&gt;&lt;P&gt;
return filename;&lt;/P&gt;&lt;P&gt;You can deliver the message to 2 different business components always instead of switching over of components/file system.&lt;/P&gt;&lt;P&gt;Thanks and Regards - Rajesh PS&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:10:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaa-p/11933436#M4484011</guid>
      <dc:creator>former_member607993</dc:creator>
      <dc:date>2019-06-27T19:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Receiver File adapter Authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaa-p/11933437#M4484012</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;For above mentioned requirement, In SAP PI/PO there is less options available.&lt;/P&gt;&lt;P&gt;So for this requirement i used &lt;STRONG&gt;"Directory API"&lt;/STRONG&gt; feature given in SAP PI/PO.&lt;/P&gt;&lt;P&gt;We implemented this feature in ERP side as below design.&lt;/P&gt;&lt;P&gt;1) First SFTP server detail is stored in custom table which is configured in SAP PI channel.&lt;/P&gt;&lt;P&gt;2) Before sending data, target SFTP server will be pinged for connectivity check.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Success :&lt;/STRONG&gt; Then data will be send to Interface using SOAP-XI adapter.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Failure :&lt;/STRONG&gt; In case of ping is failed, then Directory API feature will be used , and SFTP server details will be changed to Communication channel from ERP and custom table will be updated with new SFTP server details which configured in SAP PI channel.&lt;/P&gt;&lt;P&gt;So this way we can change SFTP channel details in runtime using ABAP codes in ERP side.&lt;/P&gt;&lt;P&gt;This is the best solution i can think of for this requirement. Also there are many blogs available for "Directory API" so i am not mentioning here any URL for the same.&lt;/P&gt;&lt;P&gt;I hope this answer will be helpful. In case there is better design solution, then feel free to share. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karan K.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 08:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaa-p/11933437#M4484012</guid>
      <dc:creator>former_member285898</dc:creator>
      <dc:date>2021-02-01T08:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Receiver File adapter Authentication</title>
      <link>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaa-p/11933438#M4484013</link>
      <description>&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;Thanks for your inputs... I have shared my inputs above for the same. Please check and let me know in case of any.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karan K.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 08:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/dynamic-receiver-file-adapter-authentication/qaa-p/11933438#M4484013</guid>
      <dc:creator>former_member285898</dc:creator>
      <dc:date>2021-02-01T08:55:34Z</dc:date>
    </item>
  </channel>
</rss>

