<?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: Uplaoding excel file for BDC program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565307#M1431940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;EM&gt;Conversion_Exit&lt;/EM&gt; FM's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manas M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2010 07:15:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-27T07:15:19Z</dc:date>
    <item>
      <title>Uplaoding excel file for BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565305#M1431938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; I am making a BDC program to uplaod material pricing condition i want the code to uplaod data with excel file  also is at header field name required or not  ,  and is it required to filed remaning filed lenght with zero  like  as matnr filed lenght is 18  if my code is  1000 is it  required to write as 0000000000001000.,  also what changes are required if i m uplaoding a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt; zafra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 07:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565305#M1431938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T07:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding excel file for BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565306#M1431939</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;Since you want to upload through Excel file for your referencr u can give the header name but in Intenal table the header name u might discard.........&lt;/P&gt;&lt;P&gt;Please check ih Conversion Exit is there for the particular field, if it is present,than u can ddirectly update no nedd to for '000...'&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;Arbind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 07:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565306#M1431939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T07:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding excel file for BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565307#M1431940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;EM&gt;Conversion_Exit&lt;/EM&gt; FM's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manas M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 07:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565307#M1431940</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T07:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding excel file for BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565308#M1431941</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;For uploading data into internal table from excel before recording you can try doing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(code}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_raw TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;Function module called to upload xls data into an internal table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&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;P&gt;      i_field_seperator    = 'X'&lt;/P&gt;&lt;P&gt;      i_line_header        = 'X'&lt;/P&gt;&lt;P&gt;      i_tab_raw_data       = it_raw&lt;/P&gt;&lt;P&gt;      i_filename           = p_file                 "file path browsed&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      i_tab_converted_data = it_upload[]            "int table populated&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      conversion_failed    = 1                      "browsed file's data&lt;/P&gt;&lt;P&gt;      OTHERS               = 2.&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;After uploading data into internal table it_upload,&lt;/P&gt;&lt;P&gt;Then for &lt;STRONG&gt;MATNR&lt;/STRONG&gt; field you can apply conversion exit that is,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'   "This FM will append leading zeroes with the material no to 18 length&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    INPUT              = it_upload-matnr&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;  OUTPUT             = it_upload-matnr&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;LENGTH_ERROR       = 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 08:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565308#M1431941</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T08:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Uplaoding excel file for BDC program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565309#M1431942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jan 2010 06:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uplaoding-excel-file-for-bdc-program/m-p/6565309#M1431942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-30T06:48:21Z</dc:date>
    </item>
  </channel>
</rss>

