<?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: EPC error on using 'Structure' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-on-using-structure/m-p/6564355#M1431815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generally create a table type &amp;amp; then decalre the formal param as TYPE &amp;lt;tabletype&amp;gt; like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: ty_approvalsdone_t TYPE STANDARD TABLE OF z11.

DATA: it_approvalsdone TYPE ty_approvalsdone_t.

PERFORM add_date CHANGING it_approvalsdone.

FORM add_dates CHANGING t_approvalsdone TYPE ty_approvalsdone_t .
.
.
.
sort t_approvalsdone by name1.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is standard coding practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 10:38:54 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-02-04T10:38:54Z</dc:date>
    <item>
      <title>EPC error on using 'Structure'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-on-using-structure/m-p/6564354#M1431814</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;In a subroutine &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM add_dates  TABLES   t_approvalsdone  &lt;STRONG&gt;STRUCTURE z11&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt; sort t_approvalsdone  by name1.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here its giving a Extended program Check error as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The current ABAP command is obsolete&lt;/P&gt;&lt;P&gt; Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary&lt;/P&gt;&lt;P&gt; types, not "LIKE" or "STRUCTURE".&lt;/P&gt;&lt;P&gt;Internal Message Code: MESSAGE G/B&lt;/P&gt;&lt;P&gt; (The message cannot be hidden using pseudo-comment "#EC .., bzw. durch SET&lt;/P&gt;&lt;P&gt; EXTENDED CHECK OFF/ON)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax error is given when declared as&lt;/P&gt;&lt;P&gt;FORM add_dates  TABLES   t_approvalsdone  &lt;STRONG&gt;type z11&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i declare this as &lt;STRONG&gt;FORM add_dates  TABLES   t_approvalsdone&lt;/STRONG&gt; .&lt;/P&gt;&lt;P&gt;then syntax error is given in sort statement saying "no structure, hence no field called name1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to handle this please? We have to be free from EPC error also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meenakshi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 10:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-on-using-structure/m-p/6564354#M1431814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T10:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: EPC error on using 'Structure'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-on-using-structure/m-p/6564355#M1431815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generally create a table type &amp;amp; then decalre the formal param as TYPE &amp;lt;tabletype&amp;gt; like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: ty_approvalsdone_t TYPE STANDARD TABLE OF z11.

DATA: it_approvalsdone TYPE ty_approvalsdone_t.

PERFORM add_date CHANGING it_approvalsdone.

FORM add_dates CHANGING t_approvalsdone TYPE ty_approvalsdone_t .
.
.
.
sort t_approvalsdone by name1.
ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is standard coding practice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 10:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/epc-error-on-using-structure/m-p/6564355#M1431815</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-02-04T10:38:54Z</dc:date>
    </item>
  </channel>
</rss>

