How to create Request programmatically to trigger Approval Process

My scenario is dificult... I need to start Approval Process when the user want to assign AD Resource to other user without Request service. So I want to create Request programmatically from Event Handler to start Approval Process for Provision Resource request type.
Is this right Way?

If you talk of request, you will have to use RequestService. You can use code to work with the RequestService to create the request and the approval for you.
-Bikash

Similar Messages

  • How to create REQUEST NUMBER for STANDARD TEXT (SO10)

    how to create REQUEST NUMBER for STANDARD TEXT ( t-cODE SO10)

    you can do this using program RSTXTRAN .
    Text key - object
    Text key - name
    Text key - ID
    Text key - language, then it will store under one transport that can be moved to other system.
    check out the following link.
    http://help.sap.com/saphelp_47x200/helpdata/en/f4/b4a1ed453611d189710000e8322d00/frameset.htm

  • Trigger approval process when deadline had exceeded

    Hi all,
    In the workflow  WS10400002 (One-step approval) , when the deadline had exceeded the approval should happen automatically.
    While checking in the latest end tab, an alert mail can be triggered. but how do we make sure that the approval process happens automatically if the deadline is missed.
    Thanks and regards
    Kishan

    Kishan
    As such there is no system functionality to achieve what is required..
    Please create a program to check for deadline and use a workflow approve FM to explicitly approve your cart.. And run this program as a batch job..
    Hope this helps.. Please let me know if you have more questions (or need the FM to approve)..
    Regards
    Rakesh
    Ps. Please close the thread if your question is answered..

  • How to create request for extracting company code

    Hi All,
    Can any body guide me how to create a request for extraction of company code 0COMP_CODE_ATTR.
    Actually i have created a request using transport conneciton but while moving this request to quality system i am getting following error.
    DataSource 0COMP_CODE_TEXT does not exist in source system QLTCLNT440 of version A
    Mapping between data source 0COMP_CODE_TEXT and source system QLTCLNT440 is inconsistent
    DataSource 0COMP_CODE_TEXT does not exist in source system QLTCLNT440 of version A
    Field KEY1 will not be delivered from DataSource 0COMP_CODE_TEXT in source system QLTCLNT440
    Field TXTMD will not be delivered from DataSource 0COMP_CODE_TEXT in source system QLTCLNT440
    Start of the after-import method for object type R3TR ISTS (Activation Mode)
    Reference to transfer structure 0COMP_CODE_TEXT_BB not available. No activation possible.
    Start of the after-import method for object type R3TR ISTS (Delete Mode)
    Start of the after-import method for object type R3TR ISMP (Delete Mode)
    Errors occurred during post-handling RS_AFTER_IMPORT for ISMP L
    The errors affect the following components:
       BW-WHM (Warehouse Management)
    Actually i have checked in Quality system 0COMP_CODE_TEXT is availble active. But i think we have to use 0COMP_CODE_ATTR data source...
    Pls help,,,
    Regards,
    viren.

    Hi Viren,
    Glad that your problem is resolved.
    Help.Sap.com is the best reference: http://help.sap.com/saphelp_nw04/helpdata/en/b2/e50138fede083de10000009b38f8cf/frameset.htm
    Also check the "How-To" docs in https://www.sdn.sap.com/irj/sdn/developerareas/bi
    Bye
    Dinesh

  • How to create a user defined trigger and execute my form

    Hi All,
    I am working with oracle Apps r12 and oracle forms 10g.
    I have created a custom form. So i need to create a special menu and when the user click the menu it need to open a new block and query it accordingly.
    I have followed this link
    http://egeapp.egeseramik.com:8000/pls/prod/fndgfm/fnd_help.get/us/fnd/@g_special#g_special
    and created a special menu in my custom form
    In PRE_FORM trigger i have coded this
    APP_SPECIAL.INSTANTIATE('SPECIAL3','&ACTION HISTORY DETAILS',NULL,TRUE,'LINE');
    and IN PRE_BLOCK i have coded this
    APP_SPECIAL.ENABLE('SPECIAL3',PROPERTY_ON);.
    Now the special menu is enabled when i press it shows error
    that frm-40700 no such trigger:special3.
    Now i came to know that we need to create a user defined trigger put the code and when we press special menu it need to query it accordingly.
    Can any one tell the steps that how to do that accordingly.
    Thanks & regards
    Srikkanth

    Hi ,
    The problem is fixed, the link mentioned below might be use full for doing this.
    http://docs.oracle.com/cd/E18727_01/doc.121/e12897/T302934T457083.htm
    regards
    Srikkanth

  • OIM: Create new link and trigger a process.

    Hi,
    I am customizing the OIM admin and user console. My aim is to add a new menu item and trigger a new process (say a provisioning process of a resource).
    I have the menu link. I can point it to any servlet I want.
    I have a resource object.
    I have the form made using form designer in designer console.
    I have a provisioning process attached to my resource object.
    Now, how should I connect all these things together as to make an end to end flow.
    Like how should I link such that a user can try to provision (self provision) my resource to himself by clicking on that link.
    Thank you.

    My second problem:
    I want a way to say invoke a servlet (that I can do, but dont know which servlet to invoke.) so that my form (from the form designer) pops up, and I can fill data in it to create its instance. And this would trigger an approval process and provisioning process.
    At last a page is returned stating that provisioning was successful or unsuccessful.
    Thank you.

  • Trigger approval process after adding draft through DI API

    FROM SDK:
    The ApprovalTemplatesService doesn't trigger the approval process for objects that were added through the DI API
    I add a Draft document through the DI API, and the approval process doens't trigger.
    (no record added in OWDD and WDD1)
    How to make it happens ?
    Thank you

    Hello Nicola,
    Exactly what product are you using?
    What version of that product?
    I believe this question is in the incorrect forum, but I need this information to be able to point you in the right direction.
    Also in the future, do not cross post questions to multiple forums as that is against the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Jason

  • How to create a value only  article and process it

    pls tell me how to create a value only article,  group article and
    hierarchy article and process the same in Is-retail

    Hi,
    Pl use the following link:
    http://help.sap.com/saphelp_ides/helpdata/en/fa/6a376542ef11d2a64b00104b57eaa3/frameset.htm
    Regards,
    S.V.ManiKumaar

  • Approver is a requester, can we bypass approval process?

    Hello,
    My questions is, lets say if I am the manager and I approve all the request raised by my team. In this case I put a request for a resource for one of my team members. Would it be possible in OIM to configure to bypass approval process because I dont want to put a request and then go back approve it.
    Thanks
    Mahesh

    Hi
    This is not available out of the box, you will need to write your own java code that will check if the requester is the target user's manager. If it is then return true in your code as the response, on true kick off (tasks to generate on responses tab) a task by name ("No Approval" with tcCompleteTask), if false (then kick off "Approve by Manager task).
    you will have 3 tasks in your approval workflow:
    1) Is Requester Target User's Manager (required for completion)
    2) No Approval (Conditional)
    3) Approve by manager (conditional)
    the reason for having a task by the name of no approval is to indicate to the oim admins or any auditors that there was no approval required for this request as opposed to just having the task "Is Requester Target User's Mgr" show up in the approval details, because that may not be very intuitive to the admin/auditors or any one looking at it to know whether the approval workflow stalled or has it completed unless one looks at the response code generated by that task in the amdin gui.
    Note: If multiple users are selected in the request you will in your code need to iterate through the loop to find out if all the users selected belong to the same mgr or no, if you encounter any one user who does not belong to the mgr, you should exit out of the loop and return "error" or some response code where in you using the api's auto reject the request.

  • How to send a group notification in approval process?

    I'd like to send a group notification in approval process, so as to tell them that they hava pending tasks in OIM.
    As if the out of the box does not support sending an email to a group of users. I have written the custom code
    to implement it, but I don't know where should I attach the adapter/event handler in the approval process.
    Any suggestions will be helpful! Thanks!

    Hi,
    I you can attach the adapter to to approval task as you attach adapter to other process task.If you are writing task assignment adapter then you can also attach this adapter in assignment tab.
    Regards
    Nitesh

  • How to create button programmatically and assign trigger for it and add code

    is that possible ?
    How can I create item a button for example programmatically (at run time)
    and create trigger (when-button-pressed) programmatically and write a code
    in the trigger body as well programmatically.
    thankx

    Hello David
    I used the way list and go button which is more safer than creating buttons because
    you can populate the list on fly.
         | dropdown list     \/
              | go button |
    PROCEDURE populate_user_function_list IS
         rg_list_id RECORDGROUP;
         ret_code     NUMBER;
    BEGIN
         rg_list_id := FIND_GROUP('RG_LIST');
         IF NOT ID_NULL(rg_list_id) THEN
              DELETE_GROUP(rg_list_id);
         END IF;
         rg_list_id := CREATE_GROUP_FROM_QUERY('RG_LIST','SELECT FUNCTION_ID, FUNCTION_ID FROM SMS_ROLE_FUNCTION WHERE SMS_ROLE_FUNCTION.DB_ROLE ='||''''||:GLOBAL.USER_ROLE||''''||' ORDER BY SEQUENCE_NO');
         ret_code := POPULATE_GROUP(rg_list_id);
         --Populate record group.
              IF ret_code <> 0 THEN
              bell;
              MESSAGE('Record Group could not be populated');
              RAISE FORM_TRIGGER_FAILURE;
              END IF;
         POPULATE_LIST('DYNAMIC_BLK.USER_FUNCTION','RG_LIST');
         DELETE_GROUP(rg_list_id);
    END;
    --this is the button to go the user selection
    begin
         if :DYNAMIC_BLK.USER_FUNCTION is not null then
              --go to selected form
              call_form(:DYNAMIC_BLK.USER_FUNCTION,NO_HIDE,DO_REPLACE,NO_QUERY_ONLY,NO_SHARE_LIBRARY_DATA);     
         else
              bell;
              message('Please select a function');
         end if;
    end;

  • How to Create a DML AFTER trigger

    Hi Friends,
    I need a help from you.
    THe Scenario is We have Tables like parent and Child Table.
    Like we have Child Table as  Name AcademyContacts,In that we have Columns like 
    Guid(PK)Not Null,
    AcademyId(FK), Not Null,
    Name,Null
    WorkPhone,Null
    CellPhone,Null
    Email Id,Null
    Other.Null
    Since we have given Null to ''Workphone'',''Cellphone '', ''Email ID''.when inserting the data into these table 
    if the particular columns are empty while inserting also the data will get populate into the table.And
    I need is if these columns are ''Workphone'',''Cellphone'' , ''Email ID''  they cant insert the data into table.
    Like it must trigger like ''Please enter atleast one of these ''Workphone'',''Cellphone'' , ''Email ID'' columns.
    How to do this in triggers please suggests me friends !!!!
    I am waiting for your response !!!
    Arunraj Kumar

    Respecting all i would suggest it is not manager who decide which is right or wrong. Business should decide which is a good  solution. 
    Trigger also use for business validation and you can put this validation is Stored procedure also.
    Question is how are you inserting  data to parent table , whether your parent  and child table are in within same transaction or not . Other wise if you insert data to parent and while inserting to child table you throw this message it will not
    be consistent and   where you want to show this message . You have to consider all these scenarios.
    If you use Stored procedure you can return your message. Or It is advisable if you have a front end better handle this in front end.
    For your scenario if you want to go for trigger , for you , you need to implement Instead of DML trigger.
    Example :
    CREATE TRIGGER IO_Trig_INS_Child ON ChildTable
    INSTEAD OF INSERT
    AS
    BEGIN
    SET NOCOUNT ON;
    IF NOT EXISTS( SELECT * FROM Inserted I where I.Workphone IS NOT NULL OR I.Cellphone IS NOT NULL OR I.EmailID IS NOT NULL)
    THROW; -- Refer http://msdn.microsoft.com/en-IN/library/ee677615.aspx for detail use of throw
    END
    Create storedprocedure InsertSp
    AS
    Begin Try 
    Begin Tran 
    Insert into parenttable values ( <<your values>>)
    --If you want to handle in sp , here you can check the column value and throw error befor inserting to child
    Insert into child table values (<<>>) 
    Commit
    END Try 
    Begin Catch 
    THROW 'Your message'
    End Catch 
    Sandip Pani http://SQLCommitted.com

  • How to create request object manually?

    Can i edit a servlet request at the front controller level and disptach it to real url?
    I need the way(maybe a class) to edit the request parameters;
             request.getContextPath();
             request.getRequestURL();
             request.getPathInfo();
             request.getServletPath();i need the equvilance of these methods which are built to SET.
    is it possible?
    thank you

    1) Write a subclass of the HttpServletRequestWrapper
    class and overide your required methods.http://forum.java.sun.com/thread.jspa?threadID=682565&tstart=100
    I have used the wrapper in that forum but this is just for to set some Parameter to the request. But there is no method like setServletPath on the wrapper class? it is still missing and i need an HELP plz about how to override ServletPath on the request object.
    2)In the doFilter() method of your filter, call
    chain.doFilter() method giving your wrapped request
    object as an argument.I did it
      public void doFilter(ServletRequest req,ServletResponse res,FilterChain chain)throws IOException,ServletException {
           HttpServletRequest request = (HttpServletRequest) req;       
          HttpRequestWithModifiableParameters myReq= new HttpRequestWithModifiableParameters(request);
          request=(HttpServletRequest)myReq;
          HttpServletResponse response=(HttpServletResponse)res;
          chain.doFilter( request, response );
      }please help about just only how to override ServletPath on request object!!
    thank you

  • How to create request for generating XML

    Hi All,
    I am new to XML publisher and I am trying to generate reports from EBS using XML publisher.
    What I understood so far is that XML publisher requires a data set which is in XML format and a template to view the report (rtf, pdf etc).
    I was able to generate a XML publisher report from a Oracle Report concurrent request successfully. This is because the Oracele Report can generate output in XML format.
    However I am curious as to know how a sql statement can be gnerated to XML format. Basically I have a consurrent program which is a SQLPLUS program and I want to generate a XML publisher report from EBS for this. Now since the sqlplus program doesnot generate a XML ouput the XML publisher it is not useful.
    I dont want to use XML publisher as stand alone but want to use it through EBS.
    regards
    Deepak

    Use the Data Template to acomplish that.
    Read Chapter 9: Data Templates under Part 2 Implementation and Developer’s Guide of XML Publisher User's Guide.

  • How to create shortcut programmatically in the mobile from a website using MVC 4

    Hi
    We have created MVC 4 mobile web application, need to create shortcut from code in MVC 4 to mobile device. So that user need not to create shortcut himself/herself in mobile device.
    Thanks in advance.

    This forum is to discuss problems of C# development. Your question is not related to the topic of this forum.
    You'll need to post it in the dedicated ASP.Net Forum
    http://forums.asp.net for more efficient responses, where you can contact ASP.NET experts. Thanks for understanding.

