<?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 tutorials in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898510#M681553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give the t-code shdb in the command field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Click the new recording button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Give a name to the recording and the t-code you want to record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: &lt;/P&gt;&lt;P&gt;          Recording                           : ZMAT_UPLOAD&lt;/P&gt;&lt;P&gt;          Transaction code                : MM01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	When you click save, it takes you to t-code (MM01) you would like to do recording for upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Record carefully. Fill in the details you want to upload. In this case I have entered the material no, industry sector, material type, material description and basic unit of measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Then the Transaction recorder &amp;#150; edit recording ZMAT_UPLOAD screen is displayed. You can edit your recording or just save it and click back button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Select your recording and click create program button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Enter the program name say ZMAT_UPLOAD.Select the transfer from recording option. Save it.Give the program title, type as executable program and click source code button at the bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	The following piece of code is generated automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZMAT_UPLOAD&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 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=AUSW'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;                                       'MYMATERIAL10'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;                                       'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;                                       'ZOH'. &lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'MSICHTAUSW-DYTXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;                                       'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                                       'MY MATERIAL10'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                                       'G'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MARA-MTPOS_MARA'&lt;/P&gt;&lt;P&gt;                                       'NORM'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'MM01'.&lt;/P&gt;&lt;P&gt;&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; From the above code it is clear that recording has been created using matnr = mymaterial10 , industry sector = p , material type = zoh , description = my material10 , basic unit of measure = g. For our case I have assumed industry sector and material type to be constant and have not included in flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The bold lines in the below code are the changes made to the sap generated program , to upload our data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZMAT_UPLOAD&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;STRONG&gt;types declaration..........................................................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;types : begin of t_mat,&lt;/P&gt;&lt;P&gt;   matnr(20),&lt;/P&gt;&lt;P&gt;   desc(50),&lt;/P&gt;&lt;P&gt;   uom(5),&lt;/P&gt;&lt;P&gt;end of t_mat.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;internal table and workarea declaration.......................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : i_mat type table of t_mat.&lt;/P&gt;&lt;P&gt;data : wa_mat type t_mat.&amp;lt;/b&amp;gt;&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;STRONG&gt;moving the flat file content to internal table................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         FILETYPE                                      = 'DAT'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;         data_tab                                           = i_mat&lt;/P&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.&amp;lt;/b&amp;gt;&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;&amp;lt;b&amp;gt;loop at i_mat into wa_mat.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                   'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=AUSW'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;                                    &amp;lt;b&amp;gt;wa_mat-matnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;                                    'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;                                    'ZOH'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro   using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'MSICHTAUSW-DYTXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;                                    'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro   using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                                    &amp;lt;b&amp;gt;wa_mat-desc.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                                    &amp;lt;b&amp;gt;wa_mat-uom&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MTPOS_MARA'&lt;/P&gt;&lt;P&gt;                                    'NORM'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'MM01'.&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;Perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run this program, and create a session.&lt;/P&gt;&lt;P&gt;Then go to SM35, select the name of the session and process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data will be uploaded..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Hope this is helpful, Do reward.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2007 06:46:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-10T06:46:04Z</dc:date>
    <item>
      <title>bdc tutorials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898505#M681548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi al&lt;/P&gt;&lt;P&gt;i want to start BDC&lt;/P&gt;&lt;P&gt;wat are the necessary steps which shud i follow to create bdc&lt;/P&gt;&lt;P&gt;i hav just this knowledge that it is used to upload data from flat file to &lt;/P&gt;&lt;P&gt;sap database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so friends can u give me the full explanation of bdc&lt;/P&gt;&lt;P&gt;and some tutorials for bdc&lt;/P&gt;&lt;P&gt;i need tutorials by exmaple &lt;/P&gt;&lt;P&gt;like bdc for mm01&lt;/P&gt;&lt;P&gt;and for mm02&lt;/P&gt;&lt;P&gt;thanx for any kind of help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 05:22:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898505#M681548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T05:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: bdc tutorials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898506#M681549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For BDC:&lt;/P&gt;&lt;P&gt;&lt;A href="http://myweb.dal.ca/hchinni/sap/bdc_home.htm" target="test_blank"&gt;http://myweb.dal.ca/hchinni/sap/bdc_home.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/learning-bdc-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/learning-bdc-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/bdchome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/bdchome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/learning-bdc-" target="test_blank"&gt;http://www.sap-img.com/abap/learning-bdc-&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 05:24:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898506#M681549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T05:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: bdc tutorials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898507#M681550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;BDC:&lt;/P&gt;&lt;P&gt;Batch Data Communication (BDC) is the process of transferring data from one SAP System to another SAP system or from a non-SAP system to SAP System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Features :&lt;/P&gt;&lt;P&gt;BDC is an automatic procedure.&lt;/P&gt;&lt;P&gt;This method is used to transfer large amount of data that is available in electronic medium.&lt;/P&gt;&lt;P&gt;BDC can be used primarily when installing the SAP system and when transferring data from a legacy system (external system).&lt;/P&gt;&lt;P&gt;BDC uses normal transaction codes to transfer data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types of BDC :&lt;/P&gt;&lt;P&gt;CLASSICAL BATCH INPUT (Session Method)&lt;/P&gt;&lt;P&gt;CALL TRANSACTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BATCH INPUT METHOD:&lt;/P&gt;&lt;P&gt;This method is also called as &amp;#145;CLASSICAL METHOD&amp;#146;.&lt;/P&gt;&lt;P&gt;Features:&lt;/P&gt;&lt;P&gt;Asynchronous processing. &lt;/P&gt;&lt;P&gt;Synchronous Processing in database update.&lt;/P&gt;&lt;P&gt;Transfer data for more than one transaction.&lt;/P&gt;&lt;P&gt;Batch input processing log will be generated.&lt;/P&gt;&lt;P&gt;During processing, no transaction is started until the previous transaction has been written to the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION METHOD :&lt;/P&gt;&lt;P&gt;This is another method to transfer data from the legacy system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Features:&lt;/P&gt;&lt;P&gt;Synchronous processing. The system performs a database commit immediately before and after the CALL TRANSACTION USING statement.&lt;/P&gt;&lt;P&gt;Updating the database can be either synchronous or asynchronous. The program specifies the update type.&lt;/P&gt;&lt;P&gt;Transfer data for a single transaction.&lt;/P&gt;&lt;P&gt;Transfers data for a sequence of dialog screens.&lt;/P&gt;&lt;P&gt;No batch input processing log is generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Differences between Call Transaction and Sessions Method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session method. &lt;/P&gt;&lt;P&gt;1) synchronous processing. &lt;/P&gt;&lt;P&gt;2) can tranfer large amount of data. &lt;/P&gt;&lt;P&gt;3) processing is slower. &lt;/P&gt;&lt;P&gt;4) error log is created &lt;/P&gt;&lt;P&gt;5) data is not updated until session is processed. &lt;/P&gt;&lt;P&gt;6) generally used for back ground jobs.&lt;/P&gt;&lt;P&gt;7) at atime we can update to more than one screens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) asynchronous processing &lt;/P&gt;&lt;P&gt;2) can transfer small amount of data &lt;/P&gt;&lt;P&gt;3) processing is faster. &lt;/P&gt;&lt;P&gt;4) errors need to be handled explicitly &lt;/P&gt;&lt;P&gt;5) data is updated automatically &lt;/P&gt;&lt;P&gt;6) for background n fore ground jobs.&lt;/P&gt;&lt;P&gt;7) at atime we can update to a single screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For BDC:&lt;/P&gt;&lt;P&gt;&lt;A href="http://myweb.dal.ca/hchinni/sap/bdc_home.htm" target="test_blank"&gt;http://myweb.dal.ca/hchinni/sap/bdc_home.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/bdc&amp;amp;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/learning-bdc-programming.htm" target="test_blank"&gt;http://www.sap-img.com/abap/learning-bdc-programming.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/bdc/bdchome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/bdc/bdchome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html" target="test_blank"&gt;http://www.sapbrain.com/TUTORIALS/TECHNICAL/BDC_tutorial.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/difference-between-batch-input-and-call-transaction-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/question-about-bdc-program.htm" target="test_blank"&gt;http://www.sap-img.com/abap/question-about-bdc-program.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/" target="test_blank"&gt;http://www.itcserver.com/blog/2006/06/30/batch-input-vs-call-transaction/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.planetsap.com/bdc_main_page.htm" target="test_blank"&gt;http://www.planetsap.com/bdc_main_page.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2491514"&gt;&lt;/A&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;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 05:30:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898507#M681550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T05:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: bdc tutorials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898508#M681551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can somebody give me a small example of a bdc program step by step&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 06:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898508#M681551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T06:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: bdc tutorials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898509#M681552</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;Check this link for sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=5818431&amp;amp;messageID=4174837" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=5818431&amp;amp;messageID=4174837&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 06:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898509#M681552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T06:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: bdc tutorials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898510#M681553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give the t-code shdb in the command field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Click the new recording button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Give a name to the recording and the t-code you want to record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.: &lt;/P&gt;&lt;P&gt;          Recording                           : ZMAT_UPLOAD&lt;/P&gt;&lt;P&gt;          Transaction code                : MM01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	When you click save, it takes you to t-code (MM01) you would like to do recording for upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Record carefully. Fill in the details you want to upload. In this case I have entered the material no, industry sector, material type, material description and basic unit of measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Then the Transaction recorder &amp;#150; edit recording ZMAT_UPLOAD screen is displayed. You can edit your recording or just save it and click back button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Select your recording and click create program button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	Enter the program name say ZMAT_UPLOAD.Select the transfer from recording option. Save it.Give the program title, type as executable program and click source code button at the bottom.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 	The following piece of code is generated automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZMAT_UPLOAD&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 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=AUSW'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;                                       'MYMATERIAL10'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;                                       'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;                                       'ZOH'. &lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'MSICHTAUSW-DYTXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;                                       'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                       '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                                       'MY MATERIAL10'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                       'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                                       'G'.&lt;/P&gt;&lt;P&gt;perform bdc_field          using 'MARA-MTPOS_MARA'&lt;/P&gt;&lt;P&gt;                                       'NORM'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'MM01'.&lt;/P&gt;&lt;P&gt;&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; From the above code it is clear that recording has been created using matnr = mymaterial10 , industry sector = p , material type = zoh , description = my material10 , basic unit of measure = g. For our case I have assumed industry sector and material type to be constant and have not included in flat file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The bold lines in the below code are the changes made to the sap generated program , to upload our data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZMAT_UPLOAD&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;STRONG&gt;types declaration..........................................................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;types : begin of t_mat,&lt;/P&gt;&lt;P&gt;   matnr(20),&lt;/P&gt;&lt;P&gt;   desc(50),&lt;/P&gt;&lt;P&gt;   uom(5),&lt;/P&gt;&lt;P&gt;end of t_mat.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;internal table and workarea declaration.......................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;data : i_mat type table of t_mat.&lt;/P&gt;&lt;P&gt;data : wa_mat type t_mat.&amp;lt;/b&amp;gt;&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;STRONG&gt;moving the flat file content to internal table................................&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CALL FUNCTION 'UPLOAD'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;         FILETYPE                                      = 'DAT'&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;         data_tab                                           = i_mat&lt;/P&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.&amp;lt;/b&amp;gt;&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;&amp;lt;b&amp;gt;loop at i_mat into wa_mat.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPLMGMM' '0060'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                   'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=AUSW'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;                                    &amp;lt;b&amp;gt;wa_mat-matnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;                                    'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;                                    'ZOH'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro   using 'SAPLMGMM' '0070'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'MSICHTAUSW-DYTXT(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=ENTR'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MSICHTAUSW-KZSEL(01)'&lt;/P&gt;&lt;P&gt;                                    'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro   using 'SAPLMGMM' '4004'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                    '=BU'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;                                    &amp;lt;b&amp;gt;wa_mat-desc.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                    'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MEINS'&lt;/P&gt;&lt;P&gt;                                    &amp;lt;b&amp;gt;wa_mat-uom&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'MARA-MTPOS_MARA'&lt;/P&gt;&lt;P&gt;                                    'NORM'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'MM01'.&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;Perform close_group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run this program, and create a session.&lt;/P&gt;&lt;P&gt;Then go to SM35, select the name of the session and process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data will be uploaded..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Hope this is helpful, Do reward.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 06:46:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898510#M681553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T06:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: bdc tutorials</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898511#M681554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx all for ur kind support&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2007 08:42:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-tutorials/m-p/2898511#M681554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-10T08:42:04Z</dc:date>
    </item>
  </channel>
</rss>

