Create users for my application

Hi! I'd like to make an administrative page so I can create users for my application. Let's say that I have following fields: username, first name, lasta name, password, etc.
Does anyone have an example? Or a short description about what I have to do.
Thanks a lot!

Thanks Jes. I looked at that thread. As it's said there, I created my custom table of users and a function with 2 parameters(username and password).
I was thinking to make a process which calls my function and take as parametres the (:P101_USERNAME,:P101_PASSWORD). I wrote some code in my function. But when I want to create the process, I got the next error:
<b>ORA-06550: line 3, column 1: PLS-00103: Encountered the symbol "END" when expecting one of the following: := . ( % ; The symbol ";" was substituted for "END" to continue.</b>
My function is this:
create or replace function "AUTENTIFICATION"
(p_username in VARCHAR2,
p_password in VARCHAR2)
return BOOLEAN
is
if p_username IS NULL or
p_password IS NULL then
return false;
end if;
if p_username NOT IN
(select username
from users) then
return false;
end if;
if p_password NOT IN
(select passw
from users
where username = 'p_username') then
return false;
end if;
And in the PL/SQL Page Process I'm trying to put the following:
<b>AUTENTIFICATION(:P101_USERNAME,:P101_PASSWORD) </b>, when I get the error.

Similar Messages

  • How to create a reference user for B2C application?

    Hello,
    Can somebody please tell me how to create a reference user for B2C application?
    I am trying to create a new account on the B2C site. It is giving me a null pointer exception. I have not created a reference user for B2C application.
    Is there any documentation available to explain the steps required for this?
    Thanks,
    Harsha

    Hi Harsha,
    Please lookup http://help.sap.com/saphelp_crm40sr1/helpdata/en/be/511378ab1311d4b32b0050da4cccf0/frameset.htm for more information.
    Cheers,
    Ashok.

  • Error while creating user for a  domain

    i am developing a web-application which is hosted on tomcat server.
    it is creating domains and users at another remote domain server.
    localy it is working fine..
    but when i test it online..
    the problem is,
    sometimes it works fine ,the domains are being creted at remote server..
    but sometimes it delivers error that domain at remote server can not be created.
    Is it due to fact that theat some errornous code in the buffer of application have older versions of applications causing the error ?
    Code::
    if(strPlanId.equalsIgnoreCase("3")) {
                    //Create domain account  for planid=3 plantype=Cp
                    blnOK=false;
    passwordGS comes from database
    strUrl="http://sosync.net/sosync/admin?pwd="+passwordGS+"&action=user_createdomain&domain="+strSubDomain+".gosync.net&adminpassword=aspire3002&diskquota="+longdk;  
                    u=new URL(strUrl);
                    uc=(HttpURLConnection)u.openConnection();
                    code=uc.getResponseCode();
                    if(code == 200) {
                        rUrl="/TransCompleteServlet";
                        blnOK=true;
                        uc.disconnect();
                    } else {
                        rUrl="/GSView.jsp?page=GSError.jsp?REQ=Unknown";
                    if(blnOK) {
                        String strUrlUser="http://gosyncdesk.net/gosync/admin?pwd="+passwordGS+"&action=user_createuser&username="+strEmailId+"&password="+strPassword+"&domain="+strSubDomain+".gosync.net&communityname=Default&firstname="+user.getFirstName()+"&lastname="+user.getLastName();
                       URL u1=new URL(strUrlUser);
                    HttpURLConnection   uc1=(HttpURLConnection)u1.openConnection();
                        code=uc1.getResponseCode();
                        response1=uc1.getResponseMessage();
                        if(code == 200) {
                            rUrl="/TransCompleteServlet";
                            String strUrlTZ="http://gosyncdesk.net/gosync/admin?pwd="+passwordGS+"&action=user_setuserpreference&username="+strEmailId+"&domain="+strSubDomain+".gosync.net&name=web_timezone&value='"+timeZone+"'";
                            u=new URL(strUrlTZ);
                            uc=(HttpURLConnection)u.openConnection();
                            code=uc.getResponseCode();
                              if(code != 200) {
                               rUrl="/GSView.jsp?page=GSError.jsp?REQ=Unknown";
                        } else {
                            rUrl="/GSView.jsp?page=GSError.jsp?REQ=Unknown";
                            mailUtil.sendMail_admin("Error In Creating  User for the Domain","While creating domain for "+user.getEmail()+" user could not be created due to following reason: <BR> "+response1+"<br>GoSync UserName:"+strEmailId+"<br>GoSync Password:"+strPassword+"<br>GoSync Domain :"+strSubDomain+".gosync.net and URl String was :"+strUrlUser+"");
                }

    if the problem is caching try setting the useChasses to false
    uc.setUseCaches(false);

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • Create user for CPS in _ UPPER CASE LETTERS _ if using JSM on SolMan

    only create users for CPS in UPPER CASE LETTERS if using JSM on SolMan
    Dear CPS Admins,
    If you plan to use Job Scheduling Management (JSM) on SAP Solution Manager together with CPS by Redwood please always create any users in CPS only with upper case letters to avoid issues in the communication between SolMan and CPS.
    The user creation for CPS is done in the UME (Java user administration, alias /useradmin).
    Actually the CPS user itself is only created in CPS during the first logon.
    Both CPS and the Java UME are case sensitive. So you can create users in uppercase, lowercase or mixed letters. But of course the system does still not allow duplicate names. So you can either create MUELLERP, MuellerP or muellerp - but not multiple of them.
    Now, if the SolMan communicates with CPS for Job Scheduling, the actual user name is taken in some kind of a "trusted RFC like" way and checked on the CPS system connected to the SolMan. If the current SAP user does not exist on CPS no activities are possible, neither in read mode (read existing CPS jobs) nor in write mode (change existing jobs or create new ones).
    Unfortunately the Solution Manager transmits the current user name to CPS only in upper case letter. So if the CPS user was not created in UPPERCASE letters in CPS the communication will fail. Therefore, think about creating CPS users in UME only in UPPERCASE letters. Changing this later is difficult to impossible.
    Best regards,
    Peter

    hi,
    I tried to reproduce your issue but I was not able to create a UME user with lower case letters.
    UME automatically converted the user name into upper case after saving. So even if I enter "cps" as user name UME stored the user name as "CPS".
    (maybe that happend because of the existing SU01-UME integration in our SolMan system)
    If UME would be case sensitive I would expect that it is possible to create the user "CPS", "cPs" and "cps".
    Regarding the SolMan-CPS connectivity:
    Transaction SU01 allows only upper case letters (in user name and alias). Since you're starting from an ABAP system only user names with upper case letters are supported. It's a technical constraint of the ABAP user management that user names consist of upper case letters only.
    Kind regards,
    Martin

  • Needed validation when creating user for employee in HRUSER transaction

    hi All,
    I wanted to put validation in HRUSER TCode  when we are creating user for an employee by selecting exit module for user name and password
    in my scenario I want to remove the first alphabet of user name that is P and with that I want to set a default password can anyone suggest me includes.
    Please find the attached snap.

    Solved it for myself
    refer the link:
    Dear all,
    Regards,
    Siva

  • Creating Alias for any application which has been integrated into portal

    Hi All,
    How to create Alias for any application which has been integrated into Portal?
    What is portal alias?
    What is URL alias?
    What is the difference between all the three?
    Thanks,
    Jyothi.
    Edited by: Venkata Naga Jyothi on Nov 23, 2011 10:18 AM

    Hi jyothi,
    1. For your first question Regarding How to create Alias for any application which has been integrated into Portal? Can you please be more clear here my question is why do you need to create alias for applications that are integrated into the portal.
    2. For your second and third questions find the below links
    http://help.sap.com/saphelp_nw70/helpdata/en/6e/8590f1d6d349c9adc34c6a8085189b/content.htm
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10da65ed-615b-2d10-efbc-ed07a5385633?QuickLink=index&overridelayout=true
    Thanks,
    Rahul.
    Edited by: rahul.girmaji on Nov 23, 2011 6:29 PM

  • Create users for teradata in ADAM / Acitve Directory

    Hi
    I was wondering if you could help me with the ability to create a user in AD / Adam? I am trying to write the powershell code to create users for Teradata connectivity. the manual process is to use adsiedit and create the users through groupof names class.
    This is what I have that is NOT working and was looking where to go from here.
    $dom=[ADSI]"LDAP://OU=Users,OU=dev,OU=tdev,dc=acme,dc=com"
    $obj = $dom.Create('GroupOfNames', 'CN=ASmith')
    $obj.SetInfo()
    any help would be greatly appreciated.
    Thank you
    John R Remillard 

    Hello,
    You should ask in the
    Windows PowerShell forum.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Error in creating user for solaris

    Hi.....
    I am using IDM 6.0 version and configured resource solaris in IDM...but when tried to assign a user to solaris....the user is getting created in solaris box and resource exit for that user...but when tried to click on user for display or to update getting the Error
    ERROR:Unresolved rule: getDefaultShell.
    I dont know what to do...can any one help me please.....

    I got solution to my question i had to import shellrule file from /sample directory to IDM.

  • How to create users for iFS9R2???

    On iFS9R1 and earlier it was possible to create users from the web GUI using an administrative user's account. On iFS9R2 it wasn't possible, I only could create groups or folders, there wasn't even a menu entry under "new".
    Or did I miss or faulty configured something?
    +Lutz                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Matt,
    I'm using the iFS credential manager. And yes, I can create users using the iFS Manager tool. But with earlier releases it was also possible to create users from the iFS web GUI. Strange thing is that from the iFS Manager it is not possible (at least I didn't find one right now) to delete users, from the web GUI it is!
    Anyway, seems the best way would be OID as this is also be used by the new iAS and it might avoid the need for having two seperate user managements.
    Thanks for the hint!
    +Lutz                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create users for B2B console in SOA Suite 11g?

    Hi,
    I have installed SOA Suite 11g and created a new user in weblogic server and assigned groups Deployers, Monitors & Operators. On trying to login(http://hostname:port/b2bconsole) using this new user, im not able to login and the below error is logged.
    "There are no trading partners for this user".
    Can someone plesae guide me on how to create a new user for B2B as i dont want to grant adminstrators group to developers.
    Thanks,

    Hi,
    Please login as the weblogic server boot user into b2bconsole and then go to users tab of the host trading partner
    and search for the newly added user [ provide full username ]
    and then assign the role as administrator / monitor from there.
    once this is done.. the newly added user should be able to login to the b2bconsole..
    monitors have read only access and less priveledges..
    Regards,
    Vijay

  • How to create setup for Java Application?

    Hello,
    I have created one Java Application. Now I want to create setup for that. I want to know if there is any tool is available for Java Application. If yes, then please help me to get that.
    My emal id is "[email protected]"
    Thanks in advance.
    Sam

    Go to www.zerog.com
    Download InstallAnyWhere4now (free)
    it is Awsome youll love it
    M
    bakbjo

  • Create users for other clients from client 000

    Hello!
    I have the following question:
    What is the Tcode allows me to see all created users (perhaps wuth their password) in all clients from e.g. client 000?
    Is it possible to create new users for other clients from client 000?
    Thank you very much!
    regards
    Thom

    <b>SU10 User Mass Maintenance</b>
    SCUA Central User Administration
    SCUM Central User Administration
    SCUG Copy users
    SU01/SUCOMP User Maintenance/User company address maintenance
    SU01D User Display
    SCUL Central User Management Log

  • Admin can create user for specific company

    Hi all,
    I have requirement to provide authoriaztion to 3 basis admin in the way that  they can use su01, pfcg or any basis related tcode but one should be restricted to one company say 'A' only... i.e. I have 3 basis admin A, B and C  on single system and 3 comanies say DEF, PQR and XYZ .  Now A can create use id for DEF company only...same for the rest of the user and company..
    Is it possible n what way ?
    Rgds
    D L

    Of course this can be done.
    Here you would be using the S_USER_GRP authorization object.
    Giving access this authorization will allow user A to only manage users in group DEF
    S_USER_GRP
    ACTVT 02
    GRP 'DEF'
    Giving access this authorization will allow user C to only manage users in group XYZ
    S_USER_GRP
    ACTVT 02
    GRP 'XYZ'
    Create user groups via transaction SUGR.
    Read more at:
    http://help.sap.com/saphelp_nw70/helpdata/EN/fa/f63f4222fab16be10000000a155106/frameset.htm
    Good luck
    Regards Fredrik

  • Creating Users for Oracle DB residing in xMII server

    Hi,
    We are on xMII 12.0.3 Build(107). We have the Oracle 10g database residing in the xMII server. Now, in order to create users to access the DB, do we have to create in SAP front or externally create users on oracle front?
    Thanks in advance,
    Regards,
    Prasanna

    create users on oracle front.

Maybe you are looking for