Regarding GET PERNR and GET OBJECT

Hi,
   I want to know the purpose and working of these 2 events.  can any body give me  the explanation r any document on these 2 events.
  Thanks & Regards,
  Suresh

Hi
This 2 events are used in HR programming. On PA if you use logical database PNP or PNPCE ,the internal tables of infotypes specified will be populated with data for that particular employee number.
Check the sample code below and see how it works.
report z_test .
tables:pernr .
infotypes:0001,
          0002,
          0006.
start-of-selection.
get pernr.
end-of-selection.

Similar Messages

  • Get latepernr  and get pernr

    Hi all,
    can u explain the get event functionality ?
    Can u tell me the difference between
    get pernr and get late pernr.
    when should i use these type of statements ?
    Regards
    charan

    Hi Ravi,
    GET PERNR event initiates the data extraction for a pernr.
    GTE PERNR LATE event is triggered after all the other events are triggered and right before the end-of-selection.
    PL take a look at the following <a href="http://help.sap.com/saphelp_47x200/helpdata/en/ac/764da4496f11d3967200a0c9306433/frameset.htm">SAP Help</a> where it is explained very clearly.
    Regards,
    Suresh Datti

  • GET OBJEC and GET PERNR

    I am new to ABAP-HR.......
    what is the difference between GET OBJEC and GET PERNR.
    Iam asked to write a program using logical databases .. which one should I use ...
    thanks,
    shekhar....

    Hi Nevali.
    I would like to suggest,
    OBJEC - Work Area for Database PCH
    PERNR - HR Master Data Reporting - PNP
    Differences,
    GET OBJEC - Reporting on Personnel Planning data
    GET PERNR - Reporting on HR master data.
    I would like to suggest a Reference,
    [SAP HELP - Standard Reference for HR Logical Databases|http://help.sap.com/saphelp_nw04/helpdata/en/c6/8a15381b80436ce10000009b38f8cf/content.htm]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Get pernr and provide

    Hi,
    In HR ABAP, can you tell me what exactly "Get pernr" and "provide...end provide" does ? (with an example if possible)
    I appreciate your input.
    Thanks in advance.

    hi
    good
    get pernr->
    TABLES: PERNR,
            PCL2.
      INCLUDE ZHR_PCL2_CU_DATA - Payroll results.                        *
    Data declarations for the IMPORT of database PCL2 for cluster RU.    *
    DATA: CD_NEXT_SEQ    TYPE I,               "Next available seq number
          CD_LAST_PAY    TYPE D.               "Last payroll run date
    DATA: BEGIN OF OCD_VERSION.
            INCLUDE STRUCTURE PC201.  "Technical Version
    *DATA:   molga  LIKE t001p-molga.    "country identifier
    DATA: END OF OCD_VERSION.
    DATA: BEGIN OF RGDIR OCCURS 100.
             INCLUDE STRUCTURE PC261.  "(For Export and Import of Payroll Res
    DATA: END OF RGDIR.
    Key for database PCL2 cluster RU
    DATA BEGIN OF RX_KEY.
           INCLUDE STRUCTURE PC200.  "Payroll Results Key
    DATA: END OF RX_KEY.
    country dependent
    DATA: BEGIN OF  RU-VERSION.
            INCLUDE STRUCTURE PC201.  "Technical Version
    DATA: END OF  RU-VERSION.
    DATA: BEGIN OF ORU_VERSION.
            INCLUDE STRUCTURE PC201.  "Technical Version
    DATA: END OF ORU_VERSION.
    Cumulated-result table
    DATA:  BEGIN OF CRT OCCURS 30.
             INCLUDE STRUCTURE PC22Y.  "Cumulated result table (USA)
    DATA:  END   OF CRT.
    GET PERNR.
      IMPORT CD_VERSION TO OCD_VERSION
                           CD_LAST_PAY
                           CD_NEXT_SEQ
                           RGDIR
             FROM DATABASE PCL2(CU) ID PERNR-PERNR.
      CHECK SY-SUBRC EQ 0.
    This is where you select the particular period you are searching for.  The
    selection will change based on what dates you are looking for.
      LOOP AT RGDIR WHERE FPPER EQ P_PERIOD
                    AND   INPER EQ P_PERIOD
                    AND ( RUNDT GT Z_RUNDT
                    OR  ( RUNDT EQ Z_RUNDT
                    AND   RUNTM GT Z_RUNTI ) )
                    AND   SRTZA =  'A'
                    AND   PAYTY =  ' '
                    AND   VOID  NE 'V'.
        CHECK SY-SUBRC = 0.
        MOVE PERNR-PERNR TO RX_KEY-PERNR.
        MOVE RGDIR-SEQNR TO RX_KEY-SEQNO.
       IMPORT RU-VERSION TO ORU-VERSION
              CRT
         FROM DATABASE PCL2(RU) ID RX_KEY.
         CHECK SY_SUBRC = 0.
       LOOP AT CRT.
         Process crt data.
       ENDLOOP.
      ENDLOOP. 
    thanks
    mrutyun

  • Get-ADReplicationFailure and Get-ADReplicationUpToDatenessVectorTable

    Hi,
    Where does the Get-ADReplicationFailure and Get-ADReplicationUpToDatenessVectorTable cmdlets retrieve it`s data from?
    Lets start with Get-ADReplicationFailure: It shows 2 replication failures which is not current. Running the following in the same environment shows no errors:
    $dclist= get-addomaincontroller-filter *
    foreach($dc in$dclist) {
    repadmin /showrepl /csv | ConvertFrom-Csv
    Get-ADReplicationUpToDatenessVectorTable: This cmdlet returns a lot of Microsoft.ActiveDirectory.Management.ADReplicationUpToDatenessVectorTable objects. Many of them have old timestamps and
     no value for the Partner property:
    LastReplicationSuccess : 26.04.2010 21:01:02
    Partition              : DC=domain,DC=local
    PartitionGuid          : 7ddec540-31db-44d3-9ab5-d5adb479627e
    Partner                :
    PartnerInvocationId    : 0e2fbc85-8d50-4c30-ae65-27648a0888b9
    Server                 : dc01.domain.local
    UsnFilter              : 19853
    These are probably old domain controllers which is decomissioned years ago. Why does these show up? And where is the cmdlet getting this data from?
    The replication topology seems healthy using the legacy tools, but the new cmdlets isn`t giving the same impression.
    Some clarifications would be appreciated.

    Hi scripter42,
    The Get-ADReplicationFailure cmdlet returns all failures currently associated with a given domain controller or Active Directory Lightweight Directory Services (AD LDS) instance. The return object is of type ADReplicationFailure. This cmdlet returns the
    list of failures in the ADReplicationSummary object for a specific server.
    The ADReplicationUpToDatenessVectorTable displays the highest Update Sequence Number (USN) for the specified domain controller(s). This information shows how up-to-date a replica is with its replication partners.
    Regards,
    Lany Zhang

  • GET RESPONSE and GET STATUS

    Hi all,
    I wish some information about use of get response and get status commands or where I can find answer to my questions.

    Hi, GET STATUS command description can be found in GlobalPlatform 2.1.1 specification and ISO/IEC 7816-4 standard.
    GET RESPONSE is described in ISO/IEC 7816-4 and 7816-3 standards.
    Best regards,
    Eve

  • Demantra 7.3 ,Analytical Engine Is not getting up and getting terminated

    Hi,
    When i am trying to make my Demantra 7.3 - analytical engine up on linux server, is not getting up and getting terminated. Can any body help me in the same.
    For your information
    Mine Weblogic server is 32 bit and linux operating system is 64 Bit.
    Thanks in advance.
    Thanks,
    Ankur Dawra
    Edited by: Ankur Dawra on Aug 16, 2010 2:52 PM

    If that specific patch is causing a conflict with CU7 or Rules Engine Update Service, the best option would be to LOG a case with Microsoft and let them either fix it or provide a justification of why that specific Windows Patch is not a good idea (file
    an exemption in case of later with the customer/security team).
    Regards.

  • [Mac mini] Display getting dark and get back to normal, If there is an idle mode, where can I adjust it or turn if off?

    MAC MINI (Mid 2011)
    OSX Yosemite 10.10.2 / OSX Mavericks 10.9.5
    While I were using mac mini for a while, the external display (LG_22MP55) has been getting dark and getting back to normal.
    Did it enter into idle mode?
    Anywhere I can find, can't find the related options to turn it off or adjust it.
    Even adjusting "Never" for both "computer sleep" and "display sleep" can happen this annoying situation.
    Beside, I have tried to connect iphone5S to external display (LG_22MP55) and double check LD will not enter into idle mode itself.
    So, I guess this situation was happened by MAC mini.

    When I use find file http://www.macupdate.com/app/mac/30073/find-file (which does tend to find files that "Finder" can't), it's not coming up with any other itunes library files that have been modified in the past week, which I know it would have been - unfortunately, I don't have a very recent backup of the hard drive.  It would be a few months old so it wouldn't have the complete library on it....any ideas?  I'm wondering if restarting the computer might help but have been afraid to do so in case it would make it harder to recover anything...I was looking at this thread https://discussions.apple.com/thread/4211589?start=0&tstart=0 in the hopes that it might have a helpful suggestion but it's definitely a different scenario.

  • GET PAYROLL  And GET PERNR  Events .. Query

    Hi All
    I have used  Get Payroll  Event to fetch data from Database for Payroll Reporting.
    It work fine for me till now..
    But i am  not sure  that ,it can be used indiviusally  without GET PERNR Event.
    And wht are the other conditions to be usedd in Get Payroll Event...
    Regards
    Lakhan

    Pernr Is the personnel numbers
    for a particular Country
    Country you can use MOLGA
    GET PERNR
    GETPAYROLL
    You can loop and get the resuults for the Employee for that particulat Country
    Ok
    Take Care

  • How to pipe Get-MailboxStatistics and Get-Mailbox

    HI,
     I have two commands but i need following information in one report.
     Ex:
    Name
    ForwardingAddress
    DeliverToMailboxAndForward
     Get-Mailbox -Filter {ForwardingAddress -ne $null} | ft Name,ForwardingAddress,DeliverToMailboxAndForward -Autosize
     How do i get that lastlogontime to above by conbine following command
    get-mailboxstatistics
    select-object
    Lastlogontime,
    As

    Hi ,
    Try this :
    Get-Mailbox -resultsize unlimited |where{$_.forwardingAddress -ne $null} |ft name,forwardingAddress,DeliverToMailboxAndForward
    for  get-mailboxStatistics  ,first check  the all object member and properties of by using below
    Get-mailboxstatistics  <anymailboxName>|get-member
    if you see the ,ForwardingAddress,DeliverToMailboxAndForward  properties , then you can pipe these two with  Get-mailboxstatistics .
    If so ,
    Get-Mailbox -resultsize unlimited |where{$_.forwardingAddress -ne $null} |get-MailboxStatistics |ft name,forwardingAddress,DeliverToMailboxAndForward,lastlogontime
    if not ,
    You  can't pipe these two with Get-mailboxstatistics along with lastlogontime.
    Then ,
    you have to use  get-mailboxStatistics -resultsize unlimited|ft name,lastlogontime
    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.

  • PNPCE Questions Regarding GET PERSON and GET PERAS

    Any information regarding the runtime performance of PNPCE? It seems it takes a lot more time than PNP? Any suggestions how to improve performance while using PNPCE?
    Message was edited by:
            Shuvo Datta

    Shuvo,
    I found this on SE36, documentation on PNPCE logical database:
    "<u>Selection Fields of the 0000 and 0001 Infotypes</u>
    <i>You can use all the standard fields of the 0000 and 0001 infotypes for selection. You can also use additional selection fields that are the concatenation of two or more of these infotype fields. If possible, do not use these concatenated fields because they do not play a significant role in the selection and can lead to long runtimes in certain circumstances. You can show and hide the required selection fields using the Selection Fields function in the application toolbar. The report
    category defines a preselection of fields that should be available."</i>
    Also, I suggest you read the full doco in SE36 to use this LDB in a more efficient way as far as the performance is concerned.
    Hope this helps.
    Reward points if useful.
    Cheers,
    Sougata.

  • PO is getting created and getting an error in the Message tab ME23N

    HI everybody,
    I am uploading the data and creating the PO through BAPI, and the PO is getting created. when i logged into ME23N and checking the PO it is everything fine without any error.
    But when i click on the message button and checking the display PO output is giving an error message over as Incorrectly processed and when i check the processing log i am seeing the msg text as error in the address output.
    and i checked the NACE transaction the output type is configured with program name, form routine name, form name and smartform name.
    here in the form name and the smartform name which is present is having the different name and both are the smartforms only.
    Can any one help me out in this issue how to resolve the error.
    Thanks in advance

    Hi,
    Check the TNAPR Table by putting the Form Name / Program Name to find out the output type it is attached to.
    Debug
    The other method of checking is by setting up a break-point at smartform and manually entering a PO using the same upload data and try to save it. But this would not help you much. Because the root cause is the Determination of output type.
    Thanks & Regards
    Suresh Nair

  • Get-ADUser and Get-ADPrincipalGroupMembership combined

    I'm trying to get a list of template user account and what their membership are exported to a csv file. I'm trying to combine the tables on them but having a hard time figuring it out. I spent the day racking my brain on this and figured I would reach out
    for help. This gets all my template users.
    Import-Module ActiveDirectory
    $User = "*Template*"
    $usernames = (Get-ADUser -Filter "DisplayName -like '*$User*'" -Properties * | format-table Displayname, SamAccountName)
    $usernames
    I can use this to get all the members of the groups, but since the groups repeat it doesnt break down where one user stops and the others begin. 
    $groups = Get-ADUser -Filter "SamAccountName -like '*$Usr*'" -Properties DisplayName | foreach-object{Get-ADPrincipalGroupMembership -Identity $_.SamAccountName} | format-table name
    I was thinking of joining the tables but that wasnt much help to me since I cant figure out what to join on. I also thought about looping through the first table with a foreach loop but it was assigning the whole table in the first pass and displaying nothing.
    If anyone could help or suggest something, I would greatly appreciate.
    Matt

    Hi Matt,
    Give this a shot:
    Get-ADUser -Filter "DisplayName -like '*Template*'" -Properties MemberOf | ForEach {
    $username = $_.SamAccountName
    $_.MemberOf | ForEach {
    $props = @{
    Username = $username
    GroupName = (Get-ADGroup $_).Name
    New-Object PsObject -Property $props
    } | Sort Username,GroupName |
    Select Username,GroupName |
    Export-Csv .\GroupMemberships.csv -NoTypeInformation
    Don't retire TechNet! -
    (Don't give up yet - 13,225+ strong and growing)

  • Get a report joining data from Get-MailBox and Get-MailBoxStatistics

    Hi
    I have 2 cmdlets, and every has different information of the same users, the point is that I have to get the information of every cmdlet  and in excel I have to join the information
    Is there a way to get both information joined in one shot?
    This is one cmdlet:
    Get-Mailbox -Server MB05 | Select-Object DisplayName,SamAccountName,UserPrincipalName,UseDatabaseRetentionDefaults,OrganizationalUnit,PrimarySmtpAddress,WhenCreated,WhenChanged,HiddenFromAddressListsEnabled,@{N="AddressListMembership";E={
    $_.AddressListMembership -JOIN ';'}},UseDatabaseQuotaDefaults,ForwardingAddress,DeliverToMailboxAndForward,RecipientLimits,ManagedFolderMailboxPolicy,@{N="GrantSendOnBehalfTo";E={ $_.GrantSendOnBehalfTo -JOIN ';'}},MaxSendSize,MaxReceiveSize,Database
    | Export-CSV -Path d:\ms\mb05.txt -Delimiter "`t"  -Encoding Unicode -NoTypeInformation
    This is the other cmdlet:
    Get-MailboxStatistics Server MB05| Select-Object DisplayName,Database,StorageLimitStatus,@{label="Total Size (MB)";expression={$_.TotalItemSize.Value.ToMB()}},@{label="Total Delete (MB)";expression={$_.TotalDeletedItemSize.Value.ToMB()}},
    ItemCount,DeletedItemCount,LastLogoffTime,@{label="ProhibitSendQ (MB)";expression={$PSQ}}| Export-CSV -Path d:\ms\ms05a.txt -Delimiter "`t" -Encoding Unicode -NoTypeInformation
    Thank you in advanced.
    Doc MX

    I think something like this would work:
    $stuff = @()
    Get-Mailbox -ResultSize unlimited -Database MB05| foreach{
    $x = "" | select `
    DisplayName, `
    SamAccountName, `
    UserPrincipalName, `
    UseDatabaseRetentionDefaults, `
    OrganizationalUnit, `
    PrimarySmtpAddress, `
    WhenCreated, `
    WhenChanged, `
    HiddenFromAddressListsEnabled, `
    AddressListMembership, `
    UseDatabaseQuotaDefaults,
    ForwardingAddress, `
    DeliverToMailboxAndForward, `
    RecipientLimits, `
    ManagedFolderMailboxPolicy, `
    GrantSendOnBehalfTo, `
    MaxSendSize, `
    MaxReceiveSize, `
    Database, `
    StorageLimitStatus, `
    'Total Size (MB)', `
    'Total Delete (MB)', `
    ItemCount, `
    DeletedItemCount, `
    LastLogoffTime, `
    'ProhibitSendQ (MB)'
    $m = Get-Mailbox $_
    $x.DisplayName = $m.Displayname,
    $x.SamAccountName = $m.SamAccountName,
    etc.,
    etc.,
    etc.
    $m = Get-MailboxStatistics $_
    $x.StorageLimitStatus = $m.StorageLimitStatus,
    $x.'Total Size (MB)' = $m.TotalItemSize.Value.ToMB(),
    etc.,
    etc.,
    etc.
    $stuff += $x
    $stuff | export-csv -Path d:\ms\mb05.txt -Delimiter "`t" -Encoding Unicode -NoTypeInformation
    --- Rich Matheisen MCSE&I, Exchange MVP

  • Pipeline get-mailbox and get-mailboxstatistics

    Dears,
    I am finding great difficulty in having output what seems to be a quite simple...
    I just need to output all user's mailbox prohibitsendquota and the totalitemsize and I am running the below command but it is giving me null values in totalitemsize,
    Get-Mailbox -ResultSize Unlimited  | Select-Object DisplayName, ProhibitSendQuota, @{label="TotalItemSize";expression={(Get-MailboxStatistics $_name).TotalItemSize}}
    However, when I make get-mailbox -identity
    [email protected] it gives me the correct output...I need to run it for everyone.
    MCP,MCTS(Vista),MCSA(Messaging)

    .. i noticed that too, but chaning $_name to $_.name  still doesnt work - it gives me totalitemsize only on the last subject
    However, i have a script i use (not one-liner though) - giving me way more information
    $mailboxes = get-mailbox -database $(read-host "enter database") |select -first 10 | select name,alias,database
    $Mycol = @()
    foreach ($mbx in $mailboxes)
    $mbxstat = get-mailboxstatistics $mbx.name |select lastlogontime,lastloggedonuseraccount,totalitemsize,itemcount
    $user = get-aduser $mbx.name -properties enabled,lastlogondate
    $MyObject = New-Object PSObject -Property @{
    mbxName = $mbx.name
    mbxAlias = $mbx.alias
    mbxDatabase = $mbx.database
    ADuser = $user.enabled
    ADuserLogon = $user.lastlogondate
    mbxLastlogon = $mbxstat.lastlogontime
    mbxLastAccount = $mbxstat.lastloggedonuseraccount
    mbxItemSize = $mbxstat.totalitemsize
    mbxCount = $mbxstat.itemcount
    $Mycol += $MyObject
    $Mycol |select mbxname,mbxalias,mbxdatabase,aduser,aduserlogon,mbxlastlogon,mbxlastaccount,mbxitemsize,mbxcount #|export-csv report.csv -Delimiter ";"
    just delete rows u dont need

Maybe you are looking for