<?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 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1874214#M367742</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;This query is used when some one tries to change payment terms it should display error mesage. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE zterm&lt;/P&gt;&lt;P&gt;  FROM vbkd&lt;/P&gt;&lt;P&gt;  INTO l_zterm&lt;/P&gt;&lt;P&gt;  WHERE vbeln EQ vbak-vbeln.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    IF l_zterm NE *vbkd-zterm.&lt;/P&gt;&lt;P&gt;  error message&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i have two doubts&lt;/P&gt;&lt;P&gt;1. what does * represents in *vbkd-vbeln&lt;/P&gt;&lt;P&gt;2.does this query works if you write proper error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Feb 2007 12:09:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-05T12:09:53Z</dc:date>
    <item>
      <title>tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1874214#M367742</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;This query is used when some one tries to change payment terms it should display error mesage. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE zterm&lt;/P&gt;&lt;P&gt;  FROM vbkd&lt;/P&gt;&lt;P&gt;  INTO l_zterm&lt;/P&gt;&lt;P&gt;  WHERE vbeln EQ vbak-vbeln.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    IF l_zterm NE *vbkd-zterm.&lt;/P&gt;&lt;P&gt;  error message&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i have two doubts&lt;/P&gt;&lt;P&gt;1. what does * represents in *vbkd-vbeln&lt;/P&gt;&lt;P&gt;2.does this query works if you write proper error message.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 12:09:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1874214#M367742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T12:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1874215#M367743</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. This is actually a facility provided in abap syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It is usually checked while saving a record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we have one variable &lt;/P&gt;&lt;P&gt;EKKO&lt;/P&gt;&lt;P&gt;and another *EKKO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(They both are same only, with same structure)&lt;/P&gt;&lt;P&gt;(but two different variables)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The functional meaning, for usage purpose,&lt;/P&gt;&lt;P&gt;of *EKKO is OLDEKKO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. While saving the transaction,&lt;/P&gt;&lt;P&gt;the data is saved only if there is any change&lt;/P&gt;&lt;P&gt;in the values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF EKKO &amp;lt;&amp;gt; *EKKO.&lt;/P&gt;&lt;P&gt;*--- SAVE&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE 'NO DATA CHANGED'&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. We can aswell use any other variale&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. oldekko&lt;/P&gt;&lt;P&gt;oekko&lt;/P&gt;&lt;P&gt;myekko&lt;/P&gt;&lt;P&gt;etc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. But for business meaning, &lt;/P&gt;&lt;P&gt;R/3 has the facility for *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***************************************&lt;/P&gt;&lt;P&gt;. we can use almost everywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. just copy paste&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report azbc.

*--------------------------
TABLES : T001.
TABLES : *T001.

DATA : ITAB LIKE EKKO.
DATA : *ITAB LIKE EKKO.

DATA : NUM TYPE I.
DATA : *NUM TYPE I.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 12:11:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1874215#M367743</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-02-05T12:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1874216#M367744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shewta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*vbkd is an alias of vbkd ( another workarea ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can write your own error message.&lt;/P&gt;&lt;P&gt;For error msg check txn SE91.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, Erwan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 12:12:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/1874216#M367744</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T12:12:02Z</dc:date>
    </item>
  </channel>
</rss>

