Use GET PERNR without any screen default from Logical DB.

Could anyone help me how to avoid using screen default from logical DB if using GET PERNR?

Are u saying using this logic below  , im can avoid using GET PERNR?
TABLES: RP50G,PERNR,PYORGSCREEN,PYTIMESCREEN.
DATA: IN_RGDIR LIKE PC261 OCCURS 0 WITH HEADER LINE,
      WA_RT LIKE PC207 OCCURS 0 WITH HEADER LINE,
      SEQNR LIKE PC261-SEQNR,
      RESULT TYPE PAY99_RESULT.
DATA: M_START LIKE SY-DATUM,
      M_END LIKE SY-DATUM.
FORM GET_PAYROLL USING P_PERNR M_START M_END.
*This FM help us to get the Sequence number used for the
*employee on the payroll.
  CALL FUNCTION 'CU_READ_RGDIR'
       EXPORTING
            PERSNR          = P_PERNR
       TABLES
            IN_RGDIR        = IN_RGDIR
       EXCEPTIONS
            NO_RECORD_FOUND = 1
            OTHERS          = 2.
*We read it using two dates, which corresponds to the month *we need
  READ TABLE IN_RGDIR WITH KEY FPBEG = M_START
                               FPEND = M_END.
  SEQNR = IN_RGDIR-SEQNR.
*This FM actually reads the payroll and get the information
*we need.
  CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
       EXPORTING
            CLUSTERID                    = 'XX'
*In CLUSTERID use the country of your choice
            EMPLOYEENUMBER               = P_PERNR
            SEQUENCENUMBER               = SEQNR
            READ_ONLY_INTERNATIONAL      = 'X'
       CHANGING
            PAYROLL_RESULT               = RESULT
       EXCEPTIONS
            ILLEGAL_ISOCODE_OR_CLUSTERID = 1
            ERROR_GENERATING_IMPORT      = 2
            IMPORT_MISMATCH_ERROR        = 3
            SUBPOOL_DIR_FULL             = 4
            NO_READ_AUTHORITY            = 5
            NO_RECORD_FOUND              = 6
            VERSIONS_DO_NOT_MATCH        = 7
            OTHERS                       = 8.
*We just need to read the result table.
  LOOP AT RESULT-INTER-RT INTO WA_RT.
    CASE WA_RT-LGART.
      WHEN '9010'.
         MOVE WA_RT-BETRG TO T_ANYTABLE-SOMEPAY.
    ENDCASE.
  ENDLOOP.
ENDFORM.

