<?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: bdc upload from excel in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917355#M381401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the format of file from excel to txt and upload it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2007 12:31:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-27T12:31:21Z</dc:date>
    <item>
      <title>bdc upload from excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917354#M381400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai Experts ,&lt;/P&gt;&lt;P&gt;  pls tell me how to upload  data coming in excel file ,&lt;/P&gt;&lt;P&gt;pls send  me the Code and Test data .&lt;/P&gt;&lt;P&gt; Regards ,&lt;/P&gt;&lt;P&gt;Nagendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 12:27:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917354#M381400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T12:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: bdc upload from excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917355#M381401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the format of file from excel to txt and upload it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 12:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917355#M381401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: bdc upload from excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917356#M381402</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;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a standard function which does the job (OLE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALSM_EXCEL_TO_INTERNAL_TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will return the data in a structure like &lt;/P&gt;&lt;P&gt;Row No. Column No. Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can then manipulate this and populate our itab depending on the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the below thread also&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1779409"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 12:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917356#M381402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T12:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: bdc upload from excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917357#M381403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nagendra, &lt;/P&gt;&lt;P&gt;use the following simple code for upload from excel to sap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS:TRUXS.&lt;/P&gt;&lt;P&gt;DATA: i_raw TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;parameter: P_FILE LIKE RLGRAP-FILENAME .&lt;/P&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_TAB_RAW_DATA       = I_RAW&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 = RECORD[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps u a bit,&lt;/P&gt;&lt;P&gt;all the best,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sampath&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;mark helpful answers&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 12:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917357#M381403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T12:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: bdc upload from excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917358#M381404</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;check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_upexcel.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_upexcel.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sruthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 12:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917358#M381404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T12:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: bdc upload from excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917359#M381405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we have to use a function module named "ALSM_EXCEL_TO_INTERNAL_TABLE" with the help of this we can upload a excel file to internal table in bdc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 13:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917359#M381405</guid>
      <dc:creator>jyotheswar_p2</dc:creator>
      <dc:date>2007-02-27T13:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: bdc upload from excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917360#M381406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is  advicable to use a TXT file instead of an excel file. An excel file could be converted to tab delimited, csv or a fixed width file and can be uploaded. These can be done by doing the save as function and save it as the appropratiate file type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you requirement can be only fulfiled by uploading from an excel file you may  use the function module for  the same&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2007 15:51:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917360#M381406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-27T15:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: bdc upload from excel</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917361#M381407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;To transfer an excel file u can use either normal BDC or LSMW.&lt;/P&gt;&lt;P&gt;I am giving one example regarding this,i used recording for this using XK01.&lt;/P&gt;&lt;P&gt;u have to use 'ALSM_EXCEL_TO_INTERNAL_TABLE' fn module.&lt;/P&gt;&lt;P&gt;check below program.&lt;/P&gt;&lt;P&gt;report z_bdcp_xk&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : lfa1,rf02k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       lifnr like rf02k-lifnr,&lt;/P&gt;&lt;P&gt;       ktokk like rf02k-ktokk,&lt;/P&gt;&lt;P&gt;       name1 like lfa1-name1,&lt;/P&gt;&lt;P&gt;       sortl like lfa1-sortl,&lt;/P&gt;&lt;P&gt;       land1 like lfa1-land1,&lt;/P&gt;&lt;P&gt;       spras like lfa1-spras,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab1 like alsmex_tabline occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : b1 type i value 1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       c1 type i value 1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       b2 type i value 10,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       c2 type i value 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&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                = 'C:\EXCEL.XLS'&lt;/P&gt;&lt;P&gt;      i_begin_col             = b1&lt;/P&gt;&lt;P&gt;      i_begin_row             = c1&lt;/P&gt;&lt;P&gt;      i_end_col               = b2&lt;/P&gt;&lt;P&gt;      i_end_row               = c2&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      intern                  = itab1&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      inconsistent_parameters = 1&lt;/P&gt;&lt;P&gt;      upload_ole              = 2&lt;/P&gt;&lt;P&gt;      others                  = 3.&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;  perform  organize_uploaded_data.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RF02K-KTOKK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RF02K-LIFNR'&lt;/P&gt;&lt;P&gt;                              itab-lifnr.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RF02K-KTOKK'&lt;/P&gt;&lt;P&gt;                              itab-ktokk.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0110'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFA1-SPRAS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFA1-NAME1'&lt;/P&gt;&lt;P&gt;                              itab-name1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFA1-SORTL'&lt;/P&gt;&lt;P&gt;                              itab-sortl.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFA1-LAND1'&lt;/P&gt;&lt;P&gt;                              itab-land1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFA1-SPRAS'&lt;/P&gt;&lt;P&gt;                              itab-spras.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFA1-KUNNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/00'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0130'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFBK-BANKS(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLSPO1' '0300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=YES'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'XK01'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;form organize_uploaded_data .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  sort  itab1  by  row&lt;/P&gt;&lt;P&gt;                   col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop  at  itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    case  itab1-col.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ....................................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      when  1.&lt;/P&gt;&lt;P&gt;        itab-lifnr = itab1-value.&lt;/P&gt;&lt;P&gt;      when  2.&lt;/P&gt;&lt;P&gt;        itab-ktokk = itab1-value.&lt;/P&gt;&lt;P&gt;      when  3.&lt;/P&gt;&lt;P&gt;        itab-name1 = itab1-value.&lt;/P&gt;&lt;P&gt;      when  4.&lt;/P&gt;&lt;P&gt;        itab-sortl = itab1-value.&lt;/P&gt;&lt;P&gt;      when  5.&lt;/P&gt;&lt;P&gt;        itab-land1 = itab1-value.&lt;/P&gt;&lt;P&gt;      when  6.&lt;/P&gt;&lt;P&gt;        itab-spras = itab1-value.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    ....................................................&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    at  end  of  row.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     wa_tabdata-mandt  =  sy-mandt.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     APPEND  wa_tabdata  TO  it_tabdata.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     CLEAR:  wa_tabdata.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear itab.&lt;/P&gt;&lt;P&gt;    endat.&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;IF U WANT TO UPLOAD DATA USING LSMW,then u have to save excel file as .CSV FORMAT AND REMAINING STEPS ARE SAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if useful reward some points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 04:10:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-upload-from-excel/m-p/1917361#M381407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T04:10:56Z</dc:date>
    </item>
  </channel>
</rss>

