<?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: Field name Vs. Data element. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231107#M1984462</link>
    <description>&lt;P&gt;You can use either VBELN_VA or VBELN after 'TYPE' since both refers to the data element in the ABAP dictionary. It is easier to use/reuse the readily available field names when you are creating a structure referring to fields of a database table. When the fields are not present, then you can create a data element or refer to one already created and use after TYPE.&lt;/P&gt;</description>
    <pubDate>Sun, 11 Oct 2020 17:30:04 GMT</pubDate>
    <dc:creator>bhavya_bhat</dc:creator>
    <dc:date>2020-10-11T17:30:04Z</dc:date>
    <item>
      <title>Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231099#M1984454</link>
      <description>&lt;P&gt;When we are creating a structure using TYPES then we use the field name after the TYPE keyword(ERDAT, ERNAM, etc.). But sometimes we use data elements after the TYPE keyword(VBELN_VA). Now I'm really confused when to use which one.&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_order,
         VBELN TYPE VBELN_VA,
         ERDAT TYPE ERDAT,
         ERNAM TYPE ERNAM,
         MATNR TYPE MATNR,
         POSNR TYPE POSNR,
         KWMENG TYPE KWMENG,
         NETWR TYPE NETWR,
      END OF ty_order.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 11 Oct 2020 08:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231099#M1984454</guid>
      <dc:creator>vicky31</dc:creator>
      <dc:date>2020-10-11T08:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231100#M1984455</link>
      <description>&lt;P&gt;You are not actually giving field name after type, you actually are giving data element name itself there.&lt;/P&gt;&lt;P&gt;Double click on all the names(data elements) that are after type and it will navigate you to the respective data elements. &lt;/P&gt;&lt;P&gt;the field name and data element name can be same in the typea definition and it will not cause any issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 08:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231100#M1984455</guid>
      <dc:creator>maheshpalavalli</dc:creator>
      <dc:date>2020-10-11T08:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231101#M1984456</link>
      <description>&lt;P&gt;Do it as you wish. Don't you have already an opinion which one you prefer and why?&lt;/P&gt;&lt;P&gt;Personally, I like to use the table and column name, I find it more clear because people are used to work with table columns, not data elements, you don't lose time to determine the data element (if any), etc.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 09:22:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231101#M1984456</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-10-11T09:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231102#M1984457</link>
      <description>&lt;P&gt;I realize that maybe you don't say what I thought you were saying &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Are you talking about this other alternative?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_order,
         VBELN  TYPE VBAP-VBELN,
         ERDAT  TYPE VBAP-ERDAT,
         ERNAM  TYPE VBAP-ERNAM,
         MATNR  TYPE VBAP-MATNR,
         POSNR  TYPE VBAP-POSNR,
         KWMENG TYPE VBAP-KWMENG,
         NETWR  TYPE VBAP-NETWR,
      END OF ty_order.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or are you confused about VBELN_VA?&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF ty_order,
         VBELN TYPE VBELN_VA, " &amp;lt;==== why is it VBELN_VA and not VBELN?
         ERDAT TYPE ERDAT,
         ERNAM TYPE ERNAM,
         MATNR TYPE MATNR,
         POSNR TYPE POSNR,
         KWMENG TYPE KWMENG,
         NETWR TYPE NETWR,
      END OF ty_order.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;NB: since ABAP 7.40, you may use inline declarations which reduce a lot this kind of declarations (like SELECT ... INTO TABLE @DATA( itab ) ...). Also, these lines may be automatically generated by using ADT (based on inline declaration of SELECT). But it's not always possible, manual typing is still needed.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 09:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231102#M1984457</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-10-11T09:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231103#M1984458</link>
      <description>&lt;P&gt;Second one. &lt;/P&gt;&lt;P&gt;Why is it VBELN_VA and not VBELN?&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 09:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231103#M1984458</guid>
      <dc:creator>vicky31</dc:creator>
      <dc:date>2020-10-11T09:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231104#M1984459</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 09:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231104#M1984459</guid>
      <dc:creator>vicky31</dc:creator>
      <dc:date>2020-10-11T09:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231105#M1984460</link>
      <description>&lt;P&gt;You can see that both data elements have the same attributes, so there's no difference for ABAP. Choose the one you want.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 13:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231105#M1984460</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-10-11T13:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231106#M1984461</link>
      <description>&lt;P&gt;The reason this happens is because different teams work on different parts of SAP and don't always re-use. Maybe the text is different, maybe the package the element is in.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 13:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231106#M1984461</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2020-10-11T13:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field name Vs. Data element.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231107#M1984462</link>
      <description>&lt;P&gt;You can use either VBELN_VA or VBELN after 'TYPE' since both refers to the data element in the ABAP dictionary. It is easier to use/reuse the readily available field names when you are creating a structure referring to fields of a database table. When the fields are not present, then you can create a data element or refer to one already created and use after TYPE.&lt;/P&gt;</description>
      <pubDate>Sun, 11 Oct 2020 17:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-name-vs-data-element/m-p/12231107#M1984462</guid>
      <dc:creator>bhavya_bhat</dc:creator>
      <dc:date>2020-10-11T17:30:04Z</dc:date>
    </item>
  </channel>
</rss>

