<?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 file upload from presentation server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007148#M710570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        i have developed a bdc program using call tr method , it is processed in N mode ( background), it is running well when i m executing immediately but when i have scheduled it at a specific time  it is showing error&lt;/P&gt;&lt;P&gt;is it possible to schedule a bdc program when uploading file from presentation server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2007 08:08:30 GMT</pubDate>
    <dc:creator>former_member841898</dc:creator>
    <dc:date>2007-10-30T08:08:30Z</dc:date>
    <item>
      <title>file upload from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007148#M710570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        i have developed a bdc program using call tr method , it is processed in N mode ( background), it is running well when i m executing immediately but when i have scheduled it at a specific time  it is showing error&lt;/P&gt;&lt;P&gt;is it possible to schedule a bdc program when uploading file from presentation server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 08:08:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007148#M710570</guid>
      <dc:creator>former_member841898</dc:creator>
      <dc:date>2007-10-30T08:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: file upload from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007149#M710571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pankaj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not possible to Upload a file from Presentation Server while the Program is Scheduled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are Scheduling a Program, then you have get data from Application Server &amp;amp; Presentation server will throw error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Point if its helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anbalagan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 08:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007149#M710571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T08:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: file upload from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007150#M710572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pankaj,&lt;/P&gt;&lt;P&gt;While you are scheduling a job... the process goes in background..&lt;/P&gt;&lt;P&gt;it is not possible to use GUI_UPLOAD while uploading from background.&lt;/P&gt;&lt;P&gt;so while scheduling a job.. it is mandatory that you need to upload from presentation server.&lt;/P&gt;&lt;P&gt;if you want to upload from background you need to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the open dataset command..to open the file to be uploaded ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 10:26:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007150#M710572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T10:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: file upload from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007151#M710573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;also the syntax for that is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the syntax for OPEN DATASET is something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET w_file_name IN LEGACY BINARY MODE&lt;/P&gt;&lt;P&gt;BIG ENDIAN&lt;/P&gt;&lt;P&gt;FOR OUTPUT/INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this will create a file on the application server only. It wil not be able to access the files from the local file system.&lt;/P&gt;&lt;P&gt;It will work in background but with the above mentioned limitation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a sample program is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For checking it file exists:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form sub_validate_appl_file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;--&amp;gt;P_FILE text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This routine is used to check the file existence on application&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;server. First check is whether entered file is directory or not&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and second check is for file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_validate_appl_file USING p_file TYPE string.&lt;/P&gt;&lt;P&gt;DATA : tl_file_tbl TYPE STANDARD TABLE OF salfldir, "Files table&lt;/P&gt;&lt;P&gt;wl_msg TYPE string. "Message&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RZL_READ_DIR'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;name = p_file&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;file_tbl = tl_file_tbl&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;argument_error = 1&lt;/P&gt;&lt;P&gt;not_found = 2&lt;/P&gt;&lt;P&gt;send_error = 3&lt;/P&gt;&lt;P&gt;system_failure = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE tl_file_tbl LINES sy-tfill.&lt;/P&gt;&lt;P&gt;IF sy-tfill &amp;gt; 0.&lt;/P&gt;&lt;P&gt;*This is &amp;amp; directory and not a file&lt;/P&gt;&lt;P&gt;MESSAGE e016(zcaxx) WITH p_file.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS convt_codepage_init = 2&lt;/P&gt;&lt;P&gt;convt_codepage = 3&lt;/P&gt;&lt;P&gt;open_dataset_no_authority = 4&lt;/P&gt;&lt;P&gt;dataset_too_many_files = 5&lt;/P&gt;&lt;P&gt;OTHERS = 6.&lt;/P&gt;&lt;P&gt;OPEN DATASET p_file FOR INPUT IN BINARY MODE MESSAGE wl_msg.&lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*System message&lt;/P&gt;&lt;P&gt;MESSAGE e000(zcaxx) WITH wl_msg p_file.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLOSE DATASET p_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH : tl_file_tbl.&lt;/P&gt;&lt;P&gt;FREE : tl_file_tbl.&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;For Fetching data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_get_data_from_unix USING pw_file TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Work areas&lt;/P&gt;&lt;P&gt;DATA : wal_data TYPE type_all_data, "For preparing structured data&lt;/P&gt;&lt;P&gt;wl_seperator TYPE char1, "For specifying the file seperator&lt;/P&gt;&lt;P&gt;wal_data_fix TYPE type_data, "For processing fixed length file&lt;/P&gt;&lt;P&gt;wl_string TYPE string. "For processing appl. server file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Field symbols&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS : &amp;lt;l_pt_table&amp;gt; TYPE LINE OF tt_data_tab.&lt;/P&gt;&lt;P&gt;"For processing fixed length file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Initializing variables and work areas.&lt;/P&gt;&lt;P&gt;CLEAR : wal_data,&lt;/P&gt;&lt;P&gt;wal_data_fix,&lt;/P&gt;&lt;P&gt;wl_string,&lt;/P&gt;&lt;P&gt;wl_seperator,&lt;/P&gt;&lt;P&gt;w_mesg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Reading file from application server&lt;/P&gt;&lt;P&gt;*--Open the server file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CATCH SYSTEM-EXCEPTIONS convt_codepage_init = 1&lt;/P&gt;&lt;P&gt;convt_codepage = 2&lt;/P&gt;&lt;P&gt;open_dataset_no_authority = 3&lt;/P&gt;&lt;P&gt;open_pipe_no_authority = 4&lt;/P&gt;&lt;P&gt;dataset_too_many_files = 5&lt;/P&gt;&lt;P&gt;OTHERS = 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET pw_file FOR INPUT IN TEXT MODE ENCODING DEFAULT&lt;/P&gt;&lt;P&gt;MESSAGE w_mesg.&lt;/P&gt;&lt;P&gt;*--If error on opening file give error message&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;*-- Error message&lt;/P&gt;&lt;P&gt;MESSAGE i019 WITH w_mesg.&lt;/P&gt;&lt;P&gt;LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDCATCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Read the data from file&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET pw_file INTO wl_string.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;EXIT. "end of file. exit loop&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;APPEND wl_string TO t_data_table.&lt;/P&gt;&lt;P&gt;CLEAR wl_string.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Close the server file&lt;/P&gt;&lt;P&gt;CLOSE DATASET pw_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this will help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;please reward if usefull..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 10:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007151#M710573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: file upload from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007152#M710574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;sorry i told u need to use presentation server for uploading from background..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is mandatory to use application server if u r going to upload from background&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 10:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007152#M710574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T10:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: file upload from presentation server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007153#M710575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gokul,&lt;/P&gt;&lt;P&gt;            thanks for ur answer, so gui_upload cannot be used in background.&lt;/P&gt;&lt;P&gt;i have rewarded u, gokul can u tell me one more thing a session created by batch input program can be scheduled to a particular date and time manually by program rsbdcsub. now programitically i have used fm job_open , submit statement and job_close, can u tell me in which parameter i should mention time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 11:19:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/file-upload-from-presentation-server/m-p/3007153#M710575</guid>
      <dc:creator>former_member841898</dc:creator>
      <dc:date>2007-10-30T11:19:13Z</dc:date>
    </item>
  </channel>
</rss>

