<?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: Data not uploading in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880512#M1324798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give TAB space for each field and try to upload also file type as  'ASC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alexander on Jul 15, 2009 12:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2009 10:47:54 GMT</pubDate>
    <dc:creator>alex_m</dc:creator>
    <dc:date>2009-07-15T10:47:54Z</dc:date>
    <item>
      <title>Data not uploading in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880511#M1324797</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;I am trying to create a bdc for vk12.&lt;/P&gt;&lt;P&gt;for that i am uploading data into internal table via code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA : BEGIN OF T_ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;       ZKSCHL TYPE KSCHL,&lt;/P&gt;&lt;P&gt;       ZVKORG TYPE VKORG,&lt;/P&gt;&lt;P&gt;       ZVTWEG TYPE VTWEG,&lt;/P&gt;&lt;P&gt;       ZKUNNR TYPE KUNNR,&lt;/P&gt;&lt;P&gt;       ZMATNR TYPE MATNR,&lt;/P&gt;&lt;P&gt;       ZKBETR TYPE KBETR,&lt;/P&gt;&lt;P&gt;       ZDATAB TYPE DATAB,&lt;/P&gt;&lt;P&gt;       ZDATBI TYPE DATBI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       END OF T_ITAB.&lt;/P&gt;&lt;P&gt;*DATA : SDATE TYPE SY-DATUM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DATA: T_ITAB TYPE T_ITAB,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    T_ITAB INITIAL SIZE 1.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA : BDCDATA TYPE BDCDATA OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;REFRESH T_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    FILENAME                      = 'C:\VK12_NEW.TXT'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR  = 'X"       &lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = T_ITAB&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;My flat file is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PR00 'SKHM' 'SC' 100000 BY2000101 9.01 08072009 31122020&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But only PR00 is comung in T_ITAB. why rest of the field are not coming??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 10:25:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880511#M1324797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T10:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data not uploading in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880512#M1324798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give TAB space for each field and try to upload also file type as  'ASC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alexander on Jul 15, 2009 12:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 10:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880512#M1324798</guid>
      <dc:creator>alex_m</dc:creator>
      <dc:date>2009-07-15T10:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Data not uploading in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880513#M1324799</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;I tried out your program and tested and its working fine now. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I changed little in your program (see source code  below).&lt;/P&gt;&lt;P&gt;2. In your flat file you have to press tab key after each value (see flat file below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : BEGIN OF T_ITAB OCCURS 0,
ZKSCHL TYPE KSCHL,
ZVKORG TYPE VKORG,
ZVTWEG TYPE VTWEG,
ZKUNNR TYPE KUNNR,
ZMATNR TYPE MATNR,
ZKBETR TYPE KBETR,
ZDATAB TYPE DATAB,
ZDATBI TYPE DATBI,

END OF T_ITAB.
*DATA : SDATE TYPE SY-DATUM.

* DATA: T_ITAB TYPE T_ITAB,
* T_ITAB INITIAL SIZE 1.
DATA : BDCDATA TYPE BDCDATA OCCURS 0 WITH HEADER LINE.
REFRESH T_ITAB.

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\VK12_NEW.TXT'
*FILETYPE = 'DAT'
HAS_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = T_ITAB.

IF SY-SUBRC eq 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Flat File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;PR00	'SKHM'	'SC'	100000	BY2000101	9.01	08072009	31122020&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;Sajid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 10:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880513#M1324799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T10:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data not uploading in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880514#M1324800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried the Same code..But it's not working on my system..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 11:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880514#M1324800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T11:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Data not uploading in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880515#M1324801</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;As i mention in your earlier post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a problem with your file.&lt;/P&gt;&lt;P&gt;It is not a tab delimited file.&lt;/P&gt;&lt;P&gt;I copied the data into a notepad and checked. &lt;/P&gt;&lt;P&gt;For me also it was taking just kschl value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Right click on your notepad file and say open with excel.&lt;/P&gt;&lt;P&gt;2. If it is table delimited file you will find that each value will be in individual cell.&lt;/P&gt;&lt;P&gt;3. If it is not then it will be in a single cell. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that the file is not a tab delimited file and hence the data is not getting copied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store your file as a tab delimited file and then upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 11:45:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880515#M1324801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T11:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Data not uploading in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880516#M1324802</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;  Please check in the function module you are maintiang field seperator 'X' which is not there in between fields.. please comment and try to execute it now you will get the data accordingly into your internal table ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 12:47:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880516#M1324802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T12:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data not uploading in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880517#M1324803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your File type  to ASC..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rahul Keshav on Jul 16, 2009 11:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 06:10:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-not-uploading-in-internal-table/m-p/5880517#M1324803</guid>
      <dc:creator>RahulKeshav</dc:creator>
      <dc:date>2009-07-16T06:10:49Z</dc:date>
    </item>
  </channel>
</rss>

