If the user name start with stmgr6001..............stmgr6250

Hi Gurus,
if the uername start with stmgr6001
                                        stmgr6002
                                        stmgr6003.........................stmgr6250 then select the last 4characters append into the selection screen field and disable that field and proceed other wise stop the program.
kindly help me for this how to write code ................
regards
dk

Use event At selection screen output en de system variable SY-UNAME.
if sy-uname(5) = 'stmrg'
  if sy-uname+5(40 >= 6001
  and sy-uname+5(40 <= 6250.
       The select-options are of type range table.
        create a work area type select-option to be filled and fill the variables with the last Sy-uname+5(4).
append to select-option
  endif.
endif
This is basic stuff

Similar Messages

  • PowerShell add Printer Permissions where the printer name starts with...

    I have a printer server that has printers for multiple buildings. All the buildings have abbreviations like "BLD" for example, so my printers start with the same building abbreviations
    like “BLD-Printer1”. Is there a quick an easy way to set permissions on printers where the name starts with something like BLD?
    I'm a total noob with PS .<o:p></o:p>

    Just wanted to point out that in addition to using .NET/WMI to enumerate the printers, Windows 8 has a native PowerShell implementation you could use. It supports remote management, so you can even use it from a Windows 8 client to target your Windows Server
    2008 R2 instance. 
    $printers = Get-Printer -ComputerName $printServerName -Name bld*
    foreach ($printer in $printers) {
    Set-Printer -ComputerName $printServerName -Name $printer.Name -PermissionSDDL #fill in your permissions here
    Full description of these cmdlets: http://technet.microsoft.com/en-us/library/hh918357.aspx
    Excellent - Just fill in the SDDL.
    Does this work on WS2008R2 PrintManager Queues?  I find no -SDDL except on WS2012.  WS8 is missing this parameter. Is it only available on WS8 Enterprise?
    WS2008R2 also does not seem to support this.
    Get-Printer and its cousins are wrappers around The Q functions posted above.  The API has no security bits before WS2012.  Look at the MSDN and Technet articles for this CmdLet and the other "Printer" CmdLets.
    ¯\_(ツ)_/¯

  • Can we create the Application name starting with Numerics

    Hi All,
    can we create an application name stating with number like 1234Samsung.
    Also can we use the special characters between them.
    Also are there any rules for creating database names other than maximum 8 characters limit.
    Regards

    Hi,
    1. You can create starting with numerics, 123samsu.
    2. samsung cannot complete ,the know reason is exceeding 8
    Sandeep Reddy Enti
    HCC
    http://hyperionconsultancy.com/

  • How to display the User Name in Transaction MM04's output

    Hi Experts,
    My requirement is that in the Transaction MM04's output, along with all the fields displayed, I also want the User Name to be displayed.
    Here User Name must be the Person's Name and not the ID of the Person.
    Is there a way by which I can achieve it?
    Useful answers will definitely be rewarded.
    Thanks in advance.
    Regards,
    Himanshu

    Hi,
    Thanks a lot for your quick replies.
    But my requirement is to integrate the User Name Field with the MM04's output.
    So, I need either an Exit or any other way by which I can display the User Name in the Standard Transaction MM04's output.
    Regards,
    Himanshu

  • Predefault "User Name" field with Login Name

    Hi,
    Predefault in "LS Medical User Verification" BC does not work. I tried to do the following but all did not work:
    * Put a predefault value in the "User Name" field, System: Creator
    * Create a calc field "SCR Login", calc value: LoginName (). Set predefault of "User Name" field, Field: 'SCR Login"
    * Expose "SCR Login" in the applet. Field is blank in UI.
    We are using the vanilla "LS Medical User Verification Applet" for user verification and we want to predefault the User Name field with the current user logged in. How can I achieve this?
    Thanks,
    Jasmin

    Hi,
    I believe Predefault/Postdefault will only work with NewRecord even and since the User Verification Popup Applet does not go to that event on load that is why it does not work.
    Since the client wanted to default the user name with the current user logged in, we just removed the User name field from the popup applet and pass the TheApplication().LoginName() to the Authentication Business Service.
    Thanks,
    Jasmin

  • TS3899 Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect

    Having trouble accessing my email account thru the mail app, after entering the account information in the settings page, hotmail returns with the error message " The user name or password for Hotmail is incorrect". Help

    Hotmail is having problems:
    http://bostinno.streetwise.co/2013/08/15/hotmail-outage-hotmail-is-down-for-user s-still-photos/
    http://www.engadget.com/2013/08/14/outlook-outage/
    http://www.infoworld.com/d/applications/microsofts-skydrive-outlookcom-are-down- some-users-224940
    http://mashable.com/2013/08/14/outlook-down/
    http://techcrunch.com/2013/08/14/microsoft-acknowledges-outlook-com-messenger-sk ydrive-outages/

  • Error message in time machine: "There was a problem with the user name or the password of the network

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

    I have been unable to back up my macbook to my time capsule for some time now. I received the following error message (translated from Swedish) when trying to back up using time machine:
    "The network's volume could not be placed on the desktop. There was a problem with the user name or the password for the network.
    Open system preferences and go to Time Machine. Select the volume for security backup again and state the correct user name and password."
    I have confirmed the network password, and also tried with resetting the password. I have not idea what else to do. Any help is much appreciated.
    Best regards,
    John

  • Never had trouble before with my incoming mail but just now I get a messege saying the user name or password for verizon is incorrect on my iPad but is fine on my home computer what's wrong with my ipad

    Never had trouble before with my incoming mail but just now getting messege that says the user name or password for verizon is incorrect yet my home computer is fine only have this od my iPad

    I experienced same problem tonight and called Verizon technical support and they walked me through the settings on iPad. Took about 5 minutes. Basically it involved changing incoming.verizon.net to pop.verizon.net and changing outgoing.verizon.net to smtp.verizon.net. But it's worth the call to ensure other settings are OK. Evidently, change at Verizon was effective today!

  • In the lefthand sidebar of Finder, under 'Shared', I encounter in addition my TC, another computer, identified by a long name starting with 'hp'. I don't have another computer. What could this be? And how to get rid of it?

    In the Finder sidebar, under 'Shared', I encounter my TC, as well as another item with a long name starting with 'hp'. 'Get info' shows it to be a 'PC'. However, I don't have a PC. It cannot be my printer (HP), since that has anoter name.
    I can not access the item, which has me a 'guest'.
    What could this item be? And how to get rid of it?
    Many thanks in advance for your help.
    DB

    It's almost certainly your hp printer and is showing the WiFi adapter MAC address after the HP.
    To verify, look at the printer configuration page via Bonjour in Safari.  The settings tab shows the Mac address in the bottom left hand corner for my model of HP printer.
    I'm sorry but I can't explain why that would show up in the finder.

  • HT203261 When i open my email it comes up with The user name or password is incorrect. This has only come up in the last day. As far as I am aware the user name and password is correct. Can you please advise.

    My email has been working fin. however In the last day or so when  i open my email or send an email it comes up with,
    The user name or password is incorrect. As far as I am aware the user name and password is correct. Can you please advise.
    Declan Jackson

    Try going into Settings > Mail, Contacts, Calendars and select that email account and try re-typing in the account's username and password

  • How to get name of class that the JVM was started with ?

    Assume I have class foo with the standard main method.
    I also have classes ding and dong, they extend foo.
    The JVM is started with either ding or dong as the 'main' class. Since neither ding nor dong directly implement main, the actual main method being executed is foo's.
    In the main method of foo I want to construct an instance of either ding or dong, depending on which the JVM was started with. Since I'm in a static context, I can't do anything with 'this'. Is there another way to get the name of the 'main' class from the JVM so that I can construct an instance of it ?

    The idea behind all of this is that the developer of
    Ding and Dong should not have to know anything about
    foo, in particular it's constructors. But if Ding and Dong are subclasses of Foo, then developers must know about Foo. If you expect developers to extend a framework without having a well-defined interface to that framework, you are probably heading for trouble.
    To be able to
    privatize the constructors, construction of the
    concrete class has to take place in foo.If Ding and Dong are subclasses of Foo, then you can not make all of Foo's constructors private.
    Of course I could have a method in Ding and Dong that
    calls a static method in foo into which the Ding and
    Dong instance pass their class, but then I'd have
    identical implementations of this method in Ding and
    Dong. Yes you would (well, not identical, but very similar). Like I said, you could do this programmatically with AOP, or you could probably do it dirtily using stack traces (though with it being a single hit at startup, you might not consider it being quite so dirty).
    But: the point of inheritance is that common
    functionality goes into superclasses. I disagree. The important thing about inheritance is that classes share an interface, and that methods can be polymorphically inherited, allowing new functionality to be 'plugged in' in the future, and even at runtime.
    Also, in
    general one wouldn't make methods static if a class
    reference is needed (or one would make it an
    argument), but Sun didn't consult me when they
    designed the main method :-(I still don't see why you need to do what you want to do. It appears that all you are after is the ability to start your program using a command line like
        java com.mypackage.Ding
    instead of
        java com.mypackage.Foo com.mypackage.Ding
    or
        java com.mypackage.Foo Ding.properties
    or something else along these lines.
    Since you must know the name of the class you want to use at the time you want to use it, why can't you just pass the name as an argument, or start up using some properties file, or a shell script?

  • Tabular form - how to auto populate a column with the user name

    Hi,
    I have a tabular form with 3 columns - (customer name, notes, user). my users are allowed to enter customer details in the notes section... as soon as the user completes notes section and save the form, I want "USER" field to be auto populate with the user name so that I may track activity by the user...
    Please advice how to accomplish it...
    thanks in advance

    Hi,
    After user saves the forms that means commit to the database, so you can simply write a trigger like:
    CREATE OR REPLACE TRIGGER "AUDIT"
    before insert or update on TABLE1
    for each row
    begin
    :new.user_field := nvl(v('APP_USER'),user);
    end;
    Regards,
    Aljaz
    Edited by: Aljaz on 4.3.2012 22:03

  • How can I get the user name with the sy-uname

    Hi
    I need to display the name of the users instead of sy-uname, in witch table I can select this information ?
    Moderator message - Please search before asking - post locked
    Edited by: Rob Burbank on Oct 7, 2009 10:59 AM

    It's not being authenticated..
    getRemoteUser
    public java.lang.String getRemoteUser()Returns the login of the user making this request, if the user has been authenticated, or null if the user has not been authenticated. Whether the user name is sent with each subsequent request depends on the browser and type of authentication. Same as the value of the CGI variable REMOTE_USER.
    Returns:
    a String specifying the login of the user making this request, or null
    I'm assuming it's because it's on your local machine..

  • SCOM Linux discovery failed with "The user name or password is incorrect" error

    Hi every one .
    In our test environment when I want to discover a new linux computer system , discovery process fails with this error message :
    Unexpected DiscoveryResult.ErrorData type.  Please file bug report.
    ErrorData: Microsoft.SystemCenter.CrossPlatform.ClientLibrary.Common.SDKAbstraction.TaskInvocationException
    Task invocation failed with error code 1326. Error message was: The user name or password is incorrect.
       at System.Activities.WorkflowApplication.Invoke(Activity activity, IDictionary`2 inputs, WorkflowInstanceExtensionManager extensions, TimeSpan timeout)
       at System.Activities.WorkflowInvoker.Invoke(Activity workflow, IDictionary`2 inputs, TimeSpan timeout, WorkflowInstanceExtensionManager extensions)
       at Microsoft.SystemCenter.CrossPlatform.ClientActions.DefaultDiscovery.InvokeWorkflow(IManagedObject managementActionPoint, DiscoveryTargetEndpoint criteria, IInstallableAgents installableAgents)
    But I m sure that this username and password is correct and I can logon to this computer with this credential.
    how do I find root cause of this issue ?

    I have been enabled logging before doscovery process .
    in temp directory :
    0: 02/10/15 20:03:22 : Enter SCXNameResolverProbe constructor
    0: 02/10/15 20:03:22 : Leave SCXNameResolverProbe constructor
    1: 02/10/15 20:03:22 : Enter SCXNameResolverProbe::DoInit
    1: 02/10/15 20:03:22 : XML_INIT_CALL
    1: 02/10/15 20:03:22 : Check WSAStartup
    1: 02/10/15 20:03:22 : Exit SCXNameResolverProbe::DoInit
    2: 02/10/15 20:03:22 : Enter SCXNameResolverProbe::DoProcess()
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess passed initial arguments checking
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess input: 192.168.7.62
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess - Input is an IP-address
    3: 02/10/15 20:03:22 : Enter SCXNameResolverProbe::GetName(): 192.168.7.62
    3: 02/10/15 20:03:22 : Resolve IPv4 address to host name
    3: 02/10/15 20:03:22 : Leave SCXNameResolverProbe::GetName(): SUSE11
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns name: SUSE11
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns ip: 192.168.7.62
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns errorcode: 0
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns errortext: 
    2: 02/10/15 20:03:22 : SCXNameResolverProbe::DoProcess returns xml: <NetworkName>SUSE11</NetworkName><IPAddress>192.168.7.62</IPAddress><StatusCode>0</StatusCode><StatusMessage></StatusMessage>
    2: 02/10/15 20:03:22 :  Enter initDataHolder
    2: 02/10/15 20:03:22 : Enter initDataType
    2: 02/10/15 20:03:22 : initDataType initializing output datatype
    2: 02/10/15 20:03:22 : Leave initDataType
    2: 02/10/15 20:03:22 : Leave initDataHolder
    2: 02/10/15 20:03:22 : Leave SCXNameResolverProbe::DoProcess
    4: 02/10/15 20:03:22 : Enter SCXNameResolverProbe destructor
    4: 02/10/15 20:03:22 : SCXNameResolverProbe destructor - FreeLibrary failed: 0
    4: 02/10/15 20:03:22 : Leave SCXNameResolverProbe destructor
    with debug viewer I have this message after discovery :
    [7448] A management object with display name SUSE11 could not be found.

  • HT3529 I have iMessage service in my mac & it works perfectly. I buy iPhone 5 When I sign in with my appleid to activate iMessage it says "iMessage Activation The user name or password for ... was incorrect Try again" but its all correct. what do i do? my

    I have iMessage service in my mac & it works perfectly.
    I buy iPhone 5
    When I sign in with my appleid to activate iMessage it says "iMessage Activation The user name or password for ... was incorrect Try again" but its all correct. what do i do?
    my appleid is from saudi iTunes Store
    I'm so disappointed

    1. Make sure software is up to date
    2. Make sure Messages is enabled; Settings>Messages
    3. Make sure Date and Time is correctly set; Settings>General>Date and Time>Set Automatically>On
    4. Make sure Push Notification is enabled
    5. Make sure phone number or email address is correct
    6. Hold the Sleep and Home button down (together) until you see the Apple Logo

Maybe you are looking for