HR - Selecting Active staffs

Dear friends,
I  am using PNP  LDB to retrive employees information .. As I am supposed to capture
only those active employees, I  select only those staffs whose employment status as "Active" as pasted in the code.
After retriving records, I am looking into records having ENDDA >= 999911231.Is that enought to get exact number of active staff....The probs I am getting  more record than expected ...
I appreciate ,if you can give ur suggestion.
START-OF-SELECTION.
  GET PERNR.
  RP_PROVIDE_FROM_LAST P0000 SPACE PN-BEGDA PN-ENDDA.
  IF P0000-STAT2 <> '3'.
    REJECT.
  ENDIF.
  END-OF-SELECTION.
Thanks
Matt

Hi,
    What you have written is correct. Try to append record to your final internal table after all the checks ..
  START-OF-SELECTION.
  GET PERNR.
   RP_PROVIDE_FROM_LAST P0000 SPACE PN-BEGDA PN-ENDDA.
   IF P0000-STAT2 '3'.
       REJECT.
   ENDIF.
   wa_final-pernr = p0000-pernr..
   append wa_final to it_final.
   END-OF-SELECTION.
Regards,
Srini.

Similar Messages

  • How to select active Oracle ODBC Driver programmatically?

    Hi,
    My application creates ODBC DSN to connect with Oracle 10g database server. I need to find out Oracle Driver installed on the system programmatically. I am trying to read KEY_<PRODUCT NUMBER> registry key and eventually searching ORACLE_HOME value. This helps me in searching Oracle Driver in ODBCINST.INI registry key. (Oracle in OraDb10g_home1)
    If multiple Oracle clients are installed on the same system, multiple KEY_<PRODUCT NUMBER> registry keys and oracle drivers would be available. I am not sure which and how to select the current active oracle driver.
    Oracle in OraDb10g_home1
    Oracle in OraDb10g_home2
    Can anybody help me out? Can I use inventory file (inventory.xml) to determince current active home directory? Reading PATH environment variable to identity active home directory would be tedious.

    Please look at following thread for answer.
    How to select active Oracle ODBC Driver programmatically?

  • One press button selection/activation?

    Just wondering if it's possible for a button to be selected/activated at the same time. In other words if you have a menu with three buttons and you press the left directional key on the remote, it will navigate to then activate the button taking you to the target clip without the need to press the enter key. Hopefully this can be done without scripting, but either way any help will be appritiated.
    Thanks

    Yes, this is possible - what you do is set the button to 'auto-activate' in the property inspector. When you navigate to the button it will send you straight on to the target without any further intervention on your part.

  • Error when selecting Activity Guide item from BPM Workspace

    Hi,
    I've installed 11.1.1.6 SOA/BPM onto my local machine.
    I've deployed an Activity Guide example. This loads fine when i create an instance, the GUI loads and i can see the process progress on the left hand side.
    I have created my own test app and deployed it. I can see an instance in the Activity Guide List; however when selecting it the GUI doesn't load and i get an ADF error thrown.
    I can view the task from the Task List and open the GUI just fine. It only seems to be when selecting it from the Activity Guide List that i experience the problem.
    The error i can see in the logs is this:
    Caused by: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.NullPointerException
         at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:205)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at oracle.bpel.services.workflow.activityguide.query.ejb.AGQueryService_kcuma2_EOImpl_1036_WLStub.getAGDisplayInfoDetailsById(Unknown Source)
         at oracle.bpel.services.workflow.activityguide.query.client.AGQueryServiceRemoteClient.getAGDisplayInfoDetailsById(AGQueryServiceRemoteClient.java:101)
         ... 112 more
    Any ideas?
    Kind Regards

    I've had the same issue with activity guides in 11.1.1.6 the last couple of days and thought I had been doing something wrong. Wish I'd seen your post sooner.
    Guessing it's a bug - know there's a patch set out - perhaps it's fixed in that.

  • Selecting active plot

    Hello,
    I am reading a number of data file with a while loop and plotting them to a XY graph. I would like to make the graph legend based on the index value. I cannot seem to access the active plot and label it. (Error= Selected invalid property node). Can anyone point out what the error is? Thank you.
    KB
    Attachments:
    untitled.bmp ‏1292 KB

    "Active Plot" cannot be higher than the number of plots you actually have. You do a +1 twice for ActPlot, thus the first plot you select is #2 while you don't even have a plot yet. Also make sure the property node happens after data reached the x-y graph terminal.
    --wire ActPlot directly to [i], the iteration terminal. The first plot is #0!
    --add a +1 to [i] before wiring it to LegPlots (input there cannot be zero). If there is only plot zero, you want one legend visible, etc. right?
    -- Leave "autosize legend" out, because it does not change. Either set it manually or set it with a property node once before entering the while loop.
    -- The first ActPlot (read mode) is useless. Remove it.
    See if this helps.
    It is probably more efficient to attach th
    e actual VI compared to a 1.3MB bitmap. ;-)
    LabVIEW Champion . Do more with less code and in less time .

  • Selected/activated button overlay in Buttons over Video

    I have six different buttons over video, with one overlay.
    The buttons are assigned to each of six audio tracks.
    When I select and activate a button the overlay goes from white to red, and the audio changes to the specified audio track. So far, so good. But, when I want to select another button, the red overlay disappears, and I see the selected buttons white overlay. This is of course "default", but I'd like the red overlay to stay, indicating that I'm still listening to that audio track, even if I'm choosing between another button.
    Can this be done somehow? I'm thinking that perhaps I can add a subtitle that tells me what Track I have selected, but the overlay is already a subtitle...
    Any ideas are greatly appreciated!

    Only one button can be "selected" at a time, meaning when people scroll through the selections on the menu there is an indication of where they are/what they are about to press when they hit enter.
    http://discussions.apple.com/thread.jspa?messageID=4573106&#4573106, take a look at the last post for a way to try to get the effect sort of happening
    Same general concept applies to buttons over video. Only one state active at a time, and subtitles will not work since the buttons are a subtitle stream (of course you can use add text in the overlay for the buttons) Page 460 of the PDF

  • No popup to select active implementation cycle, while creating change Request

    Hi,
    I have two active Implementation projects.
    While creating change requests, it is not giving any popup to select the specific cycle.
    It automatically assigns to newly activated Cycle.
    Please advise.
    Thanks & Best Regards,
    Kiran Sathyan

    Hi,
    if you would mention about sap solution manager version, this critical landscape transport and design before you state the problem, this would saved much time.
    Now I dont think so Popup functions applicable for implentation cycles.
    check out http://help.sap.com/saphelp_sm40/helpdata/en/1a/c39742042fc86ae10000000a155106/frameset.htm
    and regarding closing the project cycle check this out below informations,
    933705 - Closing inconsistent project cycles
    Change Request Management scenario: Usual questions and known errors
    question 10.
    Make sure you closed open tasks, chk in tcode scma
    Thanks
    Jansi

  • Selecting Active and Inactive Employees from IT0000

    Hi,
        How do I select Employees from InfoType 0000 based on Employment Status field. I need an optimised way to select the same as the field P0000-STAT2 is not indexed
        Select directly from PA0000 based on STAT2 field would be my last resort
    Thanks and Regards,
    Aditya

    Hi Frank,
              If I use the logical database PNP or PNCPE, it would also bring in the selection screen which I do not want.
          I am writing an upload program which will read all Active and Inactive employees and then update InfoType 0758 for them
          I could use function module LDB_PROCESS to avoid the selection screen in the logical database
          However, Is there any other approach that you know through some function module....??
    Thanks and Regards,
    Aditya

  • Index of the Table control - No lead selection activated

    Hi guys,
    I have a table control where there is no lead selection.... One colum of the table contains push button on all rows and I need to find the row id based on the click of the which row button... How to do this???
    regards,
    Prabhu

    Hi Prabhu ,
    write the below piece of code in the button Action .
    DATA lo_nd_node_table TYPE REF TO if_wd_context_node.
      DATA lo_el_node_table TYPE REF TO if_wd_context_element.
      DATA ls_node_table TYPE wd_this->Element_node_table.
    *   navigate from <CONTEXT> to <NODE_TABLE> via lead selection
      lo_nd_node_table = wd_context->get_child_node( name = wd_this->wdctx_node_table ).
      CALL METHOD wdevent->get_context_element
        EXPORTING
          name  = 'CONTEXT_ELEMENT'
        RECEIVING
          value = lo_el_node_table.  " getting the clicked line
      CALL METHOD lo_nd_node_table->SET_LEAD_SELECTION
        EXPORTING
          ELEMENT = lo_el_node_table.  " Setting the lead
      data lv_index type i.
      CALL METHOD lo_nd_node_table->GET_LEAD_SELECTION_INDEX
        RECEIVING
          INDEX = lv_index. " getting the index of the lead line
    Hope it will Helpfull .
    Regards
    Chinnaiya P
    Edited by: chinnaiya pandiyan on Jun 28, 2010 12:04 PM

  • Select Active X Class for Automation Refnum

    Using TS2010 SP1, LV2010.
    I'm building my own UI based on a mix between the simple and full featured UI examples.
    I'm creating a Globals front panel.  I place an Automation Refnum on the front panel and right click, I want to choose one of the managers (Application Manager)  I expect to see TSUI.IApplicationMgr, or TSUI.IExecutionViewMgr, but those are not part of the list available.  So I use the "Browse" selection and get a gigantic list of what I think are class libraries to choose from.  I've been through many of the TestStand and NI and zNationalInstruments choices but can not find where the TestStand Managers reside.
    While we are at it where do the other controls reside?  I'll need them later.
    Thanks in advance,
    Solved!
    Go to Solution.

    If you instaled TestStand after LabVIEW then you should see them show up on the palettes:
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    LabVIEWTestStandPalette.png ‏25 KB

  • How do I set ScrollRow on a Sheet that is not displayed without selecting/activating it?

    Without displaying and selecting a named Sheet, how do I set ScrollRow for a Sheet which is not displayed and, therefor, not in a Window?  Is there some other Property of a Sheet I can use to position a specific cell in the upper-left corner of that
    sheet?
    Thanks for any help.
    Charlie

    Thanks Andreas.  Your answer above confirms my fear/conclusion.  Looks like I'll have to change my macro design to handle events.  Probably the right thing to do anyway.
    To those above who ask me to clarify, here's my situation: I have one macro workbook open and running a macro which requires many minutes to complete.  That macro operates on multiple sheets within its own workbook.  As part of those operations,
    my intent was to pre-position/scroll various sheets to display potentially different data based on the results of ongoing calculations so that, when the sheet is actually selected, the desired data is already positioned for best visibility.  However,
    as noted, the macro takes a long time to run.  So I often have multiple workbooks open.  While the macro runs, I minimize the running workbook, and select another workbook that I work in while I wait for the macro to complete. 
    As a result, the running macro workbook is neither displayed nor is it the ActiveWorkbook.  Thus, I cannot allow the macro code to use Properties such as ActiveWindow, since the ActiveWindow is NOT the window I want to adjust.  Nor do I want to
    take focus away from whatever the ActiveWindow is to make my adjustments to the various sheets in question. 
    As noted above, perhaps I'll need to redesign my workbooks to add event handlers to the various sheets so that my desired adjustments can be made when those sheets are selected, at which point I can be certain that they are the ActiveSheet in the ActiveWindow.
    Thanks all for your help.
    cw

  • Selective activation of classic scenario

    Dear Experts,
    One of my client has globally activated extended classic scenario. Now, they want to activate classic scenario for one particular product category. How they will achieve that?
    Which BAdi they need to take care? Is BBP_Determine_logsys is enough?
    thanks and regards,
    Ranjan

    Hi, we have implemented BBP_EXTLOCALPO_BADI, and when we create PO from SOCO everything works fine.
    But when we create PO from vendor Bid, with "Create PO" button the BADI BBP_EXTLOCALPO_BADI doesn´t execute.
    Can you help me please?
    Thanks in advance.
    Best Regards.

  • Multcamera monitor - problem selecting active camera

    I am using PremPro CS4 on a Win7-64 bit quad Intel quad core machine with 8GB of DDR2 1066 RAM but this problem has occurred earlier when I was still using XP-32 bit.
    It seems that after a time, my Logitech wireless mouse is working fine in everything other than when trying to change the active camera view in the multicam monitor.  I have to hit the left button repeatedly to eventualy get the change that I want.
    I have the current and correct driver, and have confirmed that this happens with both a wireless and wired Logitech trackball type mouse.
    Has anyone had this issue and if so, is there a work around as it really extends the time it takes to do the edit.
    Frank
    Australia

    I tried the keystrokes, Curt, but it was pretty much the same both in the
    numeric keypad and the general keyboard..
    It seems intermittent and not consistent at all.  This is at the end of a
    VVEEERRRYYYY long complicated multicam edit since what was supposed to be 90
    miutes took 3 hours and the tape use and camera synch was all over the
    place.
    But it certainly is driving me to distraction.
    Thanks for the response.
    Frank

  • Active Directory integration problem, Bind AC and OD

    Hi.
    I'm trying to set an Open Directory as "connect to a Directory System" because I have a windows 2000 server with Active Directory. But i have a problem when i click on "open directory Access", Access Directory appear and I select Active Directory.
    xxx.yyy is the server with active directory, with its admin and its password. but i cant Bind it and an error always appear.
    can you help me?
    what's "active directory domain"?is it xxx.yyy?
    and what's "computer ID"?
    Are there others parameters to set for example in DNS or other?
    help help help

    What are you trying to achieve by doing this?
    Got to http://www.afp548.com/ and serach for AD-OD integration.
    http://www.afp548.com/article.php?story=20051202151540574

  • View activity by clicking hotspot on ALV report

    Hi,
    I have a report with a ALV grid as output. This output cells represent different activities in CRM. By clicking on one cell, the hotspot gets activated and the selected activity should be opened.
    How can I implement to go into the selected activity?
    I already have implemented by method for the hotspot processing.
    What function do I have to use to jump into the activity?
    Thanks for your help!
    Caroline

    Hi,
    1. hotspot definition.
       **Hot spot Handler
        HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
                          IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
    2.implementation
    *Handle Hotspot Click
      METHOD HANDLE_HOTSPOT_CLICK .
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW_ID.
        V_COLUMN = E_COLUMN_ID.
        V_ROW_NUM = ES_ROW_NO.
      PERFORM HANDLE_HOTSPOT_CLICK USING E_ROW_ID E_COLUMN_ID ES_ROW_NO .
      ENDMETHOD.                    "lcl_event_handler
    FORM HANDLE_HOTSPOT_CLICK USING I_ROW_ID TYPE LVC_S_ROW
                                    I_COLUMN_ID TYPE LVC_S_COL
                                    IS_ROW_NO TYPE LVC_S_ROID.
      READ TABLE IT_FINAL INDEX I_ROW_ID  .
      IF SY-SUBRC = 0.
        IF I_COLUMN_ID-FIELDNAME = 'VGBEL'
                  AND NOT IT_FINAL-VGBEL IS INITIAL.
          PERFORM FORM_REFRESH.
          SET PARAMETER ID 'AUN' FIELD IT_FINAL-VGBEL.
          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
        ENDIF.
    **if user clicks on Delivery
        IF I_COLUMN_ID-FIELDNAME = 'VBELN'
                AND NOT IT_FINAL-VBELN IS INITIAL.
          PERFORM FORM_REFRESH.
          SET PARAMETER ID 'VL' FIELD IT_FINAL-VBELN.
          CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
        ENDIF.
    **if user clicks on Vendor Name
        IF I_COLUMN_ID-FIELDNAME = 'NAME'
                 AND NOT IT_FINAL-EBELN IS INITIAL.
          PERFORM FORM_REFRESH.
          SET PARAMETER ID 'BES' FIELD IT_FINAL-EBELN.
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDIF.
    ENDFORM.
    you need to use set_handler for hot_spot.
    regards
    vijay

Maybe you are looking for