<?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: Exce Sheet BDC. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870078#M366432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There may be a type mismatch between the value that you are passing to the date field. Data field has to be in this format,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'yyyy' followed by 'mm' followed by 'dd'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can provide the value of the field as 'yyyymmdd', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note- Do not provide special characters in between like '.' or '/' as we usually do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2007 10:25:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-23T10:25:33Z</dc:date>
    <item>
      <title>Exce Sheet BDC.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870076#M366430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am doing a BDC where i am using a excel sheet toload the master data.i am loading the data through the function module 'TEXT_CONVERT_XLS_TO_SAP'.But its throwing an error and not loading the file saying incorrect date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me how to solve the issue??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in anticipation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 10:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870076#M366430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T10:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Exce Sheet BDC.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870077#M366431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Supriya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One Suggestion:  You can save the Excel data file into tab delimited format and use normal GUI_UPLOAD FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR refer sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;TYPES:&lt;/P&gt;&lt;P&gt;BEGIN OF ty_upload,&lt;/P&gt;&lt;P&gt;field1 TYPE c length 12,&lt;/P&gt;&lt;P&gt;field2 TYPE c length 12,&lt;/P&gt;&lt;P&gt;field3 TYPE c length 12,&lt;/P&gt;&lt;P&gt;END OF ty_upload.&lt;/P&gt;&lt;P&gt;DATA it_upload TYPE STANDARD TABLE OF ty_upload WITH DEFAULT KEY.&lt;/P&gt;&lt;P&gt;DATA wa_upload TYPE ty_upload.&lt;/P&gt;&lt;P&gt;DATA itab TYPE STANDARD TABLE OF alsmex_tabline WITH DEFAULT KEY.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;wa&amp;gt; type alsmex_tabline.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = filename&lt;/P&gt;&lt;P&gt;i_begin_col = 1&lt;/P&gt;&lt;P&gt;i_begin_row = 1&lt;/P&gt;&lt;P&gt;i_end_col = 3&lt;/P&gt;&lt;P&gt;i_end_row = 65535&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;intern = itab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT itab ASSIGNING &amp;lt;wa&amp;gt;.&lt;/P&gt;&lt;P&gt;CASE &amp;lt;wa&amp;gt;-col.&lt;/P&gt;&lt;P&gt;WHEN '0001'.&lt;/P&gt;&lt;P&gt;wa_upload-field1 = &amp;lt;wa&amp;gt;-value.&lt;/P&gt;&lt;P&gt;WHEN '0002'.&lt;/P&gt;&lt;P&gt;wa_upload-field2 = &amp;lt;wa&amp;gt;-value.&lt;/P&gt;&lt;P&gt;WHEN '0003'.&lt;/P&gt;&lt;P&gt;wa_upload-field3 = &amp;lt;wa&amp;gt;-value.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;APPEND wa_upload TO it_upload.&lt;/P&gt;&lt;P&gt;CLEAR wa_upload.&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;**********&lt;STRONG&gt;another way&lt;/STRONG&gt;*******&lt;/P&gt;&lt;P&gt;TYPE-POOLS truxs.&lt;/P&gt;&lt;P&gt;tables : ztable.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;types: begin of t_tab,&lt;/P&gt;&lt;P&gt;col1(5) type c,&lt;/P&gt;&lt;P&gt;col2(5) type c,&lt;/P&gt;&lt;P&gt;col3(5) type c,&lt;/P&gt;&lt;P&gt;end of t_tab.&lt;/P&gt;&lt;P&gt;data : itab type standard table of t_tab,&lt;/P&gt;&lt;P&gt;wa type t_tab.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data it_type type truxs_t_text_data.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;parameter p_file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;data ttab type tabname.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;at selection-screen on value-request for p_file.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'F4_FILENAME'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;PROGRAM_NAME = SYST-CPROG&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DYNPRO_NUMBER = SYST-DYNNR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FIELD_NAME = 'P_FILE'&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;FILE_NAME = p_file&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_FIELD_SEPERATOR =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_LINE_HEADER = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;i_tab_raw_data = it_type&lt;/P&gt;&lt;P&gt;i_filename = p_file&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;i_tab_converted_data = itab[]&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CONVERSION_FAILED = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;ztable-col1 = wa-col1.&lt;/P&gt;&lt;P&gt;ztable-col2 = wa-col2.&lt;/P&gt;&lt;P&gt;ztable-col3 = wa-col3.&lt;/P&gt;&lt;P&gt;modify ztable.&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;Reward points if this Helps.&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 10:24:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870077#M366431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T10:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exce Sheet BDC.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870078#M366432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There may be a type mismatch between the value that you are passing to the date field. Data field has to be in this format,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'yyyy' followed by 'mm' followed by 'dd'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can provide the value of the field as 'yyyymmdd', &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note- Do not provide special characters in between like '.' or '/' as we usually do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 10:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870078#M366432</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T10:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Exce Sheet BDC.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870079#M366433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi manish ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i_end_col = 3&lt;/P&gt;&lt;P&gt;i_end_row = 65535&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how would i know the number of records to be loaded.as in would i give a range there???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2007 10:38:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exce-sheet-bdc/m-p/1870079#M366433</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-23T10:38:45Z</dc:date>
    </item>
  </channel>
</rss>

