<?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: uploading entries into table using bdc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701489#M1452391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its as simple as executing BDC in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a workarea like 'wa_zmat' of the type of your table i.e., 'zmat'&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa_zmat like line of zmat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Loop your internal table into the work area. And now, replace all the hardcoded values which you have already entered&lt;/P&gt;&lt;P&gt;like 'rajeshswami' with the corresponding wa_zmat's field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan Parepalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Mar 2010 06:27:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-04T06:27:30Z</dc:date>
    <item>
      <title>uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701485#M1452387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have save the recording first in the bdc and i got the source code in program. i want to add more entries multiple into the same tabel "zmat". with different zmatcode &amp;amp; zmat-zdesp. &lt;/P&gt;&lt;P&gt;please help me how to write the code. or what changes i have to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZRAJESH_BDC_01&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;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;perform bdc_dynpro      using 'SAPLZMAT' '0002'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZMATCODE(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=NEWL'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SAVE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE'&lt;/P&gt;&lt;P&gt;                              'rajeshswami'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP'&lt;/P&gt;&lt;P&gt;                              'test 1001'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=NEXT'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP'&lt;/P&gt;&lt;P&gt;                              'TEST 1001'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SAVE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE'&lt;/P&gt;&lt;P&gt;                              'ram 0001'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP'&lt;/P&gt;&lt;P&gt;                              'test 0001'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=UEBE'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP'&lt;/P&gt;&lt;P&gt;                              'TEST 0001'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0002'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZMATCODE(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BACK'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0002'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZMATCODE(02)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BACK'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ZMAT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 05:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701485#M1452387</guid>
      <dc:creator>rajeshswami_swami</dc:creator>
      <dc:date>2010-03-04T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701486#M1452388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would request you to paste the above pasted-code in between the   tags.&lt;/P&gt;&lt;P&gt;Just paste the above mentioned tag just before and after your pasted-code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so, that it will retain its format and would help me reading it clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan Parepalli&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: shravan_parepalli on Mar 4, 2010 6:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 05:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701486#M1452388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T05:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701487#M1452389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;report ZRAJESH_BDC_01&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;&amp;amp; include bdcrecx1. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;amp; start-of-selection. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; perform open_group. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_dynpro      using 'SAPLZMAT' '0002'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZMATCODE(01)'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=NEWL'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SAVE'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'ZMAT-ZMATCODE'&lt;/P&gt;&lt;P&gt;                              'rajeshswami'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'ZMAT-ZDESP'&lt;/P&gt;&lt;P&gt;                              'test 1001'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=NEXT'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'ZMAT-ZDESP'&lt;/P&gt;&lt;P&gt;                              'TEST 1001'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;&amp;amp; perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=SAVE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE'&lt;/P&gt;&lt;P&gt;                              'ram 0001'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP'&lt;/P&gt;&lt;P&gt;                              'test 0001'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=UEBE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP'&lt;/P&gt;&lt;P&gt;                              'TEST 0001'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0002'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZMATCODE(02)'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BACK'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0002'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZMATCODE(02)'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=BACK'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ZMAT'. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 06:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701487#M1452389</guid>
      <dc:creator>rajeshswami_swami</dc:creator>
      <dc:date>2010-03-04T06:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701488#M1452390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you passing directly hard coded values to your BDC code. So, it will run only for 1 set of data.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;bdc_field using 'ZMAT-ZMATCODE' 'ram 0001'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to modify your BDC code. Instead of passing hard coded values, you will have to pass internal table (work area) variables to youe BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;bdc_field using 'ZMAT-ZMATCODE' wa_itab-zmatcode.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put your BDC code inside the loop at the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if need more help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Archana Pawar on Mar 4, 2010 7:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 06:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701488#M1452390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T06:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701489#M1452391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its as simple as executing BDC in a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a workarea like 'wa_zmat' of the type of your table i.e., 'zmat'&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: wa_zmat like line of zmat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Loop your internal table into the work area. And now, replace all the hardcoded values which you have already entered&lt;/P&gt;&lt;P&gt;like 'rajeshswami' with the corresponding wa_zmat's field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan Parepalli&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 06:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701489#M1452391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T06:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701490#M1452392</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;For multiple Entries .You have to pass the data in Flat file.(C:/so.txt)&lt;/P&gt;&lt;P&gt;In notepad you have to enter the multiple data and save it in the system.Input data and internal table structure should be same.&lt;/P&gt;&lt;P&gt;Example coding.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'GUI_UPLOAD'
  EXPORTING
    filename                      = 'c:\so.txt'
   FILETYPE                      = 'ASC'
   HAS_FIELD_SEPARATOR           = 'X'

   tables
    data_tab                      = itab

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.

