How to set Current User in moss 2007 for Authentication....

Hi Team,
We have current running website where we have user id to login but now requirement is that user will login with his Email address. Email is stored in active directory, I'm able to login with fba authentication.  
I'm able to retrieve the user id of current user using Email but
I am NOT able to set that user id for current user for further authentication using Moss 2007.
Please find the source code for login and authentication page:
//---------------------------Login Page--------------------//
    public partial class Login : System.Web.UI.UserControl
        #region Decleration
        string LoginStatus = null;
        string UserCurrent = null;
       static SPUser siteuser;
       // private static string _randomNumbercheck;
        //private static bool IsLoggedin;      
        Random random;
        #endregion       
        #region Page Load
        protected void Page_Load(object sender, EventArgs e)
            this.hplchangepw.Visible = false;
            this.hplmytask.Visible = false;
            string desturl = SPContext.Current.Site.Url;
            if (!IsPostBack)
                try
                    string str;
 SPWeb web = SPContext.Current.Web;
                         SPUser siteuser = web. .CurrentUser; 
                    //SPUser siteuser = spWeb.EnsureUser(username);
                    str = (siteuser == null ? "" : siteuser.ToString());
                    this.Login.TitleText = "";
                    this.Login.DestinationPageUrl = desturl;
                    //if (HttpContext.Current.Request.UrlReferrer != null)
                    //    if (this.Page.User.Identity.IsAuthenticated && ((Session["test1"].ToString() == _randomNumbercheck) || LoginControl.Class1.IsLoggedIn))
                     if (this.Page.User.Identity.IsAuthenticated)
                           // _randomNumbercheck = "";
                            this.hplregister.Visible = false;
                            this.hplforgetpassw.Visible = false;
                            this.hplchangepw.Visible = true;
                            this.hplmytask.Visible = true;
                            this.Login.Visible = false;
  if (str.StartsWith("fba_"))
                                string name = str.Split(':').GetValue(1).ToString();
                                LoginnameLbl.Text = "<b>" + name.ToString() + "</b>,<br><br>Haryana Urban Development Authority Welcomes
You. <br><br><br><b><i>\"In The Service Of Masses\"</i></b>";
                            else
                                string name = str.Split('\\').GetValue(1).ToString();
                                LoginnameLbl.Text = "<b>" + name.ToString() + "</b>,<br><br>Haryana Urban Development Authority Welcomes
