<?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: Coding for Popup window in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-for-popup-window/m-p/2714090#M629387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manikandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that the " Mail Update Flag" is a check box in your screen. If this is the&lt;/P&gt;&lt;P&gt;case, then you can ues the function module POPUP_CONTINUE_YES_NO &lt;/P&gt;&lt;P&gt;and based on the import parameter ANSWER you can set the flag in the program&lt;/P&gt;&lt;P&gt;field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   if sy-ucomm = 'SAVE'.
      if mail_update_flag is initial.
           if mail_address is not initial.
            CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
            EXPORTING
              DEFAULTOPTION = 'N' "NO Button    
              TEXTLINE1     = WA_TEXTLINE1  " Mail update flag is not selected
              TEXTLINE2     = WA_TEXTLINE2  " Do you want to sent mail updates?
              TITEL             = text-004
            IMPORTING
              ANSWER       = FLAG-POST.

            IF FLAG-POST = 'J'.  " YES Button selected
                  PERFORM SET_FLAG_FOR_MAIL_UPDATE.
            ENDIF.
         endif.
     endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can consider the option of making the field&lt;/P&gt;&lt;P&gt;disabled if the check box is  not selected. only if &lt;/P&gt;&lt;P&gt;the check box is selected, you should make the field &lt;/P&gt;&lt;P&gt;for email address field input enabled.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2007 19:45:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-14T19:45:07Z</dc:date>
    <item>
      <title>Coding for Popup window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-for-popup-window/m-p/2714089#M629386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In my screen, if the user failed to populate MailUpdate Flag value field but updating the MailAddress Field, then upon saving, a pop up window should come indicating that "MailUpdate Flag valule is empty,kindly update it". After giving the required value it should save. This is my requirement.Kindly help me on this.Points will be awarded for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;Manikandan Rajendran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 18:57:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-for-popup-window/m-p/2714089#M629386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T18:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Coding for Popup window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-for-popup-window/m-p/2714090#M629387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Manikandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that the " Mail Update Flag" is a check box in your screen. If this is the&lt;/P&gt;&lt;P&gt;case, then you can ues the function module POPUP_CONTINUE_YES_NO &lt;/P&gt;&lt;P&gt;and based on the import parameter ANSWER you can set the flag in the program&lt;/P&gt;&lt;P&gt;field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   if sy-ucomm = 'SAVE'.
      if mail_update_flag is initial.
           if mail_address is not initial.
            CALL FUNCTION 'POPUP_CONTINUE_YES_NO'
            EXPORTING
              DEFAULTOPTION = 'N' "NO Button    
              TEXTLINE1     = WA_TEXTLINE1  " Mail update flag is not selected
              TEXTLINE2     = WA_TEXTLINE2  " Do you want to sent mail updates?
              TITEL             = text-004
            IMPORTING
              ANSWER       = FLAG-POST.

            IF FLAG-POST = 'J'.  " YES Button selected
                  PERFORM SET_FLAG_FOR_MAIL_UPDATE.
            ENDIF.
         endif.
     endif.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can consider the option of making the field&lt;/P&gt;&lt;P&gt;disabled if the check box is  not selected. only if &lt;/P&gt;&lt;P&gt;the check box is selected, you should make the field &lt;/P&gt;&lt;P&gt;for email address field input enabled.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Sajan Joseph.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2007 19:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-for-popup-window/m-p/2714090#M629387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-14T19:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Coding for Popup window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/coding-for-popup-window/m-p/2714091#M629388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;   try the following FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'POPUP_TO_CONFIRM'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;       titlebar                    = 'CONFIRMATION'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      DIAGNOSE_OBJECT             = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         text_question               =  lv_msg ==&amp;gt; MailUpdate Flag valule is empty,kindly update it&lt;/P&gt;&lt;P&gt;         text_button_1               = 'YES'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ICON_BUTTON_1               = 'ICON_DELETE'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         text_button_2               = 'NO'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        ICON_BUTTON_2               = 'ICON_CANCEL'&lt;/P&gt;&lt;/LI&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;        DEFAULT_BUTTON              = '1'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;         display_cancel_button       = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      USERDEFINED_F1_HELP         = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         start_column                = 30&lt;/P&gt;&lt;P&gt;         start_row                   = 10&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      POPUP_TYPE                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IV_QUICKINFO_BUTTON_1       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      IV_QUICKINFO_BUTTON_2       = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       answer                      = lv_ans&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      PARAMETER                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      TEXT_NOT_FOUND              = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      OTHERS                      = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;                .&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Regards,&lt;/P&gt;&lt;P&gt;vallamuthu.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 11:30:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/coding-for-popup-window/m-p/2714091#M629388</guid>
      <dc:creator>vallamuthu_madheswaran2</dc:creator>
      <dc:date>2007-08-16T11:30:41Z</dc:date>
    </item>
  </channel>
</rss>