Similar Messages

  • Is there a way to use 'GET PERNR' without the selection screens?

    I would like to use the GET PERNR event in a batch program without using the default selection screens.  I would like to be able to use my own selection screen and parameters, but only get them along with the default selection options for payroll period.  I've tried removing the screen number from the attributes screen, but still get these options.  Is this possible?

    hi Kiran,
    report Category is a Pushbutton on the Attributes popup, it only appears if you use PNP logical DB.
    this is from SAPHelp: "Report Category
    Category used for HR reports that use the PNP logical database. It controls the type and number of fields that appear on the selection screen of an evaluation report."
    hope this helps
    ec

  • When I send an e-mail to a group address, from my address book, I get an error messageI get an error message that one of them is not a valid e-mail address, although I have used it alone without any problem.

    When I send an e-mail to a group address, from my address book, I get an error messageI get an error message that one of them is not a valid e-mail address, although I have used it alone without any problem.

    See https://support.mozilla.org/en-US/questions/1018363

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

  • Without using GET PERNR, how to retierve data in HR ABAP Reports

    Hi Experts,
    How to retrieve the data without using GET PERNR, by using function modules in HR ABAP Reports.
    Thanks.
    Naveen.

    Hi,
    U can use HR_READ_INFOTYPE Function Module in Place of GET PERNR.
    Go through the following link it will give the example of that FM.
    http://www.experts-exchange.com/Database/Software/ERP/SAP/Q_20781600.html
    <REMOVED BY MODERATOR>
    Edited by: subas  Bose on Feb 15, 2008 2:46 PM
    Edited by: Alvaro Tejada Galindo on Feb 15, 2008 3:06 PM

  • 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

  • Don't use GET PERNR error

    Hello Experts,
    I'm trying to write a code using GET PERNR statement for every first time but keeps getting the error when try to execute my code. Here is the error (Do not use the GET PERNR event).
    Can somebody please help me rectify this error. For reference here is my code.
    report  zad_hr_test line-size 200.
    *Database Table
    tables: pernr,           " Pernr structure for Logical database
            pa0001,           " Actions
            pa0002.           " Personnel Info
    *Infotypes
    infotypes: 0001,         " Actions
                0002.         " personnel info
    *Variable Declaration
    data: form_nam like p0001-ename,
           v_age(5) type c,       "variable for calculating age in days
           v_ctr1 type i value 0, "counter
           v_ctr2 type i value 0, "counter
           var(5) type c ,        " variable to store btrtl
           var1(5) type c  .      " variable to store werks
    *Internal Table Decalartion
    data: begin of i_tab1 occurs 0,
            werks like pa0001-werks,  "personnel area
            btrtl like pa0001-btrtl,  "personnel sub area
            pernr like pa0001-pernr,  "employee number
            ename like pa0001-ename,  "employee name
            begda like pa0002-begda,  "employee join date
            persg like pa0001-persg,  "employee group
            persk like pa0001-persk,  "employee sub-group
            plans like pa0001-plans,  "position
            gbdat like p0002-gbdat,   "date of birth
          end of i_tab1.
    *START-OF-SELECTION
    start-of-selection .
    get pernr .
    i_tab1-pernr = pernr-pernr.
       rp_provide_from_last p0001 space pn-begda pn-endda .   " Macro for IFT-0001
       rp_provide_from_last p0002 space pn-begda pn-endda .   " Macro for IFT-0002
    **--> Populate internal table
       move p0001-werks to i_tab1-werks .
       move p0001-btrtl to i_tab1-btrtl .
       move p0001-pernr to i_tab1-pernr .
       move p0001-ename to i_tab1-ename .
       move p0002-begda to i_tab1-begda .
       move p0001-persg to i_tab1-persg .
       move p0001-persk to i_tab1-persk .
       move p0001-plans to i_tab1-plans .
       move p0002-gbdat to i_tab1-gbdat .
    **--> Append data to internal table
       append i_tab1 .
       clear i_tab1 .
       loop at i_tab1.
         write:/ i_tab1-werks,
                 i_tab1-btrtl,
                 i_tab1-pernr,
                 i_tab1-ename,
                 i_tab1-begda,
                 i_tab1-persg,
                 i_tab1-persk,
                 i_tab1-plans,
                 i_tab1-gbdat.
       endloop.
    Many thanks in advance.

    Hi,
    You're asking a different question now, so you should start a new thread...
    Anyway, in the 'Attributes' screen of your program you can specify which selection screens you want to display for a logical database.
    Alternatively you can hide all (or part) of a selection screen at the 'selection-screen output' event.
    For example:
    at selection-screen output.
      loop at screen.
       check screen-name = 'PNPABKRS-HIGH'
          or screen-name = 'PNPABKRS-LOW'.
       screen-input = '0'.
       screen-output = '0'.
       screen-invisible = '1'.
       screen-active = '0'.
       modify screen.
      endloop.
    cheers
    Paul

  • My charger for ipad air doesn't work.Can I use charger 10w without any worreies?

    My charger for ipad air doesn't work.Can I use charger 10w without any worreies(damage battery)?Is it possible to change in apple store with warranty?

    "Can I use charger 10w without any worreies(damage battery)?"
    Yes you can.
    "Is it possible to change in apple store with warranty?"
    If you mean "can I get my power adapter replaced under warranty, at the Apple store?", yes.

  • I can use my appleID without any problems for using to download new apps in the app-store or Itunes - Problem: I can´t use my ID at facetime and Imessage - I´d like to add an EMail account on top to my mobile number. My password will not be accepted!!!???

    I can use my appleID without any problems for using to download new apps in the app-store or Itunes - Problem: I can´t use my ID at facetime and Imessage -
    I´d like to add an EMail account on top to my mobile number to use more this services. My password will not be accepted!!!??? I try it and i try it and i try ist, throughout the same problem. Whats on? The user help desk said, i´ve to reset and use the WLAN key new as well as possible - no way!

    Contact the App store for Apple ID help. Their support link is on the right of the App store window
    LN

  • "New in iTunes" newsletter contents received in iPad email will not produce sound.  Any ideas as to why?  If I go into the iTunes program, I get sound without any problem.

    "New in iTunes" newsletter contents received in iPad email will not produce sound for music samples.  Any ideas as to why?  If I go into the iTunes program, I get sound without any problem.

    Amazing! I'm a dance instructor and am doing the exact same thing as you - and not seeing what I need on my iPad Air ... I can't believe there has been no reply on this! I also can't believe there isn't an easy way of seeing track info in the iPad or iPhone but I've spent hours searching and am not finding anything

  • I have tryed the "find my ipod application" and i tried to lock it and it have been locked but i am using the ipod without any effects but if by time would be any side effects?

    i have tryed the "find my ipod application" and i tried to lock it and it have been locked but i am using the ipod without any effects but if by time would be any side effects?

    It will be locked when you connect it to Wi-Fi

  • Using Get PERNR

    Hi,
    When using GET PERNER, is it possible to add any extra field in the selection screen say for example a numeric field where user can enter a number or I can only use the fields provided for PERNR?
    Thanks,
    Gaurav

    Hi Gaurav
    When you link a LDB to your program, its predefined selection screen is automatically inserted. In HR, you can select from the report category which affects the selection screen. You can see the report categories at the status bar of the "Attributes" window of your program provided that it is linked to a LDB. You can also create your own report categories.
    Using the "parameters", "select-options", etc... you can insert additional criteria for your selection screen which will be displayed under predefined ones.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Using PowerMac G4  without any display

    Hi!
    I have PowerMac G4 867/QS whith 17" Apple Studio Display (ADC). It is very noisy, so It are sitting in my closet , and I manage them from my main iMac using ARD.
    Can I disconnect Apple Studio Display and run PowerMac without any display?
    Thanx!

    I'm trying restart the PowerMac (monitor is disconnected) from ARD , but it shuts down! Then I press the Power button, PowerMac start up and ARD restore the connection, but the ARD Desktop window is now no more than 800x600 !
    mage: !http://grab.by/Vd7!
    In fact, I could then set my screen resolution:
    !http://grab.by/VdF!
    Is it possible to restart a PowerMac without a display via ARD and preserve the high resolution screen?
    Perhaps there is an emulator display (plug in to DVI or VGA output).
    Thanx!

  • How to extract current record using get pernr (logical database)

    Hi all,
    I am using logical database in the program and using <b>get pernr</b> method. But there are multiple entries in the infotype for a perticular employee. i want to extract employees current record whose end date is greater than sy-datum.
    how to do this using <b>get pernr</b>?
    Thanks in advance.

    Hi Priti,
    Get Pernr statement will get all the records for each employee spcicified for the Begin and End dates on the selection screen and store in an internal table for the infotypes declared in the infotypes statement.
    You need to read this table and copy only the records that meet the date criteria in an internal table for further use.
    For Ex:
    infotypes : 0001.
    tables : pernr.
    TYPES : BEGIN OF ty_kostl,
             pernr TYPE pernr-pernr,
             kostl TYPE p0001-kostl,
             ename TYPE p0001-ename,
            END   OF ty_kostl.
    Work Areas
    DATA : g_kostl_wa  TYPE ty_kostl.
    Internal Tables
    DATA : i_kostl  TYPE TABLE OF ty_kostl.
    start-of-selection.
       get pernr.
       PROVIDE * FROM p0001 BETWEEN pn-begda AND pn-endda.
        if p0001-endda GT sy-datum.
           g_kostl_wa-pernr = p0001-pernr.
           g_kostl_wa-kostl = p0001-kostl.
           g_kostl_wa-ename = p0001-ename.
           APPEND g_kostl_wa TO i_kostl.
           CLEAR  g_kostl_wa.
        endif.
      ENDPROVIDE.

  • N97 mini battery getting hot without any usage

    I have been using N97 mini since more than a year now. Till yesterday it was functioning OK but today after full recharge it battery got drained in 5 hours without any usage !! I noticed the phone is getting too hot without any usage. I recharged it againg and same thing happened again. I tried to switch if off for few hours and took out the battery from phone but it didn't help. I am using latest firmware. Did someone had similar issue ? How it got resolved ? Any other ideas ? Please help.

    It's unlikely the phone would heat up with 'nothing ' running, usually they get warm with processor hungry apps like Video, music player or Navigation running ! If you haven't installed anything new lately, that may be running in the background, try the demo version of RamBlow, it will show whatever is running on the phone and 'kill' everything if required. If nothing is running, try another battery, or visit a Nokia Care point .
    Good Luck
    If I have helped at all, a click on the White Star is always appreciated :
    you can also help others by marking 'accept as solution' 

Maybe you are looking for

  • How do I re-install my two Adobe products without having the original software installation CDs?

    I purchase Adobe Photoshop Elements 10 and Adobe Premiere Elements 10 in 2011 or 2012 (I can't remember the exact date).  I installed both products on my home desktop PC, then later on my work laptop.  The motherboard on my home PC crashed recently a

  • How to get the address of the selected contact name

    Hello All, Hi can anybody help me for nowing the Index(address) of the selected contact name after serching the list of contact names. Thanking You

  • Keeping songs in the same album together

    Because I am traveling for a while, I moved my iTunes library from my iMac to my MacBook Pro. Now, when I open it up, I find that a number of albums have their songs scattered over several different albums, all of the same nsme (even though the libra

  • Bare minimum include files/project settings for a photoshop plugin

    Hi, I've been reading the documentation and gone through some samples in the SDK and I'm starting to feel comfortable with the whole plugin environment (though there is still much for me to learn). The question I have is "what are the bare minimum fi

  • Drag and drop panel

    I plan on writing a "drag and drop" interface that lets a user place things on a "canvas" and move them around. I will then let the user connect them with lines. Such things could be nodes in a network, one of the ideas I've had for using it. Basical