Log on into the function module with different user name.

hi,
        i log on into the system with my user id suppose 'mukka' and i have to check the authorization of another user say 'you' using the function module "authority_check_tcode". but here i am getting the problem that when i assigned sy-uname to 'you' and execute the function module it is entering into the function module with 'mukka' user name only.
sample code:-
                            sy-uname  = p_uname.
    CALL FUNCTION 'AUTHORITY_CHECK_TCODE'  "#EC"
      EXPORTING
        tcode  = v_tcode
      EXCEPTIONS
        ok     = 1
        not_ok = 2.
when i am changing the sy-uname with p_uname the sy-uname is changed but when i entered into the function module authority_check_tcode in the debugging mode at the below the sy-uname variable is showing  as 'mukka' only. but i need to check the authorizations of user 'you' pls give me solution to my problem.

Hi,
Why would you want to check the authorisation of another user and not the one currently logged in?  The idea of authorisations is to check the current user is able to perform a certain activity.  The majority of fields on SYST are constantly updated to have the correct values (partly so you can't fiddel authorisation checks like this
Maybe if you explain to us what you are trying to do we can offer some other help.
Gareth.

Similar Messages

  • HT204053 i RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    I RECENTLY PURCHASED ANOTHER IPHONE.  MY INTERNET IS NOT WORKING.  I JUST CREATED AN APPLE ID.  WHAT'S NEXT?  I NOW HAVE TWO DIFFERENT ACCOUNTS WITH DIFFERENT USER NAMES.  HOW CAN I USE ONLY ONE ACCOUNT FOR ITUNES, ICLOUD APPLE ID ETC???

    Welcome to the Apple community.
    iTunes and iCloud and different accounts, you will need to delete both accounts from your device before adding the new details in their place.
    For iCloud go to settings > iCloud, scroll down and hit the delete button. You can then sign back in using your correct details. For iTunes go to settings >store, tap your account ID and then sign out, you can then sign back in using your correct Apple ID.

  • HT3819 sharing i tunes library on the same computer with different users

    How do I share my library on the same computer switching to a different user?

    If you want all users to be able to access the same music, but with different libraries, NikkiG's advice is spot on. However, I thought I'd throw in my 2¢ since I just set this up for a friend.
    If you want all your users to have exactly the same library, and not just access to a shared library, do the following:
    -move the entire "iTunes" folder (~/Music/iTunes) into the Shared folder or to separate drive.
    -in each user's account, remove the iTunes folders (or just move them to a new location until you're positive this method works for you)
    -pop open Terminal.app (/Applications/Utilities/Terminal.app) and here's where it gets a little dicey; type the following into the command line:
    ln -s /Users/Shared/iTunes/ ~/Music/iTunes/
    What this does is create a symbolic link (think alias, but more technical and powerful) between the iTunes folder in the Shared folder, and each user's iTunes folder. This way, each user is directly accessing the iTunes library, and not just through the shared area in iTunes itself. This allows them to add/remove music and playlists to the same library.
    HOWEVER, this method will mess up if you have multiple users logged in and using iTunes at the same time.

  • Sharing Playlists and Music on the Same Computer with Different Users

    I'm trying to share music and playlists between different users of the same computer.
    Ideally I'd like to use the same iTunes music folder for all users, and have the same music and playlists show up no matter which user logs in (without having duplicate copies/files of the same songs clogging up our hard drive).
    also would like to be able to sync our shared iPod no matter which user panel we're logged onto.
    is any of this possible with the new version of iTunes?
    thanks much i advance.
    vince

    If you want all users to be able to access the same music, but with different libraries, NikkiG's advice is spot on. However, I thought I'd throw in my 2¢ since I just set this up for a friend.
    If you want all your users to have exactly the same library, and not just access to a shared library, do the following:
    -move the entire "iTunes" folder (~/Music/iTunes) into the Shared folder or to separate drive.
    -in each user's account, remove the iTunes folders (or just move them to a new location until you're positive this method works for you)
    -pop open Terminal.app (/Applications/Utilities/Terminal.app) and here's where it gets a little dicey; type the following into the command line:
    ln -s /Users/Shared/iTunes/ ~/Music/iTunes/
    What this does is create a symbolic link (think alias, but more technical and powerful) between the iTunes folder in the Shared folder, and each user's iTunes folder. This way, each user is directly accessing the iTunes library, and not just through the shared area in iTunes itself. This allows them to add/remove music and playlists to the same library.
    HOWEVER, this method will mess up if you have multiple users logged in and using iTunes at the same time.

  • How do you do a quick transfer of data from one TX to another TX with different user name

    I have more than one TX and want to keep most of the information, addresses, media, calendar as well as third party software the same on all my TX's.  Is there a way to do this without the long hassle of exporting all that can be exported, and then importing it into each TX.  Then adding all the third party software again?  I have a new TX and remember how long this takes, so I am hoping for a faster method.   I already know how to do a transfer if using the same user name, but this won't work when each will have a different user name in order to hotsync.
    This may be a different question. All the TXs will be used and will sync to the same computer via USB, and all are on the Palm Desktop.   I want to use them interchangeably.  I would also like to keep the information current on all of them, as I now must copy paste any new info (ex. new address) into each via either palm desktop, or beaming to the others.  Often this leads to discrepancies of the data between the different TXs. 
    Post relates to: Palm TX
    Message Edited by Silfox on 06-22-2009 09:03 AM

    You might look into a program called "SyncUs" from an author in the UK.  It will keep all the PIM data synced between two Palm OS units.
    WyreNut
    I am a Volunteer here, not employed by HP.
    You too can become an HP Expert! Details HERE!
    If my post has helped you, click the Kudos Thumbs up!
    If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you asked!

  • Share Photos on the same iMac with different user accounts... How do You???

    Hello,
    I was wondering if there is a way to share photos with another user (same computer, different log-in names) on the same iMac?
    There are two users on my iMac and I want to be able to share photos and other documents, music etc. with them, but can't seem to do it.
    Please help.
    Thank you.

    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc. The problem here is that OS X works very hard to keep your data safe and secure from the other users. You're trying to beat what's built in to the system. So, to beat the system
    Quit iPhoto in both accounts
    Move the iPhoto Library Folder to an external HD set to ignore permissions. You could also use a Disk Image or even partition your Hard Disk.
    In each account in turn: Hold down the option (or alt) key and launch iPhoto. From the resulting dialogue, select 'Choose Library' and navigate to the new library location. From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.
    Lastly: This method seems a little clunky at first, but works very well. Most importantly, it uses the System to do the job for you.
    Create a new Account on your Mac, call it Media. Create an iPhoto Library there. (BTW: This will work for iTunes too.)
    Enable Sharing on the Library:(Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other accounts. In those accounts, enable 'Look For Shared Libraries'. The Library will appear in the other source pane.
    This means that both users will be able to see the pics. If you want to use a pic then simply drag it from the shared Library to your own in the iPhoto Window. This means that each user can have their own edits.
    If you want to add photos to the Library: Log into the Media account for that purpose.
    To make it all seamless: Set your Mac to log into the Media Account automatically. Set iPhoto to launch on log-in. Then switch to your own account using Fast User Switching.
    Net result: a Library that's permanently available to all users but also protected. Each user can have their own versions of the pics if they want.
    No partitioning, no permissions issues. Uses no extra disk space. What's not to like?
    Regards
    TD

  • We have two Ipod Touches in the Home and two Ipads. Right now one of the Ipads has a separate user indentity. Can both Ipods be used to use the same library with different user ids's and different passwords.

    We have two Ipod touches and two Ipads in our home. Right now both Ipods are using the same used id and password to access itunes and sync music. But recently both os us have downloaded the Ibooks segment to our Ipads and now the only way to sync the second Ipad for Ibooks is to use the same used id and password. But the problem is that with our two Ipads in the home, we established two separate used ids and passwords one for each. Is there a way for me to still use the second Ipod touch and the second Ipad with completely separate userids and passwords. In other words to share the music library I have accumulated and yet to sign in each with our separate identities. That way the Ipads can sync and the Ipod touches can sync. Is this possible.

    This is to avoid piracy. What could happen is, people could buy music, and give it away for free online. Usually it is then you buy a complete album off iTunes that it will only be available on one device. It is tied to that account, and the device must be registered to that account to listen to it.

  • Although I can receive mail on my btinternet address I cannot reply or send. My settings , apart from user name are extactly the same as my wife's who has no problem.  We are the same account but with different user names and passwords.

    Settings use mail.btinternet.com as smtp, SsL is on, port 995

    Hello Bigstorr,
    It sounds like you are not able to send emails from your iPad.  I found a couple of resources that address issues with email on the iPad:
    Setting up and troubleshooting Mail
    https://www.apple.com/support/ipad/assistant/mail/
    iOS: Unable to send or receive email
    http://support.apple.com/kb/ts3899
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to navigate to different page with different user name

    Hi,
    I have created a DB application....
    My application consist of 4 pages.......
    But if the first user logs into an application means, he needs to see only 3rd page
    If the second user logs into an application means, he needs to see only 4th page.......
    (i.e) 3rd page couldnot been accessible by the second user........
    and 4th page couldnot been accessible by the first user.......
    How to achieve this, i think i need to set some validation in the login page.....if so how to do that.....
    it is an urgency....help me friends....
    Regards,
    Harry...

    Hi,
    Thanks for your reply, so i need to create a post authentication for redirecting to different page as you said....
    Since these are my two pages(in the application)
    *) issues page.
    *) analyst page.
    Suppose if the User A login to the issues page(via. login page) he needs to see only the issues page
    if the User B login to the analyst page(via. login page) he needs to see only the analyst page...
    Since User A and B have access to the application.....
    But A should login only to issues page in my application and he should not login to the analyst page...
    and B should login only to analyst page in my application and he should not login to the issues page...
    For that where i need to define the post authentication...whether in login page i need to define.....
    if so, whether i need to define sql query for restricting the users to the particular page in the post authentication...
    Regards,
    Harry...

  • Name of the function module to logon to other server

    Dear All
                        i would like to know the name of the functional module through which user can logon to other server ex: from DEV to PRD for debug the programs . i tried through st03N i am able to get only used tcode but not functional module from which they are logon to prd server
    is there any way to get logs for particular user to get log for last 10 days used tcodes all my traces are not active and audit also not active..
    Regards

    Dear
    I need the name of the FM through which we can log on to any other server
    there is S_RFC authorization object now i disabled that but i need the name so i can manually restrict the FM 
    Regards

  • How to login with different User in Portal

    Hi Experts,
    My requirment is quite different here, I want to login with different user in single login.
    My senario is like this for your understading...
    First I have loged in with one user and go to the one customized screens where I have list of all the portal users in a drop down.
    Here I am selecting one User from the list and Click on Submit button...then new window should open with this(selected) user login...
    Can anybody suggest me that what I suppose to do this to achieve this.
    what are parameters new user expects for login?
    what 'll be my approach for this?
    Thanks in Advance,
    Vikas

    Hi Prem,
    Thanks for your answer...
    The URL..
    http://server:50000/irj/portal?j_user=QAEmEsLAComR&j_password=Pa$$word
    it works only when, do this on fresh browser .. if someone has already Logged in and then try to open with different user name then it won't work.
    if I'll change URL with other user in the same browser like this..
    http://server:50000/irj/portal?j_user=demouser&j_password=Pa$$word
    then shows only previous page.
    But my requirement is to open different user page from the already logon user.
    Thanks, Vikas

  • How do I copy purchases between 2 itunes libraries on the same computer with different log ins and separate apple user ids?

    How do I copy purchases between 2 itunes libraries on the same computer with different log ins and separate apple user ids?

    Load the library which doesn't contain the songs and drag them into the open iTunes application window. If you need to move them between different computer user accounts, put them into /Users/Shared/.
    (74502)

  • System_failure error with the function module HTTP_POST

    Hi Friends,
      While executing the function module "HTTP_POST" ,sometime we are getting the error "System_Failure" exception.
    Can anyone tell what could be the reason for this exception,any configurations need to be done on SAP???
    For this FM we are passing the RFC destination"SAPHTTPA" as one of the paratmeter and
    The two import paramters we are passing to this FM are
    URI : 
    http://10.74.40.31:8686/ArchiveBridge/?informaticaArchive&contRep=IA&sumFile=MYTA_SUMMARY_20090820063258.sum
    Destintion : SAPHTTPA
    Thanks all in advance.
    Regards
    Dharmaraju

    Hi,
    Check if any proxy is maitained in the client by going into transaction
    SICF-> Goto-> HTTP Client Proxy -> HTTP LOG TAB.
    If there is anything maintained under Host name and port, if yes you need to specify the IP address while calling FM HTTP_POST
    under PROXY as
    192.168.0.1:8080  where first part is IP address & 2nd part(8080) is port.
    Also test connection for SAPHTTPA under SM59 to see if its properly configured.
    Regards,
    Amit

  • What is the function module which uploads excel file data into tcodes

    Hi,
    i want to upload data in cs01 tcode.
    but data is excel sheet while i am trying to use gui_upload it is not being possible for me to upload data.
    can any one tell me what is the function module?
    can any send me the steps how to uplaod data if it is in excelsheet?
    thanks & regards
    naveen
    Moderator message: FAQ, please search for available information before asking.
    locked by: Thomas Zloch on Aug 18, 2010 1:46 PM

    Hi,
       Try the below sample code u ll get an idea of uploading using 'TEXT_CONVERT_XLS_TO_SAP'.
    REPORT  zupload_excel_to_itab.
    TYPE-POOLS: truxs.
    PARAMETERS: p_file TYPE  rlgrap-filename.
    TYPES: BEGIN OF t_datatab,
          col1(30)    TYPE c,
          col2(30)    TYPE c,
          col3(30)    TYPE c,
          END OF t_datatab.
    DATA: it_datatab type standard table of t_datatab,
          wa_datatab type t_datatab.
    DATA: it_raw TYPE truxs_t_text_data.
    At selection screen
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          field_name = 'P_FILE'
        IMPORTING
          file_name  = p_file.
    *START-OF-SELECTION.
    START-OF-SELECTION.
      CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
        EXPORTING
        I_FIELD_SEPERATOR        =
          i_line_header            =  'X'
          i_tab_raw_data           =  it_raw       " WORK TABLE
          i_filename               =  p_file
        TABLES
          i_tab_converted_data     = it_datatab[]    "ACTUAL DATA
       EXCEPTIONS
          conversion_failed        = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    END-OF-SELECTION.
    END-OF-SELECTION.
      LOOP AT it_datatab INTO wa_datatab.
        WRITE:/ wa_datatab-col1,
                wa_datatab-col2,
                wa_datatab-col3.
      ENDLOOP.
    Thanks & Regrads,
    Neela.

  • Any class with repalces the functionality of the function module

    hi all,
    Can anybody let us know is there is any class with method that replaces the functionality of the Function module REUSE_ALV_BLOCK_LIST_APPEND' .
    Regards,
    Madhavi

    hi ,
    Can anybody know me how to add multiple ALV grtids into one  Custom container.
    I want to add multiple Grids into one custom container.
    Regards,
    Madhavi

Maybe you are looking for