<?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: Table control - Field statement - Value reset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350286#M1398752</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;First do the check then use update operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason you are getting blank value is because of the FIELD statement coming after "module update_changes."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the coding as below and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at i_vbap.
  field: zvbap-tdline module check_input.
  module update_changes.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Oct 2009 05:48:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-26T05:48:49Z</dc:date>
    <item>
      <title>Table control - Field statement - Value reset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350282#M1398748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my table control, I want to validate a field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PAI, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at i_vbap.
  module update_changes.
  field: zvbap-tdline module check_input.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the field &lt;STRONG&gt;zvbap-tdline&lt;/STRONG&gt; is always blank in this case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as when I was using just &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at i_vbap.
  module update_changes.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was getting the screen values transferred correctly to my internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now this particular field value comes blank when I use it with field. I want to throw an error message if the user has kept this field blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Abdullah Ismail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Oct 2009 12:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350282#M1398748</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-25T12:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - Field statement - Value reset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350283#M1398749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With table controls, you must use LOOP ... WITH CONTROL ... statement, see abap documentation, or ABAP examples in SE38 | environment | examples | abap examples&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Oct 2009 14:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350283#M1398749</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-10-25T14:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - Field statement - Value reset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350284#M1398750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Abdullah Ismail  ,&lt;/P&gt;&lt;P&gt;along with the above suggestion i would just like to add a point..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use table control WIZARD in the screen painter to create table control.. you will be getting a standardized code to work with ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Oct 2009 14:50:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350284#M1398750</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-25T14:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - Field statement - Value reset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350285#M1398751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Abdullah, 
&amp;lt;li&amp;gt; If you are using &lt;STRONG&gt;i_vbap&lt;/STRONG&gt; table data to display on table control and &lt;STRONG&gt;zvbap-tdline&lt;/STRONG&gt; is the field on table control then, your LOOP-ENDLOOP should be like below.
&lt;PRE&gt;&lt;CODE&gt;LOOP AT i_vbap INTO zvbap."INTO zvbap has been added
MODULE update_changes.
  field: zvbap-tdline module check_input.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;If &lt;STRONG&gt;i_vbap&lt;/STRONG&gt; has header also and using on table control, you need to use like below.
&lt;PRE&gt;&lt;CODE&gt;LOOP AT i_vbap.
MODULE update_changes.
  field: i_vbap-tdline module check_input."zvbap-tdline changed to i_vbap-tdline
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 05:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350285#M1398751</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-10-26T05:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Table control - Field statement - Value reset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350286#M1398752</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;First do the check then use update operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason you are getting blank value is because of the FIELD statement coming after "module update_changes."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change the coding as below and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at i_vbap.
  field: zvbap-tdline module check_input.
  module update_changes.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2009 05:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-field-statement-value-reset/m-p/6350286#M1398752</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-26T05:48:49Z</dc:date>
    </item>
  </channel>
</rss>

