Get pernr in creen 900 for ldb PNP

hi All,
I have created a program in HR-ABAP using ldb pnp and I have used the screen 900 [for get payroll]  Now for few employees when I use GET pernr, its nt giving ne results. as in the the program goes to end of selection. Now wen i change the screen to normal [ blank or 000], the get pernr for same employees gives me results. Can someone please explain the reason for above?
thanks,
RS

Hi Reena
Check the status of employees for no result is displayed in 900 screen. Either they are active or payroll is run or not. That might be one of the reason. Another reason can be they are being open for the changes.
Regards
Waz

Similar Messages

  • Get pernr in screen 900 for ldb PNP

    hi All,
    I have created a program in HR-ABAP using ldb pnp and I have used the screen 900 [for get payroll]  Now for few employees when I use GET pernr, its nt giving ne results. as in the the program goes to end of selection. Now wen i change the screen to normal [ blank or 000], the get pernr for same employees gives me results. Can someone please explain the reason for above?
    thanks,
    RS

    Check whether the payroll run has taken place for the input employee numbers you are giving.
    You can check in the Tcode PC_PAYRESULT.

  • Transport of 'Report category Assignment' for LDB - PNP

    Hi,
    I am using LDB - PNP for a HR report. The screen works fine in the development server.
    Once Transported to Quality and Production servers the screen changs to something else completely. 
    <b>I see that HRIN0013 under 'Report category Assignment' ( found in Attributes of program ) is not transported to
    to quality server. How can transport HRIN0013  to
    to quality server? </b>
    I have used 'Report category Assignment'  X__X2201 and it works fine.
    I need your assistance on this. Help will be highly appreciated.

    Hi sanchit,
    1. This report category HRIN0013
       must be a sap standard report category,
       which must be a part of the LDB program.
    2. Just check out in your QA and production servers,
      whether this HRIN0013 is available for
      selection or not,
       in the same screen, u mentioned.
      ie. se38 -- 'Report category Assignment' Button
      ( found in Attributes of program
    regards,
    amit m.

  • Regarding the get pernr function

    Hi guys,
              Got to know that when we use get pernr it automatically checks for the autherization on pernrs to view data.
        Would like to know who all have access to see which pernrs? Can i get any ideas on this....
    Thanks in advance
    Abhi

    Triggers the associated events when data is read in an executable (type 1) program using a logical database.
    node is a node in the logical database that is assigned to the report (type 1 program) in the program attributes. You must declare the node in the report using the NODES statement (or the TABLES statement, if the node is of the type "table").
    The node node corresponds to a data object of the same name.
    node is available for processing during the flow of the logical database. Moreover, you can also make reference to the fields from the node that lie on the access path for node in the logical database associated with the report - unless the node is of the dynamic dictionary type.
    Notes
    You can use the event "GET dbtab." only once in the report.
    The GET events are implemented internally as FORM routines. This makes all data objects declared with DATA local, that is, they are only recognized and addressable within the event. This also applies to AT SELECTION-SCREEN ....
    The logic is somewhat different for nodes of the dynamic dictionary type. You must declare these nodes in the report using the NODES node TYPE type statement. In this case, type a dictionary type from the logical database for the node node - that is, the type of the data object node assigned to the node node can differ in different reports. In this case, the data object node is local to the -GET event and has the structure type. Outside the -GET event, a (global) data object node also exists and has the static type assigned to the node. The actual data is, however, returned in the local field node and is available only within the -GET event.
    Example
    The program uses the logical database F1S which has a structure where the table BOOKING appears below the table FLIGHT.
    NODES: SFLIGHT, SBOOK.
    GET SFLIGHT.
      WRITE: SFLIGHT-CARRID,
             SFLIGHT-CONNID,
             SLFIGHT-FLDATE,
             SFLIGHT-PLANETYPE.
    GET SBOOK.
      WRITE: SBOOK-BOOKID,
             SBOOK-CUSTOMID,
             SBOOK-ORDER_DATE.

  • After Get pernr

    Hi Sap Gurus,
    I am new to hr abapcolud clarify my doubts plzzzzzzz.
    After excuting our program in hr abap
    start-of-selection. will trigger am i correct
    in our program which infotype we have diclered those infotypes data comes in pnnnn  
    this pnnnn is internal table or structue,
    and after get pernr we will get that data into final internal table
    this get is event or what,  while i was debugging have seen that one as form
    Thanks,
    Prasad.

    PNNN is a structure
    The Pnnnn structure of the infotype is used as the field structure for the infotype entry screen
    When you declare an infotype using the INFOTYPES statement, an internal table Pnnnn with the structure Pnnnn is created and all records of the infotype are transferred to this table:
    At the GET PERNR event, the PERNR structure contains the data for a personnel number chosen on the basis of selection screen entries
    Data is retrieved at the GET PERNR event. The GET PERNR action is executed for all personnel numbers that were selected on the basis of selection screen entries
    GET PERNR fills the internal tables of infotypes that are declared for each employee using the INFOTYPES statement

  • GET PERNR usage

    hello Abap Gurus:
    Can any one please clarify me a question on GET PERNR Key word.
    I know that get pernr statement gets all the infotype records for selected pernrs on the selection screen.
    But my questiosn is whether get pernr access the database for each pernr selected on selection screen and process them or it gets all the infotypes data for selected pernrs in one shot.
    if not then whether this is not a performance issue.
    Please clarify me as i am a newbie in hr programming.
    Thanks,
    Sravanthi.

    Hi Sravanthi,
    It reads all employee numbers and related infotypes at one shot.
    During debugging of the GET PERNR operation please check that SY-DBCNT value is always constant.
    "The logical database reads all columns from all nodes that are not designated for field selection in the logical database and are superior to node on the access path of the logical database. "
    Please check the link below:
    http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9aa335c111d1829f0000e829fbfe/content.htm
    Regards,
    Dilek
    Edited by: Dilek Ersoz Adak on Jan 28, 2010 4:23 PM

  • Authorizations with PNP and Get Pernr.

    We have just noticed an issue with how our custom reports are working in regards to authorizations.  Our users have authorization to see Basic Pay infotype information up to the point where an associate becomes an executive.  When running our reports the latest salary shows up instead of the last one they are allowed to see or just leaving that field blank.  We are using the PNP logical database and Get Pernr.  Isn't that supposed to pick up whatever authorization is assigned to the person?
    Thanks,
    Mary

    I do not know how you come to this statement. Of course LDB checks ALL HR Authorization defined. This incoporates the personnel administration part as well as the combination to structural authorizations.
    However PNP will skip a PERNR if the user has only partial authorization by default. To get also only the restricted data what the user can see you must use the switch PNP_SW_SKIP_PERNR = 'N' at INITIALIZATION point.
    Please see the documentation available here:
      http://service.sap.com/erp-hcm
    On the left side follow the links:
      Services for mySAP ERP HCM
        Special Documentation
    Regards,
    Michael

  • Error return immediately using GET pernr (PNP logical db)

    I have a requirement to use HR PNP logical database for a report. The report should display the values from employee's infotypes. Should the user does not have authorisation on one or more infotype, the column field for that infotype should be left blank.
    I tried using 'Get Pernr' but system will return error immediately that user does not have authorisation on any of the infotypes. Please advice how should I code my report in order to fit into my requirement.

    There is afunction module to disable the infotype authorization check ( do a wildcard search in se37 for 'HRINFAUTH* ).. call that before the Get Pernr event & implement explicit authzn checks in your program..
    ~Suresh

  • How to read personal no's on selection in LDB without using GET PERNR

    Hi to all
    I am using Logical data base PNP and selection screen 900.
    Now my requirement is to retrieve personal no's which are entered at selection seperately without using GET PERNR.
    Ineed all the pernrwhich are entered in selection.
    How to do that.
    Please guide.
    Regards
    Anubhav

    Hi,
    You can do as SUJIT said or use GET PERNR and assign PERN-PERNR to Workarea and then append that to internal table.
    DATA:
       ITAB_PERNR like standard table of PA0000-pernr,
       wa_pernr like line of ITAB_PERNR.
    GET PERNR.
    wa_pernr-pernr  = pernr-pernr.
    append wa_pernr to ITAB_PERNR
    Hope this would help you.
    Regards
    Narin Nandivada.

  • PERNR is not read in GET PERNR event for some period..

    We have one ABAP report where we read financial data of our employees. But there is some PERNRs that is not read in the GET PERNR event the program skips to END-OF-SELECTION. I have all authorization to access this kind of data through other txn like PC_PAYRESULT. And this data appears in another ABAP reports. We've noted that the PERNRs that not appears doesn't have the Hiring Actions. And the data is read for this year 2007 but not to 2006 when the Action occurred. Does anyone knows what may be causing this?
    Thanks,

    When you say custom, you mean, not standard report right?
    TABLES: pernr.
    INFOTYPES: 0001.
    GET pernr.
    Verifica seleções
      CHECK pernr-werks IN pnpwerks.
      CHECK pernr-btrtl IN pnpbtrtl.
      CHECK pernr-plans IN pnpplans.
      CHECK pernr-kostl IN pnpkostl.
      CHECK pernr-abkrs EQ pnpxabkr.
      CHECK pernr-persg IN pnppersg.
      CHECK pernr-persk IN pnppersk.
      CHECK pernr-stell IN pnpstell.
      CHECK pernr-orgeh IN pnporgeh.
      CHECK pernr-orgeh IN pnpobjid.
      CHECK pernr-ansvh IN pnpansvh.
      CHECK pernr-stat2 IN pnpstat2.
      PERFORM seleciona_dados.
    END-OF-SELECTION.
      perform xyz.
    We use a custom report category with the fields:
    PNPXABKR
    PNPPABRJ
    PNPPERNR
    The program checks if PNPPERNR is not initial.
    When we executes it with PNPXABKR = 02, PNPPABRJ = 2006. Some PERNR does not are read. The programa skips to 'perform xyz'.  We found out that these PERNRs don't have the Action Hiring. We don't know if its because of it.

  • Authorization failuar at GET Pernr in LDB

    Hi,
    How to check exactly where there is no authorization for pernr in GET pernr event?
    I searched it in forum but cud not get exact answer. I can see ORGIN ORGXX and PERNR for AUTSW set to 1.
    Thanks in advance.

    Hi,
       Please check in Tcode OOAC if authorization switch is set to 1 for PERNR.
       For more info please read the object documentation for AUTHORITY-CHECK OBJECT P_PERNR.
    Regards,
    Srini.

  • How to use LDB PNP with ABAP objects in a program

    Hello,
    I am wondering if anybody has used the HR logical database(LDB) PNP with user defined ABAP objects in a program? I am using the FM- <b>LDB_PROCESS</b> but its not working. Also assigning PNP in the attributes section of the program -- so that I can use predefined fields from the LDB and then invoking the FM doesn't work -- throwing 'Logical database already active' error.
    I suppose even with the ABAP objects and the new FM -- I should still be able to utilize the pre-defined fields of the PNP database -- and also the built in authorizations. I cannot use GET PERNR and REJECT as they give errors. I understand that the use of HR-macros (RP-PROVIDE-FROM-LAST and et al.) are not allowed as they use the table work area -- which is not allowed in ABAP-OOPS.
    I would really appreciate if anyone could show me some insight regarding this. Thank you.
    Kshitij R. Devre

    Hi Kshitij
    It would be really good if we could use both together. But as I know, it is not possible. "GET pernr." is an event-like loop statement and so cannot be used in OO context. And I guess, the same restriction holds for the "LDB_PROCESS" since it uses LDB-specific processing.
    What I suggest you is to use standard and BAPI functions.
    Sorry for giving bad news...
    *--Serdar

  • How to get a default variant screen using LDB.(HR-ABAP)

    Hello,
                   I have created a report using LDB PNP.Used HRBEN000 as a hr report category.
    Got a default selection screen, I want to add one more field, for this I have selected the field from further
    selection button, and displayed on the screen. Now i saved as a variant.
    how to get this default screen using the variant in the report/program when executed?
    Please help me.
    Thanks&Regards,
    Archana.

    Hi ,you camn always make your Z report category...if the field is present in further selection tab..
    if not you can create your own paramerter or select option.....
    but you have to handle it in your code ....as get pernr wont filter on its basis(parameter select optyin created by you)
    but why loop at screen is not working?
    let me know how you are doing...
    have to do it in at selection-screen output

  • Reading Locked records from HR table using LDB PNP

    Hi,
    I am trying to read the table pa0168 using LDB PNP.
    But the problem is that get pernr staement does not retrieve locked records i.e where PA0168-sprps eq "X'.
    Can anybody help me with this.
    I have to use LDB  so i don't want a solution of writing a select * for the pa0168 table.
    hence i have to use get pernr statement but it should also retrieve locked records.
    how can i achieve that.? please help
    Thanks
    GT
    Message was edited by: GT

    Hi GT,
    In the START-OF-SELECTION event, set the parameter value
    pnp-sw-ignorelockedrecords = 'N'.
    Good Luck,
    Suresh Datti
    ( Pl award points if the answer helps you )

  • Authorization check in LDB PNP

    Hi All,
    I am using logical database PNP in my report program and GET PERNR to fill the infotype tables. Infotype level authorization checks are performed but not Org data level (organizational assignments). The role assigned to me has access to data of specific personnel areas but I am able to retrieve data of all personnel areas (this was maintained in the authorization object P_ORGIN).
    I read the level of simplification should have a value 1 in the authorization object P_ABAP for Org Level authorizations to be performed. I have updated my role but still org level authorizations are not performed.
    Can you please let me know if  any special setting are to be done like in Tcode OOAC or set some flags/parameters in the report program to perform org data level authorization.
    Any information provided will be really helpful.
    Thanks,
    Pavan

    Hi,
    A separate ID was created in an environment similar to production and proper authorization were assigned to it (I mean roles with authorization objcts P_ABAP - level of simplfication 1 and P_ORGIN - restricting based on personnel area). Still Org level authorizations were not performed while using the LDB PNP. Is there anything I am missing?
    Thanks,
    Pavan

Maybe you are looking for

  • Is there a way to interface HTML buttons and responses to Labview

    Hi all. I am a long term Labview user, but this is an area I am relatively new to. Ultimately, I want to get an iPad to receive live streaming video from a Labview program running on a PC over wireless Ethernet. Buttons on the iPad should trigger eve

  • Getting paypal to work

    Hi All, I been having a problem copying and pasting a paypal html to my website. I have tried going to HTML and than meta tag, that doesn't work and than I tried discription ..that doesn't work and keywords etc...nothing wokrs...it does show up but t

  • Graphics Repository/Browsing

    I was wondering if anybody out there has figured out a way to implement a "graphics repository" in portal? Is there a way to browse the graphics that are already in the Portal database? For example: I have been building pages and noticed in wwdoc_doc

  • Flash player won't play in Safari

    I've just installed the latest Flash player on Mac 10.8.2 and when I try to play video on Safari 6.0.2, I'm only getting audio, no images – just a white screen. You can see the problem here: http://londonrififi.blogspot.co.uk/2012/12/skunk-anansie-20

  • Why does it take a while bfeore my Safari and Mails kick in

    Once in a while my internet browser and Mail would take a while to start after i open it. My internet signal is full on a and very fast. I mean i don't have this problem on my MB or MBP.