<?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: regarding file creation in application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381478#M811860</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:WK_string TYPE STRING.
DATA:Wk_EXT(4) TYPE C value '.xls'.
DATA:WK_path TYPE STRING.

LOOP AT ITAB.
AT NEW WERKS.
concatenate '/METERID/' ITAB-werks Wk_EXT into wk_path.
CONDENSE wk_path.
open dataset WK_path for output in text mode encoding default.
if sy-subrc &amp;lt;&amp;gt; 0.
write:'ERROR while opening dataset !!!!!!'.
EXIT.
endif.
concatenate 'Part No' 'Description'
	into wk_string separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.
condense wk_string.
transfer wk_string to WK_path.
ENDAT.
CLEAR wk_string.
CONCATENATE ITAB-MATNR itab-maktx into wk_string 
	separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.
transfer wk_string to WK_path.
at end of werks.
clear wk_path.
close dataset p_pfile.
endat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this meets ur req...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2008 09:15:51 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2008-02-18T09:15:51Z</dc:date>
    <item>
      <title>regarding file creation in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381474#M811856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my present programe is creating file in the application server i got a requirement that the file need to be created in the application server separately for each and every plant, know the file is creating for all plants in the application server, any suggestion how to compare the plants and create the files separetly in appli server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 08:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381474#M811856</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T08:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: regarding file creation in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381475#M811857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is a itab..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use AT NEW WERKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dynamically create your file name and place it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 08:46:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381475#M811857</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-18T08:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: regarding file creation in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381476#M811858</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;You can easily distinguish the plants ina Itab.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Sort Itab by werks.
data: wa like itab.
loop at itab.
wa = itab.
at new werks.
open data " Here give a file name for every plant.
"transfer to file
" CLose Dataset
endat.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will solve ur issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 08:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381476#M811858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T08:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: regarding file creation in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381477#M811859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rocky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you get all the data into final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT NEW plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   OPEN DATASET v_datset FOR OUTPUT IN &lt;/P&gt;&lt;P&gt;                                                 TEXTMODE.&lt;/P&gt;&lt;P&gt;      your logic here &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CLOSE DATSET v_datset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDAT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRANSFER your same plant data to file.&lt;/P&gt;&lt;P&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;Note: for each fine name add your plant name.So that there will not no over writting of  files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 09:04:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381477#M811859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T09:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: regarding file creation in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381478#M811860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:WK_string TYPE STRING.
DATA:Wk_EXT(4) TYPE C value '.xls'.
DATA:WK_path TYPE STRING.

LOOP AT ITAB.
AT NEW WERKS.
concatenate '/METERID/' ITAB-werks Wk_EXT into wk_path.
CONDENSE wk_path.
open dataset WK_path for output in text mode encoding default.
if sy-subrc &amp;lt;&amp;gt; 0.
write:'ERROR while opening dataset !!!!!!'.
EXIT.
endif.
concatenate 'Part No' 'Description'
	into wk_string separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.
condense wk_string.
transfer wk_string to WK_path.
ENDAT.
CLEAR wk_string.
CONCATENATE ITAB-MATNR itab-maktx into wk_string 
	separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.
transfer wk_string to WK_path.
at end of werks.
clear wk_path.
close dataset p_pfile.
endat.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this meets ur req...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 09:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381478#M811860</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-18T09:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: regarding file creation in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381479#M811861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry i made a mistake...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:WK_string TYPE STRING.&lt;/P&gt;&lt;P&gt;DATA:Wk_EXT(4) TYPE C value '.xls'.&lt;/P&gt;&lt;P&gt;DATA:WK_path TYPE STRING.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;AT NEW WERKS.&lt;/P&gt;&lt;P&gt;concatenate '/METERID/' ITAB-werks Wk_EXT into wk_path.&lt;/P&gt;&lt;P&gt;CONDENSE wk_path.&lt;/P&gt;&lt;P&gt;open dataset WK_path for output in text mode encoding default.&lt;/P&gt;&lt;P&gt;if sy-subrc  0.&lt;/P&gt;&lt;P&gt;write:'ERROR while opening dataset !!!!!!'.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;concatenate 'Part No' 'Description'&lt;/P&gt;&lt;P&gt;	into wk_string separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;condense wk_string.&lt;/P&gt;&lt;P&gt;transfer wk_string to WK_path.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;CLEAR wk_string.&lt;/P&gt;&lt;P&gt;CONCATENATE ITAB-MATNR itab-maktx into wk_string &lt;/P&gt;&lt;P&gt;	separated by cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;transfer wk_string to WK_path.&lt;/P&gt;&lt;P&gt;at end of werks.&lt;/P&gt;&lt;P&gt;clear wk_path.&lt;/P&gt;&lt;P&gt;close dataset WK_path. "&amp;lt;----&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 09:23:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381479#M811861</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-18T09:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: regarding file creation in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381480#M811862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the use of this statement kesu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 11:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381480#M811862</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-18T11:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: regarding file creation in application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381481#M811863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will just place the values in different columns in excel sheet or notepad file ( in the column seperator or tab seperator)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2008 11:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-file-creation-in-application-server/m-p/3381481#M811863</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2008-02-18T11:10:21Z</dc:date>
    </item>
  </channel>
</rss>