loop at itab into wa.
perform bdc_dynpro      using 'SAPMV45A' '0102'.
perform bdc_field       using 'BDC_CURSOR'
                              'VBAK-VBELN'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SUCH'.
perform bdc_field       using 'VBAK-VBELN'
                              wa-VBELN_001.
perform bdc_field       using 'BDC_OKCODE'
                              '=SUCH'.
perform bdc_dynpro      using 'SAPMV45A' '4001'.
perform bdc_field       using 'BDC_OKCODE'
                              '=T\02'.
CONCATENATE 'RV45A-KWMENG( ' wa-vbap_selkz_04_015(001)') '  INTO temp2.
perform bdc_field       using temp2
                              wa-KWMENG_04_016(019).

perform bdc_dynpro      using 'SAPMV45A' '4001'.
perform bdc_field       using 'BDC_OKCODE'
                              '=SICH'.
perform bdc_transaction using 'VA02'.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 06:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701490#M1452392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T06:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701491#M1452393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;report ZRAJESH_07&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;include bdcrecx1. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0002'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'VIM_POSITION_INFO'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=NEWL'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=SAVE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'raj1'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'test raj'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform update_nextdata using 'raj2' 'test raj2'. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ZMAT1'. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form update_nextdata using ZMAT-ZMATCODE ZMAT-ZDESP. &amp;amp;&lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=NEXT'. &amp;amp;&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             'TEST RAJ'. &amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=SAVE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              ZMAT-ZMATCODE. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              ZMAT-ZDESP. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=ENDE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'RAJ2 TEST'. &amp;amp;&lt;/P&gt;&lt;P&gt;endform. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got the ouput just trying the different way please suggest me .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 07:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701491#M1452393</guid>
      <dc:creator>rajeshswami_swami</dc:creator>
      <dc:date>2010-03-04T07:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701492#M1452394</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;how to put bdc inside the loop please can you explain me..iam trying to upload data not by hard code. like you said &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have wrote the code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZRAJESH_07 &amp;amp;&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255. &amp;amp;&lt;/P&gt;&lt;P&gt;data: itab type table of zmat, &amp;amp;&lt;/P&gt;&lt;P&gt;      wa_itab like line of itab. &amp;amp;&lt;/P&gt;&lt;P&gt;include bdcrecx1. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0002'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'VIM_POSITION_INFO'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=NEWL'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=SAVE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'raj1'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'test raj'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform update_nextdata using 'raj2' 'test raj2'. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ZMAT1'. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form update_nextdata using wa_itab-ZMATCODE wa_itab-ZMAT-ZDESP. &amp;amp;&lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=NEXT'. &amp;amp;&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             'TEST RAJ'. &amp;amp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=SAVE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              wa_itab-ZMATCODE. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              wa_itab-ZDESP. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=ENDE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'RAJ2 TEST'. &amp;amp;&lt;/P&gt;&lt;P&gt;endform. &amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 07:44:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701492#M1452394</guid>
      <dc:creator>rajeshswami_swami</dc:creator>
      <dc:date>2010-03-04T07:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701493#M1452395</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;First of all, you need to have data in your internal table. If suppose ZMAT is your internal table. You will need to upload data from your excel file/ text file into internal table, using FM GUI_UPLOAD. Then, you can use this internal table to loop at.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then within loop you will have to write your modified code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just try this much. I will let you know how to write BDC code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 09:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701493#M1452395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T09:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701494#M1452396</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;Refer below BDC code, which is modified from your BDC code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;perform bdc_dynpro using 'SAPLZMAT' '0002'. 
perform bdc_field using 'BDC_CURSOR'
			'ZMAT-ZMATCODE(01)'.
