Check all Characters in String

Post Author: jmb1977
CA Forum: Formula
Hello! I am having the following problem....
I am creating a list of login names based off the first character of the first name and the rest of the login name would be the last name.
i.e. John Doe would be jdoe.
I am doing the following to accomplish it:
stringVar ntuser;ntuser := Left ({TCHDEMO.TCHFIRSTN}, 1) + {TCHDEMO.TCHLASTN};LowerCase (ntuser)
However, some last names contain spaces, apostrophes and hyphons. How could I edit the formula to ignore those characters when building the login name?
Any help on this would be greatly appreciated!!

Post Author: SKodidine
CA Forum: Formula
stringvar tempuser := replace({TCHDEMO.TCHLASTN},'-','');
tempuser := replace(tempuser,' ','');
tempuser := replace(tempuser,"'",'');
If some last names have two consecutive spaces then repeat the statement that replaces a single space above.
stringvar ntuser := lcase({TCHDEMO.TCHFIRSTN}[1] & tempuser);

Similar Messages

  • Need a windows script to check all unix db boxes are pinging ?

    Hi ,
    I need a windows script to check all unix remote db boxes are pinging ?
    I need to show the output in an html file.
    Can anyone suggest ideas ?

    I have a script that "kind of" works. The only problem I've seen is that it gets confused when filenames contain characters that are fine in Macland but not good in Unixland. Forward slashes are a good example of this.
    In this case I have a folder in my home named "copytest" Inside copytest are two folders:
    Source (containing the images to be added)
    Dest (My existing library of images)
    It also assumes that the folder of images to be added contains no sub-folders. Hope this helps.
    tell application "Finder"
    set theSource to folder "source" of folder "copytest" of home
    set imagesToBeCopied to name of every file of theSource
    end tell
    repeat with theFile in imagesToBeCopied
    try
    if (do shell script "find -r ~/copytest/dest -name " & quoted form of (theFile as string)) is not equal to "" then
    --The file exists. Don't copy it
    else
    --the file doesn't already exist. Copy it.
    end if
    on error
    return "Failed while trying to check for existence of a file"
    end try
    end repeat

  • Not all characters showing up in "Import Settings" dialogue

    On the "Import Settings" dialogue in preferences, not all characters are shown when you select an encoder and use a custom setting.
    For example:
    When you select AIFF encoder and click "Custom...", sample rate and channel is shown as "sample rat" and "channe".
    Can someone tell Apple to fix this?

    Sounds like you have "Compilations" switched on.
    In Itunes look at "get info" for the missing artists and see if the part of a compilation box is checked.
    On you iPod go to settings>compilations and toggle it to off
    To get the artists to show up on the Ipod you only need to do step 2.
    When you have the compiliations features switched on (in either iTunes or iPod) artists that only have albums that are compilations will not show up in the artist list.
    As for your other problem you can sort the columns by clicking on the title bar at the top, to sort by artist or you can add something to the "Greatest Hits" album title to differentiate it - for example all my greatest hits albums are titled GH - Artist so I know which one is which

  • Material PO texts not captured completely(all characters) in report

    Hi Experts,
    Please let me know How to capture all characters of a Material PO Text as maintained in Material master in a standalone report.
    Have used STXh table to poppulate the characters based on material numbers but it seems all characters are not captured in the report it is truncating some characters from the PO text entry.
    Thanks,
    AKS

    HI,
    check with your ABAp consultant
    How max character you have upload in material master and how max charterer you are reading in your report
    that may be reason
    Regards
    Kailas Ugale

  • Code to check whether a given string contains alphanumeric

    Can anyone post the Code to check whether a given string contains only alphanumeric and no special characters

    <Rule name='isAlphaNumericString'>
    <RuleArgument name='testStr'/>
    <block>
    <defvar name='counter'>
    <i>0</i>
    </defvar>
    <defvar name='splitString'>
    <while>
    <lt>
    <ref>counter</ref>
    <length>
    <ref>testStr</ref>
    </length>
    </lt>
    <append name='splitList'>
    <substr>
    <ref>testStr</ref>
    <ref>counter</ref>
    <i>1</i>
    </substr>
    </append>
    <set name='counter'>
    <add>
    <ref>counter</ref>
    <i>1</i>
    </add>
    </set>
    </while>
    <ref>splitList</ref>
    </defvar>
    <containsAll>
    <list>
    <s>A</s>
    <s>B</s>
    <s>C</s>
    <s>D</s>
    <s>E</s>
    <s>F</s>
    <s>G</s>
    <s>H</s>
    <s>I</s>
    <s>J</s>
    <s>K</s>
    <s>L</s>
    <s>M</s>
    <s>N</s>
    <s>O</s>
    <s>P</s>
    <s>Q</s>
    <s>R</s>
    <s>S</s>
    <s>T</s>
    <s>U</s>
    <s>V</s>
    <s>W</s>
    <s>X</s>
    <s>Y</s>
    <s>Z</s>
    <s>a</s>
    <s>b</s>
    <s>c</s>
    <s>d</s>
    <s>e</s>
    <s>f</s>
    <s>g</s>
    <s>h</s>
    <s>i</s>
    <s>j</s>
    <s>k</s>
    <s>l</s>
    <s>m</s>
    <s>n</s>
    <s>o</s>
    <s>p</s>
    <s>q</s>
    <s>r</s>
    <s>s</s>
    <s>t</s>
    <s>u</s>
    <s>v</s>
    <s>w</s>
    <s>x</s>
    <s>y</s>
    <s>z</s>
    <s>0</s>
    <s>1</s>
    <s>2</s>
    <s>3</s>
    <s>4</s>
    <s>5</s>
    <s>6</s>
    <s>7</s>
    <s>8</s>
    <s>9</s>
    </list>
    <ref>splitString</ref>
    </containsAll>
    </block>
    </Rule>
    It Retruns 1 if it contains only alphanumeric otherwise 0

  • Replace special characters in String

    Dear Guru ,
    Does SAP provide the standard function that can replace the special characters in String ?
    For example :
    I have one template string : " & & & & & output(s) have not been processed yet ! " and five parameters : "P1" , "P2" , "P3" , "P4" , "P5" .
    And i would like to apply all parameters into the string to replace the "&" character . Is it possibile ?
    My idea is sourcing from the Message String that in tcode : SE91 .
    Thanks .
    Best Regards,
    Carlos Zhang

    Hi Carlos,
    I think instead of a standard FM you can write a one line command to do this job.
    E.g. 
    constant: str1 type string value 'output(s) have not been processed yet ! '.
    data: var1 type c,
             var2 type c,
             var3 type c,
             var4 type c,
             str    type string.
    concatenate var1 var2 var3 var4 str1 into str separated by space.
    So str will have the final value.
    Thanks,
    Mainak

  • HT201317 Photos from my iphone and ipad are going into my photo stream on the devices but aren't going into the folder on my windows PC. They used to but they suddenly stopped. Has anyone else had this same problem?. I have checked all settings and they a

    Photos from my iphone and ipad are going into my photo stream on the devices but aren't going into the folder on my windows PC. They used to but they suddenly stopped. Has anyone else had this same problem?. I have checked all settings and they appear OK

    Hi AP_In_Surbiton,
    I am really sorry that you have had so much trouble getting your Caller ID up and going.  I'll be happy to help you out with this and get it working for you.
    Could you drop me in an email please? Use the 'contact us' form in my forum profile under the 'about me' section. You can find it by clicking on my username.
    Thx
    Craig
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)”
    td-p/30">Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • FCE4.0.1 won't open when the App Icon is clicked. I've checked all Ext HD (verified prefs)- have trashed the FCE App and reinstalled from FCE discs, have downloaded the Plug In. I clicked on the FCE icon, the windows that says :registered to...and then l

    FCE 4.0.1 won't open when I click the icon in the Dock or in the Applications icon of FCE. It had been working well but I had trouble when I trashed the reference Scratch disk to a project and I was asked to get it back. I checked all my drives through verify in Disk Utility and a couple needed repair - eventually were given the OK. I then Shut Down and rebooted, I then trashed the FCE App and reinstalled from the Install discs and , finally, I tried opening a FCE project. None of these caused the FCE App to open with Browser, Viewer, Canvas,. Time Line. All that happens is the the first FCE window, the one that says FCE registered to...and the other that says loading AE Effects, Video Effects does show but then nothing except my Desktop with it's various folders and files I also downloaded the Plug In Tom Wolsky suggested to a recent query.
    All I can think of is to backup everything to HDs and take this iMac in for a service.It is only six months old - I reckon it will be poor driving by it's proud but unskilled driver!
    James Bowman
    New Zealand

    Don't panic . . . . . yet!
    You may not have trashed FCE properly.
    Deleting the application icon is useless as there are a number of files hidden elsewhere which may be corrupt.
    Download this free app to uninstall FCE completely and then reinstall it.
    FCS Remover - Uninstall Final Cut Studio, Final Cut Pro, Motion, Compressor, Soundtrack Pro, Color, DVD Studio Pro, LiveType, Cinema Tools
    I know it is called FCS Remover but it also works for FCE.

  • I have HDMI connection to the receiver and on to the TV - but no audio from my new Apple TV.  I have checked all connections and the video is xlnt.  Have also toggled thru every possible Dolby/Audio combination in settings.  Help!  Any suggestions?

    I have an HDMI connection to the receiver and on to the TV - but there is non audio from my Apple TV.  Not for movies, music, YouTube etc.   I have checked all of the connections and the video is xlnt.  Have also toggled thru all possible Dolby/Audio combinations in settings.  Help!  Any suggestions?

    Hello again Parker -
    The basic setup is Digital Cable Box, DVD Player, Denon Receiver/Amp and TV Monitor.  To that I added the Apple TV.  The Receiver only has two HDMI IN slots (one for cable and one for the DVD) and one out to the Monitor. 
    [I bought a switcher to toggle the DVD and the AppleTV back and forth but just disconnected the DVD to simplify when I ran in to trouble.]
    So now I have:
         HDMI from the Cable Box to the Receiver
         HDMI from the Apple TV to the Receiver (in the old DVD slot which always worked well)
         HDMI from the Receiver to the Monitor
         RCA's from the Receiver to the Subwoofer and the other speakers
    In addition I have some backup connections:
         S-Video, Optical Audio and L/R RCA's from the Cable Box to the Receiver
         S-Video from the Receiver to the Monitor
    Wait - JUST FOUND IT! 
    By going thru the excercise to track all of the connections per your suggestion, I found an anomaly when I switched Receiver sockets for the HDMI links.  The video moved but the audio didn't.  Turns out the monitor was using the optical audio feed from the receiver.  So I disconnected the optical audio and the monitor automatically switched to the HDMI audio feed!   Looked promising...
    So I first connected an optical audio feed from the ATV to the receiver - Audio!  Then I pulled it, but the audio didn't switch to the HDMI feed.  It stopped.  Would be OK if all I was going to use is the ATV, but I need the DVD player too and I can't use a switcher to toggle between them if I have to unplug the optical audio each time.
    This is becoming a career!  Any suggestions?
    Will

  • I can't get FaceTime or iMessage to connect, I enter valid password (tested and works for Apple account) and it won't connect. I have checked all settings, upgrades iOS to 8.3 rebooted, changed Apple acount PW still wont connect. My internet connecti

    I can't get FaceTime or iMessage to connect, I enter valid password (tested and works for Apple account) and it won't connect. I have checked all settings, upgrades iOS to 8.3 rebooted, changed Apple acount PW still wont connect. My internet connection is fine Safari works and I can access all sites. I have an iPad 2. Any help on this will be greatly appreciate.  iPad 2, iOS 8.3

    This is an ongoing problem as you will see by searching the forum. 
    Out of curiosity, do you have 2 step verification enabled?  It was recently extended to include iMessage & FaceTime & I'm wondering if it might be causing some of the issues that some users are experiencing.

  • When I tap the mail icon on my iPhone 4s, the menu of email servers pops up.  I already have a me acct that I check all the time, no problem.  So I choose iCloud, sign in and it tells me that I already have an acct-.so why can't I get to my emails then?

    When I tap the mail icon on my iPhone 4s, the menu of email servers pops up.  I already have a me acct that I check all the time, no problem.  So I choose iCloud, sign in and it tells me that I already have an acct….so why can't I get to my emails then?  I've turned the phone off and on twice....that has fixed it in the past but not this time....

    all fixed ha

  • How to force all characters in prompt text field will be in uppercase???

    Hi everybody
    How to get that all characters in a prompt field of a Webi report will be compared in uppercase with the database field ?? Even if the user input text in lower case.
    this is due to the database all filelds are in uppercase, and avoid to say to the users they input fileds in uppercase.
    i looked for a parameter in a universe and in oracle.prm filed, and i didn´t find it.
    Thanks in advance
    Guillermo
    DB: ORACLE 10G
    BO: XI r2

    Thanks a lot rohy.
    now i use that solution, but my intention is try to solve to all objects, not each object individualy, due to i have a lot of objects that a user can choose from a prompt, and i have a lot of filters to do that
    i would like to change some parameter to do that at one time.
    i investigate about it......
    thanks again.
    best regards Guillermo
    have a nice day

  • "all my music is unchecked.  I can not check whole playlists by using the top checkmark to select all.  I went to all my playlists, same thing.  I can only press them ONE at a time, which will take about a day to check all of them." Please help.Windows7

    "While in MY MUSIC on itunes, all my music is unchecked.  I can not check whole playlists by using the top checkmark to select all.  I went to all my playlists, same thing.  I can only press them ONE at a time, which will take about a day to check all of them.
    any ideas?  anyone have same problem?  This just happened since last update." I have windows7

    Thanks A Lot! I should have clicked: "This solved my question" But Thanks all the same!

  • How do I stop getting email notifications from Apple. I have checked all of the "no" boxes. Help!

    How do I stop getting email notifications from Apple support. I have checked all the "no" boxes. Help!

    https://discussions.apple.com/docs/DOC-3661
    Message was edited by: deggie

  • Have Ipod Touch 2nd Gen. I noticed that my music will not play alphabetically anymore. Don't know exactly when this occured. I checked all my settings so doesn't seem to be that.Apple no longer is upgrading this unit..Thank u for your help.

    Have Ipod Touch 2nd Gen. 64 gig. I noticed that my music will not play alphabetically anymore. Don't know exactly when this occured. I checked all my settings so doesn't seem to be that.Apple no longer is upgrading this unit..I use windows XP but don't believe this is an issue since i have read posts saying this is not the problem..right now am converting my higher bit rate music to see if that changes anything. I also turned off my unit and the next thing am going to do is a restore if this doesn't work. Anyone find a fix for this yet? I also see that this is not a unique problem to Gen 2 units and is occuring on newer units as well..thank you all for any advise...

    - Unsync all music and resync
    - Reset all settings      
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up                                                                
    - Restore to factory settings/new iOS device.             

Maybe you are looking for