<?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: Delete entries from custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692002#M1102838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same issue was asked by one of SDNian yesterday and some views have been given for that.&lt;/P&gt;&lt;P&gt;If you delete the primary or check table records then till now i have never seen any alert like dependent entries are present it can be deleted.&lt;/P&gt;&lt;P&gt;But when you try to delete the table (check table or primary key table) then definitely the alert will come saying some objects are dependent with this table so cannot be deleted like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Nov 2008 09:55:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-04T09:55:18Z</dc:date>
    <item>
      <title>Delete entries from custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692000#M1102836</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;I have created two custom tables. One table is having one field (assortment key), which is used as check table for assortment keys and other table is having two fields (sales org &amp;amp; assortment key) which is used to maintain combination of sales organization and assortment keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also created table maintenance genrator for both the tables. Entries in second table can be maintained based on entries in first table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if i try to delete entries from table 1 (assortment key master table) and if this assortment key is still used in second table in combination with sales organization, program should through a message 'Dependt Entries also will be deleted' and based on user input it should either delete or keep the entries as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried debugging the code in table maintenance generator but i could not find the proper way to achive this. Please help me in solving this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Phani Kumar. S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 08:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692000#M1102836</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2008-11-04T08:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: Delete entries from custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692001#M1102837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;For this u need to change the cardinality.&lt;/P&gt;&lt;P&gt;Below are the list of cardinalities and their functionality.Chack it and use the proper one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The left side (n) of the cardinality is defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n=1: There is exactly one record assigned to the check table for each record of the foreign key table. &lt;/P&gt;&lt;P&gt;n=C: The foreign key table may contain records which do not correspond to any record of the check table because the foreign key field is empty. This can occur for example if the field of the foreign key table is optional, in which case it does not have to be filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The right side (m) of the cardinality is defined as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;m=1: There is exactly one dependent record for each record of the check table. &lt;/P&gt;&lt;P&gt;m=C: There is at most one dependent record for each record of the check table. &lt;/P&gt;&lt;P&gt;m=N: There is at least one dependent record for each record of the check table. &lt;/P&gt;&lt;P&gt;m=CN: There may be any number of dependent records for each record of the check table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; But one thing you remember that &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can delete record in master table : it wont check in the transaction table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but while you delete record in transaction table : it will check record existance in master table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ansumesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 08:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692001#M1102837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T08:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete entries from custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692002#M1102838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The same issue was asked by one of SDNian yesterday and some views have been given for that.&lt;/P&gt;&lt;P&gt;If you delete the primary or check table records then till now i have never seen any alert like dependent entries are present it can be deleted.&lt;/P&gt;&lt;P&gt;But when you try to delete the table (check table or primary key table) then definitely the alert will come saying some objects are dependent with this table so cannot be deleted like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 09:55:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692002#M1102838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T09:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delete entries from custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692003#M1102839</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;Thanks for your replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we try to delete the custom output types in NACE transaction, it will through the information message that, dependent entries also will be deleted. in the same way, i want to provide for the deletion of entries from master table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 10:10:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692003#M1102839</guid>
      <dc:creator>PS_1978</dc:creator>
      <dc:date>2008-11-04T10:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delete entries from custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692004#M1102840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you need to implement your own logic(to check whether the entry is present in dependent tables) in the TMG generated code - PAI for DELETE. That can solve your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2008 10:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-entries-from-custom-table/m-p/4692004#M1102840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-04T10:45:24Z</dc:date>
    </item>
  </channel>
</rss>

