<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: BDC Delete in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470451#M555348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kathik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest BAPI always than BDC ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deleted two customers in my system by using BDC ( I did recording )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZTEST_DELETE1&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 'SAPMF02D' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RF02D-D0110'.&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 'RF02D-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1010019'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RF02D-D0110'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02D' '0110'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KNA1-NAME1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=0520'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-NAME1'&lt;/P&gt;&lt;P&gt;                              'p p'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-SORTL'&lt;/P&gt;&lt;P&gt;                              'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-STRAS'&lt;/P&gt;&lt;P&gt;                              '112 FULTON ST   s'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-ORT01'&lt;/P&gt;&lt;P&gt;                              'NEW YORK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-PSTLZ'&lt;/P&gt;&lt;P&gt;                              '10038'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-LAND1'&lt;/P&gt;&lt;P&gt;                              'US'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-REGIO'&lt;/P&gt;&lt;P&gt;                              'NY'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-SPRAS'&lt;/P&gt;&lt;P&gt;                              'EN'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02D' '0520'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KNA1-LOEVM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=UPDA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-LOEVM'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'XD02'.&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;You can modify the above code as per ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 02:02:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-21T02:02:34Z</dc:date>
    <item>
      <title>BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470446#M555343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a requirement where I have to delete the data using BDC for transaction XD02. BDC recording is available.&lt;/P&gt;&lt;P&gt;How can I program the using the BDC available.&lt;/P&gt;&lt;P&gt;Please explain with a sample program.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 01:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470446#M555343</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2007-06-21T01:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470447#M555344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use BAPI to delete Customer master &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use FM - BAPI_CUSTOMER_DELETE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 01:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470447#M555344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T01:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470448#M555345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seshu,&lt;/P&gt;&lt;P&gt;             Thanx for your reply, However I am asked to use BDC for this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 01:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470448#M555345</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2007-06-21T01:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470449#M555346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_CUSTOMER_DELETE is the BAPI that can delete Customers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI is always suggested rather than going for a BDC. other words you can suggest the one that BAPI is better rather writing a BDC and is more perfect than BDC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are more particular to go with BDC then you can go ahead, if not i suggest to for a BAPI only &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Gopi Narendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 01:58:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470449#M555346</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-06-21T01:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470450#M555347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok let me modify my question.&lt;/P&gt;&lt;P&gt;I would like to use one of the BDC recordings available to delete the data if meet does not a certain criteria.&lt;/P&gt;&lt;P&gt;How can i achieve it???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 02:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470450#M555347</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2007-06-21T02:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470451#M555348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kathik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest BAPI always than BDC ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I deleted two customers in my system by using BDC ( I did recording )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the code below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report ZTEST_DELETE1&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 'SAPMF02D' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'RF02D-D0110'.&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 'RF02D-KUNNR'&lt;/P&gt;&lt;P&gt;                              '1010019'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'RF02D-D0110'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02D' '0110'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KNA1-NAME1'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=0520'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-NAME1'&lt;/P&gt;&lt;P&gt;                              'p p'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-SORTL'&lt;/P&gt;&lt;P&gt;                              'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-STRAS'&lt;/P&gt;&lt;P&gt;                              '112 FULTON ST   s'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-ORT01'&lt;/P&gt;&lt;P&gt;                              'NEW YORK'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-PSTLZ'&lt;/P&gt;&lt;P&gt;                              '10038'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-LAND1'&lt;/P&gt;&lt;P&gt;                              'US'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-REGIO'&lt;/P&gt;&lt;P&gt;                              'NY'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-SPRAS'&lt;/P&gt;&lt;P&gt;                              'EN'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro      using 'SAPMF02D' '0520'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                              'KNA1-LOEVM'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                              '=UPDA'.&lt;/P&gt;&lt;P&gt;perform bdc_field       using 'KNA1-LOEVM'&lt;/P&gt;&lt;P&gt;                              'X'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'XD02'.&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;You can modify the above code as per ur requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 02:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470451#M555348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T02:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470452#M555349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
report ZTEST_DELETE1
no standard page heading line-size 255.

include bdcrecx1.

start-of-selection.

perform open_group.

perform bdc_dynpro using 'SAPMF02D' '0101'.
perform bdc_field using 'BDC_CURSOR'
'RF02D-D0110'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'RF02D-KUNNR'
'1010019'.
perform bdc_field using 'RF02D-D0110'
'X'.
perform bdc_dynpro using 'SAPMF02D' '0110'.
perform bdc_field using 'BDC_CURSOR'
'KNA1-NAME1'.
perform bdc_field using 'BDC_OKCODE'
'=0520'.
perform bdc_field using 'KNA1-NAME1'
'p p'.
perform bdc_field using 'KNA1-SORTL'
'P'.
perform bdc_field using 'KNA1-STRAS'
'112 FULTON ST s'.
perform bdc_field using 'KNA1-ORT01'
'NEW YORK'.
perform bdc_field using 'KNA1-PSTLZ'
'10038'.
perform bdc_field using 'KNA1-LAND1'
'US'.
perform bdc_field using 'KNA1-REGIO'
'NY'.
perform bdc_field using 'KNA1-SPRAS'
'EN'.
perform bdc_dynpro using 'SAPMF02D' '0520'.
perform bdc_field using 'BDC_CURSOR'
'KNA1-LOEVM'.
perform bdc_field using 'BDC_OKCODE'
'=UPDA'.
perform bdc_field using 'KNA1-LOEVM'
'X'.
perform bdc_transaction using 'XD02'.

