<?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: screen validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409687#M537390</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;You need to execute a module in PBO between the LOOT AT itab with Table control ENDLOOP statments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab with &amp;lt;table control&amp;gt;.&lt;/P&gt;&lt;P&gt;MODULE init_tab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module you can ise&lt;/P&gt;&lt;P&gt;MODULE init_tab OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;CHECK SCREEN-NAME = 'FIELD1' and field is not initial.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2007 05:11:08 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-06-28T05:11:08Z</dc:date>
    <item>
      <title>screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409686#M537389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Iam very new to module pool.&lt;/P&gt;&lt;P&gt;i have to do some screen validation.&lt;/P&gt;&lt;P&gt;iam working on tabstrip with 8 tabs.&lt;/P&gt;&lt;P&gt;now, data is displaying in the table controls.&lt;/P&gt;&lt;P&gt;first i have to disable the rows which have data,&lt;/P&gt;&lt;P&gt;and enable the rows which do not have data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kirthi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409686#M537389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T05:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409687#M537390</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;You need to execute a module in PBO between the LOOT AT itab with Table control ENDLOOP statments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab with &amp;lt;table control&amp;gt;.&lt;/P&gt;&lt;P&gt;MODULE init_tab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module you can ise&lt;/P&gt;&lt;P&gt;MODULE init_tab OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;CHECK SCREEN-NAME = 'FIELD1' and field is not initial.&lt;/P&gt;&lt;P&gt;SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;MODIFY SCREEN.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDMODULE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:11:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409687#M537390</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-06-28T05:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409688#M537391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kirthi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For all the screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT SCREEN.
  CHECK SCREEN-NAME = 'TAB-F1' and SCREEN-VALUE IS NOT INITIAL.
  SCREEN-INPUT = 0.
  MODIFY SCREEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409688#M537391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T05:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409689#M537392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in your case you meant to ask that you wnt to add new records other than those which are already being displayed on the table control.&lt;/P&gt;&lt;P&gt;in thata case you first need to make sure your table control has enof lines to be entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tablectrl is the table control name defined on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this in PBO of the screen, just write this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;tablectrl-lines = 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the PBO of the table control module just write these statements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
if screen-name = 'tabctrl-field1' or 
   screen-name = 'tabctrl-field2' or ..... (for all fields of the table control)
if not itab-field1 is initial.
screen-input = 0.
modify screen.
endif.
endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409689#M537392</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-06-28T05:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: screen validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409690#M537393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE SCR_INIT.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  SCR_INIT  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SCR_INIT OUTPUT.&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt;    IF NOT G_AUTH IS INITIAL.&lt;/P&gt;&lt;P&gt;*If the user is BM then enable only BM related  input fields and&lt;/P&gt;&lt;P&gt;*inactive RM and NSM input fields&lt;/P&gt;&lt;P&gt;      if g_auth = 'BM'.&lt;/P&gt;&lt;P&gt;        if screen-group1 = 'CB2'.&lt;/P&gt;&lt;P&gt;          SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if screen-group1 = 'CB3'.&lt;/P&gt;&lt;P&gt;          SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        if bm_app1 = 'C'.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'CB1'.&lt;/P&gt;&lt;P&gt;            SCREEN-INPUT = '0'.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;          if screen-group1 = 'SB'.   "Save Button&lt;/P&gt;&lt;P&gt;            screen-input = '0'.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 05:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-validations/m-p/2409690#M537393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-28T05:45:00Z</dc:date>
    </item>
  </channel>
</rss>

