SP to restrict use of specific activity type to specific user

Hi experts
I am trying to use SP to reserve some Activity types for use of specific user but am unsuccessful.
I would be grateful for advice where I am in error?
--Restrict use of Visit type activity
IF (@object_type='137' OR @object_type='33') AND @transaction_type IN ('A','U')
BEGIN
If Exists (Select T0.ClgCode from OCLG T0 Where T0.DocEntry = @list_of_cols_val_tab_del and (T0.CntctType = 'test' AND T0.AssignedBy != 6)
BEGIN
Select @error = -1,
@error_message = 'Reserved activity type - Please use another type'
End
End
I also try using the following for CntctType:
'test'
'11'
11
and I also try using the following for AssignedBy;
6
'BOB BIRT'
'6'
Thanks for any assistance
Karen
Message was edited by: Andrew Birt
I found mistake myself ... eventually.

This is an example of using AFCSAccount->listRoom() :
    $am = new AFCSAccount($accountURL);
    $am->login($username, $password);
    echo "==== room list for {$accountName} ====\n";
    foreach ($am->listRooms() as $r) {
      echo "{$r->name}:{$r->desc}:{$r->created->format(DATE_RFC822)}\n";
You would need to look at all rooms where $r->desc == "template name". Currently we don't provide a filter for this but I understand how this would be useful.
The alternative is that since you are maintaining a database and use it for room creation, you should store the template information there for quick retrieval. Again, the way we store room informations is designed for fast access to specific rooms, but not for querying possibly long list of rooms.

Similar Messages

  • Document Posting restriction using posting key,document type combination

    Hi
    We have a authorization restriction issue using posting key&document type&Accoutn type  combination.
    Requirement is
    User A should be able to post to vendors only for particular posting key&document type.He should be able to post to with any other posting keys and document types to vendors.
    We have tried with document type authorization object/vendor authorization objects from user profile but it does,t work.
    can any one suggest some way please/
    r
    regards

    Hi
    I think you should be able to achieve the same through Validation rule:
    Prerequisite
    Document Type - XXXX
    Check
    User name = 123 and Posting Key = XX
    You can set a an error messsage which would be bleeped when the check fails
    Regards
    Sanil Bhandari

  • How to apply Software Restriction policy for specific user in local group policy object ?

    I am working on implementing user based software restriction policy programmatically for local group policy object.
    If i create a policy through Domain Controller,i do have option for software restriction policy in user configuration but in local group policy editor i don't have option for that.
    When i look for the changes made by policy applied from Domain Controller in registry, they modifies registry values for specific users on path HKEY_USERS\(SID of User)\Softwares\Policies\Microsoft\Windows\Safer\Codeidentifiers
    They also have registry.pol stored in SYSvol folder in Domain Controller. When i make the same changes in registry to block any other application, application is getting blocked.
    I achieved what i wanted but is it right to modify registry values ?  
    PS:- I am using Igrouppolicyobject API

    I achieved what I wanted but is it right to modify registry values ?
    You also can modify a registry programmatically based policy. Check this:
    http://blogs.msdn.com/b/dsadsi/archive/2009/07/23/working-with-group-policy-objects-programmatically-simple-c-example-illustrating-how-to-modify-a-registry-based-policy.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [Solved] wine: restricting execution to specific user/group safe?

    From what I understand, the way of exploiting a bug in a browser and launching malware in the background won't work with wine as the malware injector calls "some.exe", not "wine some.exe". So using wine is safe unless the person is "dumb" enough to execute a windows executable from an untrusted source, right?
    I have the following situation: there are two users, one should be able to execute windows programs, the other one (who recently got mislead by a "you need to update flash player" malware link -_-) should be unable to.
    What I thought I'd do was to create a group, let's say, called "wine" and change the permissions on the wine executable(s) so that only users of this group get the executable right. Then add users to this group.
    Is this safe? Is changing permissions on wine/wine64 enough, or should I also modify them for wine(64)-preloader? Or is there maybe a better way to do that?
    edit: also, will the permissions be reset when pacman updates wine?
    Last edited by Soukyuu (2014-05-28 15:20:23)

    Ideally, I'd want the user to be able to only execute whitelisted wine programs, but from what I know it's not possible. It's mainly to guard against accidental execution of mal/adware, which happened a few times while this computer was running windows. My parents lack the technical knowledge to try and circumvent those measures, nor do they have a reason. This means they are only using the GUI and call me if something doesn't work. Would using an alias guard against double-clicking on a windows binary?
    The reason I have wine at all is that I still need some windows programs on that PC, and the reason I switched to linux was to free up resources used up by the antivirus. So theoretically I could just launch the programs I need in a VM, but that would just negate any resource gains I got by installing linux...

  • Search using a specific user without providing password

    Hi Experts,
    I'm trying to impersonate a search in FAST or atleast in Sharepoint search without providing the password. Below is a similar thread.
    http://social.technet.microsoft.com/Forums/en/sharepointsearchlegacy/thread/49475fbc-3c6d-42f2-bf35-82365bf0a0c8
    Any help?
    Much Thanks!!
    Freddie Maize ..A story with Glory is History. Doesn’t matter whether Glory rest in the world of Demon or God. Lets create History..

    Hi Freddie,
    Here is another similar post about performing an impersonated search in SharePoint without providing a password, please check the details from below,
    http://stackoverflow.com/questions/1025409/can-you-perform-an-impersonated-search-in-sharepoint-without-providing-a-passwor
    http://www.threewill.com/2010/06/connect-to-sharepoint-forwarding-user-identities/
    Thanks
    Daniel Yang
    TechNet Community Support

  • PM Order Confirmation using Personnel's Cost Center and Activity Type

    Hi All,
    Is it possible to have PM Order confirmation (IW41) using Cost Center and Activity type from Personnel instead of default from Work Center?  If it is, can it be done with some configuration or user exit?  Please advise.  Thank you.
    Dai

    Hi friend,
    Order confirmation will be done for order operations.While doing confirmation we post the actual work done by the repective work center and respective activity type assigned to the same workcenter.
    But these activity types are assigned to cost center for cost calculation.confirming the respective operation in maintenance order through workcenters gives the report of planned work and actual work done by the respective workcenter.
    We cannot confirm the operation using costcenter and activity type directly through transaction IW41.
    If you want to develop new confirmation screen and making confirmation of the respective order operation with only costcenter and activity type fields, you can do it .
    Regards,
    Pardhreddyc
    Edited by: Pardhreddyc on May 17, 2011 12:45 PM

  • CA03 tcode customization of workcenter, activity type

    Hello Expert,
    In CA03 Transaction Code, there are fields like Operating,workcenter, plant , control Key, Activity Type etc..
    I just want to know where these all customization can be done want to check cost center and activity hours for one article.
    where we assign operating, workcenter,plant, control key, Activity type ???
    Thanks in Advance.
    Sujeet

    Dear Sujeet,
    1.Work center and routing are also the master datas for PP Module.
    2.Work center is the place at which the individual operations are carried out and its created using CR01.
    3.Each work center will be linked to a cost center in the costing tab.
    4.Before making this assignment, for a combination of cost center and activity type the activity per hour
    rate will be maintained in KP26 for the periods.
    5.If for the same activity type different rates are to be maintained means,then it can assigned to a
    different cost center only.
    6.One work center can be linked only to one cost center.
    7.one cost centers can be linked to several work centers.
    8.Cost centers will be created using KS01 and activity types using KL01.
    9.While creating routing using CA01,for each operation a work center must be assigned.It means that
    particular operation will be done in the mentioned work center.
    10.Control key can be assigned either directly in the work center or else in the routing manually it can
    be added or changed.
    11.A control key tells the whether an operation is relevant to scheduling,costing,capacity
    requirements,qualtity insepction characteristics.
    12.Control key configuration can be made in OP67.
    13.OP5A is for configuring the routing.
    14.OPFA is for configuring the work center fields.
    Regards
    Mangalraj.S

  • Activity Type with cost elements

    Hi,
    I'm trying to find out whether it is possible to connect activity types with a group or range of cost elements, which should be allocated using activity allocation.
    I don't want to allocate all costs gathered on Cost Center, but only a range of cost elements. Can I achieve that using direct activity allocation and if it's possible, how can I do it?
    Best wishes,
    Karol

    Hi Karol,
    It is possible to link the cost elements to the activity using the splitting structure in the SPRO of cost center accounting.
    First the costs are debited to other cost centers using the plan activity type. At the end of the period when you calculate the actual price of the activity then based on the cost element range assigned to the activity in the splitting structure the actual cost of the cost elements are debited through the activity.
    I hope it is clear now.
    Regards,
    Suraj

  • Activity type change issue in CAT2

    Hi Experts,
    In CAT2 timesheet we are using two fields, Activity type and Operation/Activity. The problem is, when we change the Operation/Activity field to another value the Activity type field does not change automatically. How can we set the fields that relate to Operation/Activity to change automatically when we change just Operation/Activity field value?
    Thanks a lot.

    Dear Raj,
    Its very good question.
    Once after making some BOM changes or rate routing changes if you are not updating or doing the
    preliminary cost estimate once again in KKF6N,then while doing backflush in KKF6N,the system books
    the old values or it picks the old BOM or rate routing only.
    The made changes will not get refelected in MFBF.
    You can check this in MFBF,say after making some BOM changes without updating the same in
    KKF6N ,do the production booking in MFBF and you will be seeing the system picking the previous
    BOM only.
    Check and revert back.
    Regards
    Mangalraj.S

  • Want to change the cost element for a activity type (KP26)

    Hi,
    I want to change the Allocation cost element for an activity type in KP26. I have already changed the cost element in the activity master data in KL02. Now i want to change it in KP26. I am trying to delete the existing line item in KP26  to create the new line item with the new cost element, but system not allowing to delete the existing one. It throws the error message ""Allocations with XXXXXXX/XXXX (Cost center/Activity type)  exist ; deletion not possible". Can someone please help me to change the cost element?
    Regards
    Dev

    Hi Rao and Lalit,
    Thanx for you people for helping me. i havin gone doubt here. If i am deleting the existing line in KP26 and create new line with appropriage cost element will it be cause the existing datas? I don't want to go for another activity type, because our process is a complex process exist all over the world in more than 300 company codes. So i want to use the existing activity type but want to change the allocation cost element alone. Is there any possibility to change the cost element alone?
    Regards,
    Dev

  • Data Source to get activity type(ActTyp) for service orders.

    Hello friends..
    Could you please provide, with the data source, that can be used to derive activity types (ActTyp),for service orders.
    (Not maintenance activity type (PMACTTYP, in BI))  
    I have checked ZLIS_18_ORDER, where i could find (Maintenance activity type, ILART) but not Activity type.
    Or if we need to create a Genric DS for same, could you ppl please provide me with the table name, to get the Activity type.
    Thank you.
    Raghu

    Thank you Rajesh,
    Could you please lemme know, how can i pick this value, as there is no AUFNR (Order Num) in this table, so that i can pick up using order number.
    Thanks '
    Raghu

  • Activity Type with no dollars.

    We have a situation where we would like to charge hours quantity to a project but we don't want to pull any dollars into the project based on the hours.  The dollars will be charged directly off Vendor Invoices.  I thought that using Category 4 Activity Types could accomplish this zero charge but we ran into problems not being able to allocate Cat. 4 Activity Type.  Does anyone know how to get hours charged into a project without pulling in dollars as well.  You help would be apreciated.

    Here is what I have ocnfigured:
    Activity "CONLAB" for contract labor is set up with the following fields populated-
    Activity Unit = H 
    CCtr categories  =  8
    AtypCategory = 4
    Every thing else is blank.  When I attempt to set this up on the project I get the following error message -
    Activity CONLAB cannot be allocated to 2009
          Message No KL008
    Diagnosis
         Activity type CONLAB was planned in fiscal year 2009 as non-allocatable.  That means other objects cannot input any activity through this activity type.
    System Response
         No activity input can be posted
    Procedure
         Choose an activity type.
    We need to plan these statistical hours but it's not letting us track them in the Project.  I sure hope someone has an idea on how to fix this.

  • Indirect costs allocated to specific activity type

    I am trying to take costs from an indorect cost centre, and based on cost element groups, post it into a specific (production) cost centre activity type.
    (I know the best way to do this is with KSCB, but the users entered thewrong master data in KP26, so it is either finding another solution, or recreate all the cost centres, with everything that that implies....)
    Currently I am assessing using separate secondaries for each activity type. But because they are secondaries, I cannot get them included into specific activities via KP06 at the direct production cost centre. Alternatively I am trying to get the spliiting to link the secondary to a specific activity type, but I am not getting that working.
    Any ideas would be greatly appreciated.
    Distributions rather than assessment?

    Now that I have actually assigned the splitting structure to the cost centre, it works a lot better....

  • Authorization restriction for PM Order via PM activity Type.

    Dear PM Experts....
    There is a requirement to restrict order creation (Eg: PM07) for selected user group if they select particular PM Activity Type(ILART).
    Is it possible to restrict authorization in such a way and What are the Authorization Objects that i have to change?
    Thanks in advance..

    Hi,
    Use the authorization object I_INGRP for restricting at the Planner Group level along with the I_AUART.
    At activity level might not be possible.
    Thanks
    Sunil

  • Use of activity types and cost splitting

    Hi All,
    We would like to track activities for cost centers, but don't necessarily have the need for a sending cost center/object.  I understand in a traditional manufacturing set-up, you have sending and receiving cost objects that incorporate the use of activities.  Our business is a service that we provide, not a tangible product that we produce.
    Here is the scenario.  We have activities that a cost center performs.  Cost center 1 will perform 2 types of "pick-up" activities, so this would require two activity types.  Throughout the course of the month, the activity quantities would get posted to the cost center.  So my first question is how can you post only quantities to a cost center--what is the t-code?  We're not concerned with incorporating an activity price, we just want quantities.
    Second, as primary costs get posted to the cost center in FI, we want to split the costs onto the activities.  I have researched t-code KSS2 and can't seem to split the primary costs based on the activity quantities.  It keeps refering to target costs, which I don't really want to have to worry about.
    What we're trying to do is a makeshift ABC scenario.  Since the use of true abc seems almost non-existent, there's not much info out there on it.  Does anybody have any good docs on abc in SAP?
    Thanks
    Kory Squire

    Hi,
    1. I understood your case in this way .
    Cost Center A performs 2 activities . The cost center collects cost by Fi posting through out the month.
    Now you want the activity type should nt have price , only it should have quantities.
    And now you want to allocate the cost of the cost center to other object by activity types.
    If i am right..
    then instead of activity types why not create SKF(statistical key figures) . At the month end by t.code Kb31n post the activity qts. for combination of cost center and SKFs.
    Then as per your requirement run allocation cycle.
    The kind of you are planning , in that case activity types to be converted as cost object ( it can be done in control area setting) and then you want to allocate.. seems to be little complicated..
    Hope i understood and in turn i conveyed the message properly..
    Assign points if found helpful
    Regards
    Prabhat

Maybe you are looking for

  • Exporting in Aperture 2

    Calling on any experts with experinece in exporting. I have read a number of posts on this site, I have also read a number of articals realing to, exporting, resolution, printers, DPI, and PPI. I think I have a good grasp on how resolution is related

  • Change country of apple id

    Hi there My good old apple id was created when I lived in denmark. Now I live in greece. How do I change my account info? There is no option for changing the country. Only address change inside the current country

  • My Macbook speakers cut off when playing music/videos

    Hey, I'm new to the boards but have last generations macbook (all black). All my system and software updates are up to date. When I play music in itunes the song continues to play but the music cuts out. I thought it was just itunes but when I tried

  • Worflow Substitution question

    If manager A uses a substitute Manager B. The WIs will go to the inbox of B. When manager B approves the WI how can can manager A see what happened to the WI  when he/she returns to work.  The WI is not in the completed tasks list of A but is in the

  • Can I Write Portlets Using ColdFusion?

    Can I write 5.04 Portlets using ColdFusion MX ? What issues would I run into?