<?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: Read DBF file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803162#M41075</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;At this point WS_UPLOAD is considered obsolete. So you might wana try GUI_UPLOAD which has basically the same functionality, but is more recent and has more functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Nov 2004 08:35:26 GMT</pubDate>
    <dc:creator>reinis_dzenis</dc:creator>
    <dc:date>2004-11-03T08:35:26Z</dc:date>
    <item>
      <title>Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803160#M41073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I need to load the contents of a DBF file, any ideas?&lt;/P&gt;&lt;P&gt;I've tried ws_upload but didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Nov 2004 22:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803160#M41073</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-02T22:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803161#M41074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DBF should be supported by this function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway you may try to convert .dbf to other supportive types like txt by a dbf viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBF Viewer 2000 is the powerful, compact and easy-to-use viewer and editor for DBF files (Clipper, dBase, FoxBase, Foxpro, Visual Foxpro, Visual DBase, VO, DB2K...). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can view, edit, sort, use query by example, delete duplicates, create, print database tables and export the data from them to a variety of formats (DBF, TXT, CSV, Excel, HTML, XML, PRG, SQL) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other viewers may be searched in google.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2004 00:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803161#M41074</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2004-11-03T00:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803162#M41075</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;At this point WS_UPLOAD is considered obsolete. So you might wana try GUI_UPLOAD which has basically the same functionality, but is more recent and has more functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2004 08:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803162#M41075</guid>
      <dc:creator>reinis_dzenis</dc:creator>
      <dc:date>2004-11-03T08:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803163#M41076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An easy option is to transform your .DBF in a plain text file (using Access or Excel, if you have Office installed). It's an easy thing to do, and the file resultant will be uploaded with WS_UPLOAD without problems (and you can do some make-up to the fields if you need it).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The use of GUI_UPLOAD will be wise if your system supports it, because WS_UPLOAD is obsolete and we can expect will dissappear in future versions of SAP/ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps a bit,&lt;/P&gt;&lt;P&gt;Vic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2004 09:05:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803163#M41076</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2004-11-03T09:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803164#M41077</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;try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this basically converts the DBF file to DAT file and loads the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: filename type ibipparms-path obligatory.

data: begin of input_table occurs 0 .
include structure &amp;lt;table structure&amp;gt;.
data: end of input_table.

include ole2incl .

start-of-selection.
perform load_dbf_file.

*&amp;amp;---------------------------------------------------------------------*

*&amp;amp; Form load_dbf_file
*&amp;amp;---------------------------------------------------------------------*

* Loading local DBF-file
*----------------------------------------------------------------------*

form load_dbf_file.
data: application type ole2_object,
workbooks type ole2_object,
fworkbook type ole2_object,
fsheets type ole2_object,
fsheet type ole2_object,
dsheet type ole2_object,
frange type ole2_object,
frow type ole2_object.

data: return,
l_filename type string,
t_filename like rlgrap-filename.

* Filename conversion
move filename to t_filename.
translate t_filename to upper case.
replace '.DBF' with '.DAT' into t_filename.
if sy-subrc ne 0.
* error - filename extension is not DBF "TODO
exit.
endif.

* check file existence
call function 'WS_QUERY' exporting filename = filename
query = 'FE'
importing return = return
exceptions inv_query = 1
no_batch = 2
frontend_error = 3
others = 4.
if ( sy-subrc ne 0 ) or ( return eq 0 ).
* error - file does not exist "TODO
exit.
endif.

***** Working through OLE (MS Excel) *****
* OLE initialization
create object dsheet 'Excel.Sheet'.
if sy-subrc ne 0.
* error - OLE initialization of MS Excel "TODO
exit.
endif.
* supress messages from MS Excel
call method of dsheet 'Application' = application.
set property of application 'DisplayAlerts' = 0.
* opening DBF-file
call method of application 'Workbooks' = workbooks.
call method of workbooks 'Open' exporting #1 = filename
#2 = 0
#3 = 1.
* remove header line from DBF data
get property of application 'ActiveWorkbook' = fworkbook.
call method of fworkbook 'Sheets' = fsheets.
call method of fsheets 'Item' = fsheet exporting #1 = 1.
get property of fsheet 'Rows' = frange.
call method of frange 'Item' = frow exporting #1 = 1.
call method of frow 'Delete'.
* save as DAT file
call method of fworkbook 'SaveAs' exporting #1 = t_filename
#2 = 20.
* close the book without saving
call method of fworkbook 'Close' exporting #1 = 0.
* ??????? ?????? ?? OLE-??????
free object dsheet.

