<?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: source code needs for simple BDC session in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506098#M1065996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the function modules BDC_OPEN_GROUP, BDC_INSERT and BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amol Lohade&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2008 11:24:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-26T11:24:32Z</dc:date>
    <item>
      <title>source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506097#M1065995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Z table with 4 fields. i want to insert the records using bdc.&lt;/P&gt;&lt;P&gt;I am verymuch familier with Recording method. bt i am nt aware of the nxt method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help this? how to make tht session method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz paste a sample code for that....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:22:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506097#M1065995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506098#M1065996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the function modules BDC_OPEN_GROUP, BDC_INSERT and BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amol Lohade&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:24:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506098#M1065996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506099#M1065997</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; Once you completed the recording in SHDB. select that recording and press Shift+f5 or goto Edit-&amp;gt;Create Program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will create the program itself. You can do modification if necessary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506099#M1065997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506100#M1065998</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;Once u do the recording in SHDB, select the recording and generate a program... save the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, bring the values of the 4 fields into an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Then Loop the internal table to the subroutines.

Loop at itab.

Perform bdc_field using xxx-xxxx itab-xxxx.(next to the field u have to give the itab-xxx which the field which holds ur values.

endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506100#M1065998</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506101#M1065999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Dont want SHDB method...i need call session method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one please paste there code if available?........:-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:29:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506101#M1065999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506102#M1066000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;If your requirement is to update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Z table with 4 fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will be more easy to directly update&lt;/P&gt;&lt;P&gt;using&lt;/P&gt;&lt;P&gt;INSERT / MODIFY / UPDATE statements instead of BDC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506102#M1066000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506103#M1066001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi mohana....&lt;/P&gt;&lt;P&gt;plz go through this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d4c5e890-0201-0010-bd9a-c3fd8683fc97" target="test_blank"&gt;https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d4c5e890-0201-0010-bd9a-c3fd8683fc97&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;nikita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: nikita mishra on Sep 26, 2008 1:30 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506103#M1066001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506104#M1066002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Just search in SDN with the term &lt;STRONG&gt;Session Method&lt;/STRONG&gt;, you will get lot of results..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishwa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506104#M1066002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506105#M1066003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conform me whether you are updateing the records with Notepad or EXCEL sheet.&lt;/P&gt;&lt;P&gt;Based on that i will try to send you code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506105#M1066003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506106#M1066004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx for your info... Basically i have notepad records with TAB delimiter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont want the recording method &amp;amp; direct insert from internal table to z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz do the needfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506106#M1066004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T11:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506107#M1066005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;1. First upload data into internal table from flat file.(Use Gui_upload FM)&lt;/P&gt;&lt;P&gt;2. do the recording method and write te program .&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;Bharani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 11:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506107#M1066005</guid>
      <dc:creator>BH2408</dc:creator>
      <dc:date>2008-09-26T11:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506108#M1066006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WS_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 13:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506108#M1066006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T13:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506109#M1066007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to do a direct insert into the Z-table. there is no other way.&lt;/P&gt;&lt;P&gt;like MD said, just put the data into a internal table like your Z-table and insert the internal table to the z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't have a transaction to fill the z-table so you can't use BDC. and if you make a transaction to use BDC then you are wasting your time. direct update program is 2 hours work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Guido&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 14:03:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506109#M1066007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: source code needs for simple BDC session</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506110#M1066008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohana this is Balu not bala,&lt;/P&gt;&lt;P&gt;Anyways,&lt;/P&gt;&lt;P&gt;I have coded for MM01 for notepad records uploading, i dont think there might be much difference with cutomized ztable .&lt;/P&gt;&lt;P&gt;If your screen that is designed is making the data save into the table means what ever that u record through SHDB taking the record code to program will reach your task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample which i have done for MM01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*REPORT ZRY_BDCDIRECT_PROGRAM&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      no standard page heading line-size 255.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF STU,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       MATNR LIKE RMMG1-MATNR,   "Material Number"&lt;/P&gt;&lt;P&gt;       MBRSH LIKE RMMG1-MBRSH,   "Industry Sector"&lt;/P&gt;&lt;P&gt;       MTART LIKE RMMG1-MTART,   "Material Type"&lt;/P&gt;&lt;P&gt;       MAKTX LIKE MAKT-MAKTX,    "Material Description"&lt;/P&gt;&lt;P&gt;       MEINS LIKE MARA-MEINS,    "Basic Unit of Measure"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       END OF STU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_ITAB TYPE STU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA ITAB TYPE TABLE OF STU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILENAME = 'C:\Documents and Settings&lt;BR /&gt;Desktop\BALU\ABC.TXT'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA_TAB =  ITAB.&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA WA_BDC TYPE BDCDATA.&lt;/P&gt;&lt;P&gt;DATA: BDCDATA TYPE BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA BDCITAB TYPE TABLE OF BDCDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB INTO WA_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;perform bdc_field       using 'RMMG1-MATNR'&lt;/P&gt;&lt;P&gt;                               WA_ITAB-MATNR.                 "'S1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MBRSH'&lt;/P&gt;&lt;P&gt;                               WA_ITAB-MBRSH.                 "'M'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RMMG1-MTART'&lt;/P&gt;&lt;P&gt;                               WA_ITAB-MTART.          "'VKHM'&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;                               WA_ITAB-MAKTX.      " material&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;                               WA_ITAB-MEINS.                  "'KG'&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*WA_BDC-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;*WA_BDC-DYNPRO = '0060'.&lt;/P&gt;&lt;P&gt;*WA_BDC-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'BDC_CURSOR'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = 'RMMG1-MTART'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = '/00'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'RMMG1-MATNR'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = WA_ITAB-MATNR.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'RMMG1-MBRSH'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = WA_ITAB-MBRSH.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'RMMG1-MTART'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = WA_ITAB-MTART.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;*WA_BDC-DYNPRO = '0070'.&lt;/P&gt;&lt;P&gt;*WA_BDC-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'BDC_CURSOR'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = 'MSICHTAUSW-DYTXT(01)'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = '=ENTR'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'MSICHTAUSW-KZSEL(01)'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = 'X'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-PROGRAM = 'SAPLMGMM'.&lt;/P&gt;&lt;P&gt;*WA_BDC-DYNPRO = '4004'.&lt;/P&gt;&lt;P&gt;*WA_BDC-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'BDC_OKCODE'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = '/00'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'MAKT-MAKTX'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = 'WA_ITAB-MAKTX'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;*WA_BDC-FNAM = 'MARA-MEINS'.&lt;/P&gt;&lt;P&gt;*WA_BDC-FVAL = 'WA_ITAB-MEINS'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*PERFORM APPEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MM01' USING BDCITAB MODE 'A'.&lt;/P&gt;&lt;P&gt;REFRESH BDCITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Start new screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;FORM BDC_DYNPRO USING PROGRAM DYNPRO.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;  BDCDATA-PROGRAM  = PROGRAM.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNPRO   = DYNPRO.&lt;/P&gt;&lt;P&gt;  BDCDATA-DYNBEGIN = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND BDCDATA TO BDCITAB.&lt;/P&gt;&lt;P&gt;  CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;ENDFORM.&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Insert field&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;FORM BDC_FIELD USING FNAM FVAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; IF FVAL &amp;lt;&amp;gt; NODATA.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;P&gt;    BDCDATA-FNAM = FNAM.&lt;/P&gt;&lt;P&gt;    BDCDATA-FVAL = FVAL.&lt;/P&gt;&lt;P&gt;    APPEND BDCDATA TO BDCITAB.&lt;/P&gt;&lt;P&gt;    CLEAR BDCDATA.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*FORM APPEND.&lt;/P&gt;&lt;P&gt;*APPEND WA_BDC TO BDCITAB.&lt;/P&gt;&lt;P&gt;*CLEAR WA_BDC.&lt;/P&gt;&lt;P&gt;*ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still not solved let me know the problem exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope my answer helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2008 18:48:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/source-code-needs-for-simple-bdc-session/m-p/4506110#M1066008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-26T18:48:07Z</dc:date>
    </item>
  </channel>
</rss>