Maybe you are looking for

  • Issues with Cisco Prime LMS 4.2.3

    Hi, I'm trailing Cisco Prime LMS 4.2.3 Soft appliance on ESXi before I deploy it into a live environment and am having some issues. I've upgraded to version 4.2.3 and the box was working fine after the upgrade however on power it up today the Apache

  • It's the final count down.

    When I think about the times I ever complained about AT&T's spotty service, it makes me want to go back in time and tell 2012 me that Anna Kenrick is going to sing a song and the line "you're gonna miss me when I'm gone" is going to haunt me as I rem

  • How to extract data from a resultset returned by SQLX query

    Hi all, I'm doing a project in which I use SQLX query to extract data and format it into xml from an object-relational database, and return it to a windows application. But when the resultset is returned, I don't know how to extract and display the d

  • How to pass array in the url of the servlet

    Hi Friends, How can i pass an array in the URL that calls a servlet. For instance,I have this in my servlet rite now:         MyClass obj = new MyClass();         String[] args = {"-opt1","-opt2","file1","file2","file3"};         obj.main(args);I wan

  • Short dump while calling RFC

    Hi people, I have developed a function module in R/3 system and wants to access it in BW system. While checking syntax, it do not give any error. But when I try to execute the function module in BW, I get short dump saying please check the name of th