Email field

How can have the email of a person with his id or name?
Thanks

Hello,
TO get the email ID from the User ID, you have to use the table USR21 and ADR6 tables.
                SELECT SINGLE * INTO l_r_usr21 FROM usr21
                       WHERE bname = sy-uname.
                  SELECT SINGLE * INTO l_r_adr6 FROM adr6
                         WHERE addrnumber = l_r_usr21-addrnumber
                         AND   persnumber = l_r_usr21-persnumber
                         AND   date_from  < sy-datum.
Cheers,
Vasanth

Similar Messages

  • Update address-dependent email field on save of BP

    We have a requirement to update the address-dependent email field from the address-independent email field upon saving a Business Partner.
    I've been working on the 'BUPA_ADDR_UPDATE' BADi but am having no luck with it so far. I have managed to retrieve the data in the address-independent email field using the 'BUPA_CENTRAL_GET_DETAIL' Function Module but as yet have not been able to do the update of the address-dependent email field.
    Can anyone offer any guidance please ?
    thanks,
    Malcolm.

    Hi Malcolm,
    Try using the BADI : ADDR_UPDATE.
    Email is a part of the address management, so you would need an address badi.
    BUPA_ADDR_UPDATE is a business partner badi and only has the address reference - such as address number, validity, move date, etc..it will not help in cases where you need to work with address fields such as city, country, email,etc.
    Another approach :
    Try writing your code in PARTNER_UPDATE badi. This is called after save of BP. So you can probably trigger another update on the BP's address from here..
    Hope this helps you.
    Cheers,
    Rishu.

  • How to pass smtp_addr(email field) to cremas idoc while creation of vendor?

    Hi All,
    i am creating the vendors by IDOC by using CREMAS basic type CREMAS05.
    There is no email field in any of the idoc segments,as i need to pass the email address being mandatory,
    i created the Z segment and added the email field into it and then created the z extension and added this zsegment into the extension.
    Now how do i and where do i map this field so that email data is also passed while creating the vendor master.
    i have debugged the cremas Function Module IDOC_INPUT_CREDITOR and the data is getting passed segment wise,and for customer segement i.e for the zsegment there is a enhancement section where i need to pass this field,but i do not know how do i map this field and with what structure.
    Please let me know how do i handel this/or is there in other way to do it.
    Thanks.
    RJP.

    Hi,
    the email is part of the address data. It is therefore not belonging to the customer master data. So it is also not part of the DEBMAS idoctype.
    To distribute via ALE accurate customer address data, you need to distribute ADRMAS, ADR2MAS, ADR3MAS idoctypes too.
    See [note 384462|https://service.sap.com/sap/support/notes/384462] and [note 306275|https://service.sap.com/sap/support/notes/306275]
    BR
    Alain

  • Non-ASCII character in Email field

    Hi Guys,
    I am trying to enter non-english characters in Email field of user form, but OIM throws an error that "A non-Ascii character has been entered". I have also tried to turn off the AppFirewall Filter in xlConfig.xml file but no help. Is there any way thay I can enter non-Ascii characters in Email field?
    Regards,
    Rahul

    .oO(surfinIan)
    >I have a script that converts a ms word document to text
    then uploads that to a
    >blob field on a mysql db.
    > During the conversion some characters my not be
    recognised. When i then call
    >up the blob for display on the browser...those characters
    show up as unknown
    >characters with a ? or box. Is there a way to
    preg_replace those unknown
    >characters before displaying them.
    What about fixing the encoding problem instead? If chars get
    lost during
    such a transfer
    document->script->database->script->browser it's always
    an encoding problem somewhere down the road.
    The recommendation these days is to use UTF-8, which avoids
    most of
    these old problems. You just have to make sure that your
    documents are
    properly stored as UTF-8 in the database and delivered as
    such to the
    script and the browser, then you don't have to worry about
    special chars
    anymore.
    That's just the general idea. I can't be more specific, since
    I don't
    know your conversion script or the database structure.
    Micha

  • Vendor master EMAIL field data

    dear sir,
    i need to have the list of all my vendor Emails which are mentioned in vendor master.we create the vendor centrally by XK01, i tried with MKVZ and LFA1 table.
    but the problem is email field (SMTP_ADDR is in SZA1_D0100-structure.
    can any body help me how to download the same details?

    Hi
    You have to create SAP query to get the Vendor e-mail id.You have join two tables LFA1 and ADR6.
    In LFA1, each vendor assigned with one address number LFA1-ADDNR.With reference to this address number the Data like email ID etc stored in ADR6 table.
    SO you need find out ADDNR in LFA1 and use this number to get the E-mail ID of vendor from ADR6 table.To achieve this , you can write sime SAP query.
    Regards
    Ramakrishna

  • Validating Emails fields in my Dialog Box

    Hi all, I want to validate emails in my dialog box. My field are automatically fill by an XML and I want to validate them. I am able to validate them when the user enter a new email but if the user do not enter a new email and hit "OK", there is no validation. Any idea? Thanks!
    var submitEmailTo = "[email protected]\rclient@somewherecom"
    var submitEmailFrom = "[email protected]"
    var patt = /^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/g;
    var dialog1 = {
        submitEmailTo: "",
        submitEmailFrom: "",
        submitEmailMessage: "",
        initialize: function (dialog)
            dialog.load(
                "emto": submitEmailTo
            dialog.load(
                "emfr": submitEmailFrom
        commit: function (dialog)
            var results = dialog.store();
            this.submitEmailTo = results["emto"];
            this.submitEmailFrom = results["emfr"];
            this.submitEmailMessage = results["mess"];
        emto: function (dialog)
        var data = dialog.store(["emto"])
        emtoString = data["emto"]
        emtoArray = emtoString.split("\r")
        for (var i=0;i<emtoArray.length;i++)
            if (emtoArray[i].match(patt) == null)
                    app.alert("Le courriel \"" + emtoArray[i] + "\"ne semble pas valide.", 1, 0, "Validating");
        description:
            name: "Job Information", // Dialog box title
            align_children: "align_row",
            width: 400,
            height: 200,
            elements: [
                type: "cluster",
                name: "Email Information",
                align_children: "align_right",
                elements: [
                    type: "view",
                    align_children: "align_row",
                    elements: [
                        type: "static_text",
                        name: "From (CVSC): "
                        item_id: "emfr",
                        type: "edit_text",
                        alignment: "align_left",
                        width: 400,
                        height: 20
                    type: "view",
                    align_children: "align_row",
                    elements: [
                        type: "static_text",
                        name: "To: "
                        item_id: "emto",
                        type: "edit_text",
                        multiline: true,
                        alignment: "align_left",
                        width: 400,
                        height: 30
                    type: "view",
                    align_children: "align_row",
                    elements: [
                        type: "static_text",
                        name: "mess: "
                        item_id: "emto",
                        type: "edit_text",
                        multiline: true,
                        alignment: "align_left",
                        width: 400,
                        height: 70
                    alignment: "align_right",
                    type: "ok_cancel",
                    ok_name: "Ok",
                    cancel_name: "Cancel"
    app.execDialog(dialog1)
    this.info.submitEmailTo = dialog1.submitEmailTo
    this.info.submitEmailCC = dialog1.submitEmailCC
    this.info.submitEmailMessage = dialog1.submitEmailMessage

    Actually this code is  attached to a button action. When my form is opened at first, my fields are populated and all the extra information are send to custom metadata.
    The opearator here, will hit a button  and a big dialog box appear with all the job information. You see actually only the email cluster. The idea is to help the operator to  easily build an email with copy and paste. Sometime the emails fields will be filled automatically and sometime the operator will fill them.
    The reason I go through a dialog box is I don't want the client to see to much information and the email is sent by a another application.
    My first idea was to put a validation script on the "OK" button but it seems not possible to "cancel" this action.

  • How to Validate Email field & Other..

    Hi,
    1. I have a requirement in which I have to check that the texinput field i.e EMail field should have @ in it. If not then I need to throw exception.
    Can anybody tell me how to check @ from VO attribute.
    2. There is another text input field in which I have to check that the input value by user should not be less than 0 and greater than 15. -- Not solved Yet
    I will do these validation on submit button.
    Please help.
    Thanks in advance.
    Ajay
    Edited by: Ajay Sharma on Apr 29, 2009 6:07 AM
    Edited by: Ajay Sharma on Apr 29, 2009 8:28 PM
    Edited by: Ajay Sharma on Apr 29, 2009 8:29 PM

    Hi,
    I am trying with this...
    public boolean validateFormat(String Item)
    boolean isAlphanumeric = false;
    Number number = null;
    if(Item != null && !"".equals(Item))
    try
    number = new Number(Item);
    catch(SQLException sqlexception)
    {System.out.println("Error in conversion"); }
    if(( number < 0) && (number > 11))
    isAlphanumeric = true;
    return isAlphanumeric;
    But I am getting error while compiling
    Error(332,21): method <(oracle.jbo.domain.Number, int) not found in class exl.oracle.apps.per.eexit.server.EmployeeAMImpl
    Error(332,37): method >(oracle.jbo.domain.Number, int) not found in class exl.oracle.apps.per.eexit.server.EmployeeAMImpl
    Thanks
    Ajay

  • The required email field in the registration

    Hello,
    Our application was rejected due to the fact that email field is one of the required fields that has to be completed during the registration. The application is aimed at books sale and purchase. We use in-app purchase via the AppStore, the next step is the user identification that is arranged on the server. That’s how we find out the user who actually purchased a book. His email is a unique identifier.
    Besides, more than 60 % of the available content of our app can be used exclusively for reading and in this case we identify whether the user is the right one with the help of email address as well. After identification we can be sure that the user is provided with the access to the necessary books.
    In general, our app sells books, and if we can not use email as a user ID to make a purchase, can we use the Apple ID instead?
    Thanks in advance

    Apple ID is off-limits.

  • Accented characters in email fields

    I'm using this script to have email sent to me through a mail form:
    <?php
    // initialize variables for To and Subject fields
    $to = '[email protected]';
    $subject = 'Een testmail';
    $from = $_POST["from"];
    $email = $_POST["email"];
    $comments = $_POST["comments"];
    // build message body from variables received in the POST array
    $message = "Van: $from \n\n";
    $message .= "Email: $email \n\n";
    $message .= "Bericht: $comments";
    $message = stripslashes($message);
    //convert flash line breaks
    $message= str_replace("\r", "\n", $message);
    $message=nl2br($message);
    // add additional email headers for more user-friendly reply
    $additionalHeaders  = "From: $from <".$email.">\r\n";
    $additionalHeaders .= "Reply-To: ".$email."\r\n";
    $additionalHeaders .= "MIME-Version: 1.0\r\n";
    $additionalHeaders .= "Content-type: text/html; charset=utf-8\r\n";
    // send email message
    $OK = mail($to, $subject, $message, $additionalHeaders);
    // let Flash know what the result was
    if ($OK) {
      echo 'sent=OK';
      else {
      echo 'sent=failed&reason='. urlencode('Er is een probleem met de server. Probeer het later nog eens.');
    ?>
    The problem is that I can't get accented characters appear into the From: cc: bcc: fields. For example, when I fill the From field with 'René' it appears as 'RenX' in the From: field. I've set everything to utf-8 but that doesn't seem to matter. When I receive an html text mail, the From: fields displays accented characters as strange codes, like RenA@ or RenX for René.
    In the message text itself it varies: it either displays René when the mail is viewed as plain text mail, or RenA@ when the mail is views as html text. How can I get accented characters appear inside email fields too? And also in the body text when the email is viewed as html text?

    It comes down to this. Since flash outputs in utf-8 I used utf-8 in here too. But narrowing it down to the most basic part:
    <?php
    $headers = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset= UTF-8\r\n";
    $headers .= "From: René <[email protected]>\r\n";
    $OK = mail('[email protected]', 'A question', 'René is my name', $headers);
    if ($OK) {
      echo 'sent=OK';
      else {
      echo 'sent=failed&reason='. urlencode('There is a problem with the server. Try again later.');
    ?>
    When I view this through webmail I get to see RenX in the From field where it should be René. Changing charset to ISO8859-1 won't work either. I get RenX in the From field and RenA@ in the message part. And when I switch in webmail from text/html to text/plain it says Ren? in the message part.
    How can I make it display René in all headers and message? Both in html mode and in plain text mode?

  • How do I insert the value of an email field in the submit mailto: argument?

    I want to create a button that will redirect a PDF form to an email address entered as a field in the form.  In other words, a "return to sender" function.  The button function has a submit to URL where you can use "mailto:[email protected]".  How can I substitute the value from an email field in the form itself for the "[email protected]" value?

    You'll need to use JavaScript, and the mailDoc method in particular: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.505.html
    Get the value of the field that contains the email address and use it as the value of the cTo property. See the following for a sample script: http://forums.adobe.com/message/3553628?tstart=-1

  • Vendor Email - Field  where stores

    Hi Friends,
    Can any body tel where Email field store.
    In Me22n in adress tab. If we click adress detail push button.
    there is a field cal Email. where this field stores.
    I checked some tables like ADRC, ADR2, ADR3 I am not able to find. If i change this mail id it is not changing in vendor master details.
    Thanks,
    Kumar

    Hi Eric.
    Yes same way i am searching...
    I open PO in me22n. in adress tab. clicked on adress details
    push button and changed mail id. saved PO. now i went checked all adr* tables with vendor (lfa1-adrnr). I am not able to find. I appreciate if any body give solve my problem...
    Thanks ,
    Kumar.

  • Backup Assistant - Only Business email field syncs with device?

    I'm using Backup Assistant to backup my contacts. My device is a Blackberry Curve 8330. The problem is the only email field in the Backup Assistant on the web that syncs with my device is the "Business" email field. If I have a contact with more than one email address, for instance personal and business, only their business email address will sync to my Blackberry. I have a lot of contacts with more that one email, so being limited to backing up just one email is rather frustrating. Also, I have a lot of contacts with just one email and it is a personal email, but if I want it to sync at all I have to make it a Business email on the web Backup Assistant page.
    This appears to just be a bug, with no known fixes that I've been able to find. Maybe someone here can shed some light on the issue.
    Thank you,
    Jim

    Someone from Verizon called my phone and left a voicemail. They explained the situation. It isn't an issue or bug, it's more that the backup assistant was built for more basic phones. Plus my blackberry supports multiple email fields, but they are just email fields, not labeled "Business", "Personal", etc. I appreciate the call and explanation. Thank you.
    Jim

  • IDoc CREMAS - Email field

    Hi experts,
    please help me to understand this:
    i have a log in changed data of XK03 --> address
    Date               Field                    New                         Old
    XX.XX.XXXX     E-Mail Address      ***Deleted***             [email protected]
    Now, there's a CREMAS idoc in the same date and same time, with the same user of this log.
    So it was probably this idoc to make the change.
    but how is possible if the idoc not have an email field?
    No code in EXIT_SAPLKD01_001
    Thank you in advance.

    You have to process ADRMAS Idocs too otherwise you may get inconsistent data.
    I explained the history and the connections in Addresses and master data - ADRMAS - CREMAS - DEBMAS

  • System variable name for email field.

    Hi
    Can anyone give me the system name for the email field,
    eg username is &APP_USER.
    Thanks
    Fiona

    Fiona - John's suggestion is to use a PL/SQL API call to get the email_address attribute from the wwv_flow_users record for a user account. There is no corresponding substitution string but you could create an item in your application and set it using this API. Keep in mind that this applies only to APEX user accounts, i.e., if you're using other authentication methods such as LDAP, SSO, Database Account, or custom tables, then the email_address will not be accessible using the API.
    Scott

  • Email field mandatory in usermanagement

    Hello,
    we are running SAP Netweaver 7.01 and we are wondering if it is possible to make the email field in usermanagement mandatory when we create a new user?
    Thanks in advance
    Joerg

    Hi Jörg,
    Do I have to write every line for you?!    No, joke
    Sorry, my first answer was a blind shot without testing, but at least it was 10%
    Now the last 90%, even tested:
    In class ModifyUserView, within the same JAR, just one package level above, add the following block just after the similar block for LASTNAME in method onActionSave:
    if (wdContext.currentLayoutAttributesElement().getEmail_Enabled() &&
            (wdContext.currentControlAttributesElement().getCreateUser() && wdContext.currentSecurityPolicyElement().getId() != 2
                || !wdContext.currentControlAttributesElement().getCreateUser() && wdContext.currentControlAttributesElement().getModifySecurityPolicyEnabled()
                || wdContext.currentControlAttributesElement().getEnduserContext()) &&
            !wdThis.wdGetMaintainUserCompController().checkMandatory("User_EMAIL")) {
        wdThis.wdGetMaintainUserCompController().switchToFirstTab();
        return;
    It might make sense to add some specific code to check the format of the value if entered; for this, just see the checks for the password above how to extend the code for that.
    The crux with all this WD stuff is that decompiling often creates sh... The best method is two use two decompilers in parallel, I use JD & DJ   With these two and some thinking it is often not that hard to create code that fits...
    Hope it helps
    Detlev
    PS: Salzgitter is a good project place for me (at least for short time projects), as I have strong ties to Braunschweig, where I have studied several hundred, ahh..., several years   So if you ever need support beyond single SDN questions...

  • Email field maintained in xd03 wasdeleted when ever xd99 trans was executed

    Hi all,
    can any one help, there is an issue that for a particular customer email field was maintained in xd03 but after execution of xd99 that email field was getting deleted

    Hi Lave,
    We once had a similar issue (not with XD99).
    In one of the related BADI, developer used field symbol on the associated field and when the field symbol was cleared, the transaction was updated with empty value every time
    In your case check if any user exits or BADI are implemented for the transaction and check the code.
    Regards
    Rajvansh

Maybe you are looking for

  • Need File name in PSE9

    I need to develop some macros to use with PSE9, but for me to do that, I need to retrieve the COMPLETE file name (including path) from PSE9 of the current edited file. Does PSE keep this info somewhere where I can get it?

  • Upload pictures problem on internet

    recently, i am having a problem on uploading any photo on the internet. once i start it log out from the site & ask to start all again & stay they forever. can you help?

  • FaceTime no longer works on my MacBook Pro but still works on my I-Phone

    FaceTime used to work fine on both my MacBook Pro and my I-Phone. Lately, it will not work at all on my Ma cBook, but works fine on my I-Phone. What has to be done to get it working on my MacBook?

  • Looping a media file

    Created a flash movie that loops. Embedded the movie into an Acrobat 9 document Movie plays once then stops. I don't see any option or control to allow looping. How can I make the movie loop embedded into an Adobe Acrobat 9 PDF? 

  • Nokia 2760 Transfering RECIEVED photos to laptop

    Hello there how,s it going? Here,s one for ya. I can use my phone and laptop bluetooth dongle thingy pretty good. Ive put photos on to laptop and got stuff from my laptop and put on phone BUT only untill today when someone sent me a photo of their 9