<?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: Electronic Bank Statement Upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554751#M1430228</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;The code you've provided could raise a number of errors, but presumably the problem is coming from this part of the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
concatenate 'C:\SAP\decrypt.bat' bankfile id into command separated by ' '. 

CALL FUNCTION 'GUI_EXEC' 
  EXPORTING COMMAND = command. 
* PARAMETER = 
* IMPORTING 
* RETURNCODE = 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would probably benefit from mapping a variable to the RETURNCODE parameter to get a better idea of what the problem is.  If the call of GUI_EXEC fails the assocated error message would not be generated as the function does not raise any EXCEPTIONS, so this code &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF SY-SUBRC 0. 
  message i000(fb) with 'Error executing external commands.' 'Contact System Admin.'. 
  Leave program. 
ENDIF. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is essentially redundent and processing would continue to the next function.  It would also be useful to include the return codes from the GUI_UPLOAD functions in the error text to aid diagnosys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Feb 2010 11:43:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-12T11:43:54Z</dc:date>
    <item>
      <title>Electronic Bank Statement Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554749#M1430226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The client requires that electronic bank statements be uploaded automatically. There was a zprogram (ZRFEBKA00 which is a copy of the include RFEBKA00) that was developed in the ECC 4.6 system and was working properly. After an upgrade the program now terminates without uploading the files.&lt;/P&gt;&lt;P&gt;What happens is that the files are encrypted and placed on a server. Before they are uploaded into SAP they have to be decrypted. But now the program is failing to decrypt these files.&lt;/P&gt;&lt;P&gt;Here is where the program is failing in the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate sy-datum '-' sy-uzeit into id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*message i000(fb) with&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   'Processing might take a while... Please be patient. '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   'Press CONTINUE to begin'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*===========================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  concatenate 'C:\SAP\decrypt.bat' bankfile&lt;/P&gt;&lt;P&gt;               id into command separated by ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_EXEC'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            COMMAND = command.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PARAMETER        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RETURNCODE       =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    message i000(fb) with 'Error executing external commands.'&lt;/P&gt;&lt;P&gt;          'Contact System Admin.'.&lt;/P&gt;&lt;P&gt;    Leave program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*===========================================================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  time1 = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    refresh it_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       FILENAME                      = 'c:\sap\waitd.txt'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        DATA_TAB                      = it_file&lt;/P&gt;&lt;P&gt;     EXCEPTIONS&lt;/P&gt;&lt;P&gt;       FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;       FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;       NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;       GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;       INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;       OTHERS                        = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      refresh it_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         FILENAME                      = 'c:\sap\xxx.txt'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETYPE                      = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILELENGTH                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          DATA_TAB                      = it_file&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;         FILE_OPEN_ERROR               = 1&lt;/P&gt;&lt;P&gt;         FILE_READ_ERROR               = 2&lt;/P&gt;&lt;P&gt;         NO_BATCH                      = 3&lt;/P&gt;&lt;P&gt;         GUI_REFUSE_FILETRANSFER       = 4&lt;/P&gt;&lt;P&gt;         INVALID_TYPE                  = 5&lt;/P&gt;&lt;P&gt;         OTHERS                        = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        message i000(fb) with&lt;/P&gt;&lt;P&gt;            'Error creating working environment.'&lt;/P&gt;&lt;P&gt;            'Possible causes: Incorrect PGP Key or Password'&lt;/P&gt;&lt;P&gt;            'Please contact Systems Admin'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Perform DeleteWorkfiles.&lt;/P&gt;&lt;P&gt;        Leave program.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    time2 = sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    timediff = time2 - time1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if timediff &amp;gt;= 60.&lt;/P&gt;&lt;P&gt;      message s000(fb) with 'External Processes (PGP) taking too long: '&lt;/P&gt;&lt;P&gt;            timediff&lt;/P&gt;&lt;P&gt;            'seconds'.&lt;/P&gt;&lt;P&gt;      Perform Deleteworkfiles.&lt;/P&gt;&lt;P&gt;      Leave Program.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help will be greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 10:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554749#M1430226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T10:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Electronic Bank Statement Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554750#M1430227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ANhakaniso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There could be either one of the two problems existed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.The presentaion server path should be accuarte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. The Apllication server path should be valid and chekc whether the bank electronic statement is in the valid path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SO please valida the paths which ever you are using previously and now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rama.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 11:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554750#M1430227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T11:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Electronic Bank Statement Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554751#M1430228</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;The code you've provided could raise a number of errors, but presumably the problem is coming from this part of the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
concatenate 'C:\SAP\decrypt.bat' bankfile id into command separated by ' '. 

CALL FUNCTION 'GUI_EXEC' 
  EXPORTING COMMAND = command. 
* PARAMETER = 
* IMPORTING 
* RETURNCODE = 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would probably benefit from mapping a variable to the RETURNCODE parameter to get a better idea of what the problem is.  If the call of GUI_EXEC fails the assocated error message would not be generated as the function does not raise any EXCEPTIONS, so this code &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF SY-SUBRC 0. 
  message i000(fb) with 'Error executing external commands.' 'Contact System Admin.'. 
  Leave program. 
ENDIF. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is essentially redundent and processing would continue to the next function.  It would also be useful to include the return codes from the GUI_UPLOAD functions in the error text to aid diagnosys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 11:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554751#M1430228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T11:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Electronic Bank Statement Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554752#M1430229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have noticed that the call function 'GUI_EXEC' is said to be obsolete, does that matter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 12:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554752#M1430229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T12:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Electronic Bank Statement Upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554753#M1430230</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;It might, but it's no guarantee that it doesn't work, just that there's a newer way of performing the function.  If you wanted to replace it you could use class CL_GUI_FRONTEND_SERVICES method EXECUTE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 13:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/electronic-bank-statement-upload/m-p/6554753#M1430230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T13:07:48Z</dc:date>
    </item>
  </channel>
</rss>

