Calling HR_CHECK_AUTHORITY_INFTY with a specific UNAME

Hi all,
i'm realy confused about this.
when a login with the user HCMTEST40 and go to PA20 and enter PERNR 00000620, i can access Infotype 0001 of the PERNR 00000620.
I'm am trying to make a report, which checks if the user HCMTEST40 has access to Infotype 0001 of PERNR 00000620 by calling the following FM HR_CHECK_AUTHORITY_INFTY, which is by the way called with the same paramters from PA20.
     106       CALL FUNCTION 'HR_CHECK_AUTHORITY_INFTY'
                                                        107         EXPORTING
                                                        108           pernr            = lv_persno
                                                        109           infty            = lv_infty
                                                        110           subty            = lv_subty
                                                        111           begda            = lv_begda
                                                        112           endda            = lv_endda
                                                        113           level            = lv_level
                                                        114           uname            = lv_uname (HCMTEST40)
                                                        115         EXCEPTIONS
                                                        116           no_authorization = 1
                                                        117           internal_error   = 2
                                                        118           OTHERS           = 3.
if i login with my own User (not HCMTEST40) an start the new report, i get a not_authroized-Error....
what's wrong here?
i appriciate any help.
thanks
Pourang

Hi Dilek,
actually i want to check differnt combination (R, M, etc.) and Infotypes (0001, 0002 , etc) for a lot of users every day with the FM HR_CHECK_AUTHORITY_INFTY with a given uname, to figure out, if specific user have proper authorizations.
i don't check if some one has the TCODE-Authorization PA20...
the problem is, that the FM returns another result, when i call it with the same paramters and values as it is called when the user starts PA20.
how ist this possible?
thanks.

