<?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 Overwrite ok_code code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824038#M43000</link>
    <description>&lt;P&gt;first if you defined back button in gui status = type E (on exit command) and call a module with extend: ON EXIT-COMMAND, when you click back button it will not go through the chain loop but go to that module.&lt;/P&gt;&lt;P&gt;second, you said "this validation code overwrite my back code", so i must guess you didnt define back button as exit type also you change or clear ok code inside validation method.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 00:33:57 GMT</pubDate>
    <dc:creator>DoanManhQuynh</dc:creator>
    <dc:date>2019-02-08T00:33:57Z</dc:date>
    <item>
      <title>Table control Overwrite ok_code code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824032#M42994</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;
  &lt;P&gt;I made a table control and use my validation in PAI as.&lt;/P&gt;
  &lt;P&gt;in PAI.&lt;/P&gt;
  &lt;P&gt;loop at itab.&lt;/P&gt;
  &lt;P&gt;chain.&lt;/P&gt;
  &lt;P&gt;field1..&lt;/P&gt;
  &lt;P&gt;field 2..&lt;/P&gt;
  &lt;P&gt;field 3 module validate.&lt;/P&gt;
  &lt;P&gt;endchain.&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;.&lt;/P&gt;
  &lt;P&gt;now on screen if i press my back (pf-status) this validation code overwrite my back code (leave to screen 0.).&lt;/P&gt;
  &lt;P&gt;How can i resolve this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 12:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824032#M42994</guid>
      <dc:creator>amysh95</dc:creator>
      <dc:date>2019-02-06T12:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Overwrite ok_code code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824033#M42995</link>
      <description>&lt;P&gt;Take a look at the SAP Help for ON EXIT-COMMAND.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 15:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824033#M42995</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2019-02-06T15:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Overwrite ok_code code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824034#M42996</link>
      <description>&lt;P&gt;What means "this validation code overwrite my back code" ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:26:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824034#M42996</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-02-06T16:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Overwrite ok_code code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824035#M42997</link>
      <description>&lt;P&gt;Have you defined a variable in the ok code field for the screen?  (It's generally the last field on the element list).&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 09:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824035#M42997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-07T09:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Overwrite ok_code code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824036#M42998</link>
      <description>&lt;P&gt;yes. i already did.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 12:53:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824036#M42998</guid>
      <dc:creator>amysh95</dc:creator>
      <dc:date>2019-02-07T12:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Overwrite ok_code code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824037#M42999</link>
      <description>&lt;P&gt;As I already said. If you want the BACK/EXIT/CANCEL functions to override the PAI logic then you can use on-exit command.&lt;/P&gt;&lt;P&gt;1) In your gui status for the function code BACK set the Functional Type to E (Exit Command)&lt;/P&gt;&lt;P&gt;2) In your PAI make this your first statement (before your PAI logic):&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE handle_exit AT EXIT-COMMAND.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  chain.&lt;/P&gt;&lt;P&gt;     field1..&lt;/P&gt;&lt;P&gt;     field 2..&lt;/P&gt;&lt;P&gt;     field 3 module validate.&lt;/P&gt;&lt;P&gt;  endchain.&lt;/P&gt;&lt;P&gt;3) Code your exit module like you want:&lt;/P&gt;&lt;P&gt;MODULE handle_exit INPUT.&lt;BR /&gt;  CASE ok_code.&lt;BR /&gt;
     WHEN 'BACK' OR '????'.&lt;BR /&gt;      SET SCREEN 0.&lt;BR /&gt;      LEAVE SCREEN.&lt;BR /&gt;  ENDCASE.&lt;BR /&gt;
&lt;BR /&gt;
ENDMODULE.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 14:04:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824037#M42999</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2019-02-07T14:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Table control Overwrite ok_code code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824038#M43000</link>
      <description>&lt;P&gt;first if you defined back button in gui status = type E (on exit command) and call a module with extend: ON EXIT-COMMAND, when you click back button it will not go through the chain loop but go to that module.&lt;/P&gt;&lt;P&gt;second, you said "this validation code overwrite my back code", so i must guess you didnt define back button as exit type also you change or clear ok code inside validation method.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 00:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-overwrite-ok-code-code/m-p/824038#M43000</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-02-08T00:33:57Z</dc:date>
    </item>
  </channel>
</rss>

