<?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: Need help regarding user checks. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792261#M1310159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help Please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2009 09:48:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-26T09:48:35Z</dc:date>
    <item>
      <title>Need help regarding user checks.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792256#M1310154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have made an appraisal program. in this program checks has been made on sy-uname and kostl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem im facing is that we have  a user id with multiple logins&lt;/P&gt;&lt;P&gt;meaning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TECHTPF2  is a user id and it is being used in&lt;/P&gt;&lt;P&gt;1) Technical Department&lt;/P&gt;&lt;P&gt;2)  Power House.&lt;/P&gt;&lt;P&gt;3) Utility and Maintenance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to make an another check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if sy-uname eq 'TECHTPF2'.
   "Here i want to prompt a window asking for a user name and password. This user id and password is defined by me".
endif&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plus this coding has to go under the form section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide me,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 09:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792256#M1310154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T09:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help regarding user checks.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792257#M1310155</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;Use FM &lt;STRONG&gt;POPUP_GET_USER_PASSWORD&lt;/STRONG&gt; , it will pop up a screen asking username and password and it will be returned to you, validate that if that does not match leave program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 09:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792257#M1310155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T09:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Need help regarding user checks.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792258#M1310156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you illustrate me with an example..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with a short code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 10:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792258#M1310156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T10:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help regarding user checks.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792259#M1310157</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;Try like this;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data : uname TYPE string, pass type string.
Data : Registry TYPE UDDICLS_REGISTRIES.
IF sy-uname EQ 'SAPUSER'. "Replace with your required user name

CALL FUNCTION 'POPUP_GET_USER_PASSWORD'
 IMPORTING
   USER                 = uname
   PASSWORD             = pass
  TABLES
    REGISTRY_TAB         = Registry
 EXCEPTIONS
   CANCEL_PRESSED       = 1
   OTHERS               = 2 .

IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*Do select in case you stored your usernames and passwords in ztable
*or just use a if condition as below
IF uname EQ 'Myuser' AND pass EQ 'welcome'.
*Do relevant tasks
Else.
*  If neccessary show message that username/password is wrong
  LEAVE PROGRAM.
ENDIF.

ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2009 11:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792259#M1310157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-24T11:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help regarding user checks.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792260#M1310158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Gurus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As below code shows that im taking two parameters &lt;/P&gt;&lt;P&gt;1) User Name.&lt;/P&gt;&lt;P&gt;2) User Password&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to change the text Field of Password into ***** form.&lt;/P&gt;&lt;P&gt;can you guide me how ?&lt;/P&gt;&lt;P&gt;within the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Saad Nisar.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;selection-screen begin of screen 500 title title as window.
parameters : p_name like sy-uname obligatory,
             p_pass like   sy-uname obligatory.
selection-screen end of screen 500.

  title = 'Appraisal Program Login Screen'.
if user-bname eq  'TECHTPF2'or
   user-bname eq  'FPLTPF2' or
   user-bname eq  'TECHTPF1'or
   user-bname eq  'ABAPER'  or
   user-bname eq  'ABAPDEV'.

  call screen '500' starting at 10 10.
  perform call_screen.
else.

*****************************************************************
* CALLING SCREEN.
*****************************************************************
  call screen 0100.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 05:29:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792260#M1310158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T05:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need help regarding user checks.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792261#M1310159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Help Please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 09:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792261#M1310159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T09:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need help regarding user checks.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792262#M1310160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you defined your own dynpro: check the field attributes for your password field. There you can set it to display only '*'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No rocket science.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2009 10:40:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-help-regarding-user-checks/m-p/5792262#M1310160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-26T10:40:32Z</dc:date>
    </item>
  </channel>
</rss>

