How to give pernr in range using LDB PNPCE

I am using LDB PNPCE and in report category i want to give select option for pernr that will accept pernr in ranges also.So Please tell me how to give ranges of pernr.
Thanx in advance.

Hi,
You mean that you want to set a range of personnel numbers as default on selection screen when running the report?
If so, you can do that. That field is PNPPERNR, it is a select-option, set default values for it in event INITIALIZATION of your report.
pnppernr-sign = 'I'.
pnppernr-option = 'BT'.
pnppernr-low = ....
pnppernr-high = ...
append pnppernr.
Thanks

Similar Messages

  • How to use ldb PNPCE with FM u0091HR_INFOTYPE_OPERATIONu0092

    Hi all,
    I’m creating a report with LDB PNPCE, this report has to create/modify infotypes of an ID person. I’m trying to use de FM ‘HR_INFOTYPE_OPERATION’, but it’s not working… A DUMP is generated, with this description:
    An exception that could not be caught occurred.CX_HRPA_VIOLATED_PRECONDITION
    I think that the problem is due to logical database PNPCE, because if I use PNP, it’s working… Does anybody know anything about using the FM ‘HR_INFOTYPE_OPERATION’ with the LDB PNPCE?
    Thanks!!

    This piece of code it's working with ldb PNP 
    CALL FUNCTION 'ENQUEUE_EPPRELE'
       EXPORTING
      MODE_PREL            = 'E'
      MANDT                = SY-MANDT
         pernr                = wa_p9961-pernr
         infty                = '9961'
      SUBTY                =
      OBJPS                =
      SPRPS                =
    endda                =  wa_p9961-endda                      "'99991231'
    begda                =  wa_p9961-begda                      "'20071201'
      SEQNR                =
      X_PERNR              = ' '
      X_INFTY              = ' '
      X_SUBTY              = ' '
      X_OBJPS              = ' '
      X_SPRPS              = ' '
      X_ENDDA              = ' '
      X_BEGDA              = ' '
      X_SEQNR              = ' '
      _SCOPE               = '2'
      _WAIT                = ' '
      _COLLECT             = ' '
       EXCEPTIONS
         foreign_lock         = 1
         system_failure       = 2
         OTHERS               = 3
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty                   = '9961'
          number                  = wa_p9961-pernr
           subtype                = wa_p9961-subty
            OBJECTID               =
            lockindicator          = 'X'
           validityend            = wa_p9961-endda
           validitybegin          = wa_p9961-begda
            recordnumber           = lwa_pa9961-seqnr
          record                  = wa_p9961
          operation               = 'INS'
          tclas                   = 'A'
          dialog_mode             = '0'
            nocommit               = ' '
            VIEW_IDENTIFIER        =
            SECONDARY_RECORD       =
       IMPORTING
         return                 = l_return
            KEY                    =
      CALL FUNCTION 'DEQUEUE_EPPRELE'
       EXPORTING
      MODE_PREL       = 'E'
      MANDT           = SY-MANDT
         pernr           = wa_p9961-pernr
         infty           = '9961'
      SUBTY           =
      OBJPS           =
      SPRPS           =
    endda                = wa_p9961-endda                       "'99991231'
    begda                = wa_p9961-begda                       "'20071201'
      SEQNR           =
      X_PERNR         = ' '
      X_INFTY         = ' '
      X_SUBTY         = ' '
      X_OBJPS         = ' '
      X_SPRPS         = ' '
      X_ENDDA         = ' '
      X_BEGDA         = ' '
      X_SEQNR         = ' '
      _SCOPE          = '3'
      _SYNCHRON       = ' '
      _COLLECT        = ' '
    But if I use ldb PNPCE instead PNP, with the events:
    GET person.
    GET group.
    GET peras.
    ths dump is generated...
    Thank u!!

  • FM's used in report program using ldb pnpce

    hii all,
      will anybody provide me function modules that are used to populate data in report program using ldb pnpce.
    <REMOVED BY MODERATOR>
    thanks in advance
    regards
    Ashweeni.
    Edited by: Alvaro Tejada Galindo on Mar 18, 2008 6:01 PM

    U can use all the FM's which were used for LDB PNP ..
    For ex : Use the below to get the payroll results ..
    To get the results directory
      call function 'CU_READ_RGDIR'
        exporting
          persnr          = peras-pernr
        tables
          in_rgdir        = pc261_tab
        exceptions
          no_record_found = 1
          others          = 2.
    to get evaluation periods ...
    call function 'CD_EVALUATION_PERIODS'
    There are no particular FM's that will populate data in report
    program .. please let me know what is the requirement ...

  • How to create a new selection screen LDBS PNPCE

    how to create a new selection screen LDBS PNPCE

    Hello Ankit,
    Do you want to create a new selection screen in LDB PNPCE, or do you want to create a new selection screen in one of your reports using LDB PNPCE?
    For later (which is more common), you can use HR Report Category.
    Hope this helps.
    Best Regards,
    Biraju Rajyaguru

  • How to give a value range in export parameter (global class)

    hi all,
    I have created a class-method called get_po_date. In this i had export parameter as qmfe-qmnum. If i give qmfe-qmnum in import parameter in class, i am able to give only one value at one time, but i need a range of values at a time. Instead of qmfe-qmnum in associated type, i have given 'LXHME_RANGE_C12' ( a range table for char 12 ). the thing is i wanted to select this range in select-options. but still iam getting <b>not type compatible syntax error</b>. can any body solve my problem,
    feel free to ask if any confusion with my question.
    Best Regards,
    abhilash.

    Hello Abhilash
    Instead of using a specific range (where field LOW and HIGH are of type QMNUM) you can use a <b>generic </b>select option (of type <b>RSDSSELOPT</b>). Have a look at the following sample report <b>ZUS_SDN_SELOPTIONS</b>.
    *& Report  ZUS_SDN_SELOPTIONS
    REPORT  zus_sdn_seloptions.
    TABLES: qmfe.
    DATA:
      gt_data          TYPE STANDARD TABLE OF qmfe,
      gt_data_x        TYPE STANDARD TABLE OF qmfe,
      gt_selopt        TYPE rseloption,  " generic table type for selopts
      gs_selopt        TYPE rsdsselopt.
    START-OF-SELECTION.
      SELECT        * FROM  qmfe INTO TABLE gt_data
             WHERE ( qmnum BETWEEN '000000000001' AND '000000000500' ).
      gs_selopt-sign   = 'I'.
      gs_selopt-option = 'BT'.
      gs_selopt-low    = '000000000001'.
      gs_selopt-high   = '000000000500'.
      APPEND gs_selopt TO gt_selopt.
      SELECT * FROM qmfe INTO TABLE gt_data_x
        WHERE ( qmnum IN gt_selopt ).
      IF ( gt_data = gt_data_x ).
        WRITE: 'Selected data are equal.'.
      ELSE.
        WRITE: 'Selected data are NOT equal.'.
      ENDIF.
    END-OF-SELECTION.
    Since RSDSSELOPT and RSELOPTION are global DDIC objects they can be used in <i>public </i>methods.
    Regards
      Uwe

  • How to give security to prevent using oracle forms "FORMS_DDL"  In Database

    How to prevent user to use FORMS_DDL in program or security in database to prevent this in Database level
    Thanks in Advance.

    user to use FORMS_DDLHuh? Your users write forms-modules? There is no way to "forbid" the use of FORMS_DDL. What about defining a rule for your developers that they are not allowed to do so. Then you could write a little JDAPI-program whichs "scans" new modules if FORMS_DDL is used.

  • How to Skip Authorisation Checks when i use LDB PNPCE

    Hi Experts,
    I have requirement to skip authorization checks in PNPCE LDB.
    Please let me know how it is possible , it is quite urgent
    Thanks a lot in Advance!
    Regards,
    Akila
    Moderator message: do not skip authorization checks, do not post "urgent" issues here.
    Edited by: Thomas Zloch on Aug 7, 2011 9:53 PM

    Hi Akila,
    Its not the good idea to ignore the authorization check, There should be a legitimate reason why it has implemented at first place?
    (If programmatic)The one who implemented the Auth check is he right person to approach how to ignore,just a matter of checking sy-subrc(But i would hesitate to apply that) . Or if this applied by roles then Security person might help you.
    @Prasenjit: How Dummy value could serve this purpose?
    Cheers
    Amit

  • How to fix poor wireless range using Airport Extreme?

    I've just bought and setup an Airport Extreme router and have connected this using a DSL modem.
    Everything works great from the room that I have set this up from, connection is good and wireless speed is fast. However, as soon as I leave the room - even if just outside of this - the internet speed either slows right down (to a very slow, unusable speed) or the connection to the network is lost completely.
    Are there any settings that I may have got wrong? As I would expect the connectivity to be much better for this.
    Thanks in advance,
    Kevin

    Do you have a Mac or Windows computer?  If so, there are ways to get them to show you information about the strength of the WiFi signal as the computer moves around.  If you don't, there may be a utility you can run on your iOS device that can show you that information.
    Other than "iOS 5.0.1", you don't seem to have declared any of your system details in your profile or didn't select your details to be included in your post.  Those can help people give you correct advice.  To update that, click on "Your Stuff" near the top of a window on these discussion groups, then on "Profile".  Scroll down to "My Products" and either edit an existing one or add a new one.

  • Where condition for reading infotype while using ldb

    hi
    i want to read info from infotype p0000
    using where condition eg: for pernr = ' '.
    i am using LDB pnp.
    how can i put the where condition while using macro
    rp-provide-from-last.
    regards
    cs

    in fact you don't have to get the values, you only need to tell to the program to take them into account :
    GET PRPS.
      CHECK SELECT-OPTIONS.

  • Filtering of the data based upon the selection screen data using ldb

    Hi Experts ,
    I am using ldb pnpce, for my report ,and i created my own report category with selection paramaters
    action type and payroll area
    now the problem is when i am giving the action type as Z0 ,the data to be extracted is not getting filtered
    based upon the action type ,the data consists the records having different action types other than Z0
    Please give me some solution for this

    Thanks Durga ,but the link wat ever u was for hiding the selection screen fields
    but my question is when am using get pernr event my data is not getting filtered with the selection screen paramater value
    i,e m giving action type as only hiring ,but m getting the data for all the action types ,its not filtering based upon my selection

  • HR ABAP- concurrent employment  ( LDB :PNPCE)

    Hi
         I am working on concurrent employment in HR. I have to write ABAP report I don’t know where to start. Do you guys give me some idea? How I’ll start. I know that we use LDB PNPCE for concurrent employment. Do you guys know any standard reports for concurrent employment?
    Waiting

    In the program attributes declare the LDB as PNPCE and look at the sample code.
    REPORT  z_pnpce MESSAGE-ID pn LINE-SIZE 130.
    tables: pernr.
    Nodes : Person, peras.
    INFOTYPES: 0006.
    DATA: BEGIN OF gt_0006 OCCURS 0,
           pernr LIKE pernr-pernr,
           stras LIKE p0006-stras,
           ort01 LIKE p0006-ort01,
           ort02 LIKE p0006-ort02,
           pstlz LIKE p0006-pstlz,
          END OF gt_0006.
    START-OF-SELECTION.
    GET person.
    GET peras.
      rp_provide_from_last p0006 '1' pn-begda pn-endda.
      gt_0006-pernr = p0006-pernr.
      gt_0006-stras = p0006-stras.
      gt_0006-ort01 = p0006-ort01.
      gt_0006-ort02 = p0006-ort02.
      gt_0006-pstlz = p0006-pstlz.
      APPEND gt_0006.
      CLEAR  gt_0006.
    END-OF-SELECTION.
      LOOP AT gt_0006.
        WRITE:/ gt_0006-pernr,
                gt_0006-stras,
                gt_0006-ort01,
                gt_0006-ort02,
                gt_0006-pstlz.
      ENDLOOP.
    Good luck.
    Venu

  • Ldb pnpce

    hi,
    i have to display a report using ldb PNPCE .Displayed Data should be between the date period entered in selection-screen. say pn-begda = 11.02.2008 and pn-endda = 17.02.2008.for this i hav written code
    GET PERAS.
    PROVIDE massn massg begda pernr stat2 FROM P0000
              BETWEEN pn-begda AND pn-endda .
    MOVE:
    p0000-begda TO wa_data-begda,
    p0000-pernr TO wa_data-pernr,  etc....
    ENDPROVIDE.
    but in output its displaying all data with BEGDA what i entered in selection-screen( i.e 11.02.2008)  for all PERNR.
    i tried ldb PNP but its displaying date what existing in database for corresponding  PERNR .even this also not displaying in date range what i entered in selection screen. i tried with standard report categoty and custom report category. 
    is there anything additional coding should add ?
    thanks,
    rajkumar.

    Hi Raj
    Just try this report
    S_AHR_61016380 - Logged Changes in Infotype Data
    Regards
    Santhosh.S

  • Authorization for LDB PNPCE &PNPPS and table T77S0

    Hi folks ,
    I’m working on a very interesting requirement , I have developed an Ad hoc query , which is reading IT0019 ( Monitoring dates infotype ) with field called task type . I take a test login and give task type which is equal = ‘w’ . When I was running that query in test login to see security is in place or not . I found that whenever there’s two recs in IT0019 with task type ‘W’ 9 which test login has authorization and ‘W2’ ( which test login doesn’t have authorization ) its not pulling up any record . its giving no data . to make sure I again went in to Infotype IT0019 and delete the task type (W2 : the one which test login doesn’t have authorization ) . then I run the query . it pull up one record . So my question is how can I handle this situation in Adhoc query . I mean logically speaking it should pull up at least one record for which it has authorization . I am using LDB PNPCE .
    Moreover , I debug the query and I came to know its reading the the table T77S0 using class : CL_HR_T77S0.
    I read the about table (T77S0) , another question if I set another entry in the table with PNPPS and AUTSW. Will it works . Can I control it?
    http://help.sap.com/saphelp_erp2005/helpdata/en/84/49ba3b3bf00152e10000000a114084/content.htm
    Thanks,
    SK

    Hello Amit,
    you have to run the "copy" action ,while changing OM objects. then only it will effect in IT 0001
    if you will click on change then it will not update in PA.
    so click on Copy then do the changes and save it. it will update IT 0001.
    We had the same issue. if you get any solution then let me know.
    OR
    Will you try running  RHINTE30 Report
    do batch input session and run it via SM35
    Thanks and Regards
    Jaydeep Jadhav

  • Regarding ldb pnpce and my customized infotype

    i have created my own infotype name '9777' and with the help of
    'hr_infotype_operation' i m inserting the data into this infotype
    now i m creating a report in which i m using ldb pnpce,
    but after the execution of GET PERAS the infotype table p9777
    is not populating but except this other infotypes tables are populating
    ,plz help me to sort out this problem.

    hi after the bapi did you used the commit .
    use this for the creation of an employee
    BAPI_EMPLCOMM_CREATE
    o give  your code here

  • Hide Reporting Period in LDB PNPCE

    Hi Experts,
    Can someone please tell me how to hide/disable Reporting Period in LDB 'PNPCE'. My clients requirement is to use custom date fields instead of LDB's Reporting Period.
    Thanks
    Vasuki

    Hi,
              Using the reporting event AT SELECTION-SCREEN OUTPUT , we can do this by looping through the "screen" and making the screen period field "active = 0".
        LOOP AT SCREEN.
          IF screen-group1 = 'FF'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.

Maybe you are looking for