<?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: Dataset file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429563#M205518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; it seems to be your first problem is solved. please explain bit more your 2nd question to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2006 15:12:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-14T15:12:57Z</dc:date>
    <item>
      <title>Dataset file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429558#M205513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have a doubt in my outbound file report.&lt;/P&gt;&lt;P&gt;1. Plant field is used in select options and for different plant separate file should be downloaded into application server.&lt;/P&gt;&lt;P&gt;This is how i have made one file&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;              c_path               "file path&lt;/P&gt;&lt;P&gt;              c_qm                 " 'QM'&lt;/P&gt;&lt;P&gt;              c_underscore         "underscore&lt;/P&gt;&lt;P&gt;              c_results            " 'RESULTS'&lt;/P&gt;&lt;P&gt;              s_werks              "plant&lt;/P&gt;&lt;P&gt;              sy-datum+4(2)        "system date&lt;/P&gt;&lt;P&gt;              sy-datum+6(2)&lt;/P&gt;&lt;P&gt;              sy-datum+0(4)&lt;/P&gt;&lt;P&gt;              c_underscore&lt;/P&gt;&lt;P&gt;              c_ext                "file extension&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to make different files.Which internal table should i loop into.&lt;/P&gt;&lt;P&gt;2.I have to update custom database table with the data in the internal table i_update.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Work Area for Z_DATADOWNLOAD table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: l_wa_update TYPE zdata_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_wa_update-prog_name    = g_repid.&lt;/P&gt;&lt;P&gt;  l_wa_update-plant        = s_werks.&lt;/P&gt;&lt;P&gt;  l_wa_update-last_run_dt  = g_sysdate.&lt;/P&gt;&lt;P&gt;  l_wa_update-last_run_tm  = g_systime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Update the Date and time in ZDATA_DOWNLOAD table with current value.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  MODIFY zdata_download FROM l_wa_update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to update the table for multiple files.&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;Simran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 14:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429558#M205513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T14:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429559#M205514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Loop at s_werks.&lt;/P&gt;&lt;P&gt;2. Add file name to table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 14:36:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429559#M205514</guid>
      <dc:creator>LucianoBentiveg</dc:creator>
      <dc:date>2006-07-14T14:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429560#M205515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you need to define an internal table of type T001W to select all the plants as per the user input on the selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. Select WERKS from T001W into ITAB where werks in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After this select continue with the processing using ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Kiran&lt;/P&gt;&lt;P&gt;*Please reward useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 14:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429560#M205515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T14:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429561#M205516</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;Check this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at s_werks.&lt;/P&gt;&lt;P&gt;    -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;take s_werks-low&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 14:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429561#M205516</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-14T14:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429562#M205517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : begin of it_t001w,&lt;/P&gt;&lt;P&gt;          werks type t001w-werks,&lt;/P&gt;&lt;P&gt;       end of it_t001w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_werks is your plant select-options.&lt;/P&gt;&lt;P&gt;select werks&lt;/P&gt;&lt;P&gt;       into it_t001w&lt;/P&gt;&lt;P&gt;       from t001w&lt;/P&gt;&lt;P&gt;       where werks in s_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_T001W now will have all valid plants entered in select-options by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now loop thru this it_t001w, use it_t001w-werks for your work.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; LOOP AT IT_T001W.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CONCATENATE&lt;/P&gt;&lt;P&gt;c_path "file path&lt;/P&gt;&lt;P&gt;c_qm " 'QM'&lt;/P&gt;&lt;P&gt;c_underscore "underscore&lt;/P&gt;&lt;P&gt;c_results " 'RESULTS'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IT_T001W-werks "plant&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;sy-datum+4(2) "system date&lt;/P&gt;&lt;P&gt;sy-datum+6(2)&lt;/P&gt;&lt;P&gt;sy-datum+0(4)&lt;/P&gt;&lt;P&gt;c_underscore&lt;/P&gt;&lt;P&gt;c_ext "file extension&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;into v_filename&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;srikanth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Kidambi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 15:00:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429562#M205517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T15:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429563#M205518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; it seems to be your first problem is solved. please explain bit more your 2nd question to help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 15:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429563#M205518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T15:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429564#M205519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion is helping me here.&lt;/P&gt;&lt;P&gt;But the issue that still remains is,&lt;/P&gt;&lt;P&gt;if i am retrieving data from the custom table which has fields ( program name,plant,last run date,last run time)&lt;/P&gt;&lt;P&gt; i will not get those plants which have no date and time &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the requirement is last run date and time are blank then &lt;/P&gt;&lt;P&gt;last run date = sy-datum - 1&lt;/P&gt;&lt;P&gt;last run time = sy-uzeit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls help me in this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i'm very new to this field and not gtg the logic.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Simran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 15:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429564#M205519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T15:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Dataset file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429565#M205520</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;Check this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append all the values into final internal table i_update for all the plants selected into the internal table i_t001w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at end update data to z-table with i_update internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code :&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------" /&gt;&lt;P&gt;clear : i_update.&lt;/P&gt;&lt;P&gt;refresh : i_update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_t001w.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_wa_update-prog_name = g_repid.&lt;/P&gt;&lt;P&gt;l_wa_update-plant = i_t001w-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not g_sysdate is initial.            &lt;/P&gt;&lt;P&gt;l_wa_update-last_run_dt = g_sysdate.&lt;/P&gt;&lt;P&gt;else.           "if date blank&lt;/P&gt;&lt;P&gt;l_wa_update-last_run_dt = sy-datum - 1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not g_systime is initial.&lt;/P&gt;&lt;P&gt;l_wa_update-last_run_tm = g_systime.&lt;/P&gt;&lt;P&gt;else.  "if time blank&lt;/P&gt;&lt;P&gt;l_wa_update-last_run_tm = sy-uzeit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append i_update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF NOT i_update[] is initial.&lt;/P&gt;&lt;P&gt;  MODIFY zdata_download FROM table i_update.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 15:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dataset-file/m-p/1429565#M205520</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-14T15:42:24Z</dc:date>
    </item>
  </channel>
</rss>

