<?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>topic Re: Setting Target Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583158#M590826</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope your code will solve it. I could understand your code as it is in zigszag. Can you give one sample code flow for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yellappa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 14:18:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T14:18:06Z</dc:date>
    <item>
      <title>Setting Target Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583156#M590824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program which will take a file from PC. It will  format the records of the file and write it to a Unix file. Now the requirement is I want this Unix file needs to be created always in specified Application server. What generally happens is, It will create the file in the Application server currently user has logged in. My requirement is irrespective of Current Application server that user has logged, I want file always be created in specified application server. Is there any function module to set the Target Application server from the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise in this. Points will be awarded for the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 13:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583156#M590824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T13:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Target Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583157#M590825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF MTAB_DATA OCCURS 0,&lt;/P&gt;&lt;P&gt;LINE(132) TYPE C,&lt;/P&gt;&lt;P&gt;END OF MTAB_DATA.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DATA: MC_PASSWORD(20) TYPE C,&lt;/P&gt;&lt;P&gt;MI_KEY TYPE I VALUE 26101957,&lt;/P&gt;&lt;P&gt;MI_PWD_LEN TYPE I,&lt;/P&gt;&lt;P&gt;MI_HANDLE TYPE I.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*-- Your SAP-UNIX FTP password (case sensitive)&lt;/P&gt;&lt;P&gt;MC_PASSWORD = 'password'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;*-- FTP_CONNECT requires an encrypted password to work&lt;/P&gt;&lt;P&gt;CALL 'AB_RFC_X_SCRAMBLE_STRING'&lt;/P&gt;&lt;P&gt;     ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY&lt;/P&gt;&lt;P&gt;     ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD&lt;/P&gt;&lt;P&gt;     ID 'DSTLEN' FIELD MI_PWD_LEN.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_CONNECT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;*-- Your SAP-UNIX FTP user name (case sensitive)&lt;/P&gt;&lt;P&gt;       USER            = 'userid'&lt;/P&gt;&lt;P&gt;       PASSWORD        = MC_PASSWORD&lt;/P&gt;&lt;P&gt;*-- Your SAP-UNIX server host name (case sensitive)&lt;/P&gt;&lt;P&gt;       HOST            = 'unix-host'&lt;/P&gt;&lt;P&gt;       RFC_DESTINATION = 'SAPFTP'&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       HANDLE          = MI_HANDLE&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       NOT_CONNECTED   = 1&lt;/P&gt;&lt;P&gt;       OTHERS          = 2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CHECK SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_COMMAND'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       HANDLE = MI_HANDLE&lt;/P&gt;&lt;P&gt;       COMMAND = '&amp;lt;b&amp;gt;dir&amp;lt;/b&amp;gt;'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;       DATA = MTAB_DATA&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       TCPIP_ERROR = 1&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;       COMMAND_ERROR = 2&lt;/P&gt;&lt;P&gt;       DATA_ERROR = 3&lt;/P&gt;&lt;P&gt;       OTHERS = 4.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;  LOOP AT MTAB_DATA.&lt;/P&gt;&lt;P&gt;    WRITE: / MTAB_DATA.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;do some error checking.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  WRITE: / 'Error in FTP Command'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FTP_DISCONNECT'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       HANDLE = MI_HANDLE&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       OTHERS = 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Above Program, Unix command DIR was uesd to see the file list, if you want to Create the file use CAT command istead of the DIR command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To FTP using ABAP, you can have a look at the standard program 'RSEPSFTP'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 14:03:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583157#M590825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T14:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Target Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583158#M590826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope your code will solve it. I could understand your code as it is in zigszag. Can you give one sample code flow for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yellappa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 14:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583158#M590826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Target Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583159#M590827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Sorry for that check this link for the code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="92596"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 14:20:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583159#M590827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T14:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Target Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583160#M590828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your link is very useful to me. I have rewarded the points for the same. Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 15:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/setting-target-application-server/m-p/2583160#M590828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T15:33:12Z</dc:date>
    </item>
  </channel>
</rss>

