How to get employee no(pernr) based on the organizational unit

HI,
I am using LDB PNP in my program nd have used my own report category with Organizational unit,begin date and end date in the selection screen.
Now I have to get all the active employee of that organizational unit.so tell me how to get this
Explain about GET and PROVIDE statement
Regards,
Kiruthi

Hi !
To get active employees reject separated employees ( action )
i.g
******Data fetch*****
start-of-selection.
get pernr.
if pernr-massn eq '14'.
reject.
else.
it_active-sapid = pernr-pernr.
endif.
ORGEH : Organizational Unit
ORGTX: Organization unit text
********Organization*************
*data text type char30.
SELECT SINGLE ORGEH  from pa0001 into IT_ACTIVE-ORGEH where PERNR = IT_ACTIVE-SAPID.
SELECT SINGLE ORGTX from t527x into IT_ACTIVE-ORGTX where ORGEH = IT_ACTIVE-ORGEH and  SPRSL = 'EN' .
if sy-subrc eq 0.
write: 160 sy-vline, IT_ACTIVE-ORGTX.
else.
clear: IT_ACTIVE-ORGTX.
write: 160 sy-vline, IT_ACTIVE-ORGTX.
endif.
**************Organizational ID ******************
select single ORGEH from pa0001 into it_active-Org where pernr = it_active-sapid and begda le pn-endda and endda eq '99991231' .
if sy-subrc eq 0.
write: 180 sy-vline, it_active-org .
else.
clear: it_active-org .
select single ORGEH from pa0001 into it_active-org where pernr = it_active-sapid and endda EQ '99991231' .
write: 180 sy-vline, it_active-org.
endif.
Regards
Sheetal

