Set Password for Custom application

HI all,
I want to set password in my zdevelopment.
I have a screen where user first need to keep password and then only he should be able to process further.
Now my query is how to encrypt the password.
Kindly guide....

Hi,
May be this program willl give you some hint..
selection-screen begin of block block.
parameters: program(30) obligatory.
selection-screen begin of line.
selection-screen comment 1(8) pwd.
selection-screen position 35.
parameters: password(8) modif id aaa.
selection-screen end of line.
selection-screen end of block block.
data: message(60) type c.
at selection-screen output.
loop at screen.
if screen-group1 = 'AAA'.
screen-invisible = '1'.
modify screen.
endif.
endloop.
initialization.
pwd = 'Password'.
start-of-selection.
tables: trdir.
User name and password check
if password <> 'ABCDEFG'.
write: / 'Wrong password'.
exit.
endif.
SAP owned?
if not program cp 'Z' and not program cp 'Y'.
write: / 'Do not hide original SAP programs!'.
exit.
endif.
Exists?
select single * from trdir where name = program.
if sy-subrc <> 0.
write: / 'Program does not exists!'.
exit.
endif.
Does it have a current generated version?
data: f1 type d, f3 type d.
data: f2 type t, f4 type t.
EXEC SQL.
SELECT UDAT, UTIME, SDAT, STIME INTO :F1, :F2, :F3, :F4 FROM D010LINF
WHERE PROG = :PROGRAM
ENDEXEC.
if f1 < f3 or ( f1 = f3 and f2 < f4 ).
write: / 'The program has no recent generated version!'.
exit.
endif.
Compose a new program name
data: new_name(30), i type i, j type i.
new_name = program.
do 30 times.
i = sy-index - 1.
new_name+i(1) = '_'.
Search for acceptable program name variations
j = 0.
select * from trdir where name like new_name.
j = j + 1.
endselect.
if j = 1.
exit.
endif.
new_name = program.
enddo.
Cannot generate appropriate program name
if j > 1.
write: / 'Cannot generate appropriate program name'.
exit.
endif.
Check if it is already hidden
data: f5(30).
EXEC SQL.
SELECT PROG INTO :F5 FROM D010S WHERE PROG = :NEW_NAME
ENDEXEC.
if f5 is initial.
There is no such hidden program, hide it
EXEC SQL.
UPDATE D010S SET PROG = :NEW_NAME WHERE PROG = :PROGRAM
ENDEXEC.
concatenate 'Program' :program 'was hidden.'
into message separated by space.
else.
There is already a hidden program there, unhide it
EXEC SQL.
UPDATE D010S SET PROG = :PROGRAM WHERE PROG = :NEW_NAME
ENDEXEC.
concatenate 'Program' :program 'was restored.'
into message separated by space.
endif.
write message.
end of program
Regards
Mudit