perform bdc_field using 'BDC_OKCODE'
			'=NEWL'.
perform bdc_dynpro using 'SAPLZMAT' '0003'.
perform bdc_field using 'BDC_CURSOR'
			'ZMAT-ZDESP'. 
perform bdc_field using 'BDC_OKCODE'
			'=SAVE'.
perform bdc_field using 'ZMAT-ZMATCODE'
			'rajeshswami'.---- Here, instead of name you give wa_itab-name ie.e corresponding field from your internal table.
perform bdc_field using 'ZMAT-ZDESP'
			'test 1001'. ---- Here,give corresponding field from your internal table.
perform bdc_dynpro using 'SAPLZMAT' '0003'. 
perform bdc_field using 'BDC_CURSOR'
			'ZMAT-ZDESP'.
perform bdc_field using 'BDC_OKCODE'
			'=NEXT'.
perform bdc_field using 'ZMAT-ZDESP'
			'TEST 1001'. ---- Here,give corresponding field from your internal table.
perform bdc_dynpro using 'SAPLZMAT' '0003'.
perform bdc_field using 'BDC_CURSOR'
			'ZMAT-ZDESP'.
perform bdc_field using 'BDC_OKCODE'
			'=SAVE'.
perform bdc_field using 'ZMAT-ZMATCODE'
			'ram 0001'. ---- Here,give corresponding field from your internal table.
perform bdc_field using 'ZMAT-ZDESP'
			'test 0001'. ---- Here,give corresponding field from your internal table.
perform bdc_dynpro using 'SAPLZMAT' '0003'.
perform bdc_field using 'BDC_CURSOR'
			'ZMAT-ZDESP'. 
perform bdc_field using 'BDC_OKCODE'
			'=UEBE'. 
perform bdc_field using 'ZMAT-ZDESP'
			'TEST 0001'. ---- Here,give corresponding field from your internal table.
perform bdc_dynpro using 'SAPLZMAT' '0002'.
perform bdc_field using 'BDC_CURSOR'
			'ZMAT-ZMATCODE(02)'. 
perform bdc_field using 'BDC_OKCODE'
			'=BACK'. 
perform bdc_dynpro using 'SAPLZMAT' '0002'.
perform bdc_field using 'BDC_CURSOR'
			'ZMAT-ZMATCODE(02)'. 
perform bdc_field using 'BDC_OKCODE'
			'=BACK'. 
