Change user of Backgroud Task.

Hi experts...
I'm using the event "CREATED" of object "BUS1006" for send an alert e-mail...
The sender of this email is the user that execute the task, in this case WF-BATCH....
My issue is, that this user shouldn't be WF-BATCH, then the task should be done by the  logged user.....
Anyone can help me??
Best regards
Marco

Hi....
i've tried but it doesn't work...
i call this function for trigger alert..
        CALL FUNCTION 'SALERT_CREATE'
          EXPORTING
            ip_cat                 = l_category
          TABLES
            it_container           = alert_container[]
          EXCEPTIONS
            alert_category_unknown = 1
            alert_no_recipients    = 2
            alert_error_unknown    = 3
            OTHERS                 = 4.
The sendere is the e-mail of sy-uname.....in this case WF-BATCH...i whant the sy-uname be the user logged.
best regards
Marco

Similar Messages

  • Change User status of Task of Follow up function

    Hi All,
    Does any one of you know how to change the User status of Task through customizing or programming.
    Basically I want to change User status from 'TINI' to 'TSNT' once the email is triggered. I could send the email but I am unable to change the status.
    Thanks in advance,
    Jagadish

    Hey Thomas,
    This should solve your problem..
    CALL FUNCTION 'CRM_STATUS_CHANGE_EXTERN'
          EXPORTING
            client              = sy-mandt
            objnr               = wa_new_user_status-guid
            user_status         = wa_new_user_status-status
            no_check            = 'X'
      SET_INACT                 = ' '
      SET_CHGKZ                 =
      XNOAUTO                   =
          EXCEPTIONS
            object_not_found    = 1
            status_inconsistent = 2
            status_not_allowed  = 3
            OTHERS              = 4.
    In this FM NO_CHECK parmeter must be set to True, else u wil not be able to set the Status.....
    Sample is given above...
    Reward points for usefull answer...
    Regards,
    Anand...

  • WF which user started Backgroud task

    I'd like to know if there's a way of determinig which user initiated my WF BACKGROUND TASK.

    Hi Josie,
    Depends where the background task in the workflow is.
    If the background task  is the very first step in the workflow, you could say it is the workflow initiator (the user triggering the event).
    If the background task follows a dialog/decision step, then it would be the agent who completed the step. You can bind the WiActual_Agent element from the task container to a WF container element.
    If the background task follows a synchronous dialog step and if the "Advance with dialog" checkbox is selected on the Control tab of the corresponding workflow step, the background task is actually executed with dialog user's id and not WF-BATCH.
    Cheers,
    Ramki Maley.
    Please reward points if the answer is helpful.
    For info on awarding points click on this link: https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm

  • Is there any way to change user operations on multiple tracks at once?

    I have a complex project (99 tracks, dozens of menus and scripts). I need to make one version of this DVD for the end client (teenagers at health clinics) who will be forced to view it in a specified way, and another version for educators (staff at the clinics) who will be allowed to fast-forward and have access to a menu from which they can jump to different points in the DVD.
    I have different menus to serve as "first play" for these different versions so that I can easily switch between versions when burning disc images, and I have set up GPRMs to make navigation different for the two versions automatically. My problem now is that I want to disable forward scan, next program, root menu, and title menu for the client version. As far as I can tell, I have to do that independently for every single track and menu. Bleah. This is especially annoying since the DVD is still in development, so I am continuing to change small things and will need to keep both versions up to date as I do.
    Is there any way to select multiple tracks/menus and change user operations on all of them? Or any other work-around or script that could do it? I thought this would be a perfect task for the automator, but I'm not very familiar with that application and don't know how (or if it's possible) to create new actions other than the ones that are available.
    Any ideas?
    thanks!
    Julie

    Thanks. But the disc inspector only appears to let me change things like where the title menu button takes you, not detailed user operations. I have pretty much given up on this being anything other than a giant hassle, but if anybody knows whether a script could do this, I would be eternally grateful.

  • AD - 'Change First Name' process task is rejected by default - OIM 11.1.2

    Hi All,
    I wanted modification to be auto provisioned to AD account when user attribute is changed.
    For this created 'Change First Name' process task and made entry in "Lookup.USR_PROCESS_TRIGGERS" lookup def.
    I followed the link Enabling update for provisioned user in OIM11g
    When I changed first name of a user from identity console, 'Change First Name' process task is assigned to XELSYSADM. But the status of the process task is Rejected. Also, the changed 'First Name' value is not updated in the process form of the user. Hence the change is not reflected into AD.
    Please tell me why the status is Rejected and changes are not reflecting.
    Also, Please provide the solution to auto provision the modifications into AD.
    Thanks in Advance.

    Thanks much kevin,
    One more query.....
    In my case when 'city' attribute is changed its invoking 'Change city' which inturn invokes 'City updated' process. Now when city is updated I need to updated 'Organization Name' in AD process form and make it reflect in AD.
    For this, I created 'Change Org Unit' process task which will populate 'Organization Name' field in process form, so inturn it will invoke 'Organization name updated' process task.
    I made 'Change Org Unit' process task as dependent task for 'Change city', so once the 'Change City' process task status is 'C', it will invoke 'Change Org unit' process task.
    But, 'Change Org unit' process task is not being invoked.
    Could you pls provide me solution.
    Thanks in advance...

  • Problem with Notifications on Create User/ Change User Password

    Hello,
    I'm having a problem sending emails to users when an account is created in OIM.
    I added a notification to the user and user's manager on the Create User task in the Xellerate User process definition but the emails are not being sent.
    I know that if I create another task with the purpose of sending emails and invoke it through the response in the Create User task, it will work.
    My aim is to avoid adding tasks for something OIM should be able to do OOTB.
    I'm also unable to send an email when a password is updated.. I did the same thing as for the Create User and I know the task (Change User Password) is being invoked by looking at the logs but the emails aren't being sent.
    Has anyone ran into such problems?
    I'm having these problems in the Xellerate User process task.. i've added notifications in other process tasks (mainly approval tasks) and they are working fine.
    Thanks in advance

    Hi,
    I am just confuse with your response.Have you added the "Password Updated" task in xellerate user provisioning process?
    Now if you changing password in OIM profile it will trigger "Change User Password" task not the "Password Updated" task and even if you add "Password Updated" task on Xellerate User provisioning task you can't see this task in Resource Details.
    Now assume if you added your notification on "Password Updated" task of any resource which user is provisioned to even then when you change oim password it only trigger "Change User Password" task.So try to have your notification on "Change User Password" task.
    Please clarify so that I can response correctly.
    Regards
    Nitesh

  • Problem with"Evaluate User Policies"sch task after the upgrade OIM R1 to R2

    Problem with "Evaluate User Policies" scheduled task after the upgrade from OIMg R1 to OIM 11g R2
    After the upgrade process is completed we are having issue with Access policy not triggering if rule is set to custom attribute
    - We had a Rule with custom attribute (Policy='Full-Time') the value gets populated by event handler which triggers the access policy in OIM 11g R1.. which worked fine in OIM R1
    After the upgrade the value is getting populated but even after running "Evaluate User Policy" the Access Policy is not getting triggered.
    We tested creating a rule with other custom attribute,policy does not trigger even after running Evaluate User Policy schedule Task in this case too
    but if we try creating rule with OOTB attributes(Country='US') it works fine the access policy got triggered after running Evalute User Policy
    One more issue we observed is
    - Evaluate User Policy value usr_policy_update is not updated still set to '1' even after the Access policy got triggered (as it worked when rule is set to OOTB attribute)
    I believe after the evaluate user policy gets triggered for a user it should update the value from '1' to '0')
    Please let me know if you have any idea..Thanks!

    well, I overcame the issue by 'fooling' the installer: on second node, change the scan ip address to point to something else (ie, different ip address to the scan in the first node, cleanup then rerun root.sh, it went past the trouble stage, then I still have problem later at the time database creation. I think scan ip address has to be setup correctly (round robin thingy)
    This is how i did the cleanup before rerun root.sh
    /u01/app/11.2.0/grid/crs/install/rootcrs.pl -verbose -deconfig -force

  • Keeping iTunes playing when changing user account

    Hi,
    I would like to setup a "music" account on our family iMac to select music from within iTunes and send it to our sound system. I'm tired of always having to reshelf CDs!
    But for this to work, we need to be able to switch to our own account when we want to use the iMac while iTunes continue playing to the sound system. I did not find any option that may allow me to do this and right now it stops playing as soon as we switch to another account using "fast user switching".
    We have Snow Leopard and iTunes 10.0.1.
    My other option is to buy a second hand iPod to do this, but I hesitate buying one just for this when my iMac seems perfectly able to handle the task.
    Thanks in advance,
    Denis

    Thank you very much Tom.
    It seems AirTunes has been renamed AirPlay. It is not stated that it will keep playing even when I change user account, so I am glad you were able to provide this bit of information. Your suggestion to get an Airport Express appears to be the most realistic and cheap option. As for the AppleTV, it would have been more versatile (music to my sound system, video content to my TV via HDMI), except that my sound system is very old (but still works well) and has no optical audio in, which is the only audio output option for an AppleTV, if I understand well.
    It would have been nice though to have the audio out of the mac connected into my sound system and just tell iTunes to keep playing music in the background even when changing user.
    Denis

  • I'm trying to reinstall Mavericks on used Macbook Pro. When I log in to my Apple ID, it says it was not the same ID used to purchase Mountain Lion. I need to change user/admin as a lot of the folders and apps are in Chinese!

    I'm trying to reinstall Mavericks on used Macbook Pro. When I log in to my Apple ID, it says it was not the same ID used to purchase Mountain Lion. I need to change user/admin as a lot of the folders and apps are in Chinese!

    The first thing you should do with a second-hand computer is to erase the internal drive and install a clean copy of OS X. How you do that depends on the model. Look it up on this page to see what version was originally installed.
    If the machine shipped with OS X 10.4 or 10.5, you need a boxed and shrink-wrapped retail Snow Leopard (OS X 10.6) installation disc, which you can get from the Apple Store or a reputable reseller — not from eBay or anything of the kind. If the machine has less than 1 GB of memory, you'll need to add more in order to install 10.6. I suggest you install as much memory as it can take, according to the technical specifications.
    If the machine shipped with OS X 10.6, you need the installation media that came with it: gray installation discs, or a USB flash drive for some MacBook Air models. If you don't have the media, order replacements from Apple. A retail disc, or the gray discs from another model, will not work.
    To boot from an optical disc or a flash drive, insert it, then reboot and hold down the C key at the startup chime. Release the key when you see the gray Apple logo on the screen.
    If the machine shipped with OS X 10.7 or later, you don't need media. It should boot into Internet Recovery mode when you hold down the key combination option-command-R at the startup chime. Release the keys when you see a spinning globe.
    Once booted from the disc or in Internet Recovery, launch Disk Utility and select the icon of the internal drive — not any of the volume icons nested beneath it. In the Partition tab, select the default options: a GUID partition table with one data volume in Mac OS Extended (Journaled) format. This operation will permanently remove all existing data on the drive, which is what you should do.
    After partitioning, quit Disk Utility and run the OS X Installer. When the installation is done, the system will automatically reboot into the Setup Assistant, which will prompt you to transfer the data from another Mac, its backups, or from a Windows computer. If you have any data to transfer, this is usually the best time to do it.
    You should then run Software Update and install all available system updates from Apple. If you want to upgrade to a major version of OS X newer than 10.6, buy it from the Mac App Store. Note that you can't keep an upgraded version that was installed by the previous owner. He or she can't legally transfer it to you, and without the Apple ID you won't be able to update it in Software Update or reinstall, if that becomes necessary. The same goes for any App Store products that the previous owner installed — you have to repurchase them.
    If the previous owner "accepted" the bundled iLife applications (iPhoto, iMovie, and Garage Band) in the App Store so that he or she could update them, then they're linked to that Apple ID and you won't be able to download them without buying them. Reportedly, Apple customer service has sometimes issued redemption codes for these apps to second owners who asked.
    If the previous owner didn't deauthorize the computer in the iTunes Store under his Apple ID, you wont be able toauthorize it under your ID. In that case, contact iTunes Support.

  • Change User password not working in SAP ME 6.0

    Hi,
    In SAP ME 6.0 SP01 6.0.1.0 Counter 40, the activity "Change User Password" does not work for me or any other user.
    The activity window (Netweaver) shows, but in the top it says "An error occurred - contact system administrator".
    This is the output from the default trace file. Seems my user is not authorized, but where do I set this authorization?
    Br,
    Johan
    #2.0 #2011 09 06 11:15:11:064#+0200#Error#com.sap.security.core.wd.jmxmodel.JmxModelComp#
    #BC-JAS-SEC-UME#sap.com/tcsecumewduimodel#C0000AD3034800820000000100000450#9934850000000004#sap.com/tcsecumewdkit#com.sap.security.core.wd.jmxmodel.JmxModelComp#JONORD#16##380199ECD86811E088C3000000979802#ae0e9d52d86811e08e7a000000979802#ae0e9d52d86811e08e7a000000979802#0#Thread[HTTP Worker [@312363456],5,Dedicated_Application_Thread]#Plain##
    public void supplyCompany(IPrivateJmxModelCompInterface.ICompanyNode node, IPrivateJmxModelCompInterface.IContextElement parentElement)
    [EXCEPTION]
    com.sap.engine.services.jmx.exception.JmxSecurityException: Caller JONORD not authorized, required permission missing (javax.management.MBeanPermission -\#getCompanyConceptEnabled[:SAP_J2EECluster="",j2eeType=UmeJmxServer,name=IJmxServer] invoke)
         at com.sap.engine.services.jmx.auth.UmeAuthorization.checkMBeanPermission(UmeAuthorization.java:100)
         at com.sap.engine.services.jmx.JmxServerFrame.checkMBeanPermission(JmxServerFrame.java:101)
         at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.checkMBeanPermission(MBeanServerSecurityWrapper.java:438)
         at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.invoke(MBeanServerSecurityWrapper.java:288)
         at com.sap.engine.services.jmx.ClusterInterceptor.invoke(ClusterInterceptor.java:813)
         at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.invoke(MBeanServerInterceptorChain.java:367)
         at com.sap.security.core.jmx._gen.IJmxServer$Impl.getCompanyConceptEnabled(IJmxServer.java:1415)
         at com.sap.security.core.wd.jmxmodel.JmxModelCompInterface.supplyCompany(JmxModelCompInterface.java:1498)
         at com.sap.security.core.wd.jmxmodel.wdp.InternalJmxModelCompInterface.supplyCompany(InternalJmxModelCompInterface.java:710)
         at com.sap.security.core.wd.jmxmodel.wdp.IPublicJmxModelCompInterface$ICompanyNode.doSupplyElements(IPublicJmxModelCompInterface.java:4301)
         at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyElements(DataNode.java:110)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:263)
         at com.sap.tc.webdynpro.progmodel.context.MappedNode.createMappedElementList(MappedNode.java:78)
         at com.sap.tc.webdynpro.progmodel.context.MappedNode.supplyElements(MappedNode.java:71)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:263)
         at com.sap.tc.webdynpro.progmodel.context.MappedNode.createMappedElementList(MappedNode.java:78)
         at com.sap.tc.webdynpro.progmodel.context.MappedNode.supplyElements(MappedNode.java:71)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:263)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElements(Node.java:270)

    Hi,
    Change User Password screen is in fact user self services screen of NW UME and to access it, user must have Manage_My_Password action. Installation and Security Guide ask to assign this action to all roles.

  • How can i add a new user and change user'password with javamail?

    how can i add a new user and change user'password from a mailserver with javamail?
    email:[email protected]

    Well user creation and updation is a system property..U need to go through that part...as it depends on the system you are hosting pout your application...
    if it is linux...u have to use some shell programming\
    bye for now let me know if this guides you or if you need some more stuff.
    bye

  • Why can't I use the trackpad to change users?

    I have a June 2009 MBP.  I updated to Maverick's recently, although my problem dates back to Lion.  When I log out to change users the trackpad does not allow me to click on another user.  The mouse will respond to the movement, but when you try to tap or click on another user to log in it does not work.  My magic mouse also doens't work at all once I log out.  Right now I keep an old USB mouse handy just for switching users. 
    Any thoughts on why this happens or how I can fix it?

    When login screen appears, try to hard click the trackpad to register the click.
    Tap to click will be only enabled after you login.
    Best.

  • I can't update my apps because Apple User ID has been disables? changed user ID and password for Mac but can't seem to find way to change phone logon?

    I can't update the apps on my iphone because user ID defaults to [email protected] and that user ID has been disabled. Can you tell me how to change user ID for apple on my phone?

    did your purchased that apps using that email address or apple id? if the answer is yes, you need to contact iTunes to re-enable your apple id.
    If not, you can change the sign in account by going to settings>store

  • LSMW for changing user status on work order(IW32)

    Hi All,
    I have created a LSMW for changing user status on work order using transaction IW32. It does not change the status when i run the LSMW. In the recording for the LSMW, i select the radio button on the user status i want to select.
    When i run the LSMW in the foreground, it does everything except select the correct status.
    Is there a way to fix this or is it a problem with LSMW. I'm using ECC6
    Kind Regards
    Emanuel

    Hi ,
    I am not sure whether it would work with LSMW but if your on ECC 6.00 ,Enhacement Pack 3 then you have BADIs which allow you to make collective status changes in IW38 .The below are those BADIs :-
    BADI_EAM_RIAUFK20_FCODE_CUS1 :Implement Customer Function Code in Order List
    BADI_EAM_RIAUFK20_FCODE_SAP1 :Implement SAP Function Code in Order List
    Else if your on lower version then write up a batch programme which checks the PM Order types with specific status and sets user status using FM STATUS_CHANGE_EXTERN[This is used to set or delete User Status] in SE37 ..
    regrds
    pushpa

  • ***How to use Java to change user password in *mdw file?

    Hi,
    Is it possible to use java to change user's password in the MS Access workgroup file(*mdw)? I have been searching for this topic for a long time, but no discoveries yet. Anyone has any idea?
    Sincerely,
    nonameisname

    There is probably a windows API call that does it.
    Once you find it, you wrap it in C code and then use JNI to call it from Java.

Maybe you are looking for