Can I use the User Name in Aut. Objects's value

Hello everyone, I need to know if is possible to use a variable with the SAP User Name in values of the Autorization Objects in some roles.
Thank you to everyone
Maximiliano Valin

Thanks Ruchit, I misread your post.
There are infact some special cases where the system does infact check to see whether not only the job step user is authorized, but also the job scheduler.
* Intercepted jobs are only released only if the current user
* has proper authorization.
  DATA: wa_tbtccntxt LIKE tbtccntxt.
  GET TIME.
  DATA: wa_tbtco LIKE tbtco.
  SELECT SINGLE * FROM tbtco INTO wa_tbtco
    WHERE jobname  = jobname AND
          jobcount = jobcount AND
          status = btc_scheduled.
  IF sy-subrc = 0.
    IF global_job-status = btc_scheduled AND
         ( NOT dont_release IS INITIAL AND
           ( release_stdt-sdlstrtdt < sy-datum OR
             ( release_stdt-sdlstrtdt = sy-datum AND
               release_stdt-sdlstrttm < sy-uzeit
         ) OR
         dont_release IS INITIAL
      IF sy-subrc = 0.
        SELECT SINGLE * FROM tbtccntxt INTO wa_tbtccntxt
          WHERE jobname  = jobname AND
                jobcount = jobcount AND
                ctxttype = 'INTERCEPTED'.
        IF sy-subrc = 0.
          AUTHORITY-CHECK OBJECT 'S_RZL_ADM'
                   ID 'ACTVT' FIELD '01'.
          IF sy-subrc <> 0.
            ret = err_no_authority.
            RAISE cant_start_job_immediately.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDIF.
Kind regards,
Julius

Similar Messages

  • How can i receive the user name of the present operating system

    HI,all.
    how can i receive the user name of the present operating system from SAP.Have any funciton to use?Thankyou!

    use sy-uname system field.
    report ztest.
    write:sy-uname.
    thanks.
    reward if solved.

  • Use the User name than e-mail (SMTP) in broadcasting

    Hi all.
    I try to send some report using the broadcasting. It`s work fine, but I want use the User name and not e-mail address to do this. In BW SU01 I create e-mail address to user but its not work.
    How can I mapping this.
    Thx!
    Edited by: BW Team on Nov 27, 2008 10:14 AM

    why do get this message when i try to send e mail on my 4s
    Just what it says...you're not using the correct username and password for your outgoing mail server.

  • What are the pros and cons of using people keywords, given that my catalogue is already uptodate with regular keywording of all subjects?  e.g., will the people keyword transfer to other programs?, can I use the same name for a people keyword and regular

    What are the pros and cons of using people keywords, given that my catalog is already up to date with regular keywording of all subjects?  e.g., will the people keyword transfer to other programs?, can I use the same name for a people keyword and regular keyword in the same photo?

    What are the pros and cons of using people keywords, given that my catalog is already up to date with regular keywording of all subjects?  e.g., will the people keyword transfer to other programs?, can I use the same name for a people keyword and regular keyword in the same photo?

  • I am using the user name and password given to me by

    I am using the user name and password given to me by Virgin on the email 'other' , after the initial page it comes up with IMAP settings which I don't have so I click on the POP page and give all the settings listed by Virgin on ints website (using ntlworld and not virgin as instructed) but it still comes up with 'Unable to Verify'  So something is sticking somehwere but I don't know where!
    Thanks very grateful for assistance

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

  • How can I hide the user name and password from the url address?

    Good afternoon every body,
    I have a form running with Oracle9i Developer Suite Release 2 and when I run the form on the web it shows the user name and password of my data base. Can anyone of you please help me to hide the user name and password, if there's any way of course?.
    Thanks a lot!!.

    Luis,
    Then, as inolau's notice, create logon screen (or use the default one) and force the users to logon at runtime. Do not pass username/password as parameters.
    inolau,
    True that if the connection is specified in the config it will be the same for everyone. However, every case is different. For example one of our apps gets S3 credentials (from non-Oracle S3) as session parameters. It uses this common db connection to validate some stuff with the database, read security definitions and then it re-connects the forms using the credentials.

  • How can find out the User name?

    Hi Gurus,
    I have created one sales order with my user name. some one has changed order quantity in that sales order, so can u tell how can v find out thier user  name?
    CHeers,
    Sumith

    Hi Sumith,
    Go to VA02 and click on Environment at the top and click on changes. Now based on your line item where you feel changes have been made give your item number and tick overview , and additional info and execute.
    Now double click where you want to drill down and find out for the user name.
    I am sure this will help you. If it does dont forget to reward points for contribution.
    Regards
    Ravi

  • 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..

  • How can I change the user name on a macbook?

    I don't mean the accounts, but the actual name of the user of the macbook.
    ex. where it says "John Smith's Macbook".

    There should be something called "System Preferences" and then "accounts" go to that. There you can change it.

  • Can't remember the user name and password for the b1 integration framework

    Is there a way to find out what the username and password to access the integration framework?

    Hi
    you can try to enter with safe mode - un this mode you dont need username and password and then create new user name
    you have to enter the Xcellerator file in
    C:\Program Files (x86)\SAP\SAP Business One Integration\IntegrationServer\Tomcat\webapps\B1iXcellerator
    and find the part of the safe mode
    shachar

  • Can I use the "Apple" name in my iOS app?

    I am making an iOS dev application for iphones and iPods.  I was wondering if i can put the "Apple" name in the credits section without getting introuble witht them or getting sued?  Its a silly question but just wondring.

    You should probably ask this question in the Developers' Forum. At a guess, no, though.

  • One of my bookmarks i cant get into using the user name and password alli get is the page timed out but i can get into the site by using internet explorer

    When I try to get in the site all I get is session is timed out. How can i correct this

    Try to navigate to that page starting with its home page in case you are using a bookmark.
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"

  • How can i change the user name that i have --lion.

    hi all,
    i was wondering how to change my username.  the one im referring to is the one that comes under the library icon. it is also the one that shows up under user when i launch my activity monitor application. 
    this is seemingly a different username that i use when i log onto my computer or verify changes.

    There should be something called "System Preferences" and then "accounts" go to that. There you can change it.

  • Flash form error, can't use the same name more than once? need workaround

    I've always written my forms to have multiple buttons, one
    for updating and one for deleting. so in html I would do this:
    <input type=submit name=action value=Update>
    <input type=submit name=action value=Delete>
    so I'm trying the same thing with flash forms in cold fusion:
    <cfinput label="Update" name="action" type="submit"
    value="Update">
    <cfinput label="Delete" name="action" type="submit"
    value="Delete">
    but now I get this message:
    2 Errors found.
    Error /index.cfm:334
    id 'action' was already defined on line 333
    Error /index.cfm:335
    id 'action' was already defined on line 333
    Is there a way to make this work or do I have to either
    create a special action_delete or a new form? I'd like to keep the
    logic the way I like.
    Any suggestions?
    Thanks,
    John

    I was hoping to do logic like this
    <cfparam name="action" default="list">
    <cfif action equal "list">
    <cfelseif action equal "update">
    <cfelseif action equal "detail">
    <cfelseif action equal "delete">
    </cfif>
    So I just converted everything to html and things work the
    way I like. thanks anyway. The forms don't really buy me anything.

  • How can I change the user name of my i pod ?

    Any suggestions welcome ! When I got it I typed in whatever came into my head and now I want to change it.

    Thanks for the .

Maybe you are looking for

  • Not able to select more than two values

    Based on picklist.fmb, I created a list item in a form. I am able select many values using SHIFT but I am not able to pick more than two values using CTRL key. Anything I did mistake or picklist won't support picking more than two values using CTRL?

  • Migrate Dreamweaver CS 4 site to CS6?

    I have a Website created with Dreamweaver CS4 on my Mac running OS 10.7.4. since this new OS does not run Power Mac based applications, I need to open the site files using Drewamweaver CS6. How do I do this? Thanks for your help.

  • Reg: GGB1 Transaction - substitution

    Hi, To the entire SAP Network, I need to work on GGB1 Transaction for the substitution. My actual requirement is to work on Asset Accounting - Master Data , to get the substitution and prerequisite for the step. If any one has worked on GGB1 tcode an

  • How to view emails in T?M backup

    I am unable to determine how to view emails in a time machine backup. What path will take me to the mail boxes?

  • [svn] 3149: Fix bugs introduced by the display object sharing optimization.

    Revision: 3149 Author: [email protected] Date: 2008-09-08 16:58:35 -0700 (Mon, 08 Sep 2008) Log Message: Fix bugs introduced by the display object sharing optimization. This checkin should fix ordering problems when dynamically adding/removing graphi