<?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: password code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307283#M160441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;AS PER YOUR REQUIREMENT&lt;/P&gt;&lt;P&gt;YOU WANT TO ACCEPT THE VALUE FROM A ZABLE AND YOU DONT WANT TO CREATE A SELECTION SCREEN FOR THIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF THERE WONT BE ANY SELECTION SCREEN THAN HOW COULD YOU DIRECTLY SELECT THE VALUE FROM THE ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN YOU GIVE SOME MORE DETAIL ABOUT YOUR REQUIREMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 May 2006 07:21:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-31T07:21:37Z</dc:date>
    <item>
      <title>password code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307279#M160437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;         I want to write a code for selection screen for username and password but the code should not be hard coded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         It will accept values from a Ztable and check whether that password exists there or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         If the password dont exist it will throw error The password should match the corresponding user id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Pls experts help me out which FM to be used and how to proceed with the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   With regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Abir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 07:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307279#M160437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T07:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: password code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307280#M160438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this code,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  z_pass_word  MESSAGE-ID zz                           .

data: wa like ztable.

PARAMETERS: p_user TYPE sy-uname,
            p_passwd(10).


AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name = 'P_PASSWD'.
      screen-invisible = 1.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.

  at selection-screen.

    SELECT SINGLE * FROM ztable INTO wa WHERE username = p_user
                                        AND   password = p_passwd.

    IF sy-subrc &amp;lt;&amp;gt; 0.
      MESSAGE e000 WITH 'Please enter valid user id and password'.

    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 07:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307280#M160438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T07:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: password code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307281#M160439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai &lt;/P&gt;&lt;P&gt;Password should be in some other format &lt;/P&gt;&lt;P&gt;I think it is in ascii format or Hexadescimal format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before comparing you will translate into the existing format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 07:13:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307281#M160439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T07:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: password code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307282#M160440</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 with these FM's :&lt;/P&gt;&lt;P&gt;SNC_LOGIN_EXTERNAL_ID&lt;/P&gt;&lt;P&gt;SUSR_USER_EXTID_LOOKUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its useful, award points pls..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bharadwaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 07:18:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307282#M160440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T07:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: password code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307283#M160441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;GOOD&lt;/P&gt;&lt;P&gt;AS PER YOUR REQUIREMENT&lt;/P&gt;&lt;P&gt;YOU WANT TO ACCEPT THE VALUE FROM A ZABLE AND YOU DONT WANT TO CREATE A SELECTION SCREEN FOR THIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF THERE WONT BE ANY SELECTION SCREEN THAN HOW COULD YOU DIRECTLY SELECT THE VALUE FROM THE ZTABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN YOU GIVE SOME MORE DETAIL ABOUT YOUR REQUIREMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;MRUTYUN&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 07:21:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307283#M160441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T07:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: password code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307284#M160442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi please copy and run the code below, it will display '*' for the password field.. award points if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZKSP_PASSWORD                                               *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;                                                                     *
*&amp;amp;                                                                     *
*&amp;amp;---------------------------------------------------------------------*

report  zksp_password .
parameters: p_pass type xuncode.

*---------------------------------------------------------------------*
at selection-screen output.

  loop at screen.
    if screen-name = 'P_PASS'.
      screen-invisible = '1'.
      modify screen.
    endif.
  endloop.

*---------------------------------------------------------------------*
start-of-selection.

  write: / p_pass.


                        .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For getting the password value from data base table the follow the event AT SELECTION given by vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 07:23:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307284#M160442</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2006-05-31T07:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: password code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307285#M160443</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;Cant I do it bu using any FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; With regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Abir.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 May 2006 08:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307285#M160443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-31T08:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: password code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307286#M160444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try it with G_CHECK_PASSWORD ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mirko&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2006 12:50:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/password-code/m-p/1307286#M160444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-17T12:50:36Z</dc:date>
    </item>
  </channel>
</rss>

