How to check the validity of recipient when sending email

hi Gurus,
i wanna send email thru class, and i need to know if the email is sent successfully, i can check the email status thru SOST.
but is there any way to get a return message immediately as soon as  I 'm sending the mail  out.
Thanks in advance.
Desmond Yang

S you are right.
If you want to validate email id, use table ADR6. Check below code,
"Get Ship-to-party email address
DATA: l_f_adrnr TYPE adrnr,
      l_f_mail TYPE ad_smtpadr.
      SELECT SINGLE adrnr FROM vbpa INTO l_f_adrnr        " Get Address number
        WHERE vbeln = vbdkr-vbeln AND
              parvw = 'WE'.  " 'WE' Ship-to-party
      IF sy-subrc = 0.
        SELECT SINGLE smtp_addr FROM adr6 INTO l_f_mail  " Get Email id from Address number
          WHERE addrnumber = l_f_adrnr.
      ENDIF.
      IF l_f_mail IS INITIAL.
        MESSAGE i503(sbcoms) WITH l_f_mail. " Throw a message saying Recipient is unknown
      ELSE.
        " Code to send mail
     ENDIF.

Similar Messages

  • How to check the date and time when a material is blocked

    Hello,
       Please tell me how can i check the date and time when a material is blocked or unblocked.
    Regards,
    Priyanka

    Hi Pryianka,
    Are you speaking about blocked status of material master ('X-plant matl status' > MM03 > Basioc view 1; 'Plant-sp. matl status' > MM03 > MRP 1) or your problem is to find out the date when your material was booked into blocked state (stock category).
    If your problem is about mmr you can use the above mentioned MM04 (or MM03 > menu > Environment > Display changes).
    If your problem is to find out when your goods were posted to blocked stock you have to use MB51 + relevant movement types (e.g. 103, 344) + batch + etc. ()
    BR
    Csaba

  • How to check the validation of RegEx

    Hi,
    My application needs users to enter RegEx. My question is how I can check the validation of the RegEx that users enter. The Class RegExp does not seem to provide any methods to check the validation of the RegEx.
    Regards,
    Haibin

    You would need to hand roll your own validator, unless someone knows of one that is out there. Flex does not validate RegEx.
    If this post answers your question or helps, please mark it as such.

  • How to check the validity period of saprouter ?

    Dear all,
    As per sap note 1178684, we can check the validity period of the saprouter by executing "sapgenpse get_my_name -n validity"
    I am wondering how to run that command in as/400 ?
    Please advise. I am not familiar with as/400 OS.
    Thanks
    Regards,
    Kent

    Hi Kent,
    please proceed as described on the http://www.easymarketplace.de/snc-iseries-setup.php
    logon with sidadm (or sidofr):
    (depending on the user, that is running the SAPRouter)
    CD DIR('/usr/sap/saprouter')
    ADDLIBLE LIB(SAPROUTER)    ??? or whereever the stuff is ...
    RMVENVVAR ENVVAR('SECUDIR')
    ADDENVVAR ENVVAR('SECUDIR') VALUE('/usr/sap/saprouter')
    RMVENVVAR ENVVAR('SNC_LIB')
    ADDENVVAR ENVVAR('SNC_LIB') VALUE('/usr/sap/saprouter/sapcrypto')
    CALL PGM(SAPGENPSE) PARM('get_my_name')
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.net - http://www.4soi.de - http://www.easymarketplace.de

  • How can I request a return receipt when sending email from Leopard Mail?

    Has anyone found a way to request return receipts when sending email with Leopard Mail?

    see this [link|http://discussions.apple.com/thread.jspa?messageID=7244096&#7244096].
    However,
    this is only possible if the email client of the e-mail receiver supports this feature and it is turned on. if it doesn't support it or it supports it but the feature is turned off there is absolutely nothing you can do.

  • How to check the validation in UI before committing data?

    Hi,
    I'm using Jdev 11.1.2.1.0 version .
    I needed to check whether there is duplication of values in Boolean check box before committing the data into the Database.
    But this validation rule is to be checked based on the value selected in the Select One Choice drop down list in the page.
    I did it with adding a ValueChangeEvent in the drop down list and checking the values in the Boolean check box. It worked , but only in the case of earlier committed data in the database.
    How can i actually verify the data entered in the table in the page before it being committed into the DB ?
    Nigel.

    Hi,
    an improvement to your solution would be to move the major part of your code from the backing bean into a method on the ApplicationModuleImpl file (you create this from the AM editor)
      public boolean checkForDuplicate(){
           ViewObject vo = this.findViewObject("ResponseVO");
           int numRows;
           int j=0;
           numRows = vo.getRowCount();
           String rowValue = "a";
    //the part below of your code I don't like at all. Why do you need to increase a flag
    //and use an if statement ?
           for (int i=0; i<numRows; i++){
              rowValue = (String)vo.getCurrentRow().getAttribute("ResponseFlag");
              if(rowValue.equals("Y")){                           
                  j++;
                  if(j>1)
                      return true;
             return false;                           
        }This code you then expose on the AM as a client interface (same AM editor --> Java menu option)
    In the PageDef file (double click it to access the visual editor) click the plus icon next to the Bindings header. Choose "Generic Binding" --> method binding and point it to the AM and the exposed method. This creates a method binding "checkForDuplicate"
    Change your managed bean code to
      BindingContext bctx = BindingContext.getCurrent();
      BindingContainer bindings = bctx.getCurrentBindingsEntry();
      OperationBinding checkForDuplicate = (OperationBinding ) bindings.get("checkForDuplicate");
      checkForDuplicate.execute();
      boolean isDuplicate =  checkForDuplicate.getResult();            
      if(isDuplicate){
             FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Two same respones!");
             FacesContext.getCurrentInstance().addMessage(null, msg);
                                               Frank

  • How to check the validation at data base level as well as current user ente

    Dear all
    i have creation page in that item code will not enter the duplicate values
    in that creation page contains advanced table
    user will click on create 15 blank records using add another row
    suppose in first row user will enter LAPTOP assume this item code
    in this case i need to raise exception through databse level
    in second row also user enter LAPTOP1 in this case exception will not raise becaause data is not there at databse
    in third row user will enter LAPTOP1 in this case item is not there in data base but it is there in second row in this case
    i need to raise exception
    how to achieve this
    Thanks in Advance
    Sreekanth

    You can validate this in form submission.
    1. Call a method in AMImpl.java
    2. loop the ViewObjects and check the values
    3. If you find a match, throw the error
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                   

  • How to check the qty is available when doing stock transfer.

    I need to remain the confrimed qty while doing stock transfer.
    for example:
    Unrestricted use : 20
    Sales Order       :  10
    Max qty for stock transfer = 20 - 10 = 10 but not 20.
    How to do customizating?

    Dear Amruta
    Thank you very much for your help.
    I use Checking Group '02' and can you tell me which checking roll is suitable for checking the qty while doing stock transfer.
    eg: the atp is 10 pic and stock transfer is allowed in 10 pic. it will message me if the transfer qty is more than 10 pic.
    Many thanks,
    Slam

  • How can I conceal my personal name when sending email out from my iCloud email account?

    I prefer to keep my first and last name private when I send e-mail about for my iCloud account. In the body of an e-mail, if it's a personal correspondence and appropriate, I will THEN elect to provide my full name. But I don't want my first and last name appearing involuntarily in the header of my e-mail as it arrives in the recipients inbox.
    I called tech support and spent 90 minutes on the phone on Sept. 23 and we did not manage to arrive at a solution. Revealing the first and last name connected to the account should always be an "elective" item. Privacy is paramount these days and not every e-mail you send out is solely for trusted friends and relatives. In age of Internet privacy woes, discretion should be the default and exposure of personal information the exception.
    Might anyone be able to help? Thanks!

    Hi allinforapple,
    If you are concerned about your full name being associated with emails your send from iCloud, you may find the following articles helpful. If the concern is about the address itself (i.e. [email protected], if you happen to have an address like that), you are able to create an Alias address tied to your account. If that is not a concern, you can also change the Full Name associated with your current address from the same Preferences > Accounts menu:
    iCloud: About email aliases
    iCloud: Create or change email aliases
    Regards,
    - Brenden

  • UIWebView - how to check the validity of url

    How can I check that a webView has started loading a webpage?
    I notice that the webViewDidStartLoad method is not called if there is some problem in the target url.
    Is there any way to notify the user that the url provided does not exist?

    How is the date entered? As a string? If so, use java.text.DateFormat to parse the string. If the string represents a valid date, a date object will be returned.

  • Help--how to check the exact time?

    Pls help me:
    How to check the accurate down-time when the Sun machine (with solaris 8 sparc) abnomally shutdown (eg. power failure)?
    or
    Is there any way to detect the exact time when I shutdown the Sun machine ?
    thanks.

    check /var/adm/messages ; uptime ; last ..
    there are quite a few method u can use

  • I am planning to take unlocked  iphone5 which is from USA, let me to know how to check the phone is valid ?

    i am planning to take unlocked  iphone5 which is from USA, let me to know how to check the phone is valid ?.How can i check is that properly unlocked, stolen and service.

    IF you can actually yet purchase an unlocked iPhone4 8GB from the US Retail stores is not clear
    They are certainly available from Apple.com but only if you have a US credit card and a US delivery address
    I suspect you do not fit this requirement
    You also have to be careful as the Apple Retail stores sell no contract iPhones these are NOT unlocked
    However if you are able to purchase an unlocked iPhone4 8GB then it will certainly work with the Approved carriers in India

  • How to use the validation work in Both TAB and Mouse keys in Forms6i

    Hi,
    I have a validation script once it's validated it should execute the query.But using When-Validate-Item i can't use execute_query.I am able to use the validation in Key-Next-Item trigger but if the user moves the cursor using mouse then it's not working.
    How to use the validation script working in Both Scenarios(Tab and Mouse keys).
    Can anyone please give inputs to rectify the above issue?.

    So you have multiple fields, but on at least one of them if it's valid you immediately want to execute the query?
    You could create a hidden field in a control block Query_Now default 'N'. In a WHEN-VALIDATE-ITEM on your item, if it's determined to be valid, then set Query_Now to 'Y'.
    In a WHEN-NEW-ITEM-INSTANCE at block level, check if Query_Now is 'Y'. If it is then execute the query (and set it back to 'N').

  • Ehancement for to check the validations in ME21n,ME22n,ME28,ME29n

    Hi experts...
    I have one requirement in Ehancement for to check the validations in ME21n,ME22n,ME28,ME29n...
    If the PO document date is after 31.12.2010 and vendor Group 1800 then check the Inco-terms with "SET" values whether the user entered value fals with in the "SET" value, if so then allow to save the PO else Else system should read the "SET" values and suggest user to select correct Inco terms.
    Example when user enter wrong Inco-Terms then system shoud give Error Message Please Select Inco-terms CPT or DAP or FCA..
    Can any body plz suggest me the user exit or Is it possible through the enhancement Framework...
    plz help me how to proceedd??
    Thanks & Regards,
    Veena.
    Moderator Message: Spec-dumping is not allowed.
    Edited by: kishan P on Jan 3, 2011 11:00 AM

    Hi Veena,
    To find a BADI for a given tcode follow the below steps.
    1. Go to the TCode.
    2. Menu Item System -> Status.
    3. Double click on the transaction Name (For ME21N double click on ME21N).
    4. Check the Package (e.g. ME)
    5. Go to TCode SE80
    6. In the drop down choose Package and type the Package Name (e.g. ME). Dont forget to Hit Enter or display.
    7. Object Name Enhancements -> Business Add-ins (Def.) (You will see all the BADI's available here ).
    In your case, you need BADI : ME_BAPI_PO_CUST.
    Go to SE19 to implement the BADI.
    If you put your conditions in Create Purchase Order(ME21N), you will not need to add them in Release PO(ME28N) since the conditions will be checked when PO is created.
    Regards,
    Jovito.

  • How to Change the Validity period

    Hi All,
    Could any one please explain how to change the validity period of SAP as when i am trying to post the PO with a delivery date in year 2011 it is not allowing me more than 2010 year. When i checked in Calender Maintenance the last entry in it is 2010. When i am trying to change the validity of the Indian settings it is not allowing me to change the year from 2010 to 2012 or any other.
    regards
    PSNG

    Hi,
    Just check "FOPC_CONSIST_CHECK" T-Code .
    Acthually this is for "Consistency Check on Validity Period"
    I am not very sure weather change option is there or not.
    Thanks
    Mayank

Maybe you are looking for

  • Adobe flash player crashing my whole computer could anyone please help?

    Is this just a win vista problem or something? Computer specs: Windows Vista™ Home Premium (6.0, Build 6002) Service Pack 2 Dell XPS430 BIOS: Phoenix ROM BIOS PLUS Version 1.10 A00    Processor: Intel(R) Core(TM)2 Quad CPU    Q8300  @ 2.50GHz (4 CPUs

  • How can i make myself the accoumt owner

    how do I get my self to be the account owner since its my phone

  • Front Row TV Shows in Movie folder!!??

    Why are my TV shows showing up in my Movies folder when I use Front row, they are in the TV show Folder when i am in iTunes?? This started with the last itunes update, never had the problem before. Thanks, Mark

  • Status icon cut-off ~ MBP Retina, OS X 10.10 (Yose...

    Hi, I recently updated to OS X Yosemite, and since then, have noticed that the status icon in skype is cut in half. I'm seeing this on a 13" Retina MacBook Pro, screenshot attached. Thanks, Brad Attachments: Screen Shot 2014-10-28 at 09.14.07.png ‏23

  • Convert Big5 to UTF8

    I am using Oracle9i 9.2.0.4.0 in HP Unix. I have a table containing Chinese data but with different encoding method. Some data use Big5 and some use UTF8. How can I convert the Big5 characters into UTF8 in store procedures, PL/SQL, or Java??? Thanks,