Email id validation in dialog screen

Hi friends,
How can i validate email id for input field in dialog screen. can any one gives me code for it.
Thank you.
Regards,
Virat

Hi,
I suggest the below logic---
llen = strlen( lemail ).
do llen times.
lchr = lemail(1).
case lchr
  when '@'.
   lasterix = lasterix + 1.
  when '.'
   ldot = ldot + 1.
  when others.
*checking for any wierd char apart from alphanumeric.
  if lchr na sy-abcde and lchr na '0123456789'.
   lerror = 'Y'.
   exit.
  endif.
endcase.
shift lemail.
enddo.
if ldot ne 2 or lasterix ne 1.
lerror = 'Y'.
endif.
--> lerror = 'Y' is Error
Regards,
Richa

Similar Messages

  • Photoshop Elements #11 dialog screen missing

    I AM UNABLE TO OBTAIN THE SCREEN THAT HAS THE ADVANCED DIALOG BOX ON THE LOWER LEFT HAND CORNER SO THAT I CAN STATE NAME OF CREATOR, COPYWRIGHT ETC.    I have had PS Elements since #1, and never had this problem.'    Yes, I have gone into Preferences and can set download option, but cannot get the screen I have just described.     PLEASE HELP ME

    HI,
    This still does not work.  I have tried to correct this several times 
    before by doing just what you suggest, but it does not work.   I click  on "APD
    Advanced Dialog", and it still does not appear when I load my  compactflash
    card.    This also DOES NOT bring up the  Advanced Dialog box where I can
    select either advanced or regular  etc.   Something is seriously wrong with
    this edition of Photoshop  11.   I also tried to acces the link you sent, and
    I cannot open  it.  - ???????
    We still have a problem that is not fixed.
    I still await your phone call either tomorrow (Friday) or Monday.
    Regards,
    Dave Pidcock
    David E. Pidcock
    VisionQuest Enterprises
    VisionQuest  Photography
    405 27th Avenue N.E.
    Great Falls, MT 59404
    (406)  727-2466
    [email protected] 
    In a message dated 2/21/2013 7:30:12 P.M. Mountain Standard Time, 
    [email protected] writes:
    Re:  Photoshop Elements #11 dialog screen missing
    created by andaleebfatima1
    (http://forums.adobe.com/people/andaleebfatima1)  in  Photoshop Elements - View the full  discussion
    (http://forums.adobe.com/message/5083732#5083732)

  • Open and editor windown from a dialog screen.

    Hi,
    Does anybody know how to open an editor window to write large text notes (1,000 chars or more) from a dialog screen?
    Then how this data is stored on a table?
    I need to save large amounts of text and I have seen this on SAP transactions.
    Any help will be appreciated.
    Thanks,
    Orlando.

    Oh, I see.  I would not suggest using a sapscript editor. I would use the text editor that I mentioned early.  If you really want that functionality of the sapscript editor, you can do that.  Either way you will need to create a custom text object/id to save your text to the db.  Here is an example of using the sapscript editor.
    report zrich_0002.
    data: header type THEAD.
    data: txt_lines type table of tline with header line.
    header-TDOBJECT = 'AUFK'.
    header-TDNAME   = '001000000001'.
    header-TDID     = 'LTXT'.
    header-TDSPRAS  = sy-langu.
    header-TDLINESIZE = 70.
    * First read the text, if there is any.
    call function 'READ_TEXT'
      exporting
    *   CLIENT                        = SY-MANDT
        id                            = header-tdid
        language                      = sy-langu
        name                          = header-tdname
        object                        = header-TDOBJECT
    *   ARCHIVE_HANDLE                = 0
    *   LOCAL_CAT                     = ' '
    * IMPORTING
    *   HEADER                        =
      tables
        lines                         = txt_lines
    * EXCEPTIONS
    *   ID                            = 1
    *   LANGUAGE                      = 2
    *   NAME                          = 3
    *   NOT_FOUND                     = 4
    *   OBJECT                        = 5
    *   REFERENCE_CHECK               = 6
    *   WRONG_ACCESS_TO_ARCHIVE       = 7
    *   OTHERS                        = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    * throw editor, allow user to change
    call function 'EDIT_TEXT'
      exporting
    *   DISPLAY             = ' '
    *   EDITOR_TITLE        = ' '
        header              = header
    *   PAGE                = ' '
    *   WINDOW              = ' '
        SAVE                = 'X'
    *   LINE_EDITOR         = ' '
    *   CONTROL             = ' '
    *   PROGRAM             = ' '
    *   LOCAL_CAT           = ' '
    * IMPORTING
    *   FUNCTION            =
    *   NEWHEADER           =
    *   RESULT              =
      tables
        lines               = txt_lines
    * EXCEPTIONS
    *   ID                  = 1
    *   LANGUAGE            = 2
    *   LINESIZE            = 3
    *   NAME                = 4
    *   OBJECT              = 5
    *   TEXTFORMAT          = 6
    *   COMMUNICATION       = 7
    *   OTHERS              = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    * When user comes back from editor, save the text
    call function 'SAVE_TEXT'
      exporting
        CLIENT                = SY-MANDT
        header                = header
    *   INSERT                = ' '
    *   SAVEMODE_DIRECT       = ' '
    *   OWNER_SPECIFIED       = ' '
    *   LOCAL_CAT             = ' '
    * IMPORTING
    *   FUNCTION              =
    *   NEWHEADER             =
      tables
        lines                 = txt_lines
    * EXCEPTIONS
    *   ID                    = 1
    *   LANGUAGE              = 2
    *   NAME                  = 3
    *   OBJECT                = 4
    *   OTHERS                = 5
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    So for your case, you must create a custom Text Object and ID via SE75.
    REgards,
    Rich Heilman

  • Multiple select options validation at selection screen

    Hi,
    I have the requirement to create a selection screen with 3 select options. Two of them are cross-dependent. It is mandatory to fill one of them and it is not allowed to fill both. The third one is optional. I tried the validation at selection-screen on block... and I have a problem that search help buttons for select options react like execution buttons, when I press any of them I am getting one of errors instead of search help.
    Any help on this issue would be appreciated.
    Here is my code:
    DATA:
          so_rbkp TYPE rbkp,
          so_mseg TYPE mseg.
    SELECTION-SCREEN BEGIN OF BLOCK blok WITH FRAME.
      SELECT-OPTIONS:
            s_fakt   FOR so_rbkp-belnr,
            s_matdok FOR so_mseg-mblnr,
            s_god FOR so_mseg-gjahr.
    SELECTION-SCREEN END OF BLOCK blok.
    INITIALIZATION.
    SET TITLEBAR '0100'.
    START-OF-SELECTION.
      AT SELECTION-SCREEN on block blok.
          if s_fakt <> space and s_matdok <> space.
            MESSAGE 'Message1' TYPE 'E'.
          elseif s_fakt = space and s_matdok = space.
            MESSAGE 'Message2' TYPE 'E'.
          endif.
        ENDIF.

    Only perform the check when user wants to execute or submit the program, not when pressing F4 or even Enter, but in a selection-screen event, before START-OF-SELECTION which were program would terminate in error :
    TABLES: SSCRFIELDS.
    AT SELECTION-SCREEN OB BLOCK b01.
        IF sscrfields-ucomm EQ 'ONLI'
        OR sscrfields-ucomm EQ 'PRIN'
        OR sscrfields-ucomm EQ 'SJOB'.
          IF s_fakt[] IS NOT INITIAL AND s_matdok IS NOT INITIAL.
            MESSAGE 'Message1' TYPE 'E'.
          ELSEIF s_fakt[] IS INITIAL and s_matdok[] IS INITIAL.
            MESSAGE 'Message2' TYPE 'E'.
          ENDIF.
        ENDIF.
    (You could also always send the message, but using type 'E' for those function code and 'S' status for any other value.)
    Regards,
    Raymond

  • Need to Increase the Font Size of a screen field in a Dialog Screen ?

    Hi ppl,
    I have a requirement wherein i need to increase the font size of one field on a dialog screen .
    i was going through the threads and found this which has beautiful example given by vijay
    Increase text size in Screen
    But I'm facing a problem in implementing it since the value in the field (of which the font size needs to be increased) depends on a nother field filled by user at runtime only.
    Can anyone gimme some suggestions or alternative way to solve my problem
    Thanks
    Sachin Soni

    Hi Sachin,
    There is not way to change the font style.
    But you can add ur own text through icons or graphics.
    Create your own graphics or icons and include it in ur module pool.
    Or,
    Goto the Layout Editor of your Screen.
    Double click on the text field .. Double clk the text fild, and from the Botton right u can see an arrow icon -> click on that -> will open a Popup -> in that set Area Title to TRUE.
    Hope this solves your problem.
    Thanks & Regards,
    Tarun Gambhir

  • Siri says she can't read my email from the iphone5s lock screen when I'm using the standard headphones, but I could do that on 4s. How can I get my 5s to do that?

    Siri says she can't read my email from the iphone5s lock screen when I'm using the standard headphones, but I could do that on 4s. How can I get my 5s to do that?

    Hi Liz,
    Sorry to hear you are having a similar problem.  Last night I went to the tool bar at the top of iphoto, clicked on "File",  then clicked "Browse Backups" in the drop down menu.    I have an external hard drive that is set up to Time Machine.   The Browse Backups  opened the iphoto pages in the Time Machine.  I selected a date one day ahead of the day I performed the now infamous update, and it showed my iphoto library as it had existed that day.   I then clicked  "Restore Library" at the bottom right corner of the Time Machine screen.   Roughly 2 hours later my iphoto was back to normal.   When I opened iphoto there was a message saying I need to upgrade my program to be compatible with the new version of iphoto(version 9.2.1).  I clicked "Upgrade" and within seconds it had done whatever upgrading it needed to do. 
    The only glitch in the restoration was that it restored the library as it appeared last week, so I no longer had photos I had imported this past weekend.   I simply went back to the Browse Backups in the drop down menu,  when Time Machine opened I selected the page showing my pictures from this weekend and again said to Restore Library.   Roughly 45 minutes later the library was restored including the most recent photos.  
    I am now a happy camper. 
    I don't know if any of this will be of help to you because your email says you are having trouble with photos imported after the upgrade was performed.   Have you had any pop up notices when you first open iphoto,  that tell you you need an upgrade to be compatible with the new iphoto?     If so have you clicked "upgrade"? 
    Good luck Liz,  if you have Time Machine running as a back up to your library, maybe you wil be able to get help there, by following my instructions above.   Otherwise,   good luck with your investigations.   I'd be interested in hearing how you make out.
    Karen

  • How can I print a whole email document and not a "screen shot" like I get in the Print Preview option.

    How can I print a whole email document and not a "screen shot" like I get in the Print Preview option. I'd like to print from "file" and print" like I can on other browsers (IE, for example). When I try to print from Firefox it grabs all my info (file folders, etc.) from the left side of the page. I need just the email information, not the entire screen information. Thank you!
    -Bruce

    I agree; I should, but I can't :) I have an orange Firefox drop down that I go to to print, and it allows me to select "print", "print preview" and "print setup", where I can change the margins. It always defaults to a full screen shot (I use Yahoo) and does not show just the email. I don't need to print what is on the left side of the screen or anything other than the email (I can achieve these things by using file-print from IE, so I know it is doable, and I am still going into Yahoo and using their email when I do it).
    Hope this helps. I'm not a fan of IE, but I really don't like the print properties I'm getting here (I'm a long time Mozilla user, but I'm losing too much info with this option and can't afford that anymore).
    Thanks for the help!
    -Bruce

  • Module Pool - Error message on a Modal Dialog screen with input

    Hello All,
    I have a modal dialog screen which is called on F4 help of a input field. This dialog screen has radio buttons on it to select. On selection, we check if the user is authorized to that option. If not, raise and error message with command MESSAGE msgid.....
    When the error message pops-up and when clicked ok on it, the radio buttons on the modal dialog screen gets disabled. I want to have the modal dialog box to be able to accept the new radio button as input.
    Can anyone please suggest.
    Thanks,
    Smita

    Put all of your Radio buttons in the CHAIN ... ENDCHAIN with one module.
    CHAIN.
        FIELD rb1.
        FIELD rb2.
        FIELD rb3.
        MODULE check_chain ON CHAIN-REQUEST.   "<< implement logic in check_Chain
      ENDCHAIN.
    If you want, you can even disable the options before displaying the screen. Do all necessary checks in the PBO and based on that disable the options.
    Regards,
    Naimesh Patel

  • Slow opening print dialog screen in Windows 8.1

    I have Adobe Reader 11.0.5 and am using Windows 8.1.  When I click on the print icon, it takes 20 to 30 seconds for the print dialog screen to open.  This is maddening.  Does anyone know why and how to speed it up?

    Hello eycon
    Try out the article below to troubleshoot your issue with iTunes freezing on you. Also check to make sure that when you removed iTunes, did you uninstall in the order of the second article as it does make a difference when troubleshooting the issue.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/ts1717
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    Regards,
    -Norm G.

  • How can I remove my email address from the lock screen?

    How do I remove my email address from the lock screen? My dad bought me a new laptop after mine was stolen from my house on New Year's Eve. I'm a little tighter on my security now and when I turn on my laptop the lock screen shows me my name and my email
    address. If my laptop gets stolen again, I don't want my email address to be displayed for someone to use or sell as I'm extremely picky about what I'm giving out my email for. If there isn't a way to hide my email address, I'm going to demand a "downgrade"
    from this Windows 8 s**t and back to the more user-friendly and less confusing Windows 7. (And for the record, I hate Windows 8. With a passion.)

    Hello,
    The TechNet Wiki Forum is a place for the TechNet Wiki Community to engage, question, organize, debate, help, influence and foster the TechNet Wiki content, platform and Community.
    Please note that this forum exists to discuss TechNet Wiki as a technology/application.
    As it's off-topic here, I am moving the question to the
    Where is the forum for... 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 ('6F6C646B61726C40686F746D61696C2E636F6D'-split'(?&lt;=\G.{2})'|%{if($_){[char][int]&quot;0x$_&quot;}})

  • How to add favorite folders to "Save As.." dialog screen

    Hi all,
    To the Windows Explorer shell it is possible to add favorite folders to the "Save as..." dialog screen (done so by dragging shortcuts to an open "Save as..." screen). [ see screendump for what I am referring to ]
    Now one would suppose the same is possible for the "Save As..." screen from within Adobe Acrobat Pro.
    Unfortunately, it is not: no possibility to add favorite locations there....
    This isn't productive at all, since my docs are on a separate disc in non-standard folders. Each time I wish to save PDF-scanned documents to the harddisk, I need to click my way through too much folders...
    Anyone know a way (registry edit perhaps?) that enables me to add favorites to the Adobe "Save As..." screen?
    (I really need it there, instead of e.g. creating shortcuts on my Desktop...)
    Thanks for your help!
    Willy

    Ok, here are three solutions I tested, all seem to work in my copy of vista.
    The easiest: grab the 'places bar editor' from here: http://melloware.com/download/
    Moderate: use TweakUI, the windows XP utility.  You need to jump through some hoops to get it to run in Vista, but it seems to work fine.  Follow the instructions by n8barber a few posts down: http://forums.techarena.in/vista-help/700353.htm
    Hardest: edit the registry.  I added the string using a single \ in the path, but somehow when i exported it I show a double \.  I guess you will have to fiddle with this.
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\comdlg32\PlacesBar]
    "Place4"="h:\\Project Files"

  • How to suppress the protocol dialog screen in ALV grid ?

    To check the values in the ALV grid we make use of the method add_protocol_entry from the class interface CL_ALV_CHANGED_DATA_PROTOCOL. The coloring of the wrong cells in the ALV grid is a nice feature but the popup screen that appears on every entry that is incorrect is not so nice. Is there a possibility to suppress this dialog screen without stopping the coloring feature? Or is there an other way to get this coloring feature in the specific cells of the ALV grid. We have already tried the emphasize option in the field catalog but in this case the coloring of a cell disappears when the cursor is set on the colored field in the ALV grid.
    I hope somebody can help us.
    Thanks and greetings,
    Ad Pegels
    Suiker Unie
    Netherlands

    As I understand by adding the PROTOCOL you are trying to validate some fields and display those with a different color.
    Instead, if you can validate and can change the color manually I think the pop ups can be avoided. All you have to  do is to add a nested internal table to the main internal table that has the display data. This nested table will be of type LVC_T_STYLE. You can add rows, one for each field that you want to display in a different color and also spcify the style in which you want to display.
    Once you do that those fields should be displayed with different colors.
    Regards,
    Ravi
    Note : Please allocate points if you find this useful.

  • Selection-screen in a Dialog Screen

    Hello,
       I want to create a selection screen in a dialog screen with all its functionality specially the option for multiple selection like want I'm doing in a report-type program. Is this possible?
    tnx,
    Jeff

    Hi Jeffrey
    As Harald mentioned, it is possible. You can check out Re: Store select-options on database to find some more information.
    As another thing, since you are a new SDN member, you are welcome and let me introduce you the SDN forums pointing system: You can assign points to posts you find while helpful solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;
    - one 10 points (solved)
    - two 6 points (very helpful answer)
    - many 2 points (helpful answer)
    Kind regards...
    *--Serdar

  • Unexpected behaviour upon pressing the 'Enter' key on dialog screen

    Hi.
    I have two dialog screens that exhibit unexpected behaviour when i pressed the 'Enter' key.
    Screen 1: When I pressed the 'Enter' key, the focus shifted to another input field and the content of the previous input field is cleared. The thing is, I did not have any codes in PAI for 'Enter'. Why is this happening?
    Screen 2: On load, some of the fields on this screen will be disabled. However, when I pressed the 'Enter' key, all the disabled fields become enabled. Again, I did not have any codes that handle the 'Enter' key in PAI. Why is this happening?
    Any help is appreciated.

    Hi Atish.
    Yes, I have used CHAIN... END CHAIN.
    I thought that CHAIN... END CHAIN allows my input fields to be re-activated after an error message is displayed.
    How would CHAIN... END CHAIN cause the unexpected behaviour?
    Thanks.

  • Adding a Forward functionality on the Workitem dialog screen itself

    Hi SDM forum members,
    I am having some issues with adding a forward functionality to a custom dialog screen.
    I  tried to add a forward button on the WI screen , which in the background calls a fm that basically calls
    SWL_SELECT and then SWL_WI_FORWARD FM , for some reason the forwarding does not complete as expected .To explain further , suppose i am forwarding to X user the the WI still shows up in my inbox , and Workflow log shows both users assigned as agent( me and X) and though there is forwarded icon against user X  in the log -> view agent box . The Wi status is ERROR.
    example of error-
    Error handling for work item 000000055578
    Message no. SWF_RUN630
    This explians nothing to me but my guess is the issue is that WI gets completed because i execute it while forwarding it .
    Now if i get the WI id and input it to the above mentioned FM (se37) then it is forwards correctly.i can see the change in SWI1 log too. it is assigned correctly to user X with the forwarded icon and everything.
    So  i thought maybe i need to change the status of the Wi back to ready , but that is not possible, can't go back in status, Error again  .So i tried doing exit_cancelled in the WF , that does not work either , because that does not  forward the WI  atall.
    So my question is has anybody forwarded the WI  by providing an option on the WI execute screen? Is it possible using the SWW fm's ?
    Please let me know if anybody has any  solutions / ideas/ thoughts.
    I wish i could put in some screensshots , but anyways i hope you understand what i am saying , if not maybe i can elaborate further later.
    thank you ,
    Preeta

    Hi,
    Try with these FM's:
    SAP_WAPI_FORWARD_WORKITEM
    And for information: SAP_WAPI_FORWARDING_INFO_GET
    PS: Status change from COMPLETED to READY is not allowed/possible
    Regards,

Maybe you are looking for