Similar Messages

  • How to get my macbook to connect to the Apple TV?

    How to get my macbook to connect to the Apple TV in a strange apartment? I am housesitting for someone for a few months. They mentioned that i would be able to use their Apple TV to play stuff from my macbook. I am using their basic wifi in the apt, which works fine on my macbook and iphone, but see no Apple TV icon appearing on macbook screen, nor any connection happening. (nor is there anything connection w my iPhone). What gives? How can I establish a connection?

    See
    http://support.apple.com/kb/ts4215

  • How to get latest record on top of the result list

    Hi Gurus,
    How to get latest record on top of the result list when you open the record.
    saved data method in BT120H_CPL of OverView page and result list in ICCMP_INBOX.
    Regards,
    Ravi

    Hi
    Try sort descending by on fileld "changed at ".
    manipulate the sort depends on your requirement
    Regards
    Logu

  • I just purchased an airport extreme router to increase the range of    my wifi. I have an imac with 10.5.8. I get a flashing yellow light on the base unit and it tells me I need airport utility to install yhe ubnit. Where do I get this and how do I do it?

    I just purchased an airport extreme router to increase the range of my wifi. I have an imac with 10.5.8. I get a flashing yellow light on the base unit and it tells me I need airport utility to install yhe ubnit. Where do I get this and how do I do it?

    sylviafromhanover wrote:
    So I assume that the original modem stays installed with the coaxial cable and the Exrtreme is in addition to that. 
    Yes, that is correct.
    Did you have the instructions that came with your Airport Extreme?  Are you sure you have it setup properly?  Here is the setup guide:
    http://manuals.info.apple.com/en/airportextreme_802.11n_userguide.pdf 
    Ensure you have everything setup properly.  Once you do this and if you are still having trouble, follow Star's instructions. 

  • I loos my APPLE ID, I have a new one, how can get access to data stored in the old one?

    I loos my APPLE ID, Now I have a new one, how can get access to data stored in the old one?

    Do you have the email & password of the old Apple ID?

  • How to get relationship between two  views in the  reports

    How to get relationship between two  views in the  reports, I am doing a deletion program , it is fully relates to views , how to get relationship between them in the reports

    Hi,
    Please explain your question in detail...what do you want to read ?
    If you want to know about the navigation links between the views then you can use APIs  like
    wdComponentAPI.getComponentInfo().findInWindows("windowName").getViewUsageByID("Name").getNavigationLinks();
    Iterate through the navigationLinkInfo from above collection and can read the other properties .
    I haven't tried the above , but it should work !!!
    Regards,Anilkumar

  • Can anyone explain to how to get rid off restore session on the mozilla firefox it keeps coming up every time i click on mozilla firefox it comes up restore session why is this it is driving me nuts

    can anyone explain to me how to get rid off restore session on the mozilla firefox it keeps coming up every time i click on mozilla firefox it comes up restore session why is this i want to get rid of it it is driving me nuts

    What do you have checked in Firefox Preferences>General?
    Ciao.

  • How to get system temp dir. path on the fly ,system may be XP or Linux ??

    How to get system temp dir. path on the fly ,system may be XP or Linux ??
    please suggest solution

    The default temporary-file directory can be retrieved
    using:
    System.getProperty("java.io.tmpdir")
    Thanks a lot for u r reply this one works !!!!

  • How to get customer number and name from the SD document

    Hi All,
    Can you please let me know how to get Customer Number and Name from the SD Document?
    Thanks a lot....
    Anil

    Hi,
    It will be displayed in the SD (BIlling document) itself,  you clikc on the VF03. The customer name and number will also appear in the SO document also Tcode VA03
    regards,
    radhika
    Edited by: kolipara radhika on Jul 10, 2009 5:32 AM

  • HT4792 how to get imovie to show up in the apps on iTunes?

    i tried to follow the steps on how to get imovie projects to ipone but the imovie app doesnt show up in the apps on itunes.

    So, when you go in to System Preferences > Print & Fax > Set Up fax Modem ..., Internal Modem is NOT showing up in Fax List?
    Does Internal Modem.app exist in /Users/{shortUserName}/Library/Printers/?

  • How to configuration of pricing procedure based on the Region

    Hi,
    please help me how to configuration of pricing procedure based on the Region in the roll out project.
    Thanks
    mustafa

    What I proposed to do was,
    a. Create routes like 0 day route, 1 Day route, 2 day route etc.
    b. Route determination is based on the Shipping condition of the customer. Put in the shipping condition for the customer as 00 - immediate delivery. 01 - By Truck, 02 - By Rail, 03 - Ship etc
    c. Now, put in your route determination in such a way that routes change in the sales order with shipping condition (SC). Like, if the shipping condition is set to 00, then 0 day route comes up. Meaning immediate delivery, if SC is 01, then your normal route by truck picks up. etc.
    When the sales order is manually created, you know the time of creation. As route is one of the criteria, the material confirmation happens based on number of days you put in the route to reach the destination. Now that you have the material available for today's delivery, the delivery program can be run to create it, or it can be manually created.
    Now, when you configure the route you have to specify 'Transit duration in calendar days'.
    When you have the sales order created electronically (say thru EDI), then, you may have to ask them to send in shipping condition. Else, you have to modify the function module Idoc_input_orders in such a way that if the sales order creation time is < 12 PM, then put shipping condition as 00, else copy what ever is there in the customer.
    If you do not want to check the time manually when the user creates the sales order, then you may have to use the user exit MV45AFZZ (and I think you can use Save_order_prepare) to check the time and change the shipping condition. By this you will avoid extra coding in Idoc_input_orders and also need not bother if the user changed the route or not.
    Hope my explanation helps.
    Regards,
    Mukund S

  • Have an ipod and then got the wife an iphone4. all passwords are screwed up. she can not access playstore cuz she doesn't have password. i can not get find any help on how to get or update a password for the ipod. and then get her a separate password for

    have an ipod and then got the wife an iphone4. all passwords are screwed up. she can not access playstore cuz she doesn't have password. i can not get find any help on how to get or update a password for the ipod. and then get her a separate password for her iphone. we need to save her photos, music, etc to ? icloud and the phone stuff to verizon cloud? so when she gets her new Iphone6 she can have all her "stuff" back on the new phone. hope this makes sense. please offer suggestions here or at [email protected] thanks for your help!

    Oh no! I'm sorry to see there's a lot of confusion here and data shared, x-rayDon. We can definitely work to fix. This happens when two devices share the same Apple ID, so she will need to reset hers. She can do so by assessing this link Apple - My Apple ID. You will need to decide who will keep the account if want separate Apple IDs since purchases cannot be shared unless you do Family Sharing.
    RobinD_VZW
    Follow us on twitter @VZWSupport

  • Does anyone know how to get a movie to play on the apply TV that you rented?

    Does anyone out there know how to get a movie to play on the Apple TV that was rented through Apple TV?

    It's not going to show under purchases because it's a rental. You have to go into settings - iTunes - check for rental.
    Note: a rental will disappear once it's expired (after 24hrs or 48 hrs depending on location)

  • HT5422 How to get an better screen-update? The view on the remote Mac is nearly static.

    How to get an better screen-update? The view on the remote Mac is nearly static.

    You can try reducing the bit depth of the screen image  via the slider in the upper-right of the Control window. If that doesn't help, you may just not have a sufficiently fast network connection to correctly handle the data transfer necessary. This is often the case if you're connecting across the Internet. What is your network speed between the administration system and the client?
    Regards.

  • I broke my iPhone 5 now using a 4 but don't know if or how to get my photos ect..from the 5 to the 4.can I do this and how plse help

    I broke my iPhone 5 now using a 4 but don't know if or how to get my photos ect..from the 5 to the 4.can I do this and how plse help

    Restore the backup of your iPhone 5 to your iPhone 4.  It will contain your camera roll photos. 
    To do this, first make sure the iPhone 4 is running the same or higher version of iOS as your iPhone 5 was.  If it isn't, you'll need to update it first.  Then, to restore the iCloud backup, you'll have to begin by erasing the iPhone 4.  If you have any newer data on the iPhone 4 that is not contained in the iPhone 5 backup, you'll need to save that first.  When you're ready, go to Settings>General>Reset, tap Erase All Content and Settings, then go through the set screens on the iPhone 4 and when given the option, choose Restore from iCloud backup and follow the prompt, choosing the backup of your iPhone 5 to restore to.  Be sure it is connected to wifi and your charger as it is restoring the backup.

Maybe you are looking for

  • Buggy AAC Conversion process drops File Properties?

    Hi, I just decided (apparently crazily) to convert my MP3s that had been ripped from CDs over to AAC (m4a) format. After multiple passes through it finally completed. Now having looked at my files, they have lost all of their file summary information

  • Two BW systems to single source system

    Hi, I have created sandbox and copied BW production now its BWQ. Now we want to connect BWQ to R/3 PRD as source system. But from RSA1 when I try to restore PRD it will delete the connection to BWP and creates to BWQ. But I want both connections to w

  • Raw image size 2.147 Gb?

    Hello, Is there a dng specification raw image size limit? I would like to save huge raw images. We changed the kMaxImageSide from 65000 to 300000. I know the dng's which are bigger then 65000 per size can't be opened in other dng readers. But also if

  • Help for javac task in ant?

    Here I have 5+ folders, ervery has many java source files. And all the java source files in these folders is the same package name, also there may have same file name in different folder. And now I want the javac to compile these files and save the c

  • Bit rate too high DVDSP, build stops.

    DVD Studio Pro used to be DVD Maestro from Discreet, but I was thinking since Apple bought it long ago, it would have a forum.  I searched for DVD and DVDSP and only came up with this forum.  If anybody in here uses DVDSP and if you know the solution