<?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: Regarding data uploading using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072016#M1178285</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 am also working on the data upload from non sap sytem lagecy file to sap system through bapi. I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; am using function&lt;/P&gt;&lt;P&gt;gui_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do u know step by step procedure to upload a flat file from non sap system to sap system then do let me know to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 16:38:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-03-08T16:38:55Z</dc:date>
    <item>
      <title>Regarding data uploading using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072013#M1178282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;                    I am new to BAPI,How to upload data(flat file and excel file) from legacy system to R/3 system using BAPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Kishore&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 03:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072013#M1178282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T03:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding data uploading using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072014#M1178283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first you need to get the data from desk top or application server  using&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If the Presentation Server is selected on the selection screen&lt;/STRONG&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                = gv_file&lt;/P&gt;&lt;P&gt;        filetype                = gc_filetype&lt;/P&gt;&lt;P&gt;      tables&lt;/P&gt;&lt;P&gt;        data_tab                = gt_text_file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Read the data from Application Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    open dataset gv_file for input in text mode encoding default&lt;/P&gt;&lt;P&gt;                            with smart linefeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   read dataset gv_file into gv_str.&lt;/P&gt;&lt;P&gt; close dataset gv_file.&lt;/P&gt;&lt;P&gt;   split gv_str at gc_comma into   wa_text_tablev-objectid&lt;/P&gt;&lt;P&gt;                                        wa_text_tablev-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you have to pass the values into BAPI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 05:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072014#M1178283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T05:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding data uploading using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072015#M1178284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kishor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't directly upload data using BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to use the existing function module for uploading the DATA from text file or excel file and then use the desire BAPI and pass the data you get it from Function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the data is in excel sheet use this FM.&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 = P_FILE&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 = 17&lt;/P&gt;&lt;P&gt;I_END_ROW = 3000&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;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INCONSISTENT_PARAMETERS = 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;UPLOAD_OLE = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&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;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will read the data from excel sheet column wise and then store it in ITAB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of Text file use FM GUI_UPLOAD. and then call the BAPI and pass the data to BAPI structures/input parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 05:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072015#M1178284</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-06T05:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding data uploading using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072016#M1178285</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 am also working on the data upload from non sap sytem lagecy file to sap system through bapi. I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; am using function&lt;/P&gt;&lt;P&gt;gui_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do u know step by step procedure to upload a flat file from non sap system to sap system then do let me know to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:38:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072016#M1178285</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding data uploading using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072017#M1178286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you should go for LSMW for data load from legacy to SAP system. This is less programming and less time consuming (performance wise).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction code: LSMW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For what object do you want to upload data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 22:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072017#M1178286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-08T22:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding data uploading using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072018#M1178287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI shilpa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lv_file_name TYPE string.            "File name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_file_name = pv_file.&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_file_name&lt;/P&gt;&lt;P&gt;      filetype                = gc_asc&lt;/P&gt;&lt;P&gt;      has_field_separator     = gc_x&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      data_tab                = gt_upload[]&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_open_error         = 1&lt;/P&gt;&lt;P&gt;      file_read_error         = 2&lt;/P&gt;&lt;P&gt;      no_batch                = 3&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;      invalid_type            = 5&lt;/P&gt;&lt;P&gt;      no_authority            = 6&lt;/P&gt;&lt;P&gt;      unknown_error           = 7&lt;/P&gt;&lt;P&gt;      bad_data_format         = 8&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;      header_too_long         = 11&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;      access_denied           = 13&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;      disk_full               = 15&lt;/P&gt;&lt;P&gt;      dp_timeout              = 16&lt;/P&gt;&lt;P&gt;      not_supported_by_gui    = 17&lt;/P&gt;&lt;P&gt;      error_no_gui            = 18&lt;/P&gt;&lt;P&gt;      OTHERS                  = 19.&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;Thanks,&lt;/P&gt;&lt;P&gt;Amol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2012 09:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-data-uploading-using-bapi/m-p/5072018#M1178287</guid>
      <dc:creator>amol_samte</dc:creator>
      <dc:date>2012-03-09T09:43:13Z</dc:date>
    </item>
  </channel>
</rss>