perform bdc_transaction using 'ZMAT'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 09:34:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701494#M1452396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T09:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701495#M1452397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi archana , first thanks for helping me.&lt;/P&gt;&lt;P&gt;well this the code which i wrote.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZRAJESH_07 &amp;amp;&lt;/P&gt;&lt;P&gt;       no standard page heading line-size 255. &amp;amp;&lt;/P&gt;&lt;P&gt;PARAMETERS: zcode type ZMAT-ZMATCODE, &amp;amp;&lt;/P&gt;&lt;P&gt;            zdesp type ZMAT-ZDESP. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type table of zmat, &amp;amp;&lt;/P&gt;&lt;P&gt;      wa_itab like line of itab. &amp;amp;&lt;/P&gt;&lt;P&gt;include bdcrecx1. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform open_group. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0002'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'VIM_POSITION_INFO'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=NEWL'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=SAVE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'raj1'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'test raj'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform update_nextdata using 'zcode' 'zdesp'. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'ZMAT1'. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform close_group. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form update_nextdata using wa_itab-ZMATCODE wa_itab-ZMAT-ZDESP. &amp;amp;&lt;/P&gt;&lt;P&gt;  loop at itab into wa_itab. &amp;amp;&lt;/P&gt;&lt;P&gt; perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=NEXT'.&lt;/P&gt;&lt;P&gt;*perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                             'TEST RAJ'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=SAVE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZMATCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              wa_itab-ZMATCODE. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              wa_itab-ZDESP. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLZMAT' '0003'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'ZMAT-ZDESP'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE' &amp;amp;&lt;/P&gt;&lt;P&gt;                              '=ENDE'. &amp;amp;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'ZMAT-ZDESP' &amp;amp;&lt;/P&gt;&lt;P&gt;                              'RAJ2 TEST'. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop. &amp;amp;&lt;/P&gt;&lt;P&gt;endform. &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt;Email address removed&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Mar 4, 2010 3:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 09:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701495#M1452397</guid>
      <dc:creator>rajeshswami_swami</dc:creator>
      <dc:date>2010-03-04T09:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701496#M1452398</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;First of all let me tell you few things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC is used to upload data in batches. So, suppose if we have data in the form of file (flat file), we can use BDC in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in order to use BDC, we should be able to read this data. So, we use FM 'GUI_UPLOAD' and take all the contents of the file into an internal table. This internal table will contains all the fields of that of the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once your data is in internal table, you need to put it one by one in your tcode and execute it for every tcode. So, in order to achieve this, you need to write BDC code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC code will be done from SHDB recording. From that recording you will have to write your BDC code and place it withing the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 09:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701496#M1452398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T09:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701497#M1452399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goto Note pad Enter the input data as per the ZMAT structure.Save it in local folder.&lt;/P&gt;&lt;P&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:\so.txt'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt;   HAS_FIELD_SEPARATOR           = 'X' &lt;/P&gt;&lt;P&gt;   tables&lt;/P&gt;&lt;P&gt;   data_tab                      = itab&lt;/P&gt;&lt;P&gt;Please Check Archana mentiond in codes and change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;&amp;lt;email address removed&lt;/STRONG&gt; Dont specify the mail id here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Mar 4, 2010 3:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 10:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701497#M1452399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-04T10:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701498#M1452400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Do not post your email address or other personal information on these forums&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Mar 2010 14:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701498#M1452400</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-03-04T14:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: uploading entries into table using bdc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701499#M1452401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swami ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any table control  for the screen that u recorded.That means do you want enter all the records in ITAB processing the BDC recording steps into the screen.then the below code may be useful to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT i_item INTO wa_item WHERE plnnr = wa_header-plnnr .  * Loop through the records in the ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        PERFORM bdc_dynpro      USING 'SAPLCPDI' '  3400'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        v_count = v_count + 1.   *Increment the counter for each record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CONCATENATE 'PLPOD-VORNR(' v_count')' INTO v_val. *Contatenate the fieldname + counter ( Line in the table control)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING 'BDC_CURSOR' v_val.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING 'BDC_OKCODE' '=LTXT'.&lt;/P&gt;&lt;P&gt;        CONCATENATE 'RC27X-FLG_SEL(' v_count')' INTO v_val.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING  v_val 'X'.&lt;/P&gt;&lt;P&gt;        CONCATENATE 'PLPOD-ARBEH(' v_count')' INTO v_val.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING  v_val 'HR'.     "wa_item-arbeh. *Contatenate the fieldname + counter ( Line in the table control)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CONCATENATE 'PLPOD-ANZZL(' v_count')' INTO v_val.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING  v_val wa_item-anzzl.&lt;/P&gt;&lt;P&gt;        CONCATENATE 'plpod-dauno(' v_count')' INTO v_val.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING  v_val wa_item-dauno.&lt;/P&gt;&lt;P&gt;        CONCATENATE 'PLPOD-DAUNE(' v_count')' INTO v_val.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING  v_val  'HR'.                                                   "wa_item-daune.&lt;/P&gt;&lt;P&gt;        CONCATENATE 'PLPOD-INDET(' v_count')' INTO v_val.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING  v_val  '2'.                                                     "wa_item-indet.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING 'BDC_CURSOR' lv_txpargraph.&lt;/P&gt;&lt;P&gt;        PERFORM bdc_field       USING 'BDC_OKCODE' '=EDNP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if v_count &amp;gt; 20          * ( No.of visible lines)&lt;/P&gt;&lt;P&gt;        give the OK code for page dowm.&lt;/P&gt;&lt;P&gt;       clear v_count.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        endloop.&lt;/P&gt;&lt;P&gt;After this call transaction, this statement continues.  &lt;/P&gt;&lt;P&gt;This recording is specific to IA05 T.code you change accordingly to ur T.code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pallavi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 16:44:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-entries-into-table-using-bdc/m-p/6701499#M1452401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T16:44:53Z</dc:date>
    </item>
  </channel>
</rss>