***** Filling internal table with data *****
refresh input_table.
l_filename = t_filename.
call function 'GUI_UPLOAD'
exporting filename = l_filename
has_field_separator = 'X'
tables data_tab = input_table
exceptions file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
others = 17.
if sy-subrc ne 0.
* error - loading DAT file "TODO
exit.
else.
* the loading was successfull "TODO
endif.
***** Delete temporary DAT-file *****
call function 'GUI_DELETE_FILE'
exporting file_name = t_filename
exceptions others = 1.
if sy-subrc &amp;lt;&amp;gt; 0.
call function 'WS_QUERY' exporting filename = t_filename
query = 'FE'
importing return = return
exceptions inv_query = 1
no_batch = 2
frontend_error = 3
others = 4.
if ( sy-subrc ne 0 ) or ( return eq 0 ).
exit.
else.
* error - deleting temporary file "TODO
endif.
endif.
endform. " load_dbf_file

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Nov 2004 09:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803164#M41077</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2004-11-03T09:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803165#M41078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was solved using this:&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                = p_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               = '44'&lt;/P&gt;&lt;P&gt;      I_END_ROW               = '65000'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      INTERN                  = T_RESUL&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2007 20:59:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803165#M41078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-28T20:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803166#M41079</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;Req: Upload dbf file to Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a limitation for no of rows to be uploading in excel i.e 65000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file which has around 1,30,000 records. Is there anyway to load records more than 65000.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 21:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803166#M41079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T21:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803167#M41080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use OLE.  See my cllass:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ole2incl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS ZDBFOLE DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS:&lt;/P&gt;&lt;P&gt;    constructor,&lt;/P&gt;&lt;P&gt;    Open   importing path type char100&lt;/P&gt;&lt;P&gt;      exceptions Error,&lt;/P&gt;&lt;P&gt;    Command importing comm type char200&lt;/P&gt;&lt;P&gt;      exceptions Error,&lt;/P&gt;&lt;P&gt;    EOF exporting result type c,&lt;/P&gt;&lt;P&gt;    MoveFirst,&lt;/P&gt;&lt;P&gt;    MoveNext exporting eof type c,&lt;/P&gt;&lt;P&gt;    get importing field type char30&lt;/P&gt;&lt;P&gt;      exporting val type char100&lt;/P&gt;&lt;P&gt;        exceptions Error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PROTECTED SECTION.&lt;/P&gt;&lt;P&gt;    Data:&lt;/P&gt;&lt;P&gt;        ado_connection type ole2_object,&lt;/P&gt;&lt;P&gt;        ado_recset type ole2_object,&lt;/P&gt;&lt;P&gt;        ado_comm  type ole2_object,&lt;/P&gt;&lt;P&gt;        ado_field    TYPE ole2_object.&lt;/P&gt;&lt;P&gt;    ",&lt;/P&gt;&lt;P&gt;     "   ConnectionString(300).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "ZDBFOLE DEFINITION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      CLASS ZDBFOLE IMPLEMENTATION&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;*&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;CLASS ZDBFOLE IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD constructor.&lt;/P&gt;&lt;P&gt;    create object ado_connection 'adodb.connection'.&lt;/P&gt;&lt;P&gt;    create object ado_recset 'adodb.recordset'.&lt;/P&gt;&lt;P&gt;    create object ado_comm 'adodb.command'.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "constructor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD Open.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    data ConnectionString(300).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    concatenate&lt;/P&gt;&lt;P&gt;      'Provider=Microsoft.Jet.OLEDB.4.0;Data Source='&lt;/P&gt;&lt;P&gt;       path&lt;/P&gt;&lt;P&gt;       ';Persist Security Info=False;Extended Properties=dBase IV'&lt;/P&gt;&lt;P&gt;       into ConnectionString.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method of ado_connection 'Open'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        #1 = ConnectionString.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      raise Error.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    set property of ado_comm 'ActiveConnection' = ado_connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "Open&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD Command.&lt;/P&gt;&lt;P&gt;    set PROPERTY OF ado_comm 'CommandText' = comm.   "'SELECT * From kladr'.&lt;/P&gt;&lt;P&gt;    call method of ado_comm 'Execute' = ado_recset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      raise Error.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    "CALL METHOD OF ado_recset 'MoveFirst'.&lt;/P&gt;&lt;P&gt;    "if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    "  raise Error.&lt;/P&gt;&lt;P&gt;    "endif.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.                    "Command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD MoveFirst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD OF ado_recset 'MoveFirst'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD MoveNext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD OF ado_recset 'MoveNext'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    GET PROPERTY OF ado_recset 'EOF' = Eof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD Get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD OF ado_recset 'fields' = ado_field&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;    #1 = field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;      raise Error.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  GET PROPERTY OF ado_field 'Value' = val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FREE ado_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD Eof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    GET PROPERTY OF ado_recset 'EOF' = result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.                    "ZDBFOLE IMPLEMENTATION&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;//Using this class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  create object mdbf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method mdbf-&amp;gt;open&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      path = path.   "full path to folder of dbf file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// sql command&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;  'SELECT KLADR.NAME, KLADR.CODE, KLADR.SOCR'&lt;/P&gt;&lt;P&gt;  ' FROM KLADR'&lt;/P&gt;&lt;P&gt;  ' WHERE (((Left(KLADR!CODE,2))= "'&lt;/P&gt;&lt;P&gt;  region&lt;/P&gt;&lt;P&gt;  '"));'&lt;/P&gt;&lt;P&gt;  into sql.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method mdbf-&amp;gt;command&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      comm  = sql  &lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      error = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;    message 'SQL Error (select from kladr.dbf)!' type 'I' .&lt;/P&gt;&lt;P&gt;    leave program.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call method mdbf-&amp;gt;eof&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      result = eof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  while ( eof = '0' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call method mdbf-&amp;gt;get&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        field = 'NAME'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        val   = name.&lt;/P&gt;&lt;P&gt;    call method mdbf-&amp;gt;get&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        field = 'CODE'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        val   = code.&lt;/P&gt;&lt;P&gt;    call method mdbf-&amp;gt;get&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        field = 'SOCR'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        val   = socr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; call method mdbf-&amp;gt;movenext&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        eof = eof.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endwhile.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2010 10:04:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803167#M41080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-02T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803168#M41081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mikhail Lushnikov !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with your's solution, I can read file DBF with Extended Properties=dBase IV but Extended Properties = "Visual FoxPro 3.0" or "FoxPro 2.x" or "FoxBASE+" I can't read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you direct for me ?&lt;/P&gt;&lt;P&gt;I will appreciate that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Apr 2010 10:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803168#M41081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-05T10:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803169#M41082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikhail Lushnikov !&lt;/P&gt;&lt;P&gt;i viewed ur solution to read file DBF, have U got any solution to write a file DBF?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Node : I can overwrite to file DBF using function module 'GUI_DOWLOAD' but i don't wanna.&lt;/P&gt;&lt;P&gt;I want to open a DBF file ( exist ), implement append, modify and delete records. So if  you have any ideas of this request, plz tell me. tks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 04:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803169#M41082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T04:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803170#M41083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I using Visual FoxPro 6.0 for open a file DBF and then, I export it to new file DBF with option file types example "Visual FoxPro 3.0", "dBASE IV", "FoxPro 2.x", "FoxBASE+".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I using ODBC for read file and this solution can read file DBF with file type "dBASE IV", "FoxPro 2.x", "FoxBASE+".&lt;/P&gt;&lt;P&gt;With file type  "Visual FoxPro 3.0", I can't read it.&lt;/P&gt;&lt;P&gt;this file type different. &lt;/P&gt;&lt;P&gt;If U have any solution for read this file type, tell me plz. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ! (&lt;SUP&gt;_&lt;/SUP&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 03:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803170#M41083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T03:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Read DBF file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803171#M41084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikhail !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In CLASS ZDBFOLE, U using "GET PROPERTY OF ado_field 'Value' = val" for get value of field.&lt;/P&gt;&lt;P&gt;I try using SET PROPERTY for set value field but it can't implement.&lt;/P&gt;&lt;P&gt;If U can use SET PROPERTY, Can you direct for me ?&lt;/P&gt;&lt;P&gt;tks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 07:27:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dbf-file/m-p/803171#M41084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T07:27:36Z</dc:date>
    </item>
  </channel>
</rss>