perform close_group.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Seshu ...awarded points for your answer.&lt;/P&gt;&lt;P&gt;However I would be passing the values of the fields through Internal Table.&lt;/P&gt;&lt;P&gt;Also you please explain your code in detail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 02:12:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470452#M555349</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2007-06-21T02:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470453#M555350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First you need to get the data from file to internal table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depends file path : If it is Presentation server then you can use GUI_UPLOAD&lt;/P&gt;&lt;P&gt;                            if it is application server then you can use OPEN DATASET Command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep the file data into internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at I_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;between you need to use the code ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF02D' '0101'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'RF02D-D0110'.&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 'RF02D-KUNNR'&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;'1010019'.&amp;lt;/b&amp;gt; -&amp;gt; here I am passing value manually ,you need to use internal table value ( Customer Number )..&lt;/P&gt;&lt;P&gt;perform bdc_field using 'RF02D-D0110'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF02D' '0110'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'KNA1-NAME1'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=0520'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-NAME1'&lt;/P&gt;&lt;P&gt;'p p'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-SORTL'&lt;/P&gt;&lt;P&gt;'P'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-STRAS'&lt;/P&gt;&lt;P&gt;'112 FULTON ST s'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-ORT01'&lt;/P&gt;&lt;P&gt;'NEW YORK'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-PSTLZ'&lt;/P&gt;&lt;P&gt;'10038'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-LAND1'&lt;/P&gt;&lt;P&gt;'US'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-REGIO'&lt;/P&gt;&lt;P&gt;'NY'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-SPRAS'&lt;/P&gt;&lt;P&gt;'EN'.&lt;/P&gt;&lt;P&gt;perform bdc_dynpro using 'SAPMF02D' '0520'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;'KNA1-LOEVM'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;'=UPDA'.&lt;/P&gt;&lt;P&gt;perform bdc_field using 'KNA1-LOEVM'&lt;/P&gt;&lt;P&gt;'X'.&lt;/P&gt;&lt;P&gt;perform bdc_transaction using 'XD02'.&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;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you got it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 02:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470453#M555350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T02:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470454#M555351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I understood. I am writing a select query and filling the internal table. For certain entries in the internal table I have to perform this &amp;lt;b&amp;gt;BDC&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 03:36:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470454#M555351</guid>
      <dc:creator>SG141</dc:creator>
      <dc:date>2007-06-21T03:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDC Delete</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470455#M555352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit late, but I was also looking for a solution to delete customers... Just sharing my solution too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no BAPI to do this, the only BAPI's available are just CALL TRANSACTIONS... Not real BAPI's at all...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that's what we need to do to. Unfortunately.&lt;/P&gt;&lt;P&gt;Instead of using XD02, I choose XD06.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zbc_temp.

INCLUDE bdcrecxy.

DATA: tp_kunnr TYPE kunnr VALUE '0900068280'.
DATA: tp_loevm TYPE loevm.

REFRESH: bdcdata.
CLEAR:   bdcdata.


* Check if changes are required:
SELECT SINGLE loevm FROM  kna1
                    INTO  tp_loevm
                    WHERE kunnr = tp_kunnr.

IF sy-subrc = 0 AND
   tp_loevm IS INITIAL.

* Build the internal table:
  PERFORM: bdc_dynpro USING 'SAPMF02D' '0500',
           bdc_field  USING 'RF02D-KUNNR' tp_kunnr,
           bdc_field  USING 'RF02D-BUKRS' '',
           bdc_field  USING 'RF02D-VKORG' '',
           bdc_field  USING 'RF02D-VTWEG' '',
           bdc_field  USING 'RF02D-SPART' '',
           bdc_field  USING 'BDC_OKCODE' '/00'.

  PERFORM: bdc_dynpro USING 'SAPMF02D' '0520',
           bdc_field  USING 'KNA1-LOEVM' 'X',
           bdc_field  USING 'BDC_OKCODE' '=UPDA'.
ENDIF.

* The display mode mode can take the following values:
*   'A' Display the screens
*   'E' Only display if an error occurs
*   'N' Do not display
CALL TRANSACTION 'XD06' USING bdcdata MODE 'N'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that I have not applied LOCKING in the example. Would be the proper way to do it though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2007 08:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-delete/m-p/2470455#M555352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-26T08:40:51Z</dc:date>
    </item>
  </channel>
</rss>

