<?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: doubt in loop at screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991361#M1162671</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;if u are making the fields obligatory then u cannot do ur requirement, as SAP checks it first .So don't make the fields obligatory and then see..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Jan 2009 11:33:45 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2009-01-08T11:33:45Z</dc:date>
    <item>
      <title>doubt in loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991360#M1162670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am using two dates in the selection screen one is ERDAT and another is BNDDT.&lt;/P&gt;&lt;P&gt;these two fileds are obligatory. &lt;/P&gt;&lt;P&gt;i am using radiobutton to enable these field. look at my coding &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  IF p0 = 'X'.
    LOOP AT SCREEN.
      IF screen-name = 'S_BNDAT-LOW' OR
         screen-name = 'S_BNDAT-HIGH' OR
         screen-group1 = 'SC1'.
         screen-input = '0'.
        MODIFY SCREEN.
        CLEAR screen.
      ENDIF.
    ENDLOOP.
  ENDIF.

  IF p1 = 'X'.
    LOOP AT SCREEN.
      IF screen-name = 'S_ERDAT-LOW' OR
         screen-name = 'S_ERDAT-HIGH' OR
         screen-group1 = 'SC1'.
        screen-active = '0'.
         MODIFY SCREEN.
        CLEAR screen.
      ENDIF.
    ENDLOOP.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i select p1 ,the screen displays error message like fill in all required entry.&lt;/P&gt;&lt;P&gt;if the fileds are not obligatory its working fine.&lt;/P&gt;&lt;P&gt;how to over come this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 11:30:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991360#M1162670</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T11:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991361#M1162671</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;if u are making the fields obligatory then u cannot do ur requirement, as SAP checks it first .So don't make the fields obligatory and then see..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 11:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991361#M1162671</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-01-08T11:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991362#M1162672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of marking the field as OBLIGATORY explicitely, use LOOP AT SCREEN to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set SCREEN-REQUIRED = 1 to mark a field obligatory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 11:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991362#M1162672</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T11:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991363#M1162673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;True,&lt;/P&gt;&lt;P&gt;If the fields are mandatory,its not possible to hide them.Right..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Making fields invisible will work only if u want to enter only one of the two fields..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 11:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991363#M1162673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T11:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991364#M1162674</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;&lt;/P&gt;&lt;P&gt;When you use obligatory you cannot hide the fields in selection screen. So remove the word obligatory.&lt;/P&gt;&lt;P&gt;If input is not given to your field then display some error message manually.&lt;/P&gt;&lt;P&gt;Place ur error message in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
AT SELECTION-SCREEN.

IF p_erdat is initial.
message text-001 type 'E'.

ELSEIF p_bnddt is initial.
message text-002 type 'E'.
ENDIF.  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srilakshmi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 11:41:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991364#M1162674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T11:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: doubt in loop at screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991365#M1162675</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;step 1) just use "MODIFY ID "  for the field in your selection-screen to make it into one group.&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;select-options:   s_cajo  for  tcj_documents-cajo_number&lt;/P&gt;&lt;P&gt;                               &lt;STRONG&gt;modif id cas&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;step2) in your at selection-screen . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just loop the screen and make it required..as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    loop at screen.
      if screen-group1 = 'CAS'.
        screen-required = 1.
       screen-input     = 0.
        screen-active    = 1.
        endif.
      modify screen.
    endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will helps you..&lt;/P&gt;&lt;P&gt;UR's&lt;/P&gt;&lt;P&gt;GSANA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code Formatted by: Alvaro Tejada Galindo on Jan 8, 2009 2:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2009 11:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-loop-at-screen/m-p/4991365#M1162675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-08T11:51:15Z</dc:date>
    </item>
  </channel>
</rss>

