Get active employees of organization unit and its sub organization unit

Hi,
I have OU in selection screen. If I give 50000000 in the selection screen and my list displays all the active employees under that organization unit.
but under 50000000 OU,it contains some other OU like 500000010 nd so on.. (ie,sub OU). now i want to display the active emplyees of these sub OU also...
give me any function module to get this???
thanks n advance

Eg:
ACT_OTYPE        -
               O
ACT_OBJID         -
              00100000
ACT_WEGID          -
             O-O-S-P
ACT_INT_FLAG
ACT_PLVAR            -
           DA
ACT_BEGDA             -
          02.06.2009
ACT_ENDDA           -
            02.06.2009
ACT_TDEPTH                          0
ACT_TFLAG       -
                X
ACT_VFLAG        -
               X
AUTHORITY_CHECK        -
         X
TEXT_BUFFER_FILL
BUFFER_MODE
F8 - execute
check for the result in
RESULT_TAB
u can check the level in RESULT_STRUC

Similar Messages

  • CRMD_BUS2000108 - organizational unit and attributes for org. unit

    Hi all!
    As I'm customizing Lead creation (and in a second step lead generation)
    I would like to receive tips about "selection of organizational unit and attributes for org. unit".
    I expected that, by entering a BP number of a prospect or sold-to party, the organizational unit and its attributes would be displayed automatically on the tab "organization".
    This is not the case. When I start the lead creation, there is a pop-up screen inviting me to choose the organizational unit. afterwards a pop-up screen for the attributes of the org unit. Only after setting a flag in both pop-ups, I see the actual "lead" transaction. When I enter a BP number, the sales assistant and sales rep are found automatically.
    Could anybody please explain how to change the customizing?
    I would like to see the lead transaction (create) first, enter a bp number and than have the org unit and its attributes, the sales rep and sales assistant found automatically.
    Any usefull answer (would make my day ), will be rewarded.
    Thank you very much for your suggestions and time in advance!
    I. Van Acker

    hi
    this is happening because you have not done the org data determination in your transaction,just go to SPRO and there in org data determination ,you have many standard ORGMAN rules available which you can use which will pick the data according to the user ,BPs etc.
    it will enable you to first give BP and then the org data will be driven automatically from the system according to the rule in org data determination.
    so first go and use rule ,try using rule ORGMAN_12
    then attach this rule to the org data profile and then add this org data profile to the transaction in basic settings in transaction where you have defined your lead transaction.
    it will solve your purpose
    best regards
    ashish

  • Get each page's number(page_id) and its title automatically

    hi,
    i want to get each page's number(page_id) and its title in an APEX application automatically.how can i do it?????can anyone help me??????
    thanks a lot in advance!!!!!!!

    anonymous,
    We would appreciate your showing your first name (at least) in your profile and your changing your handle to something easier to read. Thanks.
    i want to get each page's number(page_id) and its title in an APEX application automatically.What you asked for is not possible.
    If, during an application page view, you would like to reference the page ID, use the bind variable :APP_PAGE_ID, the function call v('APP_PAGE_ID'), or the substitution string &APP_PAGE_ID., the use of each being particularly suited for different contexts as explained in the documentation.
    The page title can be obtained by querying the publicly accessible view apex_application_pages, qualifying such query with the application ID and page ID.
    Also, if you avoid non-standard punctuation, I believe your meaning will be more effectively conveyed.
    Scott

  • Inbound Delivery Shipping Unit and Outbound Delivery Shipping Unit Mismatch

    Hi All,
    At the time of creating the outbound delivery, I am getting the error"Inbound Delivery Shipping Unit and Outbound Delivery Shipping Unit Mismatch".
    Please help me to resolve the above error.
    Please let me know the cause for the above error.
    Regards,

    Hai Shafi,
    PLease check these threads,
    http://help.sap.com/saphelp_40b/helpdata/pt/a4/613275e24bd111950d0060b03c6b76/content.htm
    http://help.sap.com/saphelp_46b/helpdata/en/ac/f6fe78931a11d184d10000e81ddea0/content.htm
    http://education.feedfury.com/content/18638791-processing-shipping-units-in-sap-sd.html
    And hope you are using the same material received in inbound for outbound also.
    If material is different please check UNIT in Material master for both materials.
    Regards,
    Mani

  • Legal Unit and Foreign Trade organization are not in same country

    Hi all,
    We are currently working on a Maquiladora project under which our plants in Mexico will be assigned to a US company code.
    However, when we try to define this org structure in GTS, we are getting the below warning message while assigning the Legal Units (with MX address) to the FTO (US address). The system allows us to save the config, but it doesn't appear to work correctly. For example, when I simulate an import into MX plant, the system is applying the US legal regulation rather than MX.
    Has anyone encounterred this error or any suggestions? (One idea we thought about is to define the FTO with a MX address, not sure if this would be the right thing to do; one additional problem is, the given FTO also includes other US plants for which we do want to apply US legal regulation, should we rather define an entirely separate company code (US address) & FTO (MX address) for the given MX plants??)..Can someone shed some light on this subject? Thanks in advance. -Raj Palanivel.
    Below is the full details of the warning/error:
    Legal Unit xxx and foreign trade organization yyy are not in same country
    Diagnosis
    You tried to assign  foreign trade orgnaization yyy in in US to legal unit xxx in MX.
    This is not permitted. You must create the legal unit and the foreign trade organization in the same country.
    System Response
    The system does not permit this entry.
    Procedure
    Correct your entry.

    Hi Raj,
    In GTS we can map the company codes to FTO's as one to one  and FTOs to company codes as many to one in the same way plants and legal units.
    So in this case you can maintain one dummy FTO related to Mexico and assign it to the plants in mexico.But in R/3 you will map the plants in mexico to US company codes.For this SAP has provided some BADI's to implement this functionality.we have also have some similar functionality which we have implemented it at the time of transfering outbound deliveries.So use the following BADI /SAPSLL/IFEX_SD0b_R3 and method IF_EXTEND_CON_CDOC. you need to maintain one custom table for the organization units which needs to be transfered.
    Regards,
    HAri Challa.

  • Hey...my iphone 3G(4.2.1) is dead. It aint starting. When i plug a charger to it then  Apple's logo gets appeared for 2-3 seconds and its getting buzzed off! neither PC nor Itunes is detecting the iphone. i guess therz battery around 20-30%(last i saw)...

    hey...my iphone 3G(4.2.1) is dead. It aint starting. When i plug a charger to it an apple's logo gets appeared for 2-3 seconds and then its getting buzzed off! neither PC nor Itunes is detecting the iphone. i guess there was battery around 20-30%(last i saw)...please please help me out!!!!!!

    Those can be the features of faulty battery. See if you can get Recovery Mode, don't Restore just enter Recovery Mode. Connect iPhone to computer or Charger. Hold both home and power buttons for about 20 seconds, see if it enters Recovery Mode. When you unplug Recovery Mode will go away. If it enters Recovery Mode fine, then most likely faulty battery. If you like you can always enter Recovery Mode and try to Restore.

  • How can i get a comedy, Dutch Treat or/and its companion Detective School Dropouts released in 1987 be included in the iTunes US store for me to down load. i will pay any thing to download them.

    I wish to request that a comedy, Dutch Treat or/and its companion Detective School Dropouts released in 1987 be included in the iTunes US store for me to down load. i will pay any thing to download them.

    You can try requesting it via this page (these are user-to-user forums) : http://www.apple.com/feedback/itunes.html
    But unless the the US rights-holder passes it to Apple and allows them to sell it in the US then Apple won't be able to sell it there

  • Getting all webI reports in a folder and its sub-folders using java sdk.

    hi,
    I need a java code to get the Id of all webi  reports in a folder and recursive sub folders .
    Is there any sample code or tutorial  available for It?
    regards,
    nitin

    I didn't test this but it should work. Import required packages.
    <%
    String username = "administrator";
    String password = "<password>";
    String cmsname = "<cmsname>";
    String authtype = "secEnterprise";
    IEnterpriseSession oEnterpriseSession = CrystalEnterprise.getSessionMgr().logon(username, password, cmsname, authtype);
    IInfoStore oInfoStore = (IInfoStore)oEnterpriseSession.getService("","InfoStore");
    getWebi(oInfoStore,0,out);
    oEnterpriseSession.logoff();
    %>
    <%!
    public void getWebi(IInfoStore oInfoStore, int sourceFolderID, javax.servlet.jsp.JspWriter out)
    try
         String query = "select * from ci_infoobjects where si_kind='webi' and si_instance =0 and si_parentid =" + sourceFolderID ;
         IInfoObjects oInfoObjects = oInfoStore.query(query);
         for(int i=0;i< oInfoObjects.size(); i++)
              IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
              out.println(oInfoObject.getID() + "  " + oInfoObject.getTitle() +"<br>");
         String query = "select * from ci_infoobjects where si_kind='folder' and si_parentid = " + sourceFolderID ;
         oInfoObjects = oInfoStore.query(query);
         for(int i=0;i< oInfoObjects.size(); i++)
              IInfoObject oInfoObject = (IInfoObject) oInfoObjects.get(i);
              getWebi(oInfoStore, oInfoObject.getID(), out);               
    catch(SDKException e)
         out.println(e.toString());
    %>

  • Scrap Asset and its sub assets in one transaction code

    Please suggest if it is possible to scrap an asset and all its sub assets in one transaction as opposed to scrapping them separately in ABAVN.
    regards
    Rekha

    Click on the button Multiple assets and fill in there the main asset and sub numbers. You have to fill them all in. There is no transaction that you can do this with filling in only the main-asset number

  • Mapping and creating new instances of a node and its sub-nodes

    hi,
    i need to map every 3 items from source interface to 1 in target interface.
    i have on target interface parent node which is called 'item' and occurs 0..unbounded (and other sub-nodes).
    this node have a sub-node which is called 'item_data' and occurs 0..3.
    i created a mapping:
    source_item ->counter->checking mod 3--->if   
    """""""""""""""""""""""""""""" source_item  -
    > then -
    >item.
    when i test mapping with 1-3 source_item the sub-nodes 'item_data' are created,
    but when i try 4-5 and more , 'item' node is created  twice but the second instance has no sub-nodes of
    'item_data' (it has other sub-nodes).
    can someone tell me how to solve my problem?
    thanks in advance.
    Tomer

    I would like to be clear about the requirement first,
    Source                              Target
    item           -
    >             item
       item_data     -
    >               Item_data
    item           -
    >            
       item_data     -
    >               irem_data
    item           -
    >            
       item_data     -
    >               item_data
    item           -
    >             item
       item_data     -
    >               item_data
    item           -
    >            
       item_data     -
    >               item_data
    item           -
    >            
       item_data     -
    >               item_data
    for the mapping of item node the queue should look like:
    contextchange
    Then for the mapping of item_data the queue should look like:
    item_data
    item_data
    item_data
    context change
    item_data
    item_data
    item_data
    I guess you have used some udf for the target parent node (item) mapping. I am trying myself to generate the queue for item_data using standard functions, but yet to come up with the desired result. If achieved will let you know..................for now it seems that writing a UDF (queue) would be the best approach.
    iterate through the input queue array (source item_data values all in same context using RemoveContext) and insert a ResultList.CC after every third element in the array.
    Hope you can come out easily with the java for this logic. Let me know if it's helpful.
    Regards,
    Suddha

  • How to get activity description from network number and activity numbet

    Hiiii....
    I have the activity number and network number obtained from AFPO table which is order detail (Network Detail) table. Now i need to get the actvity dexcription... Kindly help me to get that..
    Thanking you,

    Hi,
    the short text of the activity is stored in table AFVC. The key of this table AUFPL and APLZL i. e. the internal network number and activity number. The external position number is field VORNR.
    Kind regards
    Peter

  • HT201436 My iPhone 4 ringer will not work when I get a call or text etc and its not on mute what can info ?

    Ringer not working and also what does"Locked Sim" mean its on my other iPhone front screen

    Hello,
    I understand that you have two separate questions. To address your first, regarding your ringer:
    iPhone: Sound muffled or low from the speaker or when speaking into the mic
    http://support.apple.com/kb/TS1631
    You also inquired about a prompt regarding the Sim card being Locked:
    iOS: Understanding the SIM PIN
    http://support.apple.com/kb/HT1316
    Thanks,
    Matt M.

  • When i start my labtop i get message please run system diagonistics and its show hard disk 1 fault?

    HP MINI 10 INCH NETBOOK WITH GENUINE WINDOWS
    WINDOWS 7
    ERROR MESSAGE :HARD DISK 1 FAULT:
    NO

    Hi,
    The error would indicate that your Hard Drive is failing and will need to be replaced.
    If your notebook is still under warranty, contact HP and arrange to have the drive replaced - you can check your warranty status Here.
    If you live in the US, contact HP Here.
    If you are in another part of the world, start Here.
    If you are out of warranty and would like a guide on replacing the Hard Drive yourself, please let me know - include the full Model No. and Product No. of the notebook ( from the service tag underneath your notebook ) - see Here for a further explanation.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Purchasing in different unit and invoicing in different unit

    Dear Gurus,
    I have a scenario for cotton procurement. We are Purchasing cotton in lots with standard factor ( 1 lot contains 100 bales). Inventory is managed in bales. GR is made exactly the same qty as on PO. At the time of invoicing, we are paying Vendor in terms of Kgs. How can this be possible in SAP?
    Each bale has different wieght. Now for payment, we total the weight of 100 bales which is the actual wight of the lot, and then payment is made according to that total weight of the lot.
    Thanks.

    solution
    I get  to know , payment is made in kgs  for vendor.
    so i assume the cotton rate is also maintained in Kg . in the info record / PO.
    maintain conversion factor   for  1 bale to Kg or Lot to Kg.
    since the bale weight keeps varying , based on your business experience you would be knowing typical weight of a bale.
    the bale weight value may vary each time but with in an accepetable range . So you can adopt a cut off /fix value for Bale in terms of Kg, this is one way of solving your issue. so you make ur business in terms of bales and lots but pay in Kg.
    hope it helps .

  • Movement type and its sub sequencing movement types

    please help with configuration behind below scenario,
    When I do goods reversal with 262 movement in MIGO, the material is going under quality stock. when I looked the detailed goods movement, it is showing two other documents created with movement type 322 along with 262 movement type document. WM functionality is activated for this material.

    262 is the reversal movement for 261
    both movements can only work with unrestricted use stock
    322 is the reversal of 321 and posts an unrestricted use stock into quality stock
    the 322 is not conected to 262. and does not have any  reference  to 262
    if those movements really come together in your system, then I think this is because of an own developement

