<?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 How to use  Function Module KCD_CSV_FILE_TO_INTERN_CONVERT? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642231#M286006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to convert an .CSV file to an internal table format .Please give me any sample code for the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Nov 2006 10:06:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-13T10:06:49Z</dc:date>
    <item>
      <title>How to use  Function Module KCD_CSV_FILE_TO_INTERN_CONVERT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642231#M286006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to convert an .CSV file to an internal table format .Please give me any sample code for the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:06:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642231#M286006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  Function Module KCD_CSV_FILE_TO_INTERN_CONVERT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642232#M286007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF itab OCCURS 0,
        vbeln LIKE vbak-vbeln,
        ernam LIKE vbak-ernam,
      END OF itab.
 
DATA itab2 LIKE TABLE OF KCDE_CELLS WITH HEADER LINE.
 
CALL FUNCTION 'KCD_CSV_FILE_TO_INTERN_CONVERT'
  EXPORTING
    i_filename            = 'D:dataupl.txt'
    i_separator           = ','
  tables
    e_intern              = itab2
* EXCEPTIONS
*   UPLOAD_CSV            = 1
*   UPLOAD_FILETYPE       = 2
*   OTHERS                = 3
          .
IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
 
LOOP AT itab2.
  SPLIT itab2-value AT ',' INTO itab-vbeln itab-ernam.
  APPEND itab.
  CLEAR itab.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:12:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642232#M286007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  Function Module KCD_CSV_FILE_TO_INTERN_CONVERT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642233#M286008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at below code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;        vbeln LIKE vbak-vbeln,&lt;/P&gt;&lt;P&gt;        ernam LIKE vbak-ernam,&lt;/P&gt;&lt;P&gt;      END OF itab.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;DATA itab2 LIKE TABLE OF &amp;lt;b&amp;gt;KCDE_CELLS&amp;lt;/b&amp;gt; WITH HEADER LINE.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION &amp;lt;b&amp;gt;'KCD_CSV_FILE_TO_INTERN_CONVERT'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_filename            = 'D:\data\upl.txt'&lt;/P&gt;&lt;P&gt;    i_separator           = '|'&lt;/P&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    e_intern              = itab2&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UPLOAD_CSV            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UPLOAD_FILETYPE       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                = 3&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to edit so that it is displyed it readable format but dnt know what the problem is. I hope u can read it and understand hoe to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Vibha Deshmukh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:27:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642233#M286008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  Function Module KCD_CSV_FILE_TO_INTERN_CONVERT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642234#M286009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://translate.google.com/translate?hl=en&amp;amp;sl=es&amp;amp;u=http://sapabap.webcindario.com/modules.php%3Fname%3DFunciones%26func%3DCatView%26cat%3D4&amp;amp;sa=X&amp;amp;oi=translate&amp;amp;resnum=8&amp;amp;ct=result&amp;amp;prev=/search%3Fq%3DKCD_CSV_FILE_TO_INTERN_CONVERT%2B,SAP%26hl%3Den%26lr%3D" target="test_blank"&gt;http://translate.google.com/translate?hl=en&amp;amp;sl=es&amp;amp;u=http://sapabap.webcindario.com/modules.php%3Fname%3DFunciones%26func%3DCatView%26cat%3D4&amp;amp;sa=X&amp;amp;oi=translate&amp;amp;resnum=8&amp;amp;ct=result&amp;amp;prev=/search%3Fq%3DKCD_CSV_FILE_TO_INTERN_CONVERT%2B,SAP%26hl%3Den%26lr%3D&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642234#M286009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use  Function Module KCD_CSV_FILE_TO_INTERN_CONVERT?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642235#M286010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;type-pools: KCDE.&lt;/P&gt;&lt;P&gt;parameters: p_file like rlgrap-filename default 'C:\STOCK.csv'.&lt;/P&gt;&lt;P&gt;data: it_data type KCDE_INTERN .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'KCD_CSV_FILE_TO_INTERN_CONVERT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    I_FILENAME            = p_file&lt;/P&gt;&lt;P&gt;    I_SEPARATOR           = ','&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    E_INTERN              = it_data&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   UPLOAD_CSV            = 1&lt;/P&gt;&lt;P&gt;   UPLOAD_FILETYPE       = 2&lt;/P&gt;&lt;P&gt;   OTHERS                = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2006 10:39:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-use-function-module-kcd-csv-file-to-intern-convert/m-p/1642235#M286010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-13T10:39:16Z</dc:date>
    </item>
  </channel>
</rss>

