<?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: about bdc's in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473345#M834869</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iam working on a CALL TRANSACTION  using BDC.&lt;/P&gt;&lt;P&gt;can u give me detailed steps and example for this procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Mar 2008 07:48:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-12T07:48:58Z</dc:date>
    <item>
      <title>about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473341#M834865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can u please give me how to go about with BDC.&lt;/P&gt;&lt;P&gt;iam new to this concept.&lt;/P&gt;&lt;P&gt;please provide me with some help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 07:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473341#M834865</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T07:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473342#M834866</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;goto this link and follow the steps.&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;example code for BDC(with table control)&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm" target="test_blank"&gt;http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 07:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473342#M834866</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T07:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473343#M834867</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;Please refer to the link below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/bdc/bdc_ctcode.htm" target="test_blank"&gt;http://www.sapdev.co.uk/bdc/bdc_ctcode.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 07:46:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473343#M834867</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T07:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473344#M834868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look into the following Wiki thread from SDN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bdc&amp;amp;" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bdc&amp;amp;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also&lt;/P&gt;&lt;P&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.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="https://www.sdn.sap.com/irj/sdn/advancedsearch?query=bdc%20programming&amp;amp;cat=sdn_all" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/advancedsearch?query=bdc%20programming&amp;amp;cat=sdn_all&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrainsonline.com/FAQs/TECHNICAL/SAP_ABAP_BDC_FAQ.html" target="test_blank"&gt;http://www.sapbrainsonline.com/FAQs/TECHNICAL/SAP_ABAP_BDC_FAQ.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.lulu.com/browse/book_view.php?fBuyItem=5&amp;amp;fCID=785507" target="test_blank"&gt;http://www.lulu.com/browse/book_view.php?fBuyItem=5&amp;amp;fCID=785507&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;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="4640160"&gt;&lt;/A&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="4774999"&gt;&lt;/A&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="4703106"&gt;&lt;/A&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="4655951"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 07:48:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473344#M834868</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T07:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473345#M834869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iam working on a CALL TRANSACTION  using BDC.&lt;/P&gt;&lt;P&gt;can u give me detailed steps and example for this procedure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;chaitanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 07:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473345#M834869</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T07:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473346#M834870</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 below code snippet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :   it_bdcmsgcoll type bdcmsgcoll occurs 0 with header line,&lt;/P&gt;&lt;P&gt;            v_trans(10)  type c value 'XD01'.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;*populating screens with the data in internal table&lt;/P&gt;&lt;P&gt;  LOOP AT it_cust INTO wa_cust.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data      USING 'SAPMF02D' '0100' 'X' ' ' ' '.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                             'KNVK-PARNR'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                              '/00'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'RF02D-BUKRS'&lt;/P&gt;&lt;P&gt;                                              wa_cust-bukrs.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'RF02D-VKORG'&lt;/P&gt;&lt;P&gt;                                              wa_cust-vkorg.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'RF02D-VTWEG'&lt;/P&gt;&lt;P&gt;                                              wa_cust-vtweg.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'RF02D-SPART'&lt;/P&gt;&lt;P&gt;                                              wa_cust-spart.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'RF02D-KTOKD'&lt;/P&gt;&lt;P&gt;                                              wa_cust-ktokd.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'KNVK-PARNR'&lt;/P&gt;&lt;P&gt;                                              wa_cust-parnr.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data      USING 'SAPMF02D' '0110' 'X' ' ' ' '.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                             'KNA1-SPRAS'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                             '/00'.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'KNA1-NAME1'&lt;/P&gt;&lt;P&gt;                                              wa_cust-name1.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'KNA1-SORTL'&lt;/P&gt;&lt;P&gt;                                              wa_cust-sortl.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'KNA1-STRAS'&lt;/P&gt;&lt;P&gt;                                              wa_cust-stras.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'KNA1-LAND1'&lt;/P&gt;&lt;P&gt;                                              wa_cust-land1.&lt;/P&gt;&lt;P&gt;    PERFORM bdc_data       USING ' ' ' ' ' ' 'KNA1-SPRAS'&lt;/P&gt;&lt;P&gt;                                              wa_cust-spras.&lt;/P&gt;&lt;P&gt;&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;  CALL TRANSACTION v_trans USING it_bdcdata&lt;/P&gt;&lt;P&gt;                           MODE 'E'&lt;/P&gt;&lt;P&gt;                           MESSAGES INTO it_bdcmsgcoll.&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 bdc_data  USING    program&lt;/P&gt;&lt;P&gt;                        dynpro&lt;/P&gt;&lt;P&gt;                        dynbegin&lt;/P&gt;&lt;P&gt;                        fnam&lt;/P&gt;&lt;P&gt;                        fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CLEAR it_bdcdata.&lt;/P&gt;&lt;P&gt;  it_bdcdata-program  = program.&lt;/P&gt;&lt;P&gt;  it_bdcdata-dynpro   = dynpro.&lt;/P&gt;&lt;P&gt;  it_bdcdata-dynbegin = dynbegin.&lt;/P&gt;&lt;P&gt;  it_bdcdata-fnam     = fnam.&lt;/P&gt;&lt;P&gt;  it_bdcdata-fval     = fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND it_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " bdc_data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if it is helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srilatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473346#M834870</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473347#M834871</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;Step1:&lt;/P&gt;&lt;P&gt;Create a BDC Recording using transaction SHDB. &lt;/P&gt;&lt;P&gt;Step2:&lt;/P&gt;&lt;P&gt;Create a ZProgram from the Recording (from tcode SHDB).&lt;/P&gt;&lt;P&gt;Step3:&lt;/P&gt;&lt;P&gt;Upload the legacy data.. Use FM GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;Step4:&lt;/P&gt;&lt;P&gt;Loop at the internal table (with legacy data)&lt;/P&gt;&lt;P&gt;Put the BDC code inside the loop and replace the values which you gave while recording with the internal table fields respectively.&lt;/P&gt;&lt;P&gt;Step5:&lt;/P&gt;&lt;P&gt;Activate the program and execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is the brief description of the same...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SAP system offers two primary methods for transferring data into SAP systems. From non-SAP systems or legacy system. These two methods are collectively called &amp;#147;batch input&amp;#148; or &amp;#147;batch data communication&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. SESSION METHOD&lt;/P&gt;&lt;P&gt;2. CALL TRANSACTION&lt;/P&gt;&lt;P&gt;3. DIRECT INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advantages offered by BATCH INPUT method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Can process large data volumes in batch.&lt;/P&gt;&lt;P&gt;2. Can be planned and submitted in the background.&lt;/P&gt;&lt;P&gt;3. No manual interaction is required when data is transferred.&lt;/P&gt;&lt;P&gt;4. Data integrity is maintained as whatever data is transferred to the table is through transaction. Hence batch input data is submitted to all the checks and validations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To implement one of the supported data transfers, you must often write the program that exports the data from your non-SAP system. This program, known as a &amp;#147;data transfer&amp;#148; program must map the data from the external system into the data structure required by the SAP batch input program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The batch input program must build all of the input to execute the SAP transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Two main steps are required: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; To build an internal table containing every screen and every field to be filled in during the execution of an SAP transaction.&lt;/P&gt;&lt;P&gt;&amp;#149; To pass the table to SAP for processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisite for Data Transfer Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Writing a Data Transfer Program involves following prerequisites:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyzing data from local file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyzing transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analyzing transaction involves following steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; The transaction code, if you do not already know it.&lt;/P&gt;&lt;P&gt;&amp;#149; Which fields require input i.e., mandatory.&lt;/P&gt;&lt;P&gt;&amp;#149; Which fields can you allow to default to standard values.&lt;/P&gt;&lt;P&gt;&amp;#149; The names, types, and lengths of the fields that are used by a transaction.&lt;/P&gt;&lt;P&gt;&amp;#149; Screen number and Name of module pool program behind a particular transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To analyze a transaction::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Start the transaction by menu or by entering the transaction code in the command box.&lt;/P&gt;&lt;P&gt;(You can determine the transaction name by choosing System &amp;#150; Status.)&lt;/P&gt;&lt;P&gt;&amp;#149; Step through the transaction, entering the data will be required for processing your batch input data.&lt;/P&gt;&lt;P&gt;&amp;#149; On each screen, note the program name and screen (dynpro) number.&lt;/P&gt;&lt;P&gt;(dynpro = dyn + pro. Dyn = screen, pro = number)&lt;/P&gt;&lt;P&gt;&amp;#149; Display these by choosing System &amp;#150; Status. The relevant fields are Program (dynpro) and Dynpro number. If pop-up windows occur during execution, you can get the program name and screen number by pressing F1 on any field or button on the screen.&lt;/P&gt;&lt;P&gt;The technical info pop-up shows not only the field information but also the program and screen.&lt;/P&gt;&lt;P&gt;&amp;#149; For each field, check box, and radio button on each screen, press F1 (help) and then choose Technical Info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the following information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field name for batch input, which you&amp;#146;ll find in its own box. &lt;/P&gt;&lt;P&gt;The length and data type of the field. You can display this information by double clicking on the Data Element field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Find out the identification code for each function (button or menu) that you must execute to process the batch-input data (or to go to new screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place the cursor on the button or menu entry while holding down the left mouse button. Then press F1.&lt;/P&gt;&lt;P&gt;In the pop-up window that follows, choose Technical info and note the code that is shown in the Function field.&lt;/P&gt;&lt;P&gt;You can also run any function that is assigned to a function key by way of the function key number. To display the list of available function keys, click on the right mouse button. Note the key number that is assigned to the functions you want to run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have program name, screen number, field name (screen field name), you can start writing.&lt;/P&gt;&lt;P&gt;DATA TRANSFER program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First Integral Table similar to structure like local file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring internal table like BDCDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data from internal table is not transferred directly to database table, it has to go through transaction. You need to pass data to particular screen and to particular screen-field. Data is passed to transaction in particular format, hence there is a need for batch input structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The batch input structure stores the data that is to be entered into SAP system and the actions that are necessary to process the data. The batch input structure is used by all of the batch input methods. You can use the same structure for all types of batch input, regardless of whether you are creating a session in the batch input queue or using CALL TRANSACTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This structure is BDCDATA, which can contain the batch input data for only a single run of a transaction. The typical processing loop in a program is as follows:&lt;/P&gt;&lt;P&gt;&amp;#149; Create a BDCDATA structure&lt;/P&gt;&lt;P&gt;&amp;#149; Write the structure out to a session or process it with CALL TRANSACTION USING; and then&lt;/P&gt;&lt;P&gt;&amp;#149; Create a BDCDATA structure for the next transaction that is to be processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a BDCDATA structure, organize the data of screens in a transaction. Each screen that is processed in the course of a transaction must be identified with a BDCDATA record. This record uses the Program, Dynpro, and Dynbegin fields of the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The screen identifier record is followed by a separate BDCDATA record for each value, to be entered into a field. These records use the FNAM and FVAL fields of the BDCDATA structure. Values to be entered in a field can be any of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; Data that is entered into screen fields.&lt;/P&gt;&lt;P&gt;&amp;#149; Function codes that are entered into the command field. Such function codes execute functions in a transaction, such as Save or Enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BDCDATA structure contains the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149; PROGRAM: Name of module pool program associated with the screen. Set this field only for the first record for the screen.&lt;/P&gt;&lt;P&gt;&amp;#149; DYNPRO: Screen Number. Set this field only in the first record for the screen.&lt;/P&gt;&lt;P&gt;&amp;#149; DYNBEGIN: Indicates the first record for the screen. Set this field to X, only for the first record for the screen. (Reset to &amp;#145; &amp;#145; (blank) for all other records.)&lt;/P&gt;&lt;P&gt;&amp;#149; FNAM: Field Name. The FNAM field is not case-sensitive.&lt;/P&gt;&lt;P&gt;&amp;#149; FVAL: Value for the field named in FNAM. The FVAL field is case-sensitive. Values assigned to this field are always padded on the right, if they are less than 132 characters. Values must be in character format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transferring data from local file to internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is uploaded to internal table by UPLOAD of WS_UPLOAD function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Population of BDCDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each record of internal table, you need to populate Internal table, which is similar to BDCDATA structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All these five initial steps are necessary for any type of BDC interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA TRANSFER program can call SESSION METHOD or CALL TRANSACTION. The initial steps for both the methods are same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First step for both the methods is to upload the data to internal table. From Internal Table, the data is transferred to database table by two ways i.e., Session method and Call transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SESSION METHOD&lt;/P&gt;&lt;P&gt;About Session method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this method you transfer data from internal table to database table through sessions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this method, an ABAP/4 program reads the external data that is to be entered in the SAP System and stores the data in session. A session stores the actions that are required to enter your data using normal SAP transaction i.e., Data is transferred to session which in turn transfers data to database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session is intermediate step between internal table and database table. Data along with its action is stored in session i.e., data for screen fields, to which screen it is passed, the program name behind it, and how the next screen is processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the program has finished generating the session, you can run the session to execute the SAP transactions in it. You can either explicitly start and monitor a session or have the session run in the background processing system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless session is processed, the data is not transferred to database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You create the session through program by BDC_OPEN_GROUP function. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameters to this function are: &lt;/P&gt;&lt;P&gt;&amp;#149; User Name: User name &lt;/P&gt;&lt;P&gt;&amp;#149; Group: Name of the session&lt;/P&gt;&lt;P&gt;&amp;#149; Lock Date: The date on which you want to process the session.&lt;/P&gt;&lt;P&gt;&amp;#149; Keep: This parameter is passed as &amp;#145;X&amp;#146; when you want to retain session after&lt;/P&gt;&lt;P&gt;processing it or &amp;#145; &amp;#145; to delete it after processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_INSERT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function creates the session &amp;amp; data is transferred to Session.&lt;/P&gt;&lt;P&gt;Parameters to this function are:&lt;/P&gt;&lt;P&gt;&amp;#149; Tcode: Transaction Name &lt;/P&gt;&lt;P&gt;&amp;#149; Dynprotab: BDC Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_CLOSE_GROUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function closes the BDC Group. No Parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some additional information for session processing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the session is generated using the KEEP option within the BDC_OPEN_GROUP, the system always keeps the sessions in the queue, whether it has been processed successfully or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if the session is processed, you have to delete it manually. When session processing is completed successfully while KEEP option was not set, it will be removed automatically from the session queue. Log is not removed for that session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the batch-input session is terminated with errors, then it appears in the list of INCORRECT session and it can be processed again. To correct incorrect session, you can analyze the session. The Analysis function allows to determine which screen and value has produced the error. If you find small errors in data, you can correct them interactively, otherwise you need to modify batch input program, which has generated the session or many times even the data file.&lt;/P&gt;&lt;P&gt;&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;About CALL TRANSACTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A technique similar to SESSION method, while batch input is a two-step procedure, Call Transaction does both steps online, one after the other. In this method, you call a transaction from your program by&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call transaction &amp;lt;tcode&amp;gt; using &amp;lt;BDCTAB&amp;gt;&lt;/P&gt;&lt;P&gt;Mode &amp;lt;A/N/E&amp;gt;&lt;/P&gt;&lt;P&gt;Update &amp;lt;S/A&amp;gt;&lt;/P&gt;&lt;P&gt;Messages into &amp;lt;MSGTAB&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter &amp;#150; 1 is transaction code.&lt;/P&gt;&lt;P&gt;Parameter &amp;#150; 2 is name of BDCTAB table.&lt;/P&gt;&lt;P&gt;Parameter &amp;#150; 3 here you are specifying mode in which you execute transaction&lt;/P&gt;&lt;P&gt;A is all screen mode. All the screen of transaction are displayed.&lt;/P&gt;&lt;P&gt;N is no screen mode. No screen is displayed when you execute the transaction.&lt;/P&gt;&lt;P&gt;E is error screen. Only those screens are displayed wherein you have error record.&lt;/P&gt;&lt;P&gt;Parameter &amp;#150; 4 here you are specifying update type by which database table is updated.&lt;/P&gt;&lt;P&gt;S is for Synchronous update in which if you change data of one table then all the related Tables gets updated. And sy-subrc is returned i.e., sy-subrc is returned for once and all.&lt;/P&gt;&lt;P&gt;A is for Asynchronous update. When you change data of one table, the sy-subrc is returned. And then updating of other affected tables takes place. So if system fails to update other tables, still sy-subrc returned is 0 (i.e., when first table gets updated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Parameter &amp;#150; 5 when you update database table, operation is either successful or unsuccessful or operation is successful with some warning. These messages are stored in internal table, which you specify along with MESSAGE statement. This internal table should be declared like BDCMSGCOLL, a structure available in ABAP/4. It contains the following fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Tcode: Transaction code&lt;/P&gt;&lt;P&gt;2. Dyname: Batch point module name&lt;/P&gt;&lt;P&gt;3. Dynumb: Batch input Dyn number&lt;/P&gt;&lt;P&gt;4. Msgtyp: Batch input message type (A/E/W/I/S)&lt;/P&gt;&lt;P&gt;5. Msgspra: Batch input Lang, id of message&lt;/P&gt;&lt;P&gt;6. Msgid: Message id&lt;/P&gt;&lt;P&gt;7. MsgvN: Message variables (N = 1 - 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each entry, which is updated in database, table message is available in BDCMSGCOLL. As BDCMSGCOLL is structure, you need to declare a internal table which can contain multiple records (unlike structure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps for CALL TRANSACTION method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Internal table for the data (structure similar to your local file)&lt;/P&gt;&lt;P&gt;2. BDCTAB like BDCDATA&lt;/P&gt;&lt;P&gt;3. UPLOAD or WS_UPLOAD function to upload the data from local file to itab. (Considering file is local file)&lt;/P&gt;&lt;P&gt;4. Loop at itab.&lt;/P&gt;&lt;P&gt;Populate BDCTAB table.&lt;/P&gt;&lt;P&gt;Call transaction &amp;lt;tcode&amp;gt; using &amp;lt;BDCTAB&amp;gt;&lt;/P&gt;&lt;P&gt;Mode &amp;lt;A/N/E&amp;gt;&lt;/P&gt;&lt;P&gt;Update &amp;lt;S/A&amp;gt;.&lt;/P&gt;&lt;P&gt;Refresh BDCTAB.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(To populate BDCTAB, You need to transfer each and every field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The major differences between Session method and Call transaction are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SESSION METHOD CALL TRANSACTION&lt;/P&gt;&lt;P&gt;1. Data is not updated in database table unless Session is processed. Immediate updation in database table.&lt;/P&gt;&lt;P&gt;2. No sy-subrc is returned. Sy-subrc is returned.&lt;/P&gt;&lt;P&gt;3. Error log is created for error records. Errors need to be handled explicitly &lt;/P&gt;&lt;P&gt;4. Updation in database table is always synchronous Updation in database table can be synchronous Or Asynchronous.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error Handling in CALL TRANSACTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Session Method updates the records in database table, error records are stored in the log file. In Call transaction there is no such log file available and error record is lost unless handled. Usually you need to give report of all the error records i.e., records which are not inserted or updated in the database table. This can be done by the following method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps for the error handling in CALL TRANSACTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Internal table for the data (structure similar to your local file)&lt;/P&gt;&lt;P&gt;2. BDCTAB like BDCDATA&lt;/P&gt;&lt;P&gt;3. Internal table BDCMSG like BDCMSGCOLL&lt;/P&gt;&lt;P&gt;4. Internal table similar to Ist internal table&lt;/P&gt;&lt;P&gt;(Third and fourth steps are for error handling)&lt;/P&gt;&lt;P&gt;5. UPLOAD or WS_UPLOAD function to upload the data from the local file to itab. (Considering file is local file)&lt;/P&gt;&lt;P&gt;6. Loop at itab.&lt;/P&gt;&lt;P&gt;Populate BDCTAB table.&lt;/P&gt;&lt;P&gt;Call transaction &amp;lt;tr.code&amp;gt; using &amp;lt;Bdctab&amp;gt;&lt;/P&gt;&lt;P&gt;Mode &amp;lt;A/N/E&amp;gt;&lt;/P&gt;&lt;P&gt;Update &amp;lt;S/A&amp;gt;&lt;/P&gt;&lt;P&gt;Messages &amp;lt;BDCMSG&amp;gt;.&lt;/P&gt;&lt;P&gt;Perform check.&lt;/P&gt;&lt;P&gt;Refresh BDCTAB.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;7 Form check.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0. (Call transaction returns the sy-subrc if updating is not successful).&lt;/P&gt;&lt;P&gt;Call function Format_message.&lt;/P&gt;&lt;P&gt;(This function is called to store the message given by system and to display it along with record)&lt;/P&gt;&lt;P&gt;Append itab2.&lt;/P&gt;&lt;P&gt;Display the record and message.&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;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1262994"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473347#M834871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473348#M834872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balakrishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDCs are meant for data updatation or upload.First steps to follow .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1).Your functional Consultant need to provide the recording for perticular transaction to which you need to develop BDC Program.B'coz as an developer You will not deal with functional Transactions.&lt;/P&gt;&lt;P&gt;2).After getting the recording name go to &lt;STRONG&gt;SHDB&lt;/STRONG&gt; . You can able to see the recording name over there. In this SHDB Screen select your recording and in the toolbar click process pushbutton. By this you can come to know how the recording has been done.&lt;/P&gt;&lt;P&gt;3).If the process of that recording runs completely without strucups( means errors). Then you can assume that recording is correct.&lt;/P&gt;&lt;P&gt;4).Then start developing the BDC Program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 08:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473348#M834872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T08:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473349#M834873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the links below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://abapliveinfo.blogspot.com/2007/12/uploading-material-master-data-using_28.html" target="test_blank"&gt;http://abapliveinfo.blogspot.com/2007/12/uploading-material-master-data-using_28.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allinterview.com/showanswers/23650.html" target="test_blank"&gt;http://www.allinterview.com/showanswers/23650.html&lt;/A&gt; &lt;/P&gt;&lt;P&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;/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;sample program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1.Bulid an internal table first according to ur flat file fields.&lt;/P&gt;&lt;P&gt;2.select the flat file by using PARAMETER.&lt;/P&gt;&lt;P&gt;3.And assign that file path to GUI_UPLOAD function module.&lt;/P&gt;&lt;P&gt;4.Call BDC_OPEN_GROUP is used to open the session.&lt;/P&gt;&lt;P&gt;5.loop that flat file data and palce BDC_INSERT funtion module in that loop for uploading data into database table&lt;/P&gt;&lt;P&gt;6.After loop call BDC_CLOSE_GROUP to close the session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAMPLE CODE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT ybdc_session_mm01 NO STANDARD PAGE HEADING LINE-SIZE 255.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Global Structure for BDC Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; DATA: BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mbrsh LIKE rmmg1-mbrsh,&lt;/P&gt;&lt;P&gt;mtart LIKE rmmg1-mtart,&lt;/P&gt;&lt;P&gt;maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;meins LIKE mara-meins,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upload the flat file&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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 =&lt;/P&gt;&lt;P&gt;'C:Documents and SettingsCompaq_OwnerDesktopsatishmm01.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;&lt;/P&gt;&lt;P&gt;HEADER_LENGTH = 0 &lt;/P&gt;&lt;P&gt;READ_BY_LINE = 'X' &lt;/P&gt;&lt;P&gt;DAT_MODE = ' ' &lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;FILELENGTH = &lt;/P&gt;&lt;P&gt;HEADER = &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS &lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 1 &lt;/P&gt;&lt;P&gt;FILE_READ_ERROR = 2 &lt;/P&gt;&lt;P&gt;NO_BATCH = 3 &lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 4 &lt;/P&gt;&lt;P&gt;INVALID_TYPE = 5 &lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 6 &lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 7 &lt;/P&gt;&lt;P&gt;BAD_DATA_FORMAT = 8 &lt;/P&gt;&lt;P&gt;HEADER_NOT_ALLOWED = 9 &lt;/P&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 10 &lt;/P&gt;&lt;P&gt;HEADER_TOO_LONG = 11 &lt;/P&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 12 &lt;/P&gt;&lt;P&gt;ACCESS_DENIED = 13 &lt;/P&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 14 &lt;/P&gt;&lt;P&gt;DISK_FULL = 15 &lt;/P&gt;&lt;P&gt;DP_TIMEOUT = 16 &lt;/P&gt;&lt;P&gt;OTHERS = 17 &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Session Method Starts &lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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;&lt;/P&gt;&lt;P&gt;DEST = FILLER8 &lt;/P&gt;&lt;P&gt;GROUP = 'ychinnu'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOLDDATE = FILLER8 &lt;/P&gt;&lt;P&gt;KEEP = 'X'&lt;/P&gt;&lt;P&gt;USER = SY-UNAME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RECORD = FILLER1 &lt;/P&gt;&lt;P&gt;PROG = SY-CPROG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING &lt;/P&gt;&lt;P&gt;QID = &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;CLIENT_INVALID = 1&lt;/P&gt;&lt;P&gt;DESTINATION_INVALID = 2&lt;/P&gt;&lt;P&gt;GROUP_INVALID = 3&lt;/P&gt;&lt;P&gt;GROUP_IS_LOCKED = 4&lt;/P&gt;&lt;P&gt;HOLDDATE_INVALID = 5&lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 6&lt;/P&gt;&lt;P&gt;QUEUE_ERROR = 7&lt;/P&gt;&lt;P&gt;RUNNING = 8&lt;/P&gt;&lt;P&gt;SYSTEM_LOCK_ERROR = 9&lt;/P&gt;&lt;P&gt;USER_INVALID = 10&lt;/P&gt;&lt;P&gt;OTHERS = 11&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create BDCDATA Structure&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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;loop at itab.&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-MTART'.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;itab-mbrsh.&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;itab-mtart.&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;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After enterning MBRSH,MTART we press enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_dynpro USING 'SAPLMGMM' '0070'. "press Enter&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;View selection (Basic data1)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; PERFORM bdc_field USING 'MSICHTAUSW-KZSEL(01)'"view selection&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Select Tick Mark (ok)&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&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;&lt;/P&gt;&lt;P&gt;PERFORM bdc_field USING 'MAKT-MAKTX'&lt;/P&gt;&lt;P&gt;itab-maktx.&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;itab-meins.&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;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally after filling the data we save the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;PERFORM bdc_field USING 'MARA-MTPOS_MARA' "For saving&lt;/P&gt;&lt;P&gt;'NORM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM bdc_transaction USING 'MM01'. &lt;/P&gt;&lt;P&gt;*&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;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_INSERT&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; CALL FUNCTION 'BDC_INSERT'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;TCODE = 'MM01'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POST_LOCAL = NOVBLOCAL &lt;/P&gt;&lt;P&gt;PRINTING = NOPRINT &lt;/P&gt;&lt;P&gt;SIMUBATCH = ' ' &lt;/P&gt;&lt;P&gt;CTUPARAMS = ' ' &lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;dynprotab = it_bdcdata&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;INTERNAL_ERROR = 1&lt;/P&gt;&lt;P&gt;NOT_OPEN = 2&lt;/P&gt;&lt;P&gt;QUEUE_ERROR = 3&lt;/P&gt;&lt;P&gt;TCODE_INVALID = 4&lt;/P&gt;&lt;P&gt;PRINTING_INVALID = 5&lt;/P&gt;&lt;P&gt;POSTING_INVALID = 6&lt;/P&gt;&lt;P&gt;OTHERS = 7&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refresh BDCDATA&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; refresh it_bdcdata.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Closing BDC Group&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; CALL FUNCTION 'BDC_CLOSE_GROUP'&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;NOT_OPEN = 1&lt;/P&gt;&lt;P&gt;QUEUE_ERROR = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start new screen *&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; FORM bdc_dynpro USING program dynpro.&lt;/P&gt;&lt;P&gt;CLEAR it_bdcdata.&lt;/P&gt;&lt;P&gt;it_bdcdata-program = program.&lt;/P&gt;&lt;P&gt;it_bdcdata-dynpro = dynpro.&lt;/P&gt;&lt;P&gt;it_bdcdata-dynbegin = 'X'.&lt;/P&gt;&lt;P&gt;APPEND it_bdcdata.&lt;/P&gt;&lt;P&gt;ENDFORM. "BDC_DYNPRO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert field *&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; FORM bdc_field USING fnam fval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF FVAL NODATA. &lt;/P&gt;&lt;P&gt;CLEAR it_bdcdata.&lt;/P&gt;&lt;P&gt;it_bdcdata-fnam = fnam.&lt;/P&gt;&lt;P&gt;it_bdcdata-fval = fval.&lt;/P&gt;&lt;P&gt;APPEND it_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;ENDFORM. "BDC_FIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Flat File&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt; *M FERT IRON KG&lt;/P&gt;&lt;P&gt;*M ROH STEEL KG&lt;/P&gt;&lt;P&gt;*M HALB IRON KG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Mar 2008 09:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473349#M834873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-12T09:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: about bdc's</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473350#M834874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2008 07:58:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-bdc-s/m-p/3473350#M834874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-17T07:58:24Z</dc:date>
    </item>
  </channel>
</rss>

