<?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: Why save_ok = ok_code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-save-ok-ok-code/m-p/516682#M18355</link>
    <description>&lt;P&gt;Hi Sandra!&lt;/P&gt;
  &lt;P&gt;Thanks, it is clear now!&lt;/P&gt;
  &lt;P&gt;Regards Mario&lt;/P&gt;</description>
    <pubDate>Fri, 27 Oct 2017 06:40:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-10-27T06:40:36Z</dc:date>
    <item>
      <title>Why save_ok = ok_code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-save-ok-ok-code/m-p/516680#M18353</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;foy any reasons - which I cannot remember - it is adviced to copy the OK_Code into save_ok.&lt;/P&gt;
  &lt;P&gt;e.g: BCALV_EDIT_04&lt;/P&gt;
  &lt;P&gt;Could anyboly pls. explain why this is advised?&lt;/P&gt;
  &lt;P&gt;Thx, Regards Mario&lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;*---------------------------------------------------------------------*
*       MODULE PAI INPUT                                              *
*---------------------------------------------------------------------*
module pai input.
  save_ok = ok_code.
  clear ok_code.
  case save_ok.
    when 'SAVE'.
      perform save_data.
    when 'BACK'.
* §10.Unlock your database table.
      perform unlock_sflight.
      leave to screen 0.
    when 'EXIT'.
      perform exit_program.
    when others.
*     do nothing
  endcase.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Oct 2017 05:27:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-save-ok-ok-code/m-p/516680#M18353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-27T05:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why save_ok = ok_code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-save-ok-ok-code/m-p/516681#M18354</link>
      <description>&lt;P&gt;In the program BCALV_EDIT_04, duplicating the ok_code value is useless.&lt;/P&gt;
  &lt;P&gt;Generally speaking, when you press Enter (or a scroll key in a table ontrol), the ok code (and even sy-ucomm) is not reset, it's why it may be useful to clear the ok code before displaying the screen: the most convenient way is to do it at the beginning of the PAI (in case there's a warning/error message during the PAI, the PBO wouldn't be triggered).&lt;/P&gt;
  &lt;P&gt;More info here: &lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/dbaa1335c111d1829f0000e829fbfe/frameset.htm"&gt;SAP Library: Reading Function Codes&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 06:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-save-ok-ok-code/m-p/516681#M18354</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-10-27T06:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why save_ok = ok_code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/why-save-ok-ok-code/m-p/516682#M18355</link>
      <description>&lt;P&gt;Hi Sandra!&lt;/P&gt;
  &lt;P&gt;Thanks, it is clear now!&lt;/P&gt;
  &lt;P&gt;Regards Mario&lt;/P&gt;</description>
      <pubDate>Fri, 27 Oct 2017 06:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/why-save-ok-ok-code/m-p/516682#M18355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-10-27T06:40:36Z</dc:date>
    </item>
  </channel>
</rss>