You. <br><br><br><b><i>\"In The Service Of Masses\"</i></b>";
                        else
                            this.hplchangepw.Visible = false;
                            this.hplmytask.Visible = false;
                            this.Login.Visible = true;
                            LoginnameLbl.Text = "";
                            HttpContext.Current.Session.Clear();
                            HttpContext.Current.Session.Abandon();
                catch (Exception ex)
                    //HttpContext.Current.Session.Clear();
                    //HttpContext.Current.Session.Abandon();
        #endregion
        #region Get Audit Informations
        public void GetUserInfo()
            try
                string user = Login.UserName;
                SPSecurity.RunWithElevatedPrivileges(new SPSecurity.CodeToRunElevated(delegate()
                    using (SPSite oSite = new SPSite(SPContext.Current.Site.ID))
                        using (SPWeb web1 = oSite.OpenWeb(SPContext.Current.Web.ID))
                            SPListItem item = null;
                            SPListItemCollection listItems = null;
                            web1.AllowUnsafeUpdates = true;
                            siteuser = web1.EnsureUser(Session["User"].ToString());// spWeb.EnsureUser(login);
                            listItems = web1.Lists["Audit_Trail"].Items;
                            item = listItems.Add();
                            item["User_ID"] = UserCurrent.ToString(); //Request.ServerVariables["AUTH_USER"];
                            string ip = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
                            if ((ip == null) || (ip == "") || (ip.ToLower() == "unknown"))
                                ip = Request.ServerVariables["REMOTE_ADDR"];
                            item["IP_Address"] = ip;
                            item["Login_Date"] = System.DateTime.Now;
                            item["Login_Status"] = LoginStatus.ToString();
                            item.Update();
                            web1.AllowUnsafeUpdates = false;
                            web1.Dispose();
                            oSite.Dispose();
            catch (Exception ex)
        #endregion
        #region MD5Encryption
        private string MD5Encryption(string strToEncrypt)
            System.Text.UTF8Encoding ue = new System.Text.UTF8Encoding();
            byte[] bytes = ue.GetBytes(strToEncrypt);
            // encrypt bytes
            System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider();
            byte[] hashBytes = md5.ComputeHash(bytes);
            // Convert the encrypted bytes back to a string (base 16)
            string hashString = "";
            for (int i = 0; i < hashBytes.Length; i++)
                hashString += Convert.ToString(hashBytes[i], 16).PadLeft(2, '0');
            return hashString.PadLeft(32, '0');
        #endregion
        #region Generate Random Code
        private string GenerateRandomCode()
            random = new Random();
            string s = "";
            for (int i = 0; i <= 6; i++)
                s = string.Concat(s, this.random.Next(10).ToString());
           // _randomNumbercheck = s;
            return s;
        #endregion
        #region Generate Random String
        public string GenerateHashKey()
            StringBuilder myStr = new StringBuilder();
            myStr.Append(Request.Browser.Browser);
            myStr.Append(Request.Browser.Platform);
            myStr.Append(Request.Browser.MajorVersion);
            myStr.Append(Request.Browser.MinorVersion);
            myStr.Append(Request.LogonUserIdentity.User.Value);
            SHA1 sha = new SHA1CryptoServiceProvider();
            byte[] hashdata = sha.ComputeHash(Encoding.UTF8.GetBytes(myStr.ToString()));
            return Convert.ToBase64String(hashdata);
        #endregion
        #region Check User Authentication
        protected void Login_Authenticate(object sender, AuthenticateEventArgs e)
            Utility hu=new Utility();
            int CheckValue = 0;
            string user = Login.UserName;
            if(user.Contains("@"))
                CheckValue=1;
            //Encrypted Password
            string HPassword = hash.Value;
            // Verify that the username/password pair is valid
            SqlConnection con = new SqlConnection();
            SqlCommand cmd = new SqlCommand();
            con.ConnectionString = System.Configuration.ConfigurationSettings.AppSettings["FBAPortalConnection"];
            if (con.State == ConnectionState.Closed)
                con.Open();
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.CommandText = "sp_Portal_ValidatePortalUser";
            cmd.Connection = con;
            cmd.Parameters.Add("@ID", SqlDbType.NVarChar, 256).Value = Login.UserName;
            cmd.Parameters.Add("@Password", SqlDbType.NVarChar, 300).Value = HPassword.ToString();
            cmd.Parameters.Add("@CheckVal", SqlDbType.Int).Value = CheckValue;
            cmd.Parameters.Add(new SqlParameter("@P_Return", SqlDbType.NVarChar, 256));
            cmd.Parameters["@P_Return"].Direction = ParameterDirection.Output;
            cmd.ExecuteNonQuery();
            string CurrentUserName = cmd.Parameters["@P_Return"].Value.ToString();
            cmd.Dispose();
            con.Close();
            //int x = hu.ValidatePortalUser(Login.UserName, HPassword.ToString(), CheckValue);
            if (CurrentUserName != "0")
                Page.Session["User"] = CurrentUserName;
                string UserName = Session["User"].ToString();
                UserCurrent = UserName;
                LoginStatus = "Successfull";
                GetUserInfo();
                e.Authenticated = true;
                //Session["CustomAuthKey"] = MD5Encryption(Request.ServerVariables["Remote_Addr"] + Request.ServerVariables["Http_Cookie"] + Request.ServerVariables["Auth_User"]);
                Session["CustomAuthKey"] = MD5Encryption(Request.ServerVariables["Remote_Addr"] + Request.ServerVariables["Http_Cookie"] + UserCurrent.ToString());
                FormsAuthenticationTicket tkt;
                String cookiestr;
                HttpCookie ck;
                tkt = new FormsAuthenticationTicket(1, UserName, DateTime.Now, DateTime.Now.AddMinutes(15), false, GenerateHashKey());
                cookiestr = FormsAuthentication.Encrypt(tkt);
                ck = new HttpCookie(FormsAuthentication.FormsCookieName, cookiestr);
                ck.Path = FormsAuthentication.FormsCookiePath;
                Response.Cookies.Add(ck);
            else
                // Username/password are not valid...
                Login.FailureText = "Invalid Username / password";
                e.Authenticated = false;
        #endregion
        #region Login Error
        protected void Login_LoginError(object sender, EventArgs e)
            // Determine why the user could not login
            Login.FailureText = "Your login attempt was not successful. Please try again.";
            // Does there exist a User account for this user
            MembershipUser usrInfo = Membership.GetUser(Login.UserName);
            if (usrInfo != null)
                // Is this user locked out?
                if (usrInfo.IsLockedOut)
                    Login.FailureText = "Your account has been locked out because of too many invalid login attempts. Please contact the administrator to have your account unlocked.";
                else if (!usrInfo.IsApproved)
                    Login.FailureText = "Your account has not yet been approved. You cannot login until an administrator has approved your account.";
                else
                    Login.FailureText = "Invalid UserName / Password";
                    UserCurrent = usrInfo.UserName;
                    LoginStatus = "UnSucessfull";
                    GetUserInfo();
            else
                Login.FailureText = "Invalid UserName / Password";
        #endregion
        #region Logged In
        protected void Login_LoggedIn(object sender, EventArgs e)
            string UserName = Session["User"].ToString();           
            LoginControl.Class1.IsLoggedIn = true;
            //If User Email is [email protected] it will be invalid. Prompt the user to update the email id. 
            LoginControl.Utility hu = new LoginControl.Utility();
            DataSet dsuser = hu.getUserDetails(UserName);
            string email;
            if (dsuser.Tables[0].Rows.Count > 0)
                email = dsuser.Tables[0].Rows[0]["Email"].ToString();
                if (email.Equals("[email protected]"))
                    Response.Redirect("/Pages/UserUpdates.aspx", true);
                else
        #endregion
//-------------------------------- Authentication code----------------------------//
  private void authenticateuser()
            try
                if (SPContext.Current.Web.CurrentUser != null)
                    using (SPSite spSite = new SPSite(SPContext.Current.Site.Url))
                        using (SPWeb spWep = spSite.OpenWeb())
                            Utility hu = new Utility();
_userid = spWep.CurrentUser.Name;
                            DataSet ds = new DataSet();
                            ds = hu.GetPlotid(_userid);
                            if (ds.Tables[0].Rows.Count > 0)
                                _plotid = ds.Tables[0].Rows[0]["plotid"].ToString();
                            else
                                if (!SPContext.Current.Web.UserIsSiteAdmin && !SPContext.Current.Web.UserIsWebAdmin)
                                    if (!SPContext.Current.Web.IsCurrentUserMemberOfGroup(SPContext.Current.Web.Groups["Allottee"].ID))
                                        SPUtility.HandleAccessDenied(new Exception("You do not have access to this page"));
                else
                { SPUtility.HandleAccessDenied(new Exception("Please login")); }
            catch (Exception ex)
                //  lblMessage.Text = "Error:" + ex.Message;
                ShowMessage("Following error has occured while executing the desried event :- " + ex.Message);
Mohan Prakash

1. Current work flow :-In web site the user have to register themselves in the web site and enters his details along with user id, password and email id. Once user
is registered then he will login with his user id and password. The user id is picked from login control and that set in “SPWeb.CurrentUser” as user id and system uses "Membership.ValidateUser" method to Authenticate user for login. 
2. New Requirement: we would like to facilitate the user to login with Email id as well as user id. 
Problem: 
We replaced "Membership.ValidateUser" method to our own method to Authenticate user with email id/user id and password. 
When user is login with user id and password it is working successfully but in the case of email id and password –“the email id is picked from user control and set as
"HttpContext.Current.User.Identity.Name" but we are not getting “SPWeb.CurrentUser” and it shows null value.” 
We are able to get user id from database using email id of user. Please help us how we can set user id in "SPContext.Current.Web.CurrentUser".
Mohan Prakash

Similar Messages

  • How to set default User preferences in Analyzer for all users

    How to set default User preferences in Analyzer for all users<BR><BR>Hi,<BR><BR>I would like to set some settings in Analyzer as default for all users. For example:<BR>1. Display | Char<BR>2. right mouse click on char | Chart Properties<BR>3. Axes tab<BR>4. "Format: Currency" i would like to change to "Format: Number".<BR><BR>How to set default values to all users? Is this possible?<BR><BR>Thanks,<BR>Grofaty

    I'm pretty sure higher access superceedes, so you could set up a group with no actual access, just to get the preferences working, then their individual security will dictate what they can do. I haven't tested this fully, but I beleive this is how it will work.<BR>As far as setting the preferences, go into the admin console and right click on the group, then select Preferences. To apply the group preferences to a user, add the user to the group, then right click on the user, select preferences and from the upper left corner, use the drop down to select the active preference, in this case, it will be the group you created and added them to.<BR><BR>HTH

  • How to get current user in Exchange 2007 OWA customization page?

    Hi,all
    I customize an ASPX page(smsconfig.aspx) in Exchange 2007 OWA( this file in ..\Exchange\ClientAccess\OWA\smsconfig.aspx, I don't modify registry.xml & web.config).
    My Exchange 2007 OWA has been configurated with Forms-Based Auth.
    https://mail.myexchange.com/owa/smsconfig.aspx The page works fine, but it cannot get current logon user with HttpContext.Current.User.Identity or
    UserContext.MailboxIdentity or UserContext.LogonIdentity
    <%@ Page language="c#" AutoEventWireup="false" Inherits="Microsoft.Exchange.Clients.Owa.Core.OwaPage" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <%@ Import namespace="Microsoft.Exchange.Clients"%>
    <%@ Import namespace="Microsoft.Exchange.Clients.Owa.Core"%>
    <%@ Import namespace="Microsoft.Exchange.Clients.Owa.Premium"%>
    <%@ Import Namespace="System" %>
    <%@ Import Namespace="System.Data" %>
    <%@ Import Namespace="System.Data.SqlClient" %>
    <%@ Import Namespace="System.Xml" %>
    <%@ Import Namespace="System.Collections.Generic" %>
    <%@ Import Namespace="System.Text" %>
    <script runat="server">
    。。。(my codes in here)
    </script>
    thanks for your help.
    Your Passion.My Potential.

    Microsoft.Exchange.Clients.Owa.Core.OwaContext.Current.UserContext.LogonIdentity.PrimarySmtpAddress
    Высказанное мною здесь - мои личные взгляды, а не позиции корпорации Microsoft. Вся информация предоставляется "как есть" без каких-либо гарантий.

  • How to set up User id and Password for Web services or authentication

    Hi ,
    I am new to web services . I have created a new Web service in SAP , and while creating Service defination , set the Authentication as LOW for server proxy .Then created End-point in SOAMANAGER with USREID/PWS requried .This WSDL i am planning to share with Third party to call from Java application.
    But my web service checks for authorization which needs to be set up to allow the user id and pws .
    So question is how do i pass my user id and pws as i do not see this WSDL with User id and pws option displayed for me when i test this using SOAP UI .I saw some of WSDL with tag "AuthHeader" with user id and pws tags in them .So how could i get them ?
    Or requirement is that my Third party should be able to access my Web service in PRD and also be able to have authorization to auth object embedded in FM inside service defination .So how is this acheived ?
    Thanks,
    Sitaraman

    Hi,
    After creation of WSDL , you will get URL lkie http://idessapdev.ad.infosys.com:8000/index.html.
    For this URL your third party system need sto add id and pwd for accessing like http://idessapdev.ad.infosys.com:8000/index.html&userid = 111&pwd= wwgw.
    this is not the exact syntax. you can check with your third party system for this URL.
    Regards,
    Lokeswari.

  • How to set current year,month as default value in combo box

    hi,  im newbie of xcelsius user
    i realize  that hv a issue that display combo box base on year & month
    let said
    <b><u>step 1</u></b>
    I create excel data like this
    <b><u>year___ </u>  </b>    |     <u><b>month_   </b></u> |     <u><b>Product</b></u> |     <u><b>revenue</b></u>
    02-04-09 |     02-04-09 |       a |     $4,154
    03-04-09 |     03-04-09 |       b |     $6,813
    04-05-09 |     04-05-09 |       a |     $9,875
    05-06-09 |     05-06-09 |       b |     $6,813
    06-04-10 |     06-04-10 |       a |     $6,813
    07-04-10 |     07-04-10 |       b |     $9,875
    08-06-10 |     08-06-10 |       a |     $9,875
    22-06-10 |     22-06-10 |       b |     $6,813
    <u><b>Step2</b></u>
    Then i go format cell to format/custom date to year & month
    Eg1: Year u2013>  02-04-09  convert to u2018YYYYu2019 (2009)
    Eg2: Month u2013>  02-04-09  convert to u2018mmmmu2019 (April)
    So output like this
    <u><b>year</b></u> |     <u><b>month</b></u> |     <u><b>Product</b></u> |     <u><b>revenue </b></u>
    2009 |     April |     a |     $4,154
    2009 |     April |     b |     $6,813
    2009 |     May |     a |     $9,875
    2009 |     June |     b |     $6,813
    2010 |     April |     a |     $6,813
    2010 |     April |     b |      $9,875
    2010 |     June |     a |     $9,875
    2010 |     June |     b |     $6,813
    But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
    But Actual display the Year  in combo box is duplicated :'(
    so any solution ? and then only how to set current year & month as default value  :'(
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
    Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AM

    hi,
    your created  data
    step 1
    I create excel data like this
    year___ | month_ | Product | revenue
    02-04-09 | 02-04-09 | a | $4,154
    03-04-09 | 03-04-09 | b | $6,813
    04-05-09 | 04-05-09 | a | $9,875
    05-06-09 | 05-06-09 | b | $6,813
    06-04-10 | 06-04-10 | a | $6,813
    07-04-10 | 07-04-10 | b | $9,875
    08-06-10 | 08-06-10 | a | $9,875
    22-06-10 | 22-06-10 | b | $6,813
    In this, year and month both are same data, make the diffent data like year  2009, 2010  And month Jan, Feb, March, ...Etc 
    and also one more check you formulas on month and year, select correct source data, destination data  for compoonent..
    OR
    from above, to create a date column and convert  date-->year, date--> month and Explore it.
    All the best,
    Praveen

  • How to set Multi User Environment in the weblogic 5.1 and 6.1 server..(Urgently)

    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

    Hi. A JDBC connection pool is a set of identical, interchangeable, pre-made
    connections, and the controls to make sure only one user uses a particular
    connection at any one time. If you want to have different DBMS users, you can
    have a separate pool for each DBMS user, which may contain as many or few
    connections as you want. Some applications has a pool for the accounting
    applications, and another for the sales applications etc. Some do have a
    separate pool for john, jane, joe etc, each with one connection. Pools
    can be created and destroyed dynamically using the dynamic pool API.
    Joe
    softstar wrote:
    >
    Hi all,
    I need to know how to set Multi User Environment in the weblogic 5.1
    properties file..
    Here my question is..:)
    1) I have a database with multiple users and having different privileges
    for the users.. and i need to use all the privileges when user aceess
    the database through weblogic server connectionPool.
    2)According to the user privileges i need access the database tables
    content and gives the frontEnd(jsp).
    3)How to modify dynamically weblogic.properties file in the weblogic
    5.1.
    If anybody having idea reg. this issues pl...help me..
    Thanks in advance
    Chandu([email protected],[email protected])

  • How to find current user name on a LAN machine....

    how to find current user name in a remote machine in LAN .
    how to find current user name on a local machine in LAN .

    how to find current user name in a remote machine in
    LAN .Many users may be logged on concurrently on the remote machine.
    how to find current user name on a local machine in
    LAN .The user who is running the code in the process would be obtainable via:
    System.getProperty("some property goes here");
    I leave it to you to look at the API documentation for System.getProperties() to see what property name you would retrieve.

  • How to pass current user credential for PAPI service execution

    Hi All,
    As per my requirement I am using the SAP ME PAPI WS to start the SFC. I have used the SAPME PAPI Interface action block in ME within BLS and searched the service and operation also. Required input parameter mapping is also done and I have successfully executed the BLS and SFC is started in ME. In SAPME PAPI Interface action block I have used Credential alias which is standard configuration in MEINT for user MESYS.
    Now what I have seen is that, in ME the SFC is started by user MESYS. But I want to pass the user who is currently executing. Is there any way to pass the current user credential or session for executing the PAPI service. My final target is to use the BLS in IRPT through Xacute query.
    Thanks in Advance
    Chandan

    Hi Sergiy,
    It is only required for Sfc Start operation. It is a generic requirement for all PAPI WS. User ref is not available for all services. I have taken sfc Start operation as an example. But for  complete SFC operation there is no user ref. in Request structure. Then what would be our generic way to execute it through current user credential.
    Thanks
    Chandan

  • How to set a minimum width and height for a stage or scene?

    Hello,
    Does anyone how to set a minimum width and height for a stage or scene?
    I tried listening for width/height property value changes and then adjust the width/height if necessary, but that causes unpleasant flickering of the window.
    In JavaFX 2.1 beta SDK for Mac OS, the Stage class has setMinWidth() and setMinHeight() functions which work very well.
    I'm wondering what's the equivalent way to do that when using the FX SDK for Windows.
    Any help is appreciated!
    Thanks.

    I was wondering how to enforce a minimum stage size with JavaFX 2.0.3.The same flickering way you are currently doing it. See: http://javafx-jira.kenai.com/browse/RT-15200 "Need a way to set the minimum size of a window"

  • How to let the user define the colors for each plots in the graph (I use LabVIEW 7)?

    How to let the user define the colors for each plots in the graph (I
    use LabVIEW 7)?

    Hi,
    Take a look at this example, it uses property nodes to select tha
    active plot and then changes the color of that plot.
    If you want to make the number of plots dynamic you could use a for
    loop and an array of color boxes.
    I hope this helps.
    Regards,
    Juan Carlos
    N.I.
    Attachments:
    Changing_plot_color.vi ‏38 KB

  • How to set up and configure AirPort Express for AirPlay and iTunes

    Saw somewhere that supposedly there were some apple written guidlines on the above topic. I have searched all over for them. Anyone know where I can get a copy to read through. Just trying to educate myself a bit and sety up another room with access to itunes, radio, etc with high quality speakers and amp off my express.

    Here you go ...
    How to set up and configure AirPort Express for AirPlay and iTunes

  • How to set and resent reconcilation a/c for Assent a/c

    hi
    how to set and resent reconcilation a/c for Assent a/c
    amk

    You are permitted to post the recon account undercertain special circumstances :
    USe the transaction codes OAMK and OASV.
    Kindly read the SAP on line documentation before making a postings directly to the recon account.
    Definition of the Reconciliation Accounts
    You are not allowed to manually post to the reconciliation accounts for Asset Accounting in Financial Accounting. Normally, you designate the corresponding General Ledger accounts in Financial Accounting as reconciliation accounts. This change, however, can no longer be made in Financial Accounting, once these accounts already have balances from the legacy data transfer. However, you can use a special report to assign these accounts the status of reconciliation accounts in Financial Accounting (in Customizing for Asset Accounting, choose Preparing for Production Startup ® Production Startup ® Set Reconciliation Accounts).
    There is another report for removing this specification (Reset Reconciliation Accounts).
    Subsequent Correction Postings to Reconciliation Accounts
    Suppose you have already defined the asset G/L accounts in Financial Accounting as reconciliation accounts, but still need to transfer balances to these accounts, or make corrections. You can make correction postings to these reconciliation accounts with a special posting transaction in Customizing for Asset Accounting (Transfer Balances), using posting key 40 or 50. You can only postings to those accounts in a company code with implementation status (Customizing for Asset Accounting, choose Preparing for Production Startup ® Production Startup ® Activate Company Code).

  • Without to change the setting.how to set the decimal place to 7 for an UDF.

    Without to change the setting, how to set the decimal place to 7 for an UDF?

    Hi
    Once you create a UDF it will automatically be binded to the data source of data type that you gave at the time of creating UDF.
    So i think you can not set the decimal places without changing the setting in display parameters.
    i am not sure whether it will work or not one thing you can try is that create it as a alphanumeric data type and convert your decimal value to sting and then assign it to UDF,While retrieving for any manipulation you convert it as decimal.
    Hope it helps you
    Regards
    Vishnu

  • How to set up an iPhone as PAN for MacBook Air

    I would like to know how to set up a Personal Area Network for my MacBookAir by using my iPhone.
    I successfully used Bluetooth to pair the two, according to the MacAir, but the iPhone never believed it and insisted that it had found no device to pair to.
    This is after it had presented the correct pairing number with the Mac.
    Thank you.
    Kit

    Create a folder on the external drive named "Music." Copy your /Home/Music/iTunes/ folder into the Music folder on the external drive.
    Now select the iTunes folder on the external drive. Hold down the COMMAND-OPTION keys then drag the iTunes folder icon to your Desktop. This should create an alias named, "iTunes alias." Open the /Home/Music/ folder on your internal hard drive. Drag the iTunes folder to the Trash but do not Empty the Trash. Copy the alias on the Desktop into the /Home/Music/ folder. Select the alias and press RETURN to edit the name. Delete the word, "alias" so that the alias is now simply "iTunes."
    Now open iTunes to verify that you are accessing your real iTunes data. If all is well you can Empty the Trash.

  • HT1386 How do I switch users on wifi sync for example my Mac has two users one apples MacBook pro the other is my name I want to switch from apples MacBook pro to my name how is this done?

    How do I switch users on wifi sync for example my Mac has two users one apples MacBook pro the other is my name I want to switch from apples MacBook pro to my name how is this done?

    Try connecting the iPad to the computer that you do not want to WiFi sync with and uncheck the WiFi sync option in iTunes. Then click on Apply. Reboot the iPad and see if that does the trick.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

Maybe you are looking for