<?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: FTP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp/m-p/2272289#M493666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this is a system function which is used internally&lt;/P&gt;&lt;P&gt;see the doc&lt;/P&gt;&lt;P&gt;CALL - Call a System Function: &lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This statement is for internal use only. &lt;/P&gt;&lt;P&gt;It cannot be used in application programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;As of Release 6.20, you should use Kernel Methods instead of system functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;CALL cfunc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: &lt;/P&gt;&lt;P&gt;... ID id1 FIELD f1 ... ID idn FIELD fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Calls the system function cfunc. The relevant function must exist in the file sapactab.h. If you change or recreate a function, you have to compile and link the SAP kernel again. For this, you need the C source code files. &lt;/P&gt;&lt;P&gt;Normally, external programs should be called by RFC with CALL FUNCTION ... DESTINATION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition &lt;/P&gt;&lt;P&gt;... ID id1 FIELD f1 ... ID idn FIELD fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Passes fields to the called program by reference. With "ID id1", you specify the name of a formal parameter, and with "FIELD f1" the relevant field from the ABAP/4 program. If a formal parameter expects an internal table, the latter is passed in the form "FIELD tab[]". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA RESULT(8). &lt;/P&gt;&lt;P&gt;CALL 'MULTIPLY' ID 'P1'  FIELD '9999' &lt;/P&gt;&lt;P&gt;                ID 'P2'  FIELD '9999' &lt;/P&gt;&lt;P&gt;                ID 'RES' FIELD RESULT. &lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;With some critical C functions, the system automatically performs an authorization check. If the user does not have the appropriate authorization, a runtime error occurs. You can check the authorization with the function module AUTHORITY_CHECK_C_FUNCTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2007 04:34:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-14T04:34:39Z</dc:date>
    <item>
      <title>FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp/m-p/2272288#M493665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Sudheer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please tell me what "CALL 'AB_RFC_X_SCRAMBLE_STRING'" this statement does, weather it is a function , sub routine , or SAP statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ZFTPSAP LINE-SIZE 132.&lt;/P&gt;&lt;P&gt; &lt;/P&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 = 'dir'&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;Regards&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 04:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp/m-p/2272288#M493665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T04:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: FTP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ftp/m-p/2272289#M493666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;this is a system function which is used internally&lt;/P&gt;&lt;P&gt;see the doc&lt;/P&gt;&lt;P&gt;CALL - Call a System Function: &lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;This statement is for internal use only. &lt;/P&gt;&lt;P&gt;It cannot be used in application programs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;As of Release 6.20, you should use Kernel Methods instead of system functions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;CALL cfunc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition: &lt;/P&gt;&lt;P&gt;... ID id1 FIELD f1 ... ID idn FIELD fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Calls the system function cfunc. The relevant function must exist in the file sapactab.h. If you change or recreate a function, you have to compile and link the SAP kernel again. For this, you need the C source code files. &lt;/P&gt;&lt;P&gt;Normally, external programs should be called by RFC with CALL FUNCTION ... DESTINATION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition &lt;/P&gt;&lt;P&gt;... ID id1 FIELD f1 ... ID idn FIELD fn &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Passes fields to the called program by reference. With "ID id1", you specify the name of a formal parameter, and with "FIELD f1" the relevant field from the ABAP/4 program. If a formal parameter expects an internal table, the latter is passed in the form "FIELD tab[]". &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;DATA RESULT(8). &lt;/P&gt;&lt;P&gt;CALL 'MULTIPLY' ID 'P1'  FIELD '9999' &lt;/P&gt;&lt;P&gt;                ID 'P2'  FIELD '9999' &lt;/P&gt;&lt;P&gt;                ID 'RES' FIELD RESULT. &lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;With some critical C functions, the system automatically performs an authorization check. If the user does not have the appropriate authorization, a runtime error occurs. You can check the authorization with the function module AUTHORITY_CHECK_C_FUNCTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2007 04:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ftp/m-p/2272289#M493666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-14T04:34:39Z</dc:date>
    </item>
  </channel>
</rss>

