<?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: help for data upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691194#M888823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks experts tht really helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Apr 2008 20:08:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-09T20:08:45Z</dc:date>
    <item>
      <title>help for data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691188#M888817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have written this bdc program to upload the address data from flat file to the sap system but whenever i process the session i get the result like W_MAT-NAME,W_MAT-STREET etc instead of the data in the flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have pasted my program here..plzz site the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZADDRESS1&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES : ztable.&lt;/P&gt;&lt;P&gt;include bdcrecx1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF ITAB,&lt;/P&gt;&lt;P&gt;       NAME like ztable-name,&lt;/P&gt;&lt;P&gt;       street LIKE ZTABLE-STREET,&lt;/P&gt;&lt;P&gt;       MOBILE LIKE ZTABLE-MOBILE,&lt;/P&gt;&lt;P&gt;       FIXED LIKE ZTABLE-FIXEDLINE,&lt;/P&gt;&lt;P&gt;       CITY LIKE ZTABLE-CITY,&lt;/P&gt;&lt;P&gt;  STATE LIKE ZTABLE-STATE,&lt;/P&gt;&lt;P&gt;  COUNTRY LIKE ZTABLE-COUNTRY,&lt;/P&gt;&lt;P&gt;  MAIL LIKE ztable-email,&lt;/P&gt;&lt;P&gt;  END OF ITAB.&lt;/P&gt;&lt;P&gt;data : i_mat type table of ITAB.&lt;/P&gt;&lt;P&gt;data : w_mat type ITAB.&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;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;LI level="1" type="ul"&gt;&lt;P&gt;  FILENAME                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HEADLEN                       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LINE_EXIT                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TRUNCLEN                      = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_FORM                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_PROG                     = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DAT_D_FORMAT                  = ' '&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;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;    data_tab                      = I_MAT&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;  CONVERSION_ERROR              = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_OPEN_ERROR               = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FILE_READ_ERROR               = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TYPE                  = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_BATCH                      = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  UNKNOWN_ERROR                 = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INVALID_TABLE_WIDTH           = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GUI_REFUSE_FILETRANSFER       = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CUSTOMER_ERROR                = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                  = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                        = 11&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group.&lt;/P&gt;&lt;P&gt;LOOP AT I_MAT INTO w_mat.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'ZADDRESS' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=S'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZTABLE-EMAIL'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-NAME'&lt;/P&gt;&lt;P&gt;                              'W_MAT-NAME'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-STREET'&lt;/P&gt;&lt;P&gt;                              'W_MAT-STREET'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-MOBILE'&lt;/P&gt;&lt;P&gt;                              'W_MAT-MOBILE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-FIXEDLINE'&lt;/P&gt;&lt;P&gt;                              'W_MAT_FIXED'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-CITY'&lt;/P&gt;&lt;P&gt;                              'W_MAT-CITY'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-STATE'&lt;/P&gt;&lt;P&gt;                              'W_MAT-STATE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-COUNTRY'&lt;/P&gt;&lt;P&gt;                              'W_MAT-COUNTRY'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-EMAIL'&lt;/P&gt;&lt;P&gt;                              'W_MAT-MAIL'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'ZADDRESS' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=E'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ADDRESS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-NAME'&lt;/P&gt;&lt;P&gt;                              'W_MAT-NAME'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-STREET'&lt;/P&gt;&lt;P&gt;                              'W_MAT-STREET'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-MOBILE'&lt;/P&gt;&lt;P&gt;                              'W_MAT-MOBILE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-FIXEDLINE'&lt;/P&gt;&lt;P&gt;                              'W_MAT-FIXED'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-CITY'&lt;/P&gt;&lt;P&gt;                              'W_MAT-CITY'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-STATE'&lt;/P&gt;&lt;P&gt;                              'W_MAT-STATE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-COUNTRY'&lt;/P&gt;&lt;P&gt;                              'W_MAT-COUNTRY'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZTABLE-EMAIL'&lt;/P&gt;&lt;P&gt;                              'W_MAT-MAIL'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ZADD'.&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;thanks in adv&lt;/P&gt;&lt;P&gt;abhinab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691188#M888817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T19:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: help for data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691189#M888818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
perform bdc_field using 'ZTABLE-NAME'
'W_MAT-NAME'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are always passing literals, not variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the way you want to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
perform bdc_field using ZTABLE-NAME
W_MAT-NAME.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, I don't see any filename in that function, what are you reading?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:55:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691189#M888818</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T19:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: help for data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691190#M888819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use any quotes for your w_mat fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W_MAT-NAME in stead of 'W_MAT-NAME'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:56:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691190#M888819</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-04-09T19:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: help for data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691191#M888820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are passing all the parameters as Constants  to the PERFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'ZTABLE-EMAIL'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'ZTABLE-NAME'&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;'W_MAT-NAME'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont pass them as constants.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691191#M888820</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2008-04-09T19:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: help for data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691192#M888821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By this:&lt;/P&gt;&lt;P&gt;perform bdc_field using 'ZTABLE-NAME'&lt;/P&gt;&lt;P&gt;'W_MAT-NAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;W_MAT-NAME is in quotes so it is seen like the text: w_mat-name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691192#M888821</guid>
      <dc:creator>b_deterd2</dc:creator>
      <dc:date>2008-04-09T19:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: help for data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691193#M888822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhinab Mishra ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your program you had placed the variable inside the quotes like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'ZTABLE-NAME'&lt;/P&gt;&lt;P&gt;'W_MAT-NAME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this needs to be corrected like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_field using 'ZTABLE-NAME'&lt;/P&gt;&lt;P&gt;W_MAT-NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 19:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691193#M888822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T19:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: help for data upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691194#M888823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnks experts tht really helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Apr 2008 20:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-for-data-upload/m-p/3691194#M888823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-09T20:08:45Z</dc:date>
    </item>
  </channel>
</rss>

