<?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: WRONG VALUE OF THE parameter file type(bdc-session method) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667192#M295263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;filename = 'C:\VENDOR1.TXT'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it  is &lt;/P&gt;&lt;P&gt;'C:\VENDOR1.TXT'&lt;/P&gt;&lt;P&gt;not &lt;/P&gt;&lt;P&gt;'C:/VENDOR1.TXT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2006 06:20:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-14T06:20:14Z</dc:date>
    <item>
      <title>WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667186#M295257</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;when iam uploading vendor details,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is giving above error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk the code once.....&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                      = 'C:/VENDOR1.TXT'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'DAT'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    DATA_TAB                      = IT_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                    = SY-MANDT&lt;/P&gt;&lt;P&gt;   GROUP                     = 'SRR'&lt;/P&gt;&lt;P&gt;   USER                      = SY-UNAME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 05:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667186#M295257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T05:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667187#M295258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'GUI_UPLOAD'
exporting
filename = 'C:VENDOR1.TXT'
filetype = 'ASC'
has_field_separator = 'X'
* HEADER_LENGTH = 0
* READ_BY_LINE = 'X'
* DAT_MODE = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* CHECK_BOM = ' '
* IMPORTING
* FILELENGTH =
* HEADER =
tables
data_tab = IT_UPLOAD
* 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 &amp;lt;&amp;gt; 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kishan negi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;null&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 05:34:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667187#M295258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T05:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667188#M295259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;More Important is to know the reason why error is coming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that the file is a tab delimited file. When u are calling the Function Module, you have not specified that it has a field separator and hence SAP assumes it is a fixed length file.&lt;/P&gt;&lt;P&gt;If you go into the debugging mode u will see at the end of all the fields u will find a #. this # is nothing but a '&amp;lt;i&amp;gt;tab&amp;lt;/i&amp;gt;'  in Unix system. &lt;/P&gt;&lt;P&gt;And this is the reason u are getting the error - 'Wrong Value of Parameter'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your action : There is a parameter to that FM .. has_field_separator. Set that to 'X' and it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS : Tell me if this was helpful or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 05:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667188#M295259</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-14T05:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667189#M295260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanq u for u r answer. but after doing this it is giving error 'file not found'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because here in this i has seperated fields with tab ---then  we have to 'DAT' only insted of 'ASC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here iam giving the fileds also....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;56734	0001	0001	0001	mr.	das	r	in	120000	A1	0001	0001	INR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 05:55:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667189#M295260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T05:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667190#M295261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to add to my Post... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;generally the flat files are type ASCII so use the file type as 'ASC' .&lt;/P&gt;&lt;P&gt;neways if it works with 'DAT' go ahead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And most importantly... Make it a habit to handle the Exceptions. Trust me It really helps you to catch the exact error in case the file is not read properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 05:58:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667190#M295261</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-14T05:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667191#M295262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, iam not in a position to see the fields in debug mode,b coz  iam stopping at the begining  of the process only. uploading the file is only the problem to me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if upload is ok ,then i can go for debug and check the values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 06:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667191#M295262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T06:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667192#M295263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;filename = 'C:\VENDOR1.TXT'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;has_field_separator = 'X'&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it  is &lt;/P&gt;&lt;P&gt;'C:\VENDOR1.TXT'&lt;/P&gt;&lt;P&gt;not &lt;/P&gt;&lt;P&gt;'C:/VENDOR1.TXT'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 06:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667192#M295263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T06:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667193#M295264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the Issue is only with the file name... It is case sensitive and I would suggest you to cross check the name.&lt;/P&gt;&lt;P&gt;If you still dont get it the plz copy the code and I will look at it...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 06:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667193#M295264</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-14T06:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667194#M295265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi here  iam sending the whole code once to you. just chk it once and same error(WRONG VALUE OF THE parameter file type) is coming after the changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use asc it is giving that no file exists.&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;STRONG&gt;Table Declaration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;tables :rf02k,    "Maintain vendor master record screen and work fields&lt;/P&gt;&lt;P&gt;        lfa1,     "Vendor Master(general)&lt;/P&gt;&lt;P&gt;        lfbk,     "Vendor Master (Bank Details)&lt;/P&gt;&lt;P&gt;        lfb1,     "Vendor Master (Company Code)&lt;/P&gt;&lt;P&gt;        lfm1,     "Vendor master record purchasing organization data&lt;/P&gt;&lt;P&gt;        lfb5.     "Vendor master (dunning data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data Declaration&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*********************************************&lt;/P&gt;&lt;P&gt;data : begin of it_UPLOAD occurs 0,&lt;/P&gt;&lt;P&gt;       LIFNR like rf02k-lifnr,     "vendor no&lt;/P&gt;&lt;P&gt;       BUKRS like rf02k-bukrs,     "company code&lt;/P&gt;&lt;P&gt;       EKorg like rf02k-ekorg,     "purchasing org&lt;/P&gt;&lt;P&gt;       KTOKK like rf02k-ktokk,     "account group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       anred like lfa1-anred,     "initial&lt;/P&gt;&lt;P&gt;       name1 like lfa1-name1,     "name of vendor&lt;/P&gt;&lt;P&gt;       sortl like lfa1-sortl,     "search term&lt;/P&gt;&lt;P&gt;       land1 like lfa1-land1,     "country&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       akont like lfb1-akont,     "reconcillation a/c.&lt;/P&gt;&lt;P&gt;       fdgrv like lfb1-fdgrv,     "planning group&lt;/P&gt;&lt;P&gt;       zterm like lfb1-zterm,     "terms of payment key&lt;/P&gt;&lt;P&gt;       mahna like LFB5-MAHNA,     "dunning procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       waers like lfm1-waers,     "Purchase order currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       END OF IT_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.&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;********************************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UPLOADING THE DATA TO IT_UPLOAD&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 = 'C:\DASRR\VENDOR1.TXT'&lt;/P&gt;&lt;P&gt;filetype = 'DAT'&lt;/P&gt;&lt;P&gt;has_field_separator = 'X'&lt;/P&gt;&lt;UL&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;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 = IT_UPLOAD&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;FILE_READ_ERROR = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_BATCH = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;INVALID_TYPE = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NO_AUTHORITY = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;UNKNOWN_ERROR = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;BAD_DATA_FORMAT = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER_NOT_ALLOWED = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;HEADER_TOO_LONG = 11&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 12&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ACCESS_DENIED = 13&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 14&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DISK_FULL = 15&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DP_TIMEOUT = 16&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;OTHERS = 17&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;*CALL FUNCTION 'GUI_UPLOAD'&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;  FILENAME                      = 'C:/VENDOR1.TXT'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILETYPE                      = 'DAT'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   DATA_TAB                      = IT_UPLOAD.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                    = SY-MANDT&lt;/P&gt;&lt;P&gt;   GROUP                     = 'SRR'&lt;/P&gt;&lt;P&gt;   USER                      = SY-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POPULATE INTERNAL TABL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_UPLOAD.&lt;/P&gt;&lt;P&gt;CLEAR IT_BDCDATA.&lt;/P&gt;&lt;P&gt;REFRESH IT_BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM POPULATE_DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;    TCODE                  = 'XK01'&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;    DYNPROTAB              = IT_BDCDATA.&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;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  POPULATE_DATA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&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;FORM POPULATE_DATA .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GETDATA USING 'X' 'SAPMF02K' '0100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform getdata using ' ' RF02K-LIFNR 'IT_UPLOAD-LIFNR'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' RF02K-bukrs 'IT_UPLOAD-bukrs'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' RF02K-EKORG 'IT_UPLOAD-EKORG'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' RF02K-KTOKK 'IT_UPLOAD-KTOKK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GETDATA USING 'X' 'SAPMF02K' '0110'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFA1-ANRED 'IT_UPLOAD-ANRED'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFA1-NAME1 'IT_UPLOAD-NAME1'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFA1-SORTL 'IT_UPLOAD-SORTL'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFA1-LAND1 'IT_UPLOAD-LAND1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GETDATA USING 'X' 'SAPMF02K' '0210'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFB1-AKONT 'IT_UPLOAD-AKONT'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFB1-FDGRV 'IT_UPLOAD-FDGRV'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GETDATA USING 'X' 'SAPMF02K' '0215'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFB1-ZTERM 'IT_UPLOAD-ZTERM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GETDATA USING 'X' 'SAPMF02K' '0220'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFB5-MAHNA 'IT_UPLOAD-MAHNA'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM GETDATA USING 'X' 'SAPMF02K' '0310'.&lt;/P&gt;&lt;P&gt;perform getdata using ' ' LFM1-WAERS 'IT_UPLOAD-WAERS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " POPULATE_DATA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  GETDATA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0213   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0214   text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_0215   text&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;FORM GETDATA  USING    VALUE(P_0213)&lt;/P&gt;&lt;P&gt;                       VALUE(P_0214)&lt;/P&gt;&lt;P&gt;                       VALUE(P_0215).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                    IF P_0213  = 'X'.&lt;/P&gt;&lt;P&gt;                    IT_BDCDATA-PROGRAM = P_0213.&lt;/P&gt;&lt;P&gt;                    IT_BDCDATA-DYNPRO = P_0214.&lt;/P&gt;&lt;P&gt;                    IT_BDCDATA-DYNBEGIN = P_0215.&lt;/P&gt;&lt;P&gt;                    ELSE.&lt;/P&gt;&lt;P&gt;                    IT_BDCDATA-FNAM = P_0214.&lt;/P&gt;&lt;P&gt;                    IT_BDCDATA-FVAL = P_0215.&lt;/P&gt;&lt;P&gt;                    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************&lt;STRONG&gt;any error in coding just chk it&lt;/STRONG&gt;*****************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 06:43:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667194#M295265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-14T06:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: WRONG VALUE OF THE parameter file type(bdc-session method)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667195#M295266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As I said.. the file type can be either ASCII or BINARY.&lt;/P&gt;&lt;P&gt;So u have to use ASC or BIN. &lt;/P&gt;&lt;P&gt;In this case u will have to use 'ASC' and NOT 'DAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing... the file names are case sensitive... make sure that the file u are trying to open is in proper directory with proper name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3rd Most Imp.  Handle all the exceptions. Uncomment that exceptions part. &lt;/P&gt;&lt;P&gt;Put a break point at the call function 'GUI_UPLOAD' statement.&lt;/P&gt;&lt;P&gt;Press F6 and then check the value of sy-subrc.&lt;/P&gt;&lt;P&gt;It really helps in tracking the exact reason why the file is not uploading. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do this and see what the the sy-subrc value u get. &lt;/P&gt;&lt;P&gt;Please respond with the sy-subrc value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2006 07:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wrong-value-of-the-parameter-file-type-bdc-session-method/m-p/1667195#M295266</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-11-14T07:02:37Z</dc:date>
    </item>
  </channel>
</rss>

