<?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: open data set in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999647#M708613</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;Refer this simple exaple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/content.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3d42358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3d42358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2007 11:25:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-25T11:25:19Z</dc:date>
    <item>
      <title>open data set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999646#M708612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;For uploading data in SAP i am aware of call transaction and sessions method.&lt;/P&gt;&lt;P&gt;i want to know how is  Open data set and close data set used, as far as i know it is for fetching data from application server and presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we use transaction codes  in session method and call tranaction method to upload data into a particular transaction. &lt;/P&gt;&lt;P&gt;do we use tcode in open data set and close data set or the data is directly loaded into corrosponding tables. pl clarify.&lt;/P&gt;&lt;P&gt;Also pl send me sample code for simple txn like mm01.&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;Quavi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:20:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999646#M708612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: open data set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999647#M708613</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;Refer this simple exaple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3ca6358411d1829f0000e829fbfe/content.htm&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3d42358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3d42358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:25:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999647#M708613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: open data set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999648#M708614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii..&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;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Simple way you can download the ITAB with Tab delimiter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : V_REC(200).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET P_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Concatenate WA-FIELD1 WA-FIELD2 &lt;/P&gt;&lt;P&gt;         INTO V_REC &lt;/P&gt;&lt;P&gt;         SEPARATED BY CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRANSFER V_REC TO P_FILE.&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;CLOSE DATASET P_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: if there are any Numeric fields ( Type I, P, F) In your ITAB then before CONCATENATE you have to Move them to Char fields ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;DATA: V_RECORD(200).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET P_FILE FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&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; READ DATASET P_FILE INTO V_RECORD.&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SPLIT V_Record at CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;P&gt;                            INTO WA-FIELD1 WA-FIELD2.&lt;/P&gt;&lt;P&gt;APPEND WA TO ITAB.&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;&amp;lt;b&amp;gt;reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999648#M708614</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-25T11:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: open data set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999649#M708615</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;ABAP/4 provides the following statements for handling files on the application server&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;	OPEN DATASET&lt;/P&gt;&lt;P&gt;	CLOSE DATASET&lt;/P&gt;&lt;P&gt;	DELETE DATASET&lt;/P&gt;&lt;P&gt;	READ DATASET&lt;/P&gt;&lt;P&gt;	TRANSFER&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To open a sequential file on the application server, use the &amp;lt;b&amp;gt;OPEN DATASET &amp;lt;file name&amp;gt; [options]&amp;lt;/b&amp;gt; statement .&lt;/P&gt;&lt;P&gt;Use the &amp;lt;b&amp;gt;&amp;#147;FOR&amp;#148;&amp;lt;/b&amp;gt; options to specify the access mode:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FOR INPUT&amp;lt;/b&amp;gt; (default) opens an existing file for reading.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FOR OUTPUT&amp;lt;/b&amp;gt; opens a file for writing.  If the file does not exist, it is created.  If the file already exists, its contents are deleted.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FOR APPENDING&amp;lt;/b&amp;gt; opens a file for writing.  If the file does not exist, it is created.  If the file already exists, the system goes to the end of the file to add to it.&lt;/P&gt;&lt;P&gt;Use the&amp;lt;b&amp;gt; &amp;#147;IN&amp;#148;&amp;lt;/b&amp;gt; options to specify the structure of the file:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IN BINARY MODE&amp;lt;/b&amp;gt; (default) indicates that the file is not structured in lines (i.e., it is set up byte-by-byte).&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;IN TEXT MODE&amp;lt;/b&amp;gt; indicates that the file is structured in lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use the &amp;lt;b&amp;gt;&amp;#147;MESSAGE &amp;lt;field&amp;gt;&amp;#148;&amp;lt;/b&amp;gt; addition, a system message issued when opening the file will be placed in the character-type &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;The &amp;lt;b&amp;gt;&amp;#147;AT POSITION &amp;lt;position&amp;gt;&amp;#148;&amp;lt;/b&amp;gt; addition opens the file at a specific &amp;lt;position&amp;gt;, indicated in bytes from the beginning of the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To read a sequential file on the application server, use the &amp;lt;b&amp;gt;&amp;#147;READ DATASET&amp;#148;&amp;lt;/b&amp;gt; statement.  The basic syntax of this statement is:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ DATASET &amp;lt;file name&amp;gt; INTO &amp;lt;structure&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To write to a sequential file on the application server, use the &amp;lt;b&amp;gt;&amp;#147;TRANSFER&amp;#148;&amp;lt;/b&amp;gt; statement.  The basic syntax of this statement is:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TRANSFER &amp;lt;structure&amp;gt; TO &amp;lt;file name&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  To close a sequential file on the application server, use the &amp;lt;b&amp;gt;&amp;#147;CLOSE DATASET&amp;#148;&amp;lt;/b&amp;gt; statement.  The basic syntax of this statement is:&lt;/P&gt;&lt;P&gt;CLOSE DATASET &amp;lt;file name&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; To delete a sequential file on the application server, use the &amp;lt;b&amp;gt;&amp;#147;DELETE DATASET&amp;#148;&amp;lt;/b&amp;gt; statement.  The basic syntax of this statement is:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DELETE DATASET &amp;lt;file name&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Y180DM02.&lt;/P&gt;&lt;P&gt;TABLES:  KNA1.&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;	OUTFILE(20) DEFAULT &amp;#145;/tmp/bc180_file1&amp;#146;&lt;/P&gt;&lt;P&gt;									LOWER CASE,&lt;/P&gt;&lt;P&gt;	STATE LIKE KNA1-REGIO DEFAULT &amp;#145;MA&amp;#146;.&lt;/P&gt;&lt;P&gt;DATA:  	BEGIN OF OUTREC,&lt;/P&gt;&lt;P&gt;		   KUNNR LIKE KNA1-KUNNR,&lt;/P&gt;&lt;P&gt;		   REGIO  LIKE KNA1-REGIO,&lt;/P&gt;&lt;P&gt;		   TELF1  LIKE KNA1-TELF1,&lt;/P&gt;&lt;P&gt;		END OF OUTREC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN DATASET OUTFILE FOR OUTPUT IN TEXT MODE.&lt;/P&gt;&lt;P&gt;SELECT * FROM KNA1 WHERE REGIO = STATE.&lt;/P&gt;&lt;P&gt;	MOVE-CORRESPONDING KNA1 TO OUTREC.&lt;/P&gt;&lt;P&gt;	TRANSFER OUTREC TO OUTFILE.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;CLOSE DATASET OUTFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example above, we are creating a file with customer information.  Specifically, we are transferring the customer number, state, and telephone number (for all customers in a particular state) from the KNA1 table to the &amp;#145;/tmp/bc180_file1&amp;#146; file on the application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 11:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999649#M708615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T11:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: open data set</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999650#M708616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think u have some confusion with this...see by using this statement u can put data in or read data from application server...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then pur this data in internal tables and then using that data u use BDC or BAPI whatever u want..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2007 12:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set/m-p/2999650#M708616</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-25T12:29:27Z</dc:date>
    </item>
  </channel>
</rss>

