<?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: POPUP Window in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506989#M234174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I wanted Rich, but how can I possibly mask the password with asterisk?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Jul 2006 02:17:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-27T02:17:15Z</dc:date>
    <item>
      <title>POPUP Window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506986#M234171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I display a popup window that will contain a two field, for username and password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to create a function that will call for this popup window to validate the entries from the database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 01:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506986#M234171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T01:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506987#M234172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to do some dialog programming here.&lt;/P&gt;&lt;P&gt;Create a screen with two fields on the screen and have the attributes set for the second field as password so that characters don't show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do all this as a part of the function group so that the entire thing can be encapsulated in a function module. Then you can call the function wherever you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Were you looking for some other details?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;&amp;lt;b&amp;gt;As a example you can take a look at functions POPUP_TO_GET_ONE_VALUE, POPUP_TO_GET_VALUE of the function group SPO3.&amp;lt;/b&amp;gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ravikumar Allampallam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 01:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506987#M234172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T01:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506988#M234173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would work, but I can't see to get the pasword field to hide the data entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

report zrich_0001 .

data: ivals type table of sval with header line.

data: bname type usr02-bname,
      bcode(8) type c.

start-of-selection.


  ivals-tabname = 'USR02'.
  ivals-fieldname = 'BNAME'.
  append ivals.

  ivals-tabname = 'TCPFS5'.
  ivals-fieldname = 'PW'.
  append ivals.

  call function 'POPUP_GET_VALUES'
    exporting
*   NO_VALUE_CHECK        = ' '
      popup_title           = 'Enter User Name &amp;amp; Password'
*   START_COLUMN          = '5'
*   START_ROW             = '5'
* IMPORTING
*   RETURNCODE            =
    tables
      fields                = ivals
   exceptions
     error_in_fields       = 1
     others                = 2
            .

  read table ivals with key fieldname = 'BNAME'.
  if sy-subrc  = 0.
    bname = ivals-value.
  endif.

  read table ivals with key fieldname = 'PW'.
  if sy-subrc  = 0.
    bcode = ivals-value.
  endif.


  write:/ bname, bcode.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 01:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506988#M234173</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-27T01:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506989#M234174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is what I wanted Rich, but how can I possibly mask the password with asterisk?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 02:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506989#M234174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T02:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506990#M234175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you have a choice other than developing something like this on your own and take care of masking the password yourself, using the screen attributes of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 02:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506990#M234175</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T02:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506991#M234176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code.&lt;/P&gt;&lt;P&gt;It masks the password field as required by you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT  zzarun_pass.

DATA : passwd  TYPE string,
       encoded TYPE string,
       decoded TYPE string.

SELECTION-SCREEN BEGIN OF SCREEN 2000 AS WINDOW TITLE upass.
PARAMETERS : p_unam(20) TYPE c,
             p_pass(20) TYPE c  LOWER CASE .
SELECTION-SCREEN END OF SCREEN 2000.

initialization .
upass = 'Enter User Name and Password'.

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name = 'P_PASS'.
      screen-invisible = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.


START-OF-SELECTION.

  CALL SELECTION-SCREEN 2000 STARTING AT 20 5.

  passwd = p_pass.
  CONDENSE passwd.

  CALL METHOD cl_http_utility=&amp;gt;if_http_utility~encode_base64
    EXPORTING
      unencoded = passwd
    RECEIVING
      encoded   = encoded.

  CALL METHOD cl_http_utility=&amp;gt;if_http_utility~decode_base64
    EXPORTING
      encoded = encoded
    RECEIVING
      decoded = decoded.


  WRITE : / 'User Name          :' , p_unam,
          / 'Password Entered   :' , p_pass,
          / 'Encrypted Password :' , encoded,
          / 'Decrypted Password :' , decoded.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 07:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506991#M234176</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T07:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506992#M234177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you dont want &amp;lt;b&amp;gt;'Check input'&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;'Save as variant'&amp;lt;/b&amp;gt; buttons in the Pop Up Window. Then use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT  zzarun_pass.

DATA : passwd  TYPE string,
       encoded TYPE string,
       decoded TYPE string.
&amp;lt;b&amp;gt;DATA : itab TYPE TABLE OF sy-ucomm.&amp;lt;/b&amp;gt;



SELECTION-SCREEN BEGIN OF SCREEN 2000 AS WINDOW TITLE upass.
PARAMETERS : p_unam(20) TYPE c,
             p_pass(20) TYPE c  LOWER CASE .
SELECTION-SCREEN END OF SCREEN 2000.

initialization .
upass = 'Enter User Name and Password'.

AT SELECTION-SCREEN OUTPUT.

&amp;lt;b&amp;gt;*To remove the 'Check input' and 'Save as variant' buttons.
 
APPEND 'NONE' TO itab.
APPEND 'SPOS' TO ITAB.

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
EXPORTING
p_status = sy-pfkey
TABLES
p_exclude = itab.&amp;lt;/b&amp;gt;

  LOOP AT SCREEN.
    IF screen-name = 'P_PASS'.
      screen-invisible = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.


START-OF-SELECTION.

    CALL SELECTION-SCREEN 2000 STARTING AT 20 5.

*Only if user presses execute button

 &amp;lt;b&amp;gt; IF sy-subrc EQ 0.&amp;lt;/b&amp;gt;
  
    passwd = p_pass.
    CONDENSE passwd.

    CALL METHOD cl_http_utility=&amp;gt;if_http_utility~encode_base64
      EXPORTING
        unencoded = passwd
      RECEIVING
        encoded   = encoded.

    CALL METHOD cl_http_utility=&amp;gt;if_http_utility~decode_base64
      EXPORTING
        encoded = encoded
      RECEIVING
        decoded = decoded.


    WRITE : / 'User Name          :' , p_unam,
            / 'Password Entered   :' , p_pass,
            / 'Encrypted Password :' , encoded,
            / 'Decrypted Password :' , decoded.

  ELSE.

&amp;lt;b&amp;gt;*If cancelled&amp;lt;/b&amp;gt;

    LEAVE PROGRAM.

  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Arun Sambargi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2006 07:35:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506992#M234177</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-27T07:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: POPUP Window</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506993#M234178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For masking input in screen fields, I came across this in the help.sap.com documentation.  Modifying the attributes of a screen field in the screen table has the following effects:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case1&lt;/P&gt;&lt;P&gt;Active=1, Input=1, Output=1, Invisible=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen field is displayed, even if Invisible is set&lt;/P&gt;&lt;P&gt;statically, except when Output only is set&lt;/P&gt;&lt;P&gt;statically.&lt;/P&gt;&lt;P&gt;Field contents are not displayed.&lt;/P&gt;&lt;P&gt;Ready for input, even if Input is not set statically.&lt;/P&gt;&lt;P&gt;User input is masked by asterisks (*).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case2&lt;/P&gt;&lt;P&gt;Active=1, Input=1, Output=0, Invisible=1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen field is displayed, even if Invisible is set&lt;/P&gt;&lt;P&gt;statically, except when Output only is set&lt;/P&gt;&lt;P&gt;statically.&lt;/P&gt;&lt;P&gt;Output is masked by asterisks (*).&lt;/P&gt;&lt;P&gt;Ready for input, even if Input is not set statically.&lt;/P&gt;&lt;P&gt;User input is masked by asterisks (*).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 23:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/popup-window/m-p/1506993#M234178</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T23:57:20Z</dc:date>
    </item>
  </channel>
</rss>