Similar Messages

  • Call BMBC with specific material plant and batch

    Hi, ive searched and tried several option to call t-code BMBC Batch Cockpit from a report with a specific material, plant and batch and untill now i was unable to do this.
    Is my last option a batch input?
    It seems that all those subscreens make BI my last resource.
    Thanks for your help.

    Hi,
    For,
    Step 2 :- Check your Data type of Characterstic.It should be Numeric.
    Step 3:- First you have to assign Organization Area in Class Header then only you will find that field active in Characteristic screen.
    Regards,
    Dhaval

  • I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. Need process under the hood

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

    I want to create an applescript/automator tool to launch the "Add to library" command in iTunes with a specific path. I need to know what process is run under the hood to create such a script.
    To put you in context, I have an NFS mount point with all my music and with the "add to library" command, I can add more music to the folder and update iTunes without dragging the individual folders or the whole mount point and avoid having the songs show up as doubles.
    Anyone know what OS/Unix process is being called for such a command?

  • Exception calling "Update" with "0" argument(s): "To add an item to a document library, use SPFileCollection.Add()"

    Hi i am trying to add a new item and update existing field value in a document library with powershell 
    but i receive below error message.
    PS C:\Users\spfarm> C:\Scripts\add.ps1
    Exception calling "Update" with "0" argument(s): "To add an item to a document
    library, use SPFileCollection.Add()"
    At C:\Scripts\add.ps1:24 char:16
    + $newItem.Update <<<< ()
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : DotNetMethodException
    #Add SharePoint PowerShell Snapin which adds SharePoint specific cmdlets
    Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue
    #Variables that we are going to use for list editing
    $webURL = "http://tspmcwfe:89"
    $listName = "test"
    #Get the SPWeb object and save it to a variable
    $web = Get-SPWeb $webURL
    #Get the SPList object to retrieve the "Demo List"
    $list = $web.Lists[$listName]
    #Create a new item
    $newItem = $list.Items.Add()
    #Add properties to this list item
    $newItem["Title"] = "My second item!"
    $newItem["Info"] = "s15"
    #Update the object so it gets saved to the list
    $newItem.Update()
    $web.Dispose()
    adil

    Hi Adil,
    Document Library is different from a normal list. The document library contains files inside it. You need to update the code to add a document to the library. Then you can get hold of the List Item represented by that file and update its properties. Here
    is an example:
    $WebURL = "http://aissp2013/sites/TestSite"
    $DocLibName = "Docs" 
    $FilePath = "c:\blogs.txt" 
    # Get a variable that points to the folder 
    $Web = Get-SPWeb $WebURL 
    $List = $Web.GetFolder($DocLibName) 
    $Files = $List.Files
    # Get just the name of the file from the whole path 
    $FileName = $FilePath.Substring($FilePath.LastIndexOf("\")+1)
    # Load the file into a variable 
    $File= Get-ChildItem $FilePath
    # Upload it to SharePoint 
    $spFile = $Files.Add($DocLibName +"/" + $FileName,$File.OpenRead(),$false) 
    $item = $spFile.Item
    $item["Title"] = "New Title"
    $item.Update()
    $web.Dispose()
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • How to remove a dispatcher with a specific index (conf_indx)

    Hi,
    A few details:
    We are on 11.2.0.3 linux 64bit.
    We use both dedicated and shared connection.
    We have many environments (an environment consists of many schemas) in a single DB.
    For each environment we create at least one service (we know # of services is limited to ~150 in 11.2) - in example for environment with suffix LAB1 we create a service called DB_LAB1
    in example:
    exec dbms_service.create_service('DB_LAB1','DB_LAB1');
    exec dbms_service.start_service('DB_LAB1');
    For clients to be able to connect to the service_name using shared mode - we also create a dispatcher per environment - serving that specific service -
    in example:
    alter system set dispatchers='(index=30)(protocol=tcp)(service=DB_LAB1)(dispatchers=1)'
    I have a few environments which I would like to remove - including their services and dispatchers.
    removing the services is easy using dbms_service - however I did not find a way to remove/delete a dispatcher with a specific index.
    Say I have conf_indx 1..50 used and I would like to remove conf_indx=30 (the one which I created above) - how can I do that?
    Stopping the dispatcher process (Dxxx) does not remove the row from v$dispatcher_config - it only shows that the number of dispatchers for that row is 0.
    Bottom line - how to remove a specific dispatcher with a specific dispatcher-index - without affecting all the other dispatchers which I would like to preserve?
    Thanks.
    Mor

    Ok, but how does one remove some of the applications that are appear in the context menu for a given file type? Is there an asc file which can be edited?
    For example, in my system a PDF can be opened with over 10 applications. I would like to see just the three ones I use: Acrobat, Skim and Preview.
    Thanks in advance.

  • Cannot open a a file with a specific file name

    I have 1 person who cannot open or save a file with a specific file name on his computer.  If he does it at another computer he is fine, no one else has this issue.  The error he gets when trying to open the file is { Cannot create file:missingperson.pdf. Right-click the folder you want to create the file in, and then click Properties on the shortcut menu to check your permissions for the folder}
    Any ideas on how to resove this.  He gets this file sent to him on a regular basis, and cannot have the file name changed.
    Thank you

    I have run across something similar.  Assuming that this PDF they are getting through email is the same name, then this is how I fixed my problem.
    When you get a file in an email and open it, it writes that file to the Temporary Internet Files folder.  Lets assume the file name is filename.pdf  If you open a file from email with the same name at a later time, it creates a file called filename(1).pdf.  Open a file with the same name again, it creates filename(2).pdf, and so on.  Once you get to filename(99).pdf, it will start giving you a lot of trouble.  When I cleared out those filename.pdf's, everything went back to normal.
    Hope this helps.

  • Diadem 11 crashed when using AOP5 plugin with no specific error

    We have a ASAM-ODS database and are running a Avalon v4.2e server. DIAdem data TDM file is uploaded using openMDM client.
    We have installed AOP5 plugin on 2 systems running DIAdem 11 to access the data directly from the ASAM-ODS database. On one machine it is working fine.
    On the second machine with the same parameters, when we try to connect, DIAdem hangs and then crashes with no specific error in the log file. DIAdem is not able to refresh the Navigator window and show the data stored in the ASAM-ODS server. The relevant errors are attached and also the log file of the plugin.
    How do we debug and resolve the issue? Any pointers would be welcome. We are using aop5dataplugin2_0_1.exe downloaded from the NI site.
    Regards,
    Shailesh
    Attachments:
    Error_1.JPG ‏83 KB
    Error_2.JPG ‏49 KB
    MDM AOP5 plugin.log ‏783 KB

    Hi Shailesh,
    Is it possible that the computer this worked on has had a newer version of DIAdem or LabVIEW or DataFinder on it?  All three of those NI software packages share a layer called USI, which is what the DataPlugins "plug into".  The USI layer only upgrades, so even if you installed a DIAdem 2012 evaluation version and then uninstalled it, you would keep the USI version from DIAdem 2012, and your DIAdem 11.0 would use that newer USI version.  It is possible that the latest AOP5 DataPlugin is not compatible with 11.0, which was released nearly 5 years ago.  I can look into that and get back to you.
    Alternatively, DIAdem 11.0 may be struggling to work with a USI version from LabVIEW 2012 or DIAdem 2012.  We do regression testing every release with multiple older DIAdem versions, but at some point the newer features don't work with the older software.
    Brad

  • Trying to find all files or folders with a specific owner recursively

    I'm trying to find any file with a specific owner, let's call that owner "domain\account1" I've placed 2 files and a folder at various levels in a directory structure and when I run the following code from the folder those files (or folder) exist
    in, it works fine:
    gci | Select fullname,@{n='Owner';e={(Get-Acl $_).Owner}} | Where {$_.Owner -eq 'DOMAIN\account1'}
    But when I try to go to a common root of those files (and folder) and add -recurse to the gci, it shows only the folder. Is there something secret/hidden about gci that I need it to force-show, or am I doing something else wrong?
    Thanks
    [email protected]

    No.  They look roughly equivalent but the expression I used may be more flexible.  You also can shorten yours more like thsi:
    Get-ChildItemC:\Temp -Rec
    | Get-ACL 
    | ?
    {$_.Owner
    -eq 'Domain\Admin'}
    No need to wrap it in the pipeline.
    This is exactly what mine is but I added a select with a calcculated property.
    ¯\_(ツ)_/¯

  • Really is not icloud that opens.  It`s a message that says that icloud has problems to open with one specific account.  This happens since I did the last actualization of the operator system open

    Really is not icloud that opens.  It`s a message that says that icloud has problems to open with one specific account.  This happens since I did the last actualization of the operator system open

    You don't need to start a new thread - you just use the 'Reply' button at bottom right of the answering post. Anyway as you're here...
    You should start by going to System Preferences (or is it called Settings in ML?)>iCloud and clicking the Sign Out button. Then sign back in again. Your iCloud data will disappear from your Mac when you do this (but not from the server) - it will reappear when you sign back in. Alternatively if the message identifies an account which is signed in at System Preferences>Mail, Contacts and Calendars you should log out and in there.

  • Sync iPod with a specific folder

    I'm wondering is there any practical method in order to create a folder somewhere and sync iPod shuffle with that specific folder?
    Actually I create a folder called My.iPod and add it to my Send To context menu:
    Now I want to add my optimal musics to this folder from anywhere in my PC and iTunes automatically sync this folder with my iPod.
    Any suggestion?

    I'm wondering is there any practical method in order to create a folder somewhere and sync iPod shuffle with that specific folder?
    Actually I create a folder called My.iPod and add it to my Send To context menu:
    Now I want to add my optimal musics to this folder from anywhere in my PC and iTunes automatically sync this folder with my iPod.
    Any suggestion?

  • Unity Call Transfer with announce from IPCC

    I'm trying to setup a script in IPCC for Meetme users to call into, enter in a PIN number, and be sent to the correct Meetme conference. I've got all of that working just peachy. I was hoping to also be able to use Unity's call transfer with announce functionality using a call handler. Unfortunately through testing and also verified in documentation, the call transfer functionality is ignored for forwarded calls (calls not handled by the unity auto attendant or directory handler).
    Can someone enlighten me on a workaround for this? Basically I want the caller to come into IPCC, enter their PIN, IPCC shoot the caller to a Unity call handler which prompts for the user's name, then Unity announce that person's name to the conference and then finalize the call transfer to the Meetme conference.
    I've tried all sorts of combinations using CTI route points in call manager, modifying direct and forwarding route patterns in Unity etc. No dice so far to get the call announce working. Many thanks in advance!
    --Jason

    I appreciate all the responses. I was able to get this to work, my dunce hat was on and my Unity forwarding rule was sending to the greeting of the Call Handler rather than the Attempt Transfer.
    The powers that be at my company wanted to assign a different MeetMe number to each department in order to reduce the risk of multiple people trying to use the same conference line at the same time. I did not like the fact of having to setup 20 cti route points in CallManager, and then 20 call forwarders inside of Unity that then sent to 20 separate call handlers. I found a way to bypass the cti route points and call forwarders by having IPCC send the call directly to Unity.
    The trick to bypassing CallManager CTI route points that simply forward to Unity, and setting up call forwarders in Unity is this:
    1) In IPCC, use a consultive transfer instead of a call redirect. This allows you to first dial the main voicemail number and then dial the specific voicemail box once you are in Unity.
    2) On your call handler in Unity, simply specify the extension number of the call handler (I used the same number as the MeetMe line), and also set the forwarding number.
    So I've been able to change the process from Caller->IPCC Script->Callmanager CTI RP->Unity forwarder->Unity call handler->MeetMe to simply Caller->IPCC Script->Unity call handler->MeetMe
    As for my IPCC script, I used arrays to handle my plethora of conference lines, it greatly cut down on the size of my script.

  • Call tranasaction with skip first screen in ecc6

    Hi,
    We are doing upgrade from 4.7 to ecc 6. We are getting an error while running a report( The addition "AND SKIP FIRST SCREEN" can't be used with "CALL TRANSACTION .. USING".  ) in ecc6. This is not showing error in 4.7. Call transaction with skip first screen is fine in 4.7. But it is throwing an error in ecc6.
    Could anybody provide me the pointers to rectify this error.
    Regards,
    Ramesh

    Hi
    Did you pass all the mandatory field values to the calling transaction , Because when you use this addition you need to pass all the mandatory field values then only it works fine. Check out whether you are passing all the mandatory field values.
    Regards
    Pavan

  • Deleting emails with a specific subject from a single user mailbox

    we are exchange 2007 on SP1. we do not have an edge server, only a hub server.
    A user mailbox was flooded with 11000 "Undeliverable:" emails in the last 2 days, the source being "DSA". I am still finding out why this has happened. As for now, I have set up a rule to silently drop all emails with this specific subject.
    now the user wanted our team to delete all of these 11000 emails from his mailbox.
    we gave the appropriate permission to the users mailbox by running the command
    Get-Mailbox -Identity “[email protected]” | Add-MailboxPermission -User [email protected] -AccessRights FullAccess -InheritanceType all
    Then I ran the below command
    Get-Mailbox -Identity “[email protected]” | Export-Mailbox -SubjectKeywords "Undeliverable:" -IncludeFolders "\Inbox" -StartDate "09/22/2014" -EndDate "09/23/2014" -DeleteContent -Confirm:$false
    The command ran for a while, showing it was deleting 19000 odd emails with the below summary
    [PS] C:\Windows\System32>Get-Mailbox -Identity "[email protected]" | Export-Mailb
    ox -SubjectKeywords "Undeliverable:" -IncludeFolders "\Inbox" -StartDate "09/22/
    2014" -EndDate "09/23/2014" -DeleteContent -Confirm:$false
    TargetMailbox                    :
    TargetServer                     :
    TargetDatabase                   :
    MailboxSize                      : 733800KB
    IsResourceMailbox                : False
    SIDUsedInMatch                   :
    SMTPProxies                      :
    SourceManager                    :
    SourceDirectReports              :
    SourcePublicDelegates            :
    SourcePublicDelegatesBL          :
    SourceAltRecipient               :
    SourceAltRecipientBL             :
    SourceDeliverAndRedirect         :
    MatchedTargetNTAccountDN         :
    IsMatchedNTAccountMailboxEnabled :
    MatchedContactsDNList            :
    TargetNTAccountDNToCreate        :
    TargetManager                    :
    TargetDirectReports              :
    TargetPublicDelegates            :
    TargetPublicDelegatesBL          :
    TargetAltRecipient               :
    TargetAltRecipientBL             :
    TargetDeliverAndRedirect         :
    Options                          : DeleteSourceContent
    SourceForestCredential           :
    TargetForestCredential           :
    TargetFolder                     :
    PSTFilePath                      :
    RsgMailboxGuid                   :
    RsgMailboxLegacyExchangeDN       :
    RsgMailboxDisplayName            :
    RsgDatabaseGuid                  :
    StandardMessagesDeleted          : 0
    AssociatedMessagesDeleted        : 0
    DumpsterMessagesDeleted          : 19020
    MoveType                         : DeleteOnly
    MoveStage                        : Completed
    StartTime                        : 9/23/2014 7:29:01 PM
    EndTime                          : 9/23/2014 7:32:19 PM
    StatusCode                       : 0
    StatusMessage                    : Messages have been deleted from the source m
                                       ailbox.
    ReportFile                       : C:\Program Files\Microsoft\Exchange Server\L
                                       ogging\MigrationLogs\export-Mailbox20140923-
                                       192900-8103154.xml
    However, when I open the user's mailbox all of the emails still exist. kindly help me understand where I am going wrong and how I can delete all these emails.
    Thank You
    Philip

    Are they still specifically in the Inbox?
    I was thinking that the account might have "Deny" permissions to the user's mailbox but it looks like it can access the mailbox and delete items.
    StandardMessagesDeleted          : 0
    AssociatedMessagesDeleted        : 0
    DumpsterMessagesDeleted         : 19020
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Issue with language specific characters combined with AD-Logon to BO platform and client tools

    We are using SSO via Win AD to logon to BO-Launchpad. Generally this is working which means for Launch Pad no manual log on is needed. But  this is not working for users which have language specific letters in their AD name (e.g. öäüéèê...).
    What we have tried up to now:
    If the AD-User name is Test-BÖ the log on is working with the user name Test-BO with logon type AD
    If the logon Type "SAP" is used than it is possible to use the name Test-BÖ as the username
    Generally it is no problem in AD to use language specific letters (which means it is possible to e.g. log on to Windows with the user Test-BÖ)
    It is possible to read out the AD attributes from BO side and add them to the user. Which means in the user attributes the AD name Test-BÖ is shown via automatic import from AD. So it's not the problem that the character does not reach BO.
    I have opened a ticket concerning that. SAP 1th level support is telling me that this is not a BO problem. They say it is a problem of Tomcat. I don't believe that because the log on with authentification type SAP is working.
    I have set up the same combination (AD User Test-BÖ with SAP User Test-BÖ) as a single sign on authentification in SAP BW and there it is working without problems.
    Which leads me to the conlusion: It is not a problem of AD. It is something which is connected to the BO platform but only combined with logon type AD because SAP Logon is working with language specific characters.

    I have found this article with BO support:
    You cannot add a user name or an object name that only differs by a character with a diacritic mark
    Basically this means AD stores the country specific letters as a base letter internally. Which means that if you have created a user with a country specific letter in the name you can also logon with the Base letter to Windows.
    SAP-GUI and Windows are maybe replacing the country specific letters by the base letter. Due to that SSO is working. BO seems not to be able to do that. Up to now the supporter from BO is telling me that this is not a BO problem.
    Seems to be magic that the colleagues of SAP-GUI are able to to it.

  • I installed Mountain Lion so that I could sync my notes with my iPhone that already syncs notes with a specific email address I use for school, but during the install it automatically set up Notes to sync w the wrong email addy. How can I fix it?

    I installed Mountain Lion so that I could sync my notes with my iPhone that already syncs notes with a specific email address I use for school, but during the install it automatically set up Notes to sync w the wrong email addy. It looked in Mail, which had 5 email accounts set up in it, and for some reason picked the only one that I no longer use because it is for a school that I no longer attend. How can I fix it so that it syncs with the correct email account for notes and calendar? There don't seem to be any settings available other than to check if you want to use the basic features. It also said during the set up that it was setting up 'find my mac' but if I look on the iCloud website there is nothing showing there for finding my mac.
    At this point I feel like I wasted my money paying for this supposed upgrade. I got nothing for it but frustration. It even automatically set my security settings to allow only downloads from the Mac store so the first time I went to download something I had to stop what I was doing and go correct settings first. I feel like there should be a security setting to block downloads from the Mac store so I don't accidentally end up clicking the wrong thing and being charged.

    iCloud isn't syncing them on your phone.  You simply added the email account to your phone and enabled calendar and notes syncing with the email provider, and the calendar and notes appear in the calendar and notes apps on your phone.  You can do this with Gmail, Yahoo and other IMAP account.  iCloud email is just another IMAP account, but syncs notes with Apple's iCloud server just as Gmail syncs notes and calendars with Google's server.
    iCloud didnt' set up a non-iCloud account on your Mac.  When you check Mail in System Preferences>iCloud, it only creates an iCloud email account.  You can also add other email accounts to your Mac by going to System Preferences>Mail,Contacts,Calendars and clicking on the "+" sign on the bottom of the left sidebar.  If you added these other email accounts to your Mac before you upgraded to Mountain Lion, these were simply maintained on your Mac after you upgraded.

Maybe you are looking for