<?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: Skipping Mandatory fields in module pool programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928655#M1796032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;Define the function code associated to pushbutton CLEAR as an exit command.&lt;/LI&gt;&lt;LI&gt;Add a MODULE AT EXIT-COMMAND at start of PAI logic, there when the button was pressed, set a global defined clear flag to 'X' and leave to current screen.&lt;/LI&gt;&lt;LI&gt;In the PBO if the clear flag was set, use a LOOP AT SCREEN, and for each field where SCREEN-INPUT is '1', initialize its value : ASSIGN(SCREEN-NAME) TO &amp;lt;fs&amp;gt;. IF sy-subrc EQ 0. CLEAR &amp;lt;fs&amp;gt;. ENDIF. (dynamic) and clear the clear flag&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Dec 2013 12:09:14 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2013-12-31T12:09:14Z</dc:date>
    <item>
      <title>Skipping Mandatory fields in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928650#M1796027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I developed module pool program with three output fields and one input mandatory field along with these i have some others push buttons to process the data.Now my requirement is if i press clear push button i have to initialize the output field values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 09:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928650#M1796027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-31T09:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping Mandatory fields in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928651#M1796028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandhaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Basic things needs to do:&lt;/P&gt;&lt;P&gt;1.) Define global variables with same name output screen field names.&lt;/P&gt;&lt;P&gt;2.) In PAI of your screen capture the sy-ucom&amp;nbsp; of&amp;nbsp; of your clear button and clear all the global variables once the user will click on clear button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if u need more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Prakash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 09:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928651#M1796028</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-31T09:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping Mandatory fields in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928652#M1796029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandhya Pujari.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Two key topics of a module pool program: &lt;STRONG&gt;PBO&lt;/STRONG&gt; (Process Before Output) and &lt;STRONG&gt;PAI&lt;/STRONG&gt; (Process After Input).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First system to understand what button you have pressed:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1) &lt;/STRONG&gt;Assign function code to the button&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/353317" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;2)&lt;/STRONG&gt; Assign function code capturing variable (&lt;EM&gt;Eg: OK1001 TYPE SY-UCOMM&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/353319" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What the system should do?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * &lt;/STRONG&gt;In PAI module MODULE USER_COMMAND_SCREEN_NUMBER, write the business logic to clear the variable. After PAI, ABAP application server executes PBO which will clear the variable(s) in the screen.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/353322" width="450" /&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 09:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928652#M1796029</guid>
      <dc:creator>Arun_Prabhu_K</dc:creator>
      <dc:date>2013-12-31T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping Mandatory fields in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928653#M1796030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;Automatic field checks can be avoided by AT EXIT-COMMAND, Which works exactly the same way as cancel works on application tols bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;Process After Inpt.&lt;/P&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;Module exit AT EXIT-COMMAND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;In module pool program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;Module exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;Case Okcode.&lt;/P&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When 'Exit'.&lt;/P&gt;&lt;P style="font-size: 12.000001907348633px; color: #333333;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; leave to screen 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 10:21:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928653#M1796030</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-12-31T10:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping Mandatory fields in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928654#M1796031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandhya,&lt;/P&gt;&lt;P&gt;Please visit this link, it may help you.&lt;/P&gt;&lt;P&gt;&lt;A href="https://scn.sap.com/thread/3147701" title="https://scn.sap.com/thread/3147701"&gt;Problem in Module Pool-fill required entry | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 11:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928654#M1796031</guid>
      <dc:creator>former_member242167</dc:creator>
      <dc:date>2013-12-31T11:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Skipping Mandatory fields in module pool programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928655#M1796032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;Define the function code associated to pushbutton CLEAR as an exit command.&lt;/LI&gt;&lt;LI&gt;Add a MODULE AT EXIT-COMMAND at start of PAI logic, there when the button was pressed, set a global defined clear flag to 'X' and leave to current screen.&lt;/LI&gt;&lt;LI&gt;In the PBO if the clear flag was set, use a LOOP AT SCREEN, and for each field where SCREEN-INPUT is '1', initialize its value : ASSIGN(SCREEN-NAME) TO &amp;lt;fs&amp;gt;. IF sy-subrc EQ 0. CLEAR &amp;lt;fs&amp;gt;. ENDIF. (dynamic) and clear the clear flag&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Dec 2013 12:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/skipping-mandatory-fields-in-module-pool-programming/m-p/9928655#M1796032</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-12-31T12:09:14Z</dc:date>
    </item>
  </channel>
</rss>

