<?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: Set Password for Custom application in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668768#M1098243</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; These 2 may help you for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIEB_PASSWORD_ENCRYPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIEB_PASSWORD_DECRYPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general all FMs related to Password Encryption are in this Function group - &lt;STRONG&gt;FIEB_PASSWORD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Oct 2008 10:04:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-17T10:04:07Z</dc:date>
    <item>
      <title>Set Password for Custom application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668767#M1098242</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 set password in my zdevelopment.&lt;/P&gt;&lt;P&gt;I have a screen where user first need to keep password and then only he should be able to process further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my query is how to encrypt the password.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly guide....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 09:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668767#M1098242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T09:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Password for Custom application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668768#M1098243</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; These 2 may help you for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIEB_PASSWORD_ENCRYPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FIEB_PASSWORD_DECRYPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general all FMs related to Password Encryption are in this Function group - &lt;STRONG&gt;FIEB_PASSWORD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Kothand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 10:04:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668768#M1098243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T10:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set Password for Custom application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668769#M1098244</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;Thanks for you reply...&lt;/P&gt;&lt;P&gt;My query is how to set password &lt;/P&gt;&lt;P&gt;and then read password.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 10:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668769#M1098244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T10:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Set Password for Custom application</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668770#M1098245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; May be this program willl give you some hint..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block block.&lt;/P&gt;&lt;P&gt;parameters: program(30) obligatory.&lt;/P&gt;&lt;P&gt;selection-screen begin of line.&lt;/P&gt;&lt;P&gt;selection-screen comment 1(8) pwd.&lt;/P&gt;&lt;P&gt;selection-screen position 35.&lt;/P&gt;&lt;P&gt;parameters: password(8) modif id aaa.&lt;/P&gt;&lt;P&gt;selection-screen end of line.&lt;/P&gt;&lt;P&gt;selection-screen end of block block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;data: message(60) type c.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'AAA'.&lt;/P&gt;&lt;P&gt;screen-invisible = '1'.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;pwd = 'Password'.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: trdir.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;User name and password check&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if password &amp;lt;&amp;gt; 'ABCDEFG'.&lt;/P&gt;&lt;P&gt;write: / 'Wrong password'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SAP owned?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not program cp 'Z&lt;STRONG&gt;' and not program cp 'Y&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;write: / 'Do not hide original SAP programs!'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Exists?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select single * from trdir where name = program.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write: / 'Program does not exists!'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Does it have a current generated version?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: f1 type d, f3 type d.&lt;/P&gt;&lt;P&gt;data: f2 type t, f4 type t.&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;SELECT UDAT, UTIME, SDAT, STIME INTO :F1, :F2, :F3, :F4 FROM D010LINF&lt;/P&gt;&lt;P&gt;WHERE PROG = :PROGRAM&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if f1 &amp;lt; f3 or ( f1 = f3 and f2 &amp;lt; f4 ).&lt;/P&gt;&lt;P&gt;write: / 'The program has no recent generated version!'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Compose a new program name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: new_name(30), i type i, j type i.&lt;/P&gt;&lt;P&gt;new_name = program.&lt;/P&gt;&lt;P&gt;do 30 times.&lt;/P&gt;&lt;P&gt;i = sy-index - 1.&lt;/P&gt;&lt;P&gt;new_name+i(1) = '_'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Search for acceptable program name variations&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;j = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from trdir where name like new_name.&lt;/P&gt;&lt;P&gt;j = j + 1.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if j = 1.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new_name = program.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Cannot generate appropriate program name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if j &amp;gt; 1.&lt;/P&gt;&lt;P&gt;write: / 'Cannot generate appropriate program name'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if it is already hidden&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: f5(30).&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if f5 is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;There is no such hidden program, hide it&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;UPDATE D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;concatenate 'Program' :program 'was hidden.'&lt;/P&gt;&lt;P&gt;into message separated by space.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;There is already a hidden program there, unhide it&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;UPDATE D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'Program' :program 'was restored.'&lt;/P&gt;&lt;P&gt;into message separated by space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="3" type="ul"&gt;&lt;P&gt;end of program&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mudit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2008 10:35:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-password-for-custom-application/m-p/4668770#M1098245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-17T10:35:32Z</dc:date>
    </item>
  </channel>
</rss>