Maybe you are looking for

  • Any way to use filter to exclude tables in navagation pane?

    Is there any way to use filter to exclude a set of tables from the table list in the navagation pane? I have a number of tables (15+) starting with the same prefix eg. AB123 that I would like eliminate from the list. They sort right to the top and I

  • Want to create a type at runtime

    Hi all , I am trying to create a type at run time within my scheme by making use of a table loop. [code] Report test_data. data :     llv_imp type table of RSIMP,     gt_imp_par type string occurs 0. Field-Symbols :     <fs_imp_par> like RSIMP,     <

  • Upload Logo/Picture in t-code CRM_SURVEY_SUITE

    Hi all, I'm working in SAP CRM 5.0. Is it possible to upload picture in t-code CRM_SURVEY_SUITE? Could you guide me to upload logo/picture in t-code CRM_SURVEY_SUITE? Thanks and Best Regards, Fariz

  • Can I make a JPG of a logo I create in Pages?

    Want to make a JPG from a Pages document. I imported a graphic into my document and put some text over it to create a logo. I made my document size small (the size of the actual logo), so there's no extra white space all around. Can I now make this l

  • Why doesn't my List of Online Users' Module give a list?

    Hi All, Module 'Online Users' for the secure zone looks like http://www.virtualteacher.com.au/images/Screen%20Shot%202014-07-13%20at%209.47.58%20am.png Showing listing - however this module only shows one user online - the user logged into the comput