Similar Messages

  • Setting password for numbers application

    I bought numbers application from apple store.
    I want to set up password for " numbers " application like MS office work out on its file.
    How can i do for that??
    Because my one year old son is playing ipad &amp; dont want to get any accident to my inportant accounts in numbers.
    Guide me please!

    Unfortunately, you cannotmset up a password for a single app.  It is sort of an all or nothing deal.  You can wall off some apps using restrictions, but numbers is not one of them.  Probably the bestnyou can do is bury the numbers app inside of a folder full of boring stuff that he will have no interest in.
    The pad was designed as a single user device.

  • How to set password for every application

    Hi,
    As a administrator how to set password for every weblication in sharepoint 2013.
    Is there any way to set?
    Thanks,

    Who's password are you trying to set? Please provide more details.

  • How do i set password for one folder ?

    my mobile is nokia e51 , how do i set password for my personal folder ?
    Message Edited by shajeer on 25-Jun-2008 08:21 PM

    how do i use Advanced Device Locks to password-protect the gallery, or individual applications. ? thank u ...
    Message Edited by shajeer on 26-Jun-2008 08:00 AM

  • Set password for messaging lumia 800

    hi,
    i have a nokia lumia 800 with windows phone 7.8.
    there is a way or application that can set password for messaging, when I or another person want to acces "messaging" it must to insert password, a pin with 4 digits for example.
    thank you!
    Solved!
    Go to Solution.

    Nah, buddy. It's not possible on the phone.
    Most of the applications I found in the Marketplace allow sending of encrypted messages in which recipient needs to decrypt, but you can check the Marketplace yourself. I may miss one that suits what you need: http://www.windowsphone.com/en-us/store/search?q=message+password
    However, you can create a password on the phone by going to Settings and then Lock+Wallpaper. This locks the phone and you need to input the password before you can access your phone.
    Cheers.

  • Set password for pdf,plzzzzzz help

    hello everybody,
    i'm developing a software in which i let the user to import their pdf and open those pdf .pdf will be open in a acrobot reader.
    now i want let the user to set password for his pdf file to protect his file from unauthorized access.
    until now i have found some APIs but they all having different problems and still i'm stuck there
    any one got the idea to help me to go furthure
    thx

    http://www.coderanch.com/t/63193/Other-Open-Source-Projects/iText-Action-password-protection
    - Saish

  • What is the factory set password for the administrator for a macbook pro 13" retina display?

    what is the factory set password for the administrator for a macbook pro 13" retina display?

    Welcome to Apple Support Communities
    Macs don't come with a password. You have to set up the password during the initial setup. If you have forgotten your password, follow these steps to reset your password > http://discussions.apple.com/docs/DOC-4101

  • How to use Cache Management Library (CML) for custom applications?

    Hello,
    We are planning the migration of multiple applications (J2EE, Portal, Web-Dynpro for Java) from 7.01 to 7.3 and we would like to replace some custom cache implementations with a central cache management provided by the SAP Web-AS Java.
    Several SAP standard services (e.g. UME, Configuration Manager, Scheduler) seems to use the "Cache Management Library" (CML):
    [http://help.sap.com/saphelp_nw73/helpdata/en/4a/f833eb306628d2e10000000a42189b/frameset.htm]
    Such caches can be monitored using SAP Management Console (AS Java Caches).
    Portal Runtime (cache_type=CML) and Web Page Composer can also be configured to use CML:
    [http://help.sap.com/saphelp_nw73/helpdata/en/49/d822a779cf0e80e10000000a42189b/frameset.htm]
    [http://help.sap.com/saphelp_nw70ehp2ru/helpdata/en/13/76db395a3140fcb17b8d24f5966766/frameset.htm]
    So our questions:
    How to use CML for custom applications?
    Is there any example or documentation available?
    Kind Regards,
    Dirk

    Thanks Vidyut! You've answered my question.
    I placed the jar file in the $CATALINA_HOME/shared/lib directory. But where should I place the taglib TLD file? And how should I reference it in web.xml?
    Currently, my web.xml is as follows and it doesn't work.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <taglib>
    <taglib-uri>http://abc.com</taglib-uri>
    <taglib-location>c:\Tomcat\shared\lib\mytags-taglib.tld</taglib-location>
    </taglib>
    </web-app>
    Thanks again!
    Joe

  • Last time, I've set password for if my iPod is lost, and now I forgot it

    Hi. Last time, I've set password for "Find my iPhone" if my iPod is lost and now I forgot the password for it. Is there any ways that you can help me to unlock it by today?

    Forgotten Screen-Lock Passcode
    Connect the iOS device to your computer and try to make a backup
    iOS: How to back up
    Then restore via iTunes. The iOS device will be erased. Place the iOS device in Recovery Mode if necessary to allow the restore.
    If recovery mode does not work try DFU mode.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    For how to restore:
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store    

  • How to set password for photos from home screen? Please help.

    Hi,
    Can anyone pls help to set password for my Iphone 4s.
    My friends/family often use my phone for gaming purpose. I don't want them to see my photos/gallery/videos.
    How can I protect my personal things from others?
    Thnx.
    Rgds.

    There is no way to set a password for photos. You could upload all of your photos to something like DropBox, then sign out of the app. Or, you could only let people you trust to respect your privacy touch your phone.

  • Set password for listener

    hi all.
    i am using oracle database 11g R2 and Oracle Enterprise Linux 5.5 64bit.
    i have been already set password for listener but when i start and stop then its not asking for Authentication?
    plz guide me thanks in advance.

    hi
    i have been already done that what you suggested for me,current listener is listener.
    even i used netmgr to check authentication tab.
    i am already member of DBA Group.
    here is my listener settings.
    # listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0/dbhome_2/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    PASSWORDS_LISTENER = 587DE10070B3EF82
    #----ADDED BY TNSLSNR 06-MAR-2012 11:23:42---
    ADMIN_RESTRICTIONS_LISTENER = ON
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost2)(PORT = 1521))
    ADR_BASE_LISTENER = /u01/app/oracle
    SAVE_CONFIG_ON_STOP_LISTENER = TRUEEdited by: Kelly on Mar 6, 2012 3:55 AM

  • HT201304 How do I set password for all in app purchases?

    How do I set password for all in app purchases? xx

    In-App purchases cannot be made without entering your iTunes store account password.

  • Nokia C2-03 Set Password for Memory Card

    Hi All,
    I m using C2-03, I found an option to set password on memory card.
    Apps and Games > Memory Card > Mem. card opt. > Set password
    for my privacy I set a password but the Memory card still opens without asking. Can anyone plz inform me how do I secure my private data using password?
    Thanks,
    Khaild.
    Solved!
    Go to Solution.

    It will continue to open up without the password. The password will only be asked if you insert the memory card in a different phone and it is only required once. It will keep opening up normally from the next time.
    That password isn't there to keep your memory card protected inside your phone but instead to keep others from using your memory card. As long as the password is there, the phone can't be used on any other phone or even on a PC through card reader.

  • How can i set password for a backup?

    ::I am using 10g xe
    I am gettin gbackup through RMAN, how can i set password for each backup? I want to protect my backup so that no one other could use it if he copies the backup files.
    Faheem

    Just use "SET ENCRYPTION ON IDENTIFIED BY password ONLY" command in your RMAN scripts. Look at the advanced backup manual for details: http://download-east.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmbackp006.htm#sthref632
    Daniel

  • How to set  password for BPEL domain

    Hi,
    I am new to SOA.
    I want to setup client-server environment for few developers.
    I installed SOA 10.1.3.3 in the server machine.
    And I created few domains in BPEL, one for each developer.
    It didn't ask me to set the password while creation of the domain.
    Please let me know how to set password for newly created domain so that each developer login to his/her own domain and manage processes.
    Thanks!!!

    Thanks for the prompt response.
    What roles should I give to my developers to allow them to manage their services in ESB control, BPEL control, WSM control.
    And I would like to know how to set the password for a BPEL domain too.
    Message was edited by:
    user644377

Maybe you are looking for