Need scripts for fetching groups and subgroups info , script for del users

Hi ,
I need a script or macro which will fetch list of groups and sub groups triend forums download did not fine one.
I need another script which will delete listed users there is a macro in forums but it doesn't suit my rquirement.
Any one have these scripts handy with you please help me with that,
Regards,
Neo.

Hi Braham,
Thanks for your quick reply.
Are we able to do this on two stage method
1. grab the security groups from the share paths
if can grab the share path from a separate txt file than copying it to the <your path> location
so i can modify the txt file
once run the script
if can the output like below to a CSV file
\\servername\foldermain\folder1group 1group 2group 3\\servername\foldermain\folder2group 1group 2group 3then i know which groups belongs to which share paththen i can remove the duplicate groups and keep the common groups to grab the users belongs to itso with the second script same as the first copy the security groups to a txt file and the out put as below.what I needs is the users full name and the samaccount name ( user id )group 1user1user2user3
group 2user1user2user3looking forward your help on thisThank you.Thilo

Similar Messages

  • Pharma specific fields (group and subgroup)

    Hallo,
    I have problems with specific Pharma fields (group and subgroup) in CRM Mobile 2007 SP02.
    Some business partners have group and subgroup in pharmaceuticals bookmark in transaction BP.  But in mobile solution I have these business partners without group and subgroup. The combobox for group and subgroup is empty too.
    In table SMOKNA1 (in CRM server and in CRM mobile are columns KVCGROUP and KVCSGROUP empty). I tried make initial load for object CRM_DNL_BPGROUP, but all is the same.
    Have anyone suggestion what I made wrong? Which subscription I need for these attributes.
    Thank you for your help.
    With regards,
    Jiri Halmich

    Hi,
    the issue with the customizing data is solved as Jiri already mentioned above.
    Btw: After synchronizing an adapter object you don't need to run an extract as this is done automatically by the system - and only for the changes (delta sync), not for the complete subscription...
    Concerning the missing data in smokna1: For my understanding this is a standard error. You should create an OSS message for that.
    If you prefer to solve it at your own you would have to do some coding in the Mobile bridge. Using the EEWB dosn't help as the fields are already there in the tables and BDocs.
    Of course you also can chose a "quick & dirty" solution: Create a new CDB table, containing only the sfakna1 and the both BP group fields, define an adapter object which synchronizes the both fields from BUT000 to this table and calculates the sfakna1 field by keygen. Run this adapter object by using a batch job at least once a day. Create a new sBDoc and qBDoc based on this table. Do some small coding in BOL to retrieve the both properties from the new CDB table into the both BOCAPGEN properties.
    Regards,
    Wolfhard

  • Need SP_TN for specific user must use specific document series and warehouse in Marketing Documents

    Hi experts,
       I need SP_TN for specific user must use specific document series and warehouses in Marketing Documents SAP B1.
       Kindly give solution ASAP.
    Thanks in advance

    Hi Nagarajan,
       It show (1) Not allowed to add PO.
       I used the following SP
    IF  @object_type = '22' AND @transaction_type IN (N'A',N'U')
    BEGIN
    IF Exists
    (SELECT T0.DocEntry FROM POR1 T0 INNER JOIN OPOR T1 ON T0.DocEntry = T1.DocEntry
    WHERE  T1.DocType = 'I' AND T1.Series = '142' OR T1.Series = '145' AND T0.[WhsCode] = 'STEX-01'
    or T0.[WhsCode] = 'STNEX-01' and T1.[UserSign] ='1'
    and T1.docentry = @list_of_cols_val_tab_del)
    BEGIN
    SELECT @error = 1
    SELECT @error_message = 'Not allowed to add PO'
    END
    END
    warm regards,
    Guhan

  • Creating Employee Group and subgroup in OM

    Dear Viewers,
    I am new in this SAP, I have started learning SAP HR / HCM. Presently I am learning OM and creating Organisational Structure.
    Can anyone help me in giving examples to create employee group and employee subgroup categories.
    Thanks & Regards,
    Soujanyah

    HI Swapnil,
    Thank you for the link.
    I have got a sample by searching in google
    [http://www.laccd.edu/hr/Documents/HRGuide_H-300_EmployeeSub-Group.pdf]
    Can I get some other samples please as specified in that table as EG and ESG

  • Propose or change automatically, Employee Group and Subgroup.

    Dear all, when executing an exit Action, thru transaction PA40, what's the best way to propose by default/change automatically, the employee group/subgroup?
    Example: I want to change the employee group from '1' (Active) to '2' (Inactive), but the fields are disabled for input.
    Do i have to do this thru the enhancement "PBAS001", or is there any way to do this thru configuration?
    Sincerely,
    Hugo Ferreira

    I was searching for something in SDN and got this post.
    Though it's a very late reply, whatever Sreenu has told is correct.
    In the table T529A, you can define the employment status wehther it has to be active, withdrawn or inactive.
    This field is input disabled in the action and the values will be defaulted from the configuration.
    But Changing the employee group and employee subgroup , we can't change. If that is what is required, the values might depend on the configuration.
    And even through some enhancement also we can't change. because, for IT0000 no enhancement are available. Even though the fields are from IT0001, I doubt it can be changed through enhancemnet.
    If you have already achieved it through enhancemnet, please let us know.
    Thanks,
    RSS.

  • Item grouping into groups and subgroups

    In case there are a lot of items in Business One, companies usually group these by item groups. In some cases when there are thousands of items, these are further on divided into subgroups by using UDFs. Then when you are making, say a sales order, you first look for the item group and then for the subgroup. This is where it gets tricky. You can only display the code when browsing for subgroups. It is not possible to display the value within the description field (I do not know how to do it). The code lenght is limited to 8 characters and hence makes it difficult to write a proper description for this subgroup. Is there any way to overcome this issue?

    Hello,
    thank you Gordon and Deepak for your efforts. First level grouping (B1 standard) by item groups is working fine, the second level just displays codes. The issue is that the value within udf-field on item master data card (on the right-hand side) does display correctly. However when I search for this item, say when making a sales order, I will just get the value, not the description. It makes no difference if I select it in the document settings to display as visible.
    Codes and description for this udf-field are as follows:
    Code  Description
    100    Roses
    110    Tulips
    120    Lilies
    Now when I sort this field by subgroup value, it only displays 100, 110 etc.
    All help is appreciated.
    Thanks,
    Samuli Ajo

  • Problem with Group and SubGroup

    Hi All,
    I have one problem in sql statement. I got two tables, PARTY and SUBGROUP.
    <<party>>
    party     group     subgroup;
    WG009     xx     zzz
    <<subgroup>>
    party     group     subgroup;
    WG009     xx     yy
    I have to write a query which gives the result that 'zzz' is not in subgroup table where xx=xx from subgroup.group and party.group. I have written the statement like this, but its not working properly becuase its returning all the records from subgroup.
    SELECT P_CODE, SG_CAT, P_CAT, P_SUB_CAT, SG_CODE FROM PARTY, SUB_GROUP WHERE P_CAT=SG_CAT AND SG_CODE != P_SUB_CAT AND P_CODE='WG009';
    P_CODE SG_CAT P_CAT P_SUB_CAT SG_CODE
    WG009 DWD DWD ANIL SHAH GADAGE
    WG009 DWD DWD ANIL SHAH JAIN FAMILY
    WG009 DWD DWD ANIL SHAH DEDHIA
    Is any body have Idea.
    SKM

    select party,group,subgroup from party
    minus
    select party,group,subgroup from subgroup;

  • Fetch Groups and Caching

    Hi there,
    i want to constitute fetch groups for my descriptor. But i don't know or find a tutorial about what will happen to my cache when i query with that fetch group. Will the objects (pojos) be put into the cache? In partial object queries, we cannot cache partial objects. In fetch groups, can we cache the objects?

    Fetch groups currently only work for EJB 2.x CMP Entity Beans, not POJOs. For POJO apps you can use partial object queries but as you say, queried objects are not cached.
    --Shaun                                                                                                                                                                                                                                                                                                                                                                               

  • Need FM for reading user status at run time in CRMD_ORDER txn.

    hello all,
    i need to know the FM for finding the user status on the screen.
    i know there are FM's for finding the values on subject and external reference fields. similarly i want it for user status .please help me in this regard....
    Thanks,
    Sreekanth.

    Hey Shiva,
    The FM for finding user status is CRM_STATUS_READ_OW
    Please Reward for usefull usefull post..
    Regards,
    Anand..

  • Grouping and subgrouping

    Hi Experts,
    I am looking for select which can give me results as below. I am fairly new and tried
    Data
    =====
    select 'g1' group_key,'p1' prod,'pd1' prod_dsc,'m1' month ,1 sales from dual
    union all
    select 'g1','p2','pd2','m1',2 from dual
    union all
    select 'g1','p3','pd3','m2',3 from dual
    union all
    select 'g2','p4','pd4','m1',4 from dual
    union all
    select 'g2','p5','pd5','m2',5 from dual
    union all
    select 'g3','p6','pd6','m2',6 from dual
    ouput
    =====
    g1
    p3
    pd3
    m2
    6
    p3
    pd3
    m2
    3
    p2
    pd2
    m1
    2
    p1
    pd1
    m1
    1
    g2
    p5
    pd5
    m2
    9
    g2
    p5
    pd5
    m2
    5
    p4
    pd4
    m1
    4
    g3
    p6
    pd6
    m2
    6
    g3
    p6
    pd6
    m2
    6
    So basically prod,prod dsc and month is not known for the group but it will be taken from the highest sales within the group. Any help is highly appreciated.
    Thanks,

    with order by :
    WITH T AS(
    select 'g1' group_key,'p1' prod,'pd1' prod_dsc,'m1' month ,1 sales from dual
    union all
    select 'g1','p2','pd2','m1',2 from dual
    union all
    select 'g1','p3','pd3','m2',3 from dual
    union all
    select 'g3','p6','pd6','m2',6 from dual
    union all
    select 'g2','p4','pd4','m1',4 from dual
    union all
    select 'g2','p5','pd5','m2',5 from dual
    select decode(grp_id,0,null,group_key) group_key,
           prod,
           prod_dsc,
           mnth,
           sm_sales,
           row_number() over (partition by group_key order by decode(grp_id,0,null,group_key)) o
    from(
    SELECT t.group_key,
           max(t.prod) keep (dense_rank first order by t.sales desc) prod,
           max(t.prod_dsc) keep (dense_rank first order by t.sales desc) prod_dsc,
           max(t.month) keep (dense_rank first order by t.sales desc) mnth,
           sum(t.sales) sm_sales,
           GROUPING(t.group_key) grp,
           GROUPING_ID (t.group_key,t.prod) grp_id
    FROM T
    group by rollup(t.group_key,t.prod)
    where grp = 0
    GROUP_KEY
    PROD
    PROD_DSC
    MNTH
    SM_SALES
    O
    g1
    p3
    pd3
    m2
    6
    1
    p1
    pd1
    m1
    1
    2
    p2
    pd2
    m1
    2
    3
    p3
    pd3
    m2
    3
    4
    g2
    p5
    pd5
    m2
    9
    1
    p5
    pd5
    m2
    5
    2
    p4
    pd4
    m1
    4
    3
    g3
    p6
    pd6
    m2
    6
    1
    p6
    pd6
    m2
    6
    2
    Ramin Hashimzade

  • Issue in uploading Employee Group and subgroup in LSMW

    Hi Experts,
       I`m using LSMW to upload IT 1013 data thru transaction PP01. When i run the LSMW in forground mode , then everything seems to work fine. But when run in background mode, I find that the records are not getting uploaded and its giving me some error like "Runtime error RAISE_EXCEPTION has occurred".
    Any input regarding this would be helpful and appreciateable.
    Regards,
    Farhana

    Hi Anatha,
        I tried PP02 and it also shows me the same error and also the my data files has only 4 records. I`m using only 4 records for testing, so it could not be a mass data load issue too.
    Regards,
    Farhana.

  • Need help with Java MIDI and VST info

    I am currently a college student for programming and I know programming very well, but for this current task, I am completely stuck. This is not a school project or work, just a personal project I'm working on at the moment to learn more about Java.
    What I am trying to create is a VST (Virtual Studio Synthesizer) using Java for use in music programs such as FL Studio, Sonar, Ableton, and so on. I did alot of Googling and found the following program:
    [http://jvaptools.sourceforge.net/index.html]
    I got it working, but it's not quite what I am looking for (it's more like an on-site editor that you enter code into and then run it). I want to create a VST from scratch and learn what each thing means in the program. I've done some research on MIDI input and output and found the following in the Java documentation:
    [http://java.sun.com/javase/6/docs/api/javax/sound/midi/MidiDevice.html]
    I figured I'm on track of what I'm looking for, but the problem is that the Java documentation simply sucks. It has no examples of code, how the functions work, and how I'm suppose to use them.
    First off, I want to start with the extreme bare basics. Is it even possible to do a VST in JUST Java? I've seen and used examples of obtaining data from a MIDI file and playing it, but that's not what I'm trying to do. Second, how would I take MIDI data from a music program running the VST and enter the data into a text box? Once I'm able to do that, I should be able to work with the data to produce audio output.
    My program I am attempting to make is a guitar synthesizer that I can run in music programs as a VST. If anyone around here knows anything about MIDI and VST plugins, please, post some example code and help point me in the right direction to creating something. I'm not looking to use other people's programs or code, I want to make something myself from scratch but I don't know where to start!

    Programming guide
    [http://java.sun.com/j2se/1.5.0/docs/guide/sound/programmer_guide/contents.html]
    Examples...
    [http://www.jsresources.org/examples/]

  • Created the following in iShowU and need help for Windows User

    I know a Windows XP user who only sees green static type screen when viewing this short tutorial: http://www.abbcfellowship.com/Downloads/registration.mov
    The clip was generated using iShowU. Does anyone know why and if I can fix it? I could offer a Flash Version as well, but QuickTime is supposed to be cross-platform. Thanks for any help! The video was captured at 30 fps, h.264 codec, audio at 20 Kz stereo.

    I think its been answered:
    Help!! How to Link users informations to user page???

  • Why do I need Library at root level AND a library in the admin user folder?

    I have three user accounts in my macbook, I share it with two brothers. I'm the "administrator". Under my user account there is a library folder, same as with the other two users. But I also have a library folder at the root level when I open the "Macintosh HD" icon on the desktop. I notice that both the library at my user folder and the one in the root folder have items that have been updated recently.
    While I noticed that the individual user libraries are "normal" in size, the one at the root level is 11 GB.
    Why do I need the library at the root level? Can I consolidate that with the Library in my user folder?
    Thanks!

    Why do I need the library at the root level?
    For items which apply to all user accounts.
    Can I consolidate that with the Library in my user folder?
    No.
    (57249)

  • Ipad needs support for multiple user accounts!

    There is a big difference between a smartphone and a tablet computer. Tablet is a device that may sit on a coffee or a kitchen table, with everyone in the family being able to check on their own email, browse internet, etc. and still have privacy for their own data. Very few of us can afford to buy an ipad for each family member.
    I would say this should be number one priority for apple, more urgent than new screen, better camera, etc.
    We need this feature, even if it comes with some restrictions compared to OSX – for example, if all applications of a logged out user should terminate. The trouble is how to do it so thousands of existing applications won’t be affected by it. The good news is that all apple devices run unix underneath, which may make it easier to implement this much needed functionality.
    If you agree with me on this issue, let's make some noise on this thread and let apple know what we really need!

    Johnathan Burger wrote:
    You have never heard of webmail?
    Tell that to Apple if you have a MobileMe account! Anyway, it's not just mail, there is Facebook, Twitter, and all the other user accounts that have to be logged in and out of.
    We do not need this feature, you might but I do not.
    You may not, and I may not, but lots of people do, so please respect their needs.
    It clearly is highly unlikely that iOS would ever get this feature, but there is no harm in sending feedback to Apple.

Maybe you are looking for

  • Incorrect UTF-8 encoded date in XML reports under German Win in March (IE error)

    TestStand XML reports are marked as UTF-8 encoded. But those reports generated under Win2k German in March (written as "März" in German) cannot be displayed in the Internet Explorer because the umlaut character of the month name is not correctly UTF-

  • Registers as HDMI sound output?

    Hi, I am using a Macbook Pro 13 in Retina. I have been using an HDMI cord to plug sound in, but after disconnecting the HDMI cord... my Mac still is registering the HDMI cord as the primary sound output? There is no sound even when I plug the HDMI co

  • How to open a Sony NEX-5N .ARW in CS3?? camera-raw ext.4.6 is installed..

    I cannot open a Sony NEX-5N .ARW file in CS3, and I have the latest camera extension installed. I really want to ope the RAW file, not convert it to Jpeg firt. Any Whiz having it figured out yet? Sony is not helpful at all and I suspect them to reall

  • Context root attributes of interface contrls can't be mapped in this ver.

    hi experts!! I am trying to map two DC context attributes. actually I need to pass one argument to another. without passing arguments i can navigate within each other. But bit confused on how to pass arguments to another dc context. please give some

  • Adobe edge show page only after download all image....

    hi, i have a composition wiht 30 images....when i open page it loads in around 5-6 seconds because adobe edge download all the image and after show the page...i have set immediate preloader that must only download the code and show the page but only