<?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 program error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706098#M626986</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 couldn't find where you specified the file path of the text file!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2007 04:58:43 GMT</pubDate>
    <dc:creator>dev_parbutteea</dc:creator>
    <dc:date>2007-08-10T04:58:43Z</dc:date>
    <item>
      <title>BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706092#M626980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have written this code and trying to upload some data from text file ....its giving me error "Cannot Interpret Data in File "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CODE&lt;/P&gt;&lt;P&gt; report ZAC_SHDB_SD1&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;&lt;/P&gt;&lt;P&gt;Tables : vbep, rv45a , vbap,vbak,vbkd,kuagv.&lt;/P&gt;&lt;P&gt;data : ctab like bdcdata occurs 10 with header line.&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;       auart like VBAK-AUART,&lt;/P&gt;&lt;P&gt;       vkorg like vbak-vkorg,&lt;/P&gt;&lt;P&gt;       vtweg like vbak-vtweg,&lt;/P&gt;&lt;P&gt;       spart like vbak-spart,&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     bstkd like VBKD-BSTDK,&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       kunnr like kuagv-kunnr,&lt;/P&gt;&lt;P&gt;       mabnr like RV45A-MABNR,&lt;/P&gt;&lt;P&gt;       posnr like VBAP-POSNR,&lt;/P&gt;&lt;P&gt;       bstdk like VBKD-BSTDK,&lt;/P&gt;&lt;P&gt;       zmeng like VBAP-ZMENG,&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CODEPAGE                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   FILENAME                      = 'text.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'dat'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = itab&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   CONVERSION_ERROR              = 1&lt;/P&gt;&lt;P&gt;   INVALID_TABLE_WIDTH           = 2&lt;/P&gt;&lt;P&gt;   INVALID_TYPE                  = 3&lt;/P&gt;&lt;P&gt;   NO_BATCH                      = 4&lt;/P&gt;&lt;P&gt;   UNKNOWN_ERROR                 = 5&lt;/P&gt;&lt;P&gt;   GUI_REFUSE_FILETRANSFER       = 6&lt;/P&gt;&lt;P&gt;   OTHERS                        = 7&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;include bdcrecx1.&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;perform open_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'VBAK-AUART'.&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 'VBAK-AUART'&lt;/P&gt;&lt;P&gt;                              'YDS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-VKORG'&lt;/P&gt;&lt;P&gt;                              '7777'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-VTWEG'&lt;/P&gt;&lt;P&gt;                              '71'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-SPART'&lt;/P&gt;&lt;P&gt;                              '77'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/65'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PICK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/65'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 29'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/65'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 51'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '11/58'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PICK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&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 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                             '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'VBAP-ZMENG(01)'.&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;change&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-MABNR(01)'&lt;/P&gt;&lt;P&gt;                              itab-mabnr.&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;change&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG(01)'&lt;/P&gt;&lt;P&gt;                              itab-zmeng.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-POSNR(01)'&lt;/P&gt;&lt;P&gt;                              '    10'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/64'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PICK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/64'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 32'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/64'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 44'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/64'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 51'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/64'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 59'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '32/57'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PICK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&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 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'VBAP-ZMENG(02)'.&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;change&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-MABNR(02)'&lt;/P&gt;&lt;P&gt;                              itab-mabnr.&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;change&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG(02)'&lt;/P&gt;&lt;P&gt;                              itab-zmeng.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-POSNR(02)'&lt;/P&gt;&lt;P&gt;                              '    20'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/62'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PICK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/62'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 39'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/62'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 48'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '02/62'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PZ 65'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMSSY0' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              '30/58'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=PICK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&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 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'VBAP-ZMENG(03)'.&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;change&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-MABNR(03)'&lt;/P&gt;&lt;P&gt;                              itab-mabnr.&lt;/P&gt;&lt;P&gt;*****&lt;STRONG&gt;change&lt;/STRONG&gt;***************&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG(03)'&lt;/P&gt;&lt;P&gt;                              itab-zmeng.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-POSNR(03)'&lt;/P&gt;&lt;P&gt;                              '    30'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ITEM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&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 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '                100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '             111,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-UMZIN'&lt;/P&gt;&lt;P&gt;                              '     1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-UMZIZ'&lt;/P&gt;&lt;P&gt;                              '     1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=T\07'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '             100,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '             111,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-ETDAT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ITEM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=T\01'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-ETDAT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&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 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '                200'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '             222,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-UMZIN'&lt;/P&gt;&lt;P&gt;                              '     1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-UMZIZ'&lt;/P&gt;&lt;P&gt;                              '     1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '             200,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '             222,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ITEM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(03)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&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 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '                300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'EA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '                333'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'EA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-UMZIN'&lt;/P&gt;&lt;P&gt;                              '     1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-UMZIZ'&lt;/P&gt;&lt;P&gt;                              '     1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '                300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'EA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '                333'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'EA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ITEM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '             100,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '             111,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ITEM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '             200,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '             222,00'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'NOS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=ITEM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-BSTDK'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUAGV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KUWEV-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEBG'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAK-GUEEN'&lt;/P&gt;&lt;P&gt;                              '15.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-MABNR(03)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBACK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RV45A-KWMENG'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-KWMENG'&lt;/P&gt;&lt;P&gt;                              '                300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-VRKME'&lt;/P&gt;&lt;P&gt;                              'EA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZMENG'&lt;/P&gt;&lt;P&gt;                              '                333'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBAP-ZIEME'&lt;/P&gt;&lt;P&gt;                              'EA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-ETDAT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RV45A-PRGBZ'&lt;/P&gt;&lt;P&gt;                              'D'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'VBKD-PRSDT'&lt;/P&gt;&lt;P&gt;                              '09.08.2007'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMV45A' '4001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '/EBAC1'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'VA31'.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MY TEXT FILE IS :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;14-08-2007	77290M60E12-26U	8	        &lt;/P&gt;&lt;P&gt;14-08-2007	77290M60E12-68M	10	  &lt;/P&gt;&lt;P&gt;14-08-2007	77290M60E12-76G	11	  &lt;/P&gt;&lt;P&gt;14-08-2007	77290M60E12-Z2S	12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Helpful answer will be rewarded&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706092#M626980</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T04:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706093#M626981</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 can be few reasons,&lt;/P&gt;&lt;P&gt;1.File path is not proper.&lt;/P&gt;&lt;P&gt;2. file contents are not suitable.&lt;/P&gt;&lt;P&gt;3. Check fields of files compatible to your structure.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:52:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706093#M626981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T04:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706094#M626982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;define your internal table fiels with CHAR data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****Please Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks CSR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706094#M626982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T04:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706095#M626983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk upload funcation import parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;file name chk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706095#M626983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T04:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706096#M626984</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;give complete path of file name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME = 'text.txt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab_string occurs 0,&lt;/P&gt;&lt;P&gt;record type char255,&lt;/P&gt;&lt;P&gt;end of itab_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: L_FILETABLE TYPE FILETABLE,&lt;/P&gt;&lt;P&gt;L_FILETAB_H TYPE FILETABLE WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: p_file1 type string.&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;selection screen .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;PARAMETERS: P_FILE TYPE LOCALFILE.&lt;/P&gt;&lt;P&gt;at selection-screen on value-request for P_FILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IF THE USER SELECT EXTENTION BUTTON IT WILL OPEN THE LOCAL DIRECTORY FOR SELECTING THE FILE LOCATION.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL METHOD CL_GUI_FRONTEND_SERVICES=&amp;gt;FILE_OPEN_DIALOG&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WINDOW_TITLE =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DEFAULT_EXTENSION = 'CSV'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DEFAULT_FILENAME = 'C:\Documents and Settings\kiran\Desktop\STATUS.csv'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILE_FILTER =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INITIAL_DIRECTORY = 'C:\Documents and Settings\kiran\Desktop\'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MULTISELECTION =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WITH_ENCODING =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;FILE_TABLE = L_FILETABLE&lt;/P&gt;&lt;P&gt;RC = RC&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;USER_ACTION =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILE_ENCODING =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_OPEN_DIALOG_FAILED = 1&lt;/P&gt;&lt;P&gt;CNTL_ERROR = 2&lt;/P&gt;&lt;P&gt;ERROR_NO_GUI = 3&lt;/P&gt;&lt;P&gt;NOT_SUPPORTED_BY_GUI = 4&lt;/P&gt;&lt;P&gt;others = 5&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;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT l_filetable INTO L_FILETAB_H.&lt;/P&gt;&lt;P&gt;P_FILE = L_FILETAB_H-FILENAME.&lt;/P&gt;&lt;P&gt;move p_file to p_file1.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;passing the selected file name to gui_upload for loading the data&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;into internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 = p_file1&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER_LENGTH = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;READ_BY_LINE = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DAT_MODE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CODEPAGE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IGNORE_CERR = ABAP_TRUE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;REPLACEMENT = '#'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHECK_BOM = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_AUTH_CHECK = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILELENGTH =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = itab_string&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;OTHERS = 17&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 I000(Z00) WITH 'PLEASE PROVIDE CORRECT FILE NAME'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for all helpful answers,&lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706096#M626984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T04:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706097#M626985</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;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CODEPAGE = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;FILENAME = 'text.txt'    " You need to mention the total file path&lt;/P&gt;&lt;P&gt;FILETYPE = 'dat'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CONVERSION_ERROR = 1&lt;/P&gt;&lt;P&gt;INVALID_TABLE_WIDTH = 2&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 3&lt;/P&gt;&lt;P&gt;NO_BATCH = 4&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 5&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 6&lt;/P&gt;&lt;P&gt;OTHERS = 7&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You need to mention the Totla file path, &lt;/P&gt;&lt;P&gt;&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706097#M626985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T04:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706098#M626986</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 couldn't find where you specified the file path of the text file!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 04:58:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706098#M626986</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-08-10T04:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706099#M626987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI experts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried by giving complete file path name :&lt;/P&gt;&lt;P&gt;(C:\Documents and Settings\sks\Desktop\text.txt" ) also but than also same error coming ....:Cannot Interpret data" &lt;/P&gt;&lt;P&gt;.file structure is also correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 05:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706099#M626987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T05:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: BDC program error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706100#M626988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is this &lt;/P&gt;&lt;P&gt;RC = RC &lt;/P&gt;&lt;P&gt;in your coding for?Kindly  explain me what is it doing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2007 05:23:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-program-error/m-p/2706100#M626988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-10T05:23:00Z</dc:date>
    </item>
  </channel>
</rss>

