fnd_user_pkg. UpdateUser - End Date remove users

Posted by mistake in the PL/SQL forum, until someone pointed out my mistake.

As part of an upgrade, we need to close the vast majority of our users.

I used the API fnd_user_pkg.updateuser to fill the end_date on the fnd_user table.

However, when I came to test removing the end date, I can't do it. In the example below, the end_date remains populated.
DECLARE
   CURSOR usercur
   IS
      SELECT fu.user_name
        FROM apps.fnd_user fu
       WHERE user_name = 'TEST_ACCOUNT';
BEGIN

   FOR myuser IN usercur
   LOOP
      fnd_user_pkg.updateuser(
         x_user_name      => myuser.user_name
       , x_owner          => 'CUST'
       , x_end_date       => NULL
      );
   END LOOP;

END;
On the example on this post:
http://apps2fusion.com/forums/viewtopic.php?f=99 & t = 108

They took the final date via:

x_end_date = > SYSDATE + 10000);

However, this isn't really remove the end date, it's just assigning a lot of time in the future.

I was wondering if I missed something obvious?

Any advice much appreciated.

Thank you

You must pass to_date (' ' 2 ',' J ') as the end_date. It's 1/2/4712.
If you pass this date, Oracle which deals as null. It will therefore remove the end_date in the table user.

Hope that answers your question
Sandeep Gandhi
OMKAR Technologies Inc.
Techno-Functional consultant
513-325-9026.

Tags: Oracle Applications

Similar Questions

  • How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    Hello

    How can I use the "fnd_user_pkg.updateuser" package to disable users in bulk?

    in EBS R12.1.3, oracle 11g.

    Please see the request for information of the user

    -------------------------------------------------------------------------------------

    SELECT

    SEPARATE

    FU. USER_NAME

    FULL_NAME EMPLOYEE_NAME

    , TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") LAST_LOGON_DATE, end_date, FU.start_date

    OF FND_USER FU, PER_ALL_PEOPLE_F PERX

    WHERE 1 = 1

    AND PERX. PERSON_ID = FU. EMPLOYEE_ID

    AND SYSDATE BETWEEN PERX. EFFECTIVE_START_DATE AND PERX. EFFECTIVE_END_DATE

    AND PERSON_TYPE_ID! = 1118 - excluded candidates iRec

    AND LAST_LOGON_DATE < = TO_DATE (December 31, 2012 ', "dd/mm/rrrr") and end_date is null

    ORDER BY TO_DATE (LAST_LOGON_DATE, "dd/mm/rrrr") / / desc

    ------------------------------------------------------------------------------------

    Concerning

    Ngoyi

    Hello

    You need to do the opposite of what the code in the discussion below is:

    fnd_user_pkg. UpdateUser - End Date remove users

    Kind regards

    Bashar

  • need to extend the end date of user using the API of the IOM

    Hello
    I have a requirement extension enddate to the user to some 30 days using IOM API-tcUserOperationsIntf. I know there is a Thor.API.Operations.tcUserOperationsIntf.updateUser (Thor.API.tcResultSet poUserResultSet, phAttributeList java.util.Map) method that can be used to update the data of the user in DB IOM.
    If someone has run this method then please let me know a procedure step by step to implement this method. I am new to using the API of the IOM.


    Thank you
    Kalpana.

    Try this:

    tcUserOperationsIntf userOperationsIntf = (tcUserOperationsIntf) getUtility ("Thor.API.Operations.tcUserOperationsIntf");

    protected void execute() {}
    try {}
    beginning of the custom code
    tcUserOperationsIntf oUserObj = (tcUserOperationsIntf) getUtility ("Thor.API.Operations.tcUserOperationsIntf");
                   
    System.out.println ("executing query");
    custom code starts
    tcUserOperationsIntf usrOps;
    The criteria map = new HashMap();
    Criteria.put ("Users.Key", "86821");
    System.out.println ("user key-86821");
                   
    tcResultSet users = oUserObj.findUsers (criteria);
    System.out.println (UsersList.getTotalRowCount ());
    Criteria.put ("Users.End Date 12:01:56.000000000 2012-06-24","" ");
    oUserObj.updateUser (users, criteria);
    } catch (Exception e) {}
                   
    }
    }

  • and once again fnd_user_pkg.updateuser

    Hi guys!

    I have a few questions and I'd appreciate if you find a few minutes and post an answer.

    (1) this parameter x_owner in the fnd_user_pkg.updateuser package mean? When I used x_owner = > "user lost all it's responsibilities I presented with x_owner = >"CUSTOM"all responsibilities becomes visible you have an idea?

    And the answer to my second question, I hope, will prevent for issues\questions even in the future.

    (2) is there a way to determine what parameters should be necessary and their description.

    Thank you

    Kirill.

    0b5bf3f3-151d-4099-8F8F-3c91f38f2c30 wrote:

    Hi guys!

    I have a few questions and I'd appreciate if you find a few minutes and post an answer.

    (1) this parameter x_owner in the fnd_user_pkg.updateuser package mean? When I used x_owner => "user lost all its responsibilities I have presented with x_owner-online 'PERSONALIZED' responsibilities have become visible again once you have an idea?

    And the answer to my second question, I hope, will prevent for issues\questions even in the future.

    (2) is there a way to determine what parameters should be necessary and their description.

    Thank you

    Kirill.

    (1) please see (when using FND_USER_PKG to toggle users what should be the value for X_OWNER?) (Doc ID 948191.1)).

    (2) Yes.

    http://ETRM.Oracle.com/pls/et1211d9/etrm_pnav.show_details?c_name=FND_USER_PKG&c_owner=apps&c_type=package%20BODY&c_detail_type=source

    How end-Date/remove a user of Applications (Doc ID 1064798.1)

    Thank you

    Hussein

  • The end or the end Date with a user role

    Hi Experts,

    Is there a way I can assign roles to users of the database with expiration date or end date with roles.

    My requirement is to assign a role to the users and the role should be deleted/removed after one week. Same user should continue to work with other assigned roles.

    My database is 11g.

    Thanks in advance,

    David

    Hi Santosh,

    such a device does not exist, so you will need to do this manually or to schedule a task to do it programmatically.

    Greetings,

    Damage ten Monkshood

  • You will need to add the number of days to the end date of the users.

    Hello
    I have a code where we adding the number of days (30) to the current date and update IDM DB user end date.
    Now, we have a requirement to add the number of days (30) to the existing fence of user instead of add to the current date.

    * public String incrementDate (int daysToAdd)
    {
    Start date
    log.info("NotifyLastDayOfService::incrementDate(): entrez»);
    SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-DD 00:00:00");
    Calendar c = Calendar.GetInstance ();
    c.Add (Calendar.DATE, daysToAdd); number of days to add
    String PROMOTIONDate = sdf.format (c.getTime ());
    log.info("NotifyLastDayOfService::incrementDate(): sortie»);
    return Nouvelle_date;
    }*/

    Have any body set up this scenario?
    Please suggest.


    Thank you
    Kalpana.

    You can try this as well

    where oimAttribute = "Users.End Date"

    public String updateOIMAttributeForDateType (String oimAttribute, Date endDate, long take, String daysToAdd)
    {
    tcUserOperationsIntf userOperationsIntf = null;
    HashMap modifyMap = new HashMap ();
    HashMap searchmap = new HashMap ();
    SimpleDateFormat formatter = new SimpleDateFormat ("yyyy-MM-DD hh: mm :"); ")
              
    try {}
    Calander cal = null;
    cal.setTime (endDate);
    Cal.Add (Calendar.DATE, Integer.parseInt (daysToAdd));
    Date Edate = cal.getTime ();

    modifyMap.put (oimAttribute, Edate);
    searchmap.put ("Users.Key", String.valueOf (take));
    userOperationsIntf = Platform.getService (tcUserOperationsIntf.class);
    tcResultSet searchset = (searchmap) userOperationsIntf.findAllUsers;
    userOperationsIntf.updateUser (searchset, modifyMap);
    return a SUCCESS;
    } catch (Exception e) {}
    If (Logger.isErrorEnabled ()) logger.error (e.getMessage ());
    error return;
    } {Finally
    try {}
    If (userOperationsIntf! = null) userOperationsIntf.close ();
    } catch (Exception e) {if (logger.isErrorEnabled ()) logger.error (e.getMessage ()) ;}}
    }

  • need to update the date of the end of the user using the API of the IOM

    We have a requirement where we need to update the date of the end of the user. The details of the user as usr_key, number of days to extend (such as 30 days or 60 days), and affects manager is provided by SOA (maybe by BPEL). In the java class, I need to add the number of days of the closing date of the user and then update the table of the usr by IOM API method - usrMap.put ("USR_END_DATE", updatedEndDate);

    I wrote a small program, but it has erros. Please help me in this situation.
    ' public boolean updateEnddate (String usrKey, String managerKey, String NombreJours) {}
    Boolean result = false;
    String NombreJours;
    int totalNumUsers = 0;
    HashMap usrMap = new HashMap();
    usrMap.put ("Users.Key", usrKey);
    usrMap.put ("USR_MANAGER_KEY", managerKey);
    try {}
    DateFormat sdfSource = new SimpleDateFormat("yyyy-MM-dd");
    Date date = sdfSource.parse("USR_END_DATE");
    SimpleDateFormat sdfDestination = new SimpleDateFormat("dd-MMM-yyyy");
    String userEndDate = sdfDestination.format (date);
    tcResultSet = this.usrIntf.findUsers (usrMap) users;
    totalNumUsers = usersList.getRowCount ();
    If (totalNumUsers > 0)
    for (int i = 0; i < totalNumUsers; i ++) {}
    usersList.goToRow (i);
    updatedEndDate = userEndDate + NombreJours;
    usrMap.put ("USR_END_DATE", updatedEndDate);
    this.usrIntf.updateUser (users, usrMap);
    result = true;
    }
    on the other
    result = true;
    }




    Thank you
    Kalpana.

    Calculate the new date

    /**
    * This method is used to obtain the new date after adding x-days
    @param strDate - date today
    @param daysToAdd - x-days
    * @return Nouvelle_date - date after the addition of x days
    */
    private String incrementDate (Date strDate, int daysToAdd) {}
    Start date
    Logger.info("NotifyLastDayOfService::incrementDate(): entrez»);
    SimpleDateFormat sdf = new SimpleDateFormat ("yyyy-MM-DD 00:00:00");
    Dim str As String = sdf.format (strDate);
    Calendar c = Calendar.GetInstance ();
    try {}
    c.setTime (sdf.parse (str));
    } catch (ParseException exception) e {}
    e.printStackTrace ();
    }
    c.Add (Calendar.DATE, daysToAdd); number of days to add
    String PROMOTIONDate = sdf.format (c.getTime ());
    System.out.println ("calculated End Date:" + PROMOTIONDate);
    Logger.info("NotifyLastDayOfService::incrementDate(): sortie»);
    return Nouvelle_date;
    }

    This should solve your problem :)

  • Help-ColdFusion - allowing a user search for records in a database by entering a startand end date - (CREATEODBCDATE)

    I want to allow a user to enter a beginning date and to set the period they want to find records of members who have joined some end dates. Funny, it is... I got half of the working time. For example I have 4 folders between 26/10/2005 and 01/08/2006. When I enter 01/01/2005 as startDate and endDate 31/08/2006, I get 4 records. However, if I change the endDate to 09/01/2006 I get all records in the database! ??? Why is this? I can't get my head around it!

    Here is my code:
    First the code for the form for the user to input search criteria on:

    < html >
    < body >
    < action = "FORM memberJDateSearch.cfm" method = "post" > "

    < P > start date: < input type = "text" name = "startDate" >
    < br > End Date: < input type = "text" name = "endDate" >
    < input type is 'reset' value is 'Clear' >
    < input type = "submit" value = "Submit" >
    < / MAKE >

    < / body >
    < / html >

    Pretty simple. Now, the code of the page process and display:

    < html >
    < body >


    < cfquery "memberJDateSearch" datasource = name = access "jpkelle2" >
    SELECT *.
    Members
    WHERE ((joinDate BETWEEN #CreateODBCDate (startDate) # AND #CreateODBCDate (endDate) #))

    < / cfquery >

    < table border = 1 bgcolor = "beige" cellpadding = '3' cellspacing = "0" >
    < b >
    < /Th > < th > Member ID
    Name < th > < /th >
    Sex < th > < /th >
    < th > Birth Date < /th >
    Address < th > < /th >
    < th > Email < /th >
    Date < th > joined < /th >
    < /tr >




    < CFOUTPUT Query = "memberJDateSearch" >

    < b >
    < td > < center > #memberID # < Center > < table >
    < td width = "15" > #forename # #initial # #surname # < table >
    < td > #sex # < table >
    < td width = "10%" > #disp('#dob#') # < table >
    < td > #address #, #town #, #county #, #postCode # < table >
    < td > #email # < table >
    < td width = "10%" > #disp('#joinDate#') # < table >
    < /tr >




    < / CFOUTPUT >

    < /table >

    < hr > < p > end of the list of members. < /p >

    < / body >
    < / html >


    any ideas? Please help me.

    Try formatting your dates first (before the call to CreateODBCDate). I just tried this on my test page and it worked correctly. I removed calls DateFormat, now dates in your format, and it didn't work. See if something like the following will help you:




    SELECT *.
    Members
    WHERE ((joinDate BETWEEN #CreateODBCDate (startDate) # AND #CreateODBCDate (endDate) #))

  • 554 5.7.1 &lt; END OF MESSAGE &gt;: end-of-data rejected: user not allowed to relay

    Help, please. I have problems sending emails and get this message

    554 5.7.1 < END OF MESSAGE >: end-of-data rejected: user not allowed to relay

    Please reach out to support by triggering a case to review this one.

  • End-of-data rejected: user not allowed to relay

    Help, please

    I can't send emails I get this message

    554 5.7.1 < END OF MESSAGE >: end-of-data rejected: user not allowed to relay

    I can receive emails [email protected]


    I created a folder for that matter you reported and will inform you by e-mail soon complete investigation. FYI file number is: 123134

  • IOM disables the user on the end date

    Hello

    We have inherited the IOM system therefore needs to check the default IOM. When we enter the current date as the end date, IOM automatically disables the user. This custom behavior or it's the default?

    I ask this question because the new requirement is that the user must be turned off at 18:00 the end day immediately after the reconciliations.


    Thanks in advance

    It is on the behavior of the box.

    Thank you
    Suren

  • To restart, a fictitious user account appears. I remove it in the (add or remove user account) article, but upon reboot, it is always

    * O.T. > fictitious user account deletion

    I have windows 7, on reboot, a fictitious user account appears.  I remove it in the (add or remove user account) article, but upon reboot, it is always.  How can I remove it permanently?

    Hi Ewa,

    I imagine the inconvenience that you are experiencing and will certainly help you in the right direction to solve the problem. However, I would be grateful if you could answer a few questions to refine the question in order to provide you with better assistance.

    1. You created this account, or he came to his own?
    2. You share this computer with another person?
    3. You did it all change important before the show?

    If this user account is not created by you, then it might be the virus/malware. So, I suggest you run a full scan using the Microsoft Safety Scanner (MSS) to ensure that the computer is virus-free.

    The Microsoft Safety Scanner free is a downloadable security tool that allows analysis at the application and helps remove viruses, spyware and other malicious software. It works with your current antivirus software.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

     

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

     

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Get back to us with all the necessary information and the result of the proposed suggestion. We will be happy to help you further.

    Kind regards

  • Alternate greeting - start and end date

    We have 8.6 connection of the unit. I know alternate greetings may have end dates, but our users also want the start dates. Is this possible? I have not seen it mentioned anywhere, but I thought I would check before giving up on this subject.

    Unfortunately not.

    Chris

  • How to remove 'users' in my new pc Windows 8

    How to remove 'users' in my new pc Windows 8

    Since an admin account > goto > Control Panel > users > manage users.  Realize that you will lose all the data of the user.

    So why do you?

  • Responsibility has been say-published after end date in Oracle Applications 11i

    Responsibility has been say-published after the end date. We have the end date, a responsibility, and when we ask ourselves the same back he is not visible.

    But we can see the backend responsibility. Could someone help us please on this?

    Finally, we found the problem, it is Version column is null in the FND_RESPONSIBILITY table, but the trace query that displays where the clause is:
    WHERE (version = ' 4 'or 'W' = version or version = am'), as well as the following changes:

    a. create a liability on your TEST instance and save it and assign it to your self. Verify that you can re - consider it.
    b. date of the end of the responsibility.
    c. check if you can re - question it.
    d. What is the result of the version column in the FND_RESPONSIBILITY table for the responsibility?
    e. If it has a value, no one out and see if you can re - consider the responsibility of the forms.
    f. If the problem recurs, change the version of the table '4' or 'W' and see if you can re - query responsibility.
    e. If you can now interrogate the responsibility, remove the end date and a test to see if you can use it.

    Problem has been resolved after changing the version. This has been resolved with the help of the Support of Oracle.

    Below the reference is useful:

    https://community.Oracle.com/thread/2438822?TSTART=0

Maybe you are looking for

  • Portege R830-10v / i7 / change internal SSD 225 GB

    Hello I need to change my flash drive SSD internal 225 GB for a 512 GB SSD! What should I do to the hardware and software level?Can I take any SSD? Thanks for the help? Best regards, Florence

  • Linux: network not recognized on toshiba m40-129 (gentoo 2005.0)

    Hey everybody, Today, I tried to start the installation cd of gentoo on my new laptop.It has an intel 2200 wireless and a marvell yukon wired NIC.modprobe nkge module it loads but it does not find the network interface cards.ipw2200 is detected autom

  • cannot talk to my brother overseas on msn

    I'm signed in to msn, but my brother says he's online but his watch offline please help

  • Help to remove/uninstall "iTunes."

    My Dell XPS M1330 laptop was purchased three years with Window Vista 64-bit; I had no problem with all installed software, including the iTunes64, it was working perfectly. I bought the iPhone G4, I tried to back up iPhone to my laptop using iTunes64

  • T410s recovery partition

    Got the T410s with SSD 128 GB. I used thinkvantage tools and that you already performed a restore disc on total DVD 3 dvd system and 2 for data. I want to erase the 10 GB recovery partition and experiment with different operating systems My question