<?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: Table Controls in BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761686#M329690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question has been posted and answered many times before... &lt;/P&gt;&lt;P&gt;Plz search the threads before posting... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways ... her is the solution to ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;Normally all the screns with table controls will have buttons to add(Insert) a Row, Delete a Row etc..&lt;/P&gt;&lt;P&gt;After adding data to 1st Row (it will have index 1)... press that insert button so a new Row is inserted again at 1st row..so this will have index 1.&lt;/P&gt;&lt;P&gt;So in this way you can hard code the index to one.&lt;/P&gt;&lt;P&gt;The advantage is that if there are many rows then you will not have to keep a track of how many rows are inserted and when to press the page down button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving a small example.... Just copy paste this example and run it in all mode...&lt;/P&gt;&lt;P&gt;Run it in all mode so that you can see what I am trying to do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : this is an relatively easy method.. not the only method to do...&lt;/P&gt;&lt;P&gt;**********************************************&lt;/P&gt;&lt;P&gt;report ZTEST_BDC&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 'SAPMSRD0' '0102'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RSRD1-DDTYPE'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=CHANGE_RADIO'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-TBMA'&lt;/P&gt;&lt;P&gt;''.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-TBMA_VAL'&lt;/P&gt;&lt;P&gt;'EKPO'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-DDTYPE'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMSRD0' '0102'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RSRD1-DDTYPE_VAL'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=ADD'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-TBMA_VAL'&lt;/P&gt;&lt;P&gt;'EKPO'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-DDTYPE'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-DDTYPE_VAL'&lt;/P&gt;&lt;P&gt;'ztest_Str'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSED1' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'D_100-STRU'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=GOON'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'D_100-DTEL'&lt;/P&gt;&lt;P&gt;''.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'D_100-STRU'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&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 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-FIELDNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-FIELDNAME(01)'&lt;/P&gt;&lt;P&gt;'bukrs'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-ROLLNAME(01)'&lt;/P&gt;&lt;P&gt;'bukrs'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=WB_LINE_INSERT'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-FIELDNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&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 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-ROLLNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-FIELDNAME(01)'&lt;/P&gt;&lt;P&gt;'kostl'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-ROLLNAME(01)'&lt;/P&gt;&lt;P&gt;'kostl'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=WB_LINE_INSERT'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-FIELDNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&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 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-ROLLNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-FIELDNAME(01)'&lt;/P&gt;&lt;P&gt;'wrbtr'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-ROLLNAME(01)'&lt;/P&gt;&lt;P&gt;'wrbtr'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=WB_SAVE'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-ROLLNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSTRD' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'KO007-L_DEVCLASS'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=TEMP'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KO007-L_AUTHOR'&lt;/P&gt;&lt;P&gt;'VARUN'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'/EWB_CANCEL'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMSRD0' '0102'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'/EABR'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RSRD1-DDTYPE_VAL'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'SE11'.&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;P&gt;I hope this helps.....&lt;/P&gt;&lt;P&gt;Please mark points if it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 05:24:56 GMT</pubDate>
    <dc:creator>former_member69765</dc:creator>
    <dc:date>2006-12-04T05:24:56Z</dc:date>
    <item>
      <title>Table Controls in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761683#M329687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. How to control the Table Controls in BDC method  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 04:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761683#M329687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T04:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: Table Controls in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761684#M329688</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.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 05:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761684#M329688</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-04T05:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Controls in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761685#M329689</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;chk this.&lt;/P&gt;&lt;P&gt;&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;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 05:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761685#M329689</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-12-04T05:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table Controls in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761686#M329690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This question has been posted and answered many times before... &lt;/P&gt;&lt;P&gt;Plz search the threads before posting... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways ... her is the solution to ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************&lt;/P&gt;&lt;P&gt;Normally all the screns with table controls will have buttons to add(Insert) a Row, Delete a Row etc..&lt;/P&gt;&lt;P&gt;After adding data to 1st Row (it will have index 1)... press that insert button so a new Row is inserted again at 1st row..so this will have index 1.&lt;/P&gt;&lt;P&gt;So in this way you can hard code the index to one.&lt;/P&gt;&lt;P&gt;The advantage is that if there are many rows then you will not have to keep a track of how many rows are inserted and when to press the page down button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving a small example.... Just copy paste this example and run it in all mode...&lt;/P&gt;&lt;P&gt;Run it in all mode so that you can see what I am trying to do...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : this is an relatively easy method.. not the only method to do...&lt;/P&gt;&lt;P&gt;**********************************************&lt;/P&gt;&lt;P&gt;report ZTEST_BDC&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 'SAPMSRD0' '0102'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RSRD1-DDTYPE'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=CHANGE_RADIO'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-TBMA'&lt;/P&gt;&lt;P&gt;''.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-TBMA_VAL'&lt;/P&gt;&lt;P&gt;'EKPO'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-DDTYPE'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMSRD0' '0102'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RSRD1-DDTYPE_VAL'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=ADD'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-TBMA_VAL'&lt;/P&gt;&lt;P&gt;'EKPO'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-DDTYPE'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RSRD1-DDTYPE_VAL'&lt;/P&gt;&lt;P&gt;'ztest_Str'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSED1' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'D_100-STRU'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=GOON'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'D_100-DTEL'&lt;/P&gt;&lt;P&gt;''.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'D_100-STRU'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&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 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-FIELDNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-FIELDNAME(01)'&lt;/P&gt;&lt;P&gt;'bukrs'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-ROLLNAME(01)'&lt;/P&gt;&lt;P&gt;'bukrs'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=WB_LINE_INSERT'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-FIELDNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&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 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-ROLLNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-FIELDNAME(01)'&lt;/P&gt;&lt;P&gt;'kostl'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-ROLLNAME(01)'&lt;/P&gt;&lt;P&gt;'kostl'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=WB_LINE_INSERT'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-FIELDNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&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 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-ROLLNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-FIELDNAME(01)'&lt;/P&gt;&lt;P&gt;'wrbtr'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD03P_D-ROLLNAME(01)'&lt;/P&gt;&lt;P&gt;'wrbtr'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=WB_SAVE'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'DD02D-DDTEXT'&lt;/P&gt;&lt;P&gt;'test'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'DD03P_D-ROLLNAME(01)'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSTRD' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'KO007-L_DEVCLASS'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=TEMP'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KO007-L_AUTHOR'&lt;/P&gt;&lt;P&gt;'VARUN'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPLSD41' '2100'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'/EWB_CANCEL'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMSRD0' '0102'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'/EABR'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RSRD1-DDTYPE_VAL'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'SE11'.&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;P&gt;I hope this helps.....&lt;/P&gt;&lt;P&gt;Please mark points if it helps..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 05:24:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761686#M329690</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2006-12-04T05:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table Controls in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761687#M329691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rakesh,&lt;/P&gt;&lt;P&gt;check this below code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT Y730_BDC5 .&lt;/P&gt;&lt;P&gt;*HANDLING TABLE CONTROL IN BDC&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF IT_DUMMY OCCURS 0,&lt;/P&gt;&lt;P&gt;       DUMMY(100) TYPE C,&lt;/P&gt;&lt;P&gt;       END OF IT_DUMMY.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF IT_XK01 OCCURS 0,&lt;/P&gt;&lt;P&gt;       LIFNR(10) TYPE C,&lt;/P&gt;&lt;P&gt;       BUKRS(4)  TYPE C,&lt;/P&gt;&lt;P&gt;       EKORG(4)  TYPE C,&lt;/P&gt;&lt;P&gt;       KTOKK(4)  TYPE C,&lt;/P&gt;&lt;P&gt;       NAME1(30) TYPE C,&lt;/P&gt;&lt;P&gt;       SORTL(10) TYPE C,&lt;/P&gt;&lt;P&gt;       LAND1(3)  TYPE C,&lt;/P&gt;&lt;P&gt;       SPRAS(2)  TYPE C,&lt;/P&gt;&lt;P&gt;       AKONT(6)  TYPE C,&lt;/P&gt;&lt;P&gt;       FDGRV(2)  TYPE C,&lt;/P&gt;&lt;P&gt;       WAERS(3)  TYPE C,&lt;/P&gt;&lt;P&gt;       END OF IT_XK01,&lt;/P&gt;&lt;P&gt;       BEGIN OF IT_BANK OCCURS 0,&lt;/P&gt;&lt;P&gt;       BANKS(3)  TYPE C,&lt;/P&gt;&lt;P&gt;       BANKL(10) TYPE C,&lt;/P&gt;&lt;P&gt;       BANKN(10) TYPE C,&lt;/P&gt;&lt;P&gt;       KOINH(30) TYPE C,&lt;/P&gt;&lt;P&gt;       LIFNR(10) TYPE C,&lt;/P&gt;&lt;P&gt;       END OF IT_BANK.&lt;/P&gt;&lt;P&gt;DATA : IT_BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;       IT_BDCMSGCOLL LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_UPLOAD'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   FILENAME                      = 'C:\VENDOR.TXT'&lt;/P&gt;&lt;P&gt;   FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt; TABLES&lt;/P&gt;&lt;P&gt;   DATA_TAB                      = IT_DUMMY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_DUMMY.&lt;/P&gt;&lt;P&gt;  IF IT_DUMMY-DUMMY+0(2) = '11'.&lt;/P&gt;&lt;P&gt;    IT_XK01-LIFNR = IT_DUMMY-DUMMY+2(10).&lt;/P&gt;&lt;P&gt;    IT_XK01-BUKRS = IT_DUMMY-DUMMY+12(4).&lt;/P&gt;&lt;P&gt;    IT_XK01-EKORG = IT_DUMMY-DUMMY+16(4).&lt;/P&gt;&lt;P&gt;    IT_XK01-KTOKK = IT_DUMMY-DUMMY+20(4).&lt;/P&gt;&lt;P&gt;    IT_XK01-NAME1 = IT_DUMMY-DUMMY+24(30).&lt;/P&gt;&lt;P&gt;    IT_XK01-SORTL = IT_DUMMY-DUMMY+54(10).&lt;/P&gt;&lt;P&gt;    IT_XK01-LAND1 = IT_DUMMY-DUMMY+64(3).&lt;/P&gt;&lt;P&gt;    IT_XK01-SPRAS = IT_DUMMY-DUMMY+67(2).&lt;/P&gt;&lt;P&gt;    IT_XK01-AKONT = IT_DUMMY-DUMMY+69(6).&lt;/P&gt;&lt;P&gt;    IT_XK01-FDGRV = IT_DUMMY-DUMMY+75(2).&lt;/P&gt;&lt;P&gt;    IT_XK01-WAERS = IT_DUMMY-DUMMY+77(3).&lt;/P&gt;&lt;P&gt;    APPEND IT_XK01.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    IT_BANK-BANKS = IT_DUMMY-DUMMY+2(3).&lt;/P&gt;&lt;P&gt;    IT_BANK-BANKL = IT_DUMMY-DUMMY+5(10).&lt;/P&gt;&lt;P&gt;    IT_BANK-BANKN = IT_DUMMY-DUMMY+15(10).&lt;/P&gt;&lt;P&gt;    IT_BANK-KOINH = IT_DUMMY-DUMMY+25(30).&lt;/P&gt;&lt;P&gt;    IT_BANK-LIFNR = IT_DUMMY-DUMMY+55(10).&lt;/P&gt;&lt;P&gt;    APPEND IT_BANK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_XK01.&lt;/P&gt;&lt;P&gt;REFRESH IT_BDCDATA.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0100'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RF02K-REF_LIFNR'.&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 'RF02K-LIFNR'&lt;/P&gt;&lt;P&gt;                              IT_XK01-LIFNR.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RF02K-BUKRS'&lt;/P&gt;&lt;P&gt;                              IT_XK01-BUKRS.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RF02K-EKORG'&lt;/P&gt;&lt;P&gt;                              IT_XK01-EKORG.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RF02K-KTOKK'&lt;/P&gt;&lt;P&gt;                              IT_XK01-KTOKK.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0110'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFA1-TELX1'.&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 'LFA1-NAME1'&lt;/P&gt;&lt;P&gt;                              IT_XK01-NAME1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFA1-SORTL'&lt;/P&gt;&lt;P&gt;                              IT_XK01-SORTL.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFA1-LAND1'&lt;/P&gt;&lt;P&gt;                              IT_XK01-LAND1.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFA1-SPRAS'&lt;/P&gt;&lt;P&gt;                              IT_XK01-SPRAS.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0120'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFA1-KUNNR'.&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_dynpro      using 'SAPMF02K' '0130'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFBK-KOINH(02)'.&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;DATA : FNAM(20) TYPE C,&lt;/P&gt;&lt;P&gt;       IDX      TYPE C.&lt;/P&gt;&lt;P&gt;  MOVE 1 TO IDX.&lt;/P&gt;&lt;P&gt;LOOP AT IT_BANK WHERE LIFNR = IT_XK01-LIFNR.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using FNAM&lt;/P&gt;&lt;P&gt;                                IT_BANK-BANKS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using FNAM&lt;/P&gt;&lt;P&gt;                                IT_BANK-BANKL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using FNAM&lt;/P&gt;&lt;P&gt;                                IT_BANK-BANKN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.&lt;/P&gt;&lt;P&gt;  perform bdc_field       using FNAM&lt;/P&gt;&lt;P&gt;                                IT_BANK-KOINH.&lt;/P&gt;&lt;P&gt;  IDX = IDX + 1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0130'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFBK-BANKS(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_dynpro      using 'SAPMF02K' '0210'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFB1-FDGRV'.&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 'LFB1-AKONT'&lt;/P&gt;&lt;P&gt;                              IT_XK01-AKONT.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'LFB1-FDGRV'&lt;/P&gt;&lt;P&gt;                              IT_XK01-FDGRV.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0215'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFB1-ZTERM'.&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_dynpro      using 'SAPMF02K' '0220'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFB5-MAHNA'.&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_dynpro      using 'SAPMF02K' '0310'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'LFM1-WAERS'.&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 'LFM1-WAERS'&lt;/P&gt;&lt;P&gt;                              IT_XK01-WAERS.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02K' '0320'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'WYT3-PARVW(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_dynpro      using 'SAPLSPO1' '0300'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=YES'.&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'XK01' USING IT_BDCDATA&lt;/P&gt;&lt;P&gt;                        MODE  'A'&lt;/P&gt;&lt;P&gt;                       UPDATE 'S'&lt;/P&gt;&lt;P&gt;                     MESSAGES INTO IT_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_DYNPRO USING PROG SCR.&lt;/P&gt;&lt;P&gt;  CLEAR IT_BDCDATA.&lt;/P&gt;&lt;P&gt;  IT_BDCDATA-PROGRAM = PROG.&lt;/P&gt;&lt;P&gt;  IT_BDCDATA-DYNPRO  = SCR.&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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BDC_FIELD USING FNAM FVAL.&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;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u find it useful mark the points&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GNK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 05:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-controls-in-bdc/m-p/1761687#M329691</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T05:28:47Z</dc:date>
    </item>
  </channel>
</rss>

