<?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: Why use data elements for ztables? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-use-data-elements-for-ztables/m-p/5938493#M1334092</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;1) tables are related using FOREIGN KEY relationship. This meas that for table2 (foreign table) only existing entries from table1 (primary tabe) are allowed for certain field. This, hoewever, requires that for that field in both tables, domain must stay the same. If you are not using data elements for typing this field, you also resign from domain which could describe this data element. As a result tables cannot be connected using this field (as domain equality is not fulfilled for both of them)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) MANDT field must be explicitly named like that and probably typed because it is used internally by OPEN SQL when you access the table without CLIENT SPECIFIED addition. It simply must be recognized by ABAP that this field don't have to be listed as  source,target and query field. The system takes care of that automaticaly. That's why, I think, it must be named this way and also typed via specific data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Search help (extended input help with its dialog behaviour etc) can be constructred based on data element . This means that you can later have input help for all the field refering that data element. Search help can also be attached to table field, screen field, table etc. The crucial is that parameters of such search help must be typed (and only like this) using data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Here this can be somehow connected to iDoc segments, where all fields are typed with data element. Using same typing might not be sufficient as domain introduce value range. I.e. you could be providing field value which is out of range (this is also applicable to above menthoned table relationship).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally try to type your fields using data element whenever possible and you suspect that this field can be somehow related or referenced via another field somewhere else. Also, it always provides consistency for all these fields once data element changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jul 2009 12:40:34 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-07-19T12:40:34Z</dc:date>
    <item>
      <title>Why use data elements for ztables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-use-data-elements-for-ztables/m-p/5938492#M1334091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a ztable in that i have created some fields without refering to data element ie : i have used pre defined types for that...&lt;/P&gt;&lt;P&gt;But i have come to know that there are some disadvantages when we create teh fields without refereing to data element..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; now after searching in the form i got the below dis advantages......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Table to table relation is not possible  &lt;/P&gt;&lt;P&gt;        ( what exactly does this mean )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This table data created under the client, this can be accessed by any other client, table can't client dependent table.&lt;/P&gt;&lt;P&gt;       ( I dont think so this is correct ie : if i give a MANDT field with data types manually in the prdefined type which are same in the data element then i hope it can be a client dependent table..... AM I CORRECT...? )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Table data can be accessed by apps using search helps.&lt;/P&gt;&lt;P&gt;       (     what exactly does it mean )&lt;/P&gt;&lt;P&gt;4. table data can't transfer from current R/3 to remote R/3. using Idocs.&lt;/P&gt;&lt;P&gt;       ( I dont think so this is correct ie : if similar table in there remote system to which i am sending the data then i can write a custom idoc to send the data using idocs  ..... AM I CORRECT....? )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any expert tell this... ( Rich expecting your view this )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Satish Kumar Boguda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Julius Bussche on Jul 20, 2009 1:10 AM&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please use meaningfull subject titles&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2009 09:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-use-data-elements-for-ztables/m-p/5938492#M1334091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-19T09:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Why use data elements for ztables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-use-data-elements-for-ztables/m-p/5938493#M1334092</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;1) tables are related using FOREIGN KEY relationship. This meas that for table2 (foreign table) only existing entries from table1 (primary tabe) are allowed for certain field. This, hoewever, requires that for that field in both tables, domain must stay the same. If you are not using data elements for typing this field, you also resign from domain which could describe this data element. As a result tables cannot be connected using this field (as domain equality is not fulfilled for both of them)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) MANDT field must be explicitly named like that and probably typed because it is used internally by OPEN SQL when you access the table without CLIENT SPECIFIED addition. It simply must be recognized by ABAP that this field don't have to be listed as  source,target and query field. The system takes care of that automaticaly. That's why, I think, it must be named this way and also typed via specific data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Search help (extended input help with its dialog behaviour etc) can be constructred based on data element . This means that you can later have input help for all the field refering that data element. Search help can also be attached to table field, screen field, table etc. The crucial is that parameters of such search help must be typed (and only like this) using data element.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Here this can be somehow connected to iDoc segments, where all fields are typed with data element. Using same typing might not be sufficient as domain introduce value range. I.e. you could be providing field value which is out of range (this is also applicable to above menthoned table relationship).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally try to type your fields using data element whenever possible and you suspect that this field can be somehow related or referenced via another field somewhere else. Also, it always provides consistency for all these fields once data element changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2009 12:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-use-data-elements-for-ztables/m-p/5938493#M1334092</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-07-19T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why use data elements for ztables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-use-data-elements-for-ztables/m-p/5938494#M1334093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for using the search...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition to Marcin's answer, you might want to consider using the same Package (formerly Development Class) for your ztables for an application development and type them and create APIs for them if they have relationships and use the same domains for the value ranges. That way there is less confusion... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you access other tables via these APIs or other programs access yours, they will always experience the same behaviour if they respect your data and use the same typed parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then also maintain your tables and the API coding, without necessarily having to change any external program facing interfaces when the business logic changes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consider the maintenance of your programs. After all it is not just a ping-pong table =&amp;gt; it is an extension of a program's runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2009 23:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-use-data-elements-for-ztables/m-p/5938494#M1334093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-19T23:09:49Z</dc:date>
    </item>
  </channel>
</rss>

