Using AME in Workflow

Gurus,
I am exhausted trying to find a solution to my problem but with no luck, hope I get some answers here.
I want to use AME in my custom workflow. How do I go about it? I am finding articles which says use ame_api2.getnextapprovers.... but which transactionId to pass to it? Do I need to mention about the transaction type in my Form function of my OAF page call? Totally confused!!
Could anyone be kind enough to list down the steps required to implement AME in workflow?
Thanks in advance,
Rakshith

I have the same issue when we rewind the workflow we get the same block and can not move forward if you have a solution please share as it would be very helpful to me.
Thanks,

Similar Messages

  • How can i use AME for the new OAF page.

    Dear all,
    I have developed a new OAF page and registered under Employee Self Service.
    How can i use AME for the approval process.
    Appreciate your ideas?
    zamora

    I will try to answer based on my experience of working with iProcurement and AME. It depends on how you want to make a call to AME , directly from OAF Page or from Workflow and your requirement. You didn't specify what you want to show the users on OAF Page and your business requirement.
    Before calling AME Engine from the OAF page or workflow, I guess you did already setup AME Transaction Type and it's Approval Groups, Conditions, Action Types and Rules. Do some testing from AME Business Analyst Test Workbench. Please note that, AME provides lot of PL/SQL API's that you have to call from your programs (java or workflow pl/sql)
    Let's look at the workflow and putting an OAF Page as notification.
    As Sameer said, you have kick-off workflow process from PR of CO and with in the workflow function, you make a call to AME Engine API's with the AME Transaction ID. This transactionId belongs to the AME Transsaction Type that you setup. Based on the rules setup, AME Engine generates list of approvers/approver and stores them AME Tables for that transactionId. Then, it sends a notification to the approver.
    In the workflow, where that notification is defined, in the message body you have to put an attribute(&XX_WF_FWK_RN) of type document/send. And this attribute will have the constant JSP:/OA_HTML/OA.jsp?OAFunc=XX_FUNC&paramId=-&DOCUMENT_ID-. This function is SSWA Jsp function that makes a web html call to your OAF Region.
    If your requirement is to just show the list of approvers on the OAF Page, you may have to call AME API diectly passing your AME TrasnactionId with other parameters. Then AME generates list of approvers and stores them in AME tables with each approver status. You can pickup those approvers using VO and show them on OAF Page.
    Hope this gives some idea.

  • FYI Notification using AME

    Hi all,
    My requirement is to send FYI notification to list of approvers. I want to do it using AME rather than Workflow.Please tell me how to achieve this.
    Thanks
    Pradeep

    Hi;
    I solved it :)Nice to hear issue has been solved ;)
    1. If possible, Please share solution for future similar issue
    2. Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding
    Regard
    Helios

  • HOw to create TRANSACTION in order to use AME api

    Hello,
    we are creating a custom workflow process which should use AME functinoality.
    I need to create Transaction to get Transaction ID.
    The API
    hr_transaction_web.start_transaction()
    is private.
    Please help

    Hello,
    we are creating a custom workflow process which should use AME functinoality.
    I need to create Transaction to get Transaction ID.
    The API
    hr_transaction_web.start_transaction()
    is private.
    Please help

  • AME Invoice workflow - When invoice moves from Approval Require to Not Req

    Hello,
    I have a small Issue with AP Prepayment invoice Workflow.Version: 12.1.1
    Issue Des:AME has been configured specifically for Prepayment invoices. however, when Initiate Workflow is clicked, the Approval status changes from Required to Not Required (instead of Initiated).
    AME Setup:
    1.IF supplier amount > O get approval from approval-grp.
    Steps:
    1.Create a invoice with amount 1000 and distributions with 1000 amount.
    2.Validate Invoice
    3.Intiate Approval using actions "Intaiate Approval" the Approval status changes from Required to Not Required (instead of Initiated).
    4.Invoice shows status 'Not Required'
    5. first time the customer was using AME Rule for Prepayment invoice type with approver type as HR People and In the employee form, the supervisor relationship was not defined.
    Any idea on why this is not working will be of great help!
    Regards,
    Venkat

    HI Venkat,
    Check the AME rules, Is the Priority filed have any values set or not.
    The Priority must be set to 1 and try again.
    Regards,
    Sunil

  • Escalation using AME

    Hi,
    We have a requirement to customise approval process for SSHR notifications through AME. We are on R12 (version12.1.3).
    The requirement is to send the approval notification to the approver (derived from AME based on Supervisor hierarchy) and if this is not actioned within 3 days, a similar notification (with additional message) needs to be sent to the supervisor of the approver and so on till the last approver of the list is reached. Im aware that the same notification can be sent to the supervisor of the approver using timeout functionality of Workflow but how do I modify the notification in between?
    Any inputs are appreciated.
    Thanks,
    Rachana

    Hi,
    We have realised that this requirement cannot be achieved through AME so we have decided to use workflow customization and derive the approvers through PL/SQL code.
    As the seeded workflow uses AME by default and when i turn off the AME routing, the process goes to completion without any approvals. The process I'm trying to customize is 'Change Pay' which has many sub-processes and I'm not sure where to put in my custom code. Any inputs on this is highly appreciated.
    Thanks,
    Rachana

  • How to use SAP Business Workflow along with Interactive Adobe Form

    Hi Experts,
    I am working on SAP Business Workflow since last couple of years.
    Now i have got a new Project where client wants to use SAP Business Workflow along with Interactive Adobe Form.
    I am new to Interactive Adobe Form and Portal thing and i really dont know from where to start.
    We have one central system and 2 local systems. when we do create a Material document using adobe form workflow should trigger and notification should go to group of users who can approve or reject it, once they approve it document gets created in central system and replicated to 2 local system through ALE.
    In the Local system they do extend the document to different plants, again workflow triggers and notification will go to Managers inbox for the approval.
    Once the final approval done data should go and store in SAP.
    Now here i have couple of Questions.
    1. In SAP R3 Business workflow when i execute the workitem from the inbox i do get the application screen ( i.e. MM01 MRP View ) , what is going to happen if the same case i have with Adobe form?? is it possible or do we have to design a adobe form and we will have to map the fields with backend application??
    2. Do i have to maintained 3 separate Org Structure for 3 different system or using UWL  i can manage the show
    3. Untill final submit is not done, where the application data is going to be, is there any kind of buffer that we will have to keep it or its there with XML file??
    Please help me out.
    Thanks in Advance.
    Regards,
    Manoj

    Hi Manoj,
    Welcome to ADOBE Forms related Workflow Development. Well, here are my answers.
    1) You can go for either go for ISR based development or WD development with Adobe form. In both the cases you can achieve your requirement. Yes, you will have to design the Adobe form and bind the fields to backend.
    2) Am not clear or your System landscape to advice you in these regards.
    3) Until final Submit/Approval is done, the data can be stored in WORKFLOW CONTAINERS or XML FORM(If you go for ISR based Development).
    Hope this helps.
    Regards
    <i><b>Raja Sekhar</b></i>

  • HOW TO CREATE  and  USE EVENTS IN WORKFLOWS .

    HOW TO CREATE  and  USE EVENTS IN WORKFLOWS with the help of classes.
    What i am doing is..
    open se24
    event tab->event name->parameters
    method tab->method name->event handler->copy parameters
    interface tab->if_workflow->enter
    tell me what else to do step by step
    Another important thing is that HOW to use these class events to trigger the workflows.
    REPLY ASAP
    THXS IN ADVANCE

    Hi,
    Pl. see this blog...
    Raising ABAP OO events for workflow
    Regards,
    JOy.

  • Create Multiple tasks for Single Item in List using state machine workflow in sharepoint

    Hi,
    I want to create multiple create tasks for Single Item in List based on Assigned to column using state machine Workflow through visual studio
    Here Assigned to column allows multiple users. so i have to create task for every user based on column .
    I'm trying for this but i didn't got any solution
    Please provide solution for this.

    Hi,
    According to your post, my understanding is that you wanted to allow multiple users to approve.
    There are some articles about creating parallel tasks in state machine workflow, you can have a look at them.
    http://www.codeproject.com/Articles/477849/Create-Parallel-Task-in-State-Machine-Workflow-in
    http://msdn.microsoft.com/en-us/library/office/hh128697(v=office.14).aspx
    http://social.technet.microsoft.com/Forums/office/en-US/b16ee858-4360-479a-a686-4ee35b7be9db/sharepoint-2010-workflow-creating-multiple-tasks?forum=sharepointdevelopmentprevious
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • Upload a value in read-only field using Webservices or Workflow

    Can you please let me know if is feasible to upload a value into a read-only field using webservices or workflow
    If so, can you please provide an example?
    Thanks

    Using WS, you cant update the field value, if it is set as "Read-Only" @ the object - Field definition level, but you can update that using WS if it is set as "Read-Only" @ the layout level. Same applicable to Workflows too
    -- Venky CRMIT

  • How to park an FI document using BDC in Workflow

    Hi,
    I want to park FI document using some background process.
    Can i use BDC in my WF for this purpose.
    If yes, kindly guide me through this.
    Regrds

    Hi,
    Thanks for your reply.
    I need to park an FI accounting journal document rather than an AP (invoice) document.
    if we can use BDC in workflow,Can you pleas let me know the process ?
    Regards

  • How to use AME to define Compensation Workbench Manager Hierarchy?

    Hi,
    I have set up the CWB to allow HR managers to allocate all the compensation using AME Hierarchy in R12. However, after running the CWB Participant Process using the manager login, there is no employee attached to this manager.
    For e.g. a company has 2 compensation managers that determine all the compensation within the company including himself and upper level manager.
    My question:
    How to setup the CWB to use AME hierarchy to allow the 2 compensation managers to view all the employee in the worksheet?
    Regards,
    ShiauChin

    Even i am facing the same issue.
    if i use supervisor hierarchy for the plan. the worksheet is listing the plan and people.
    If i use AME transaction, plan is not attaching to the worksheet. I am working with Oracle SR to find the issue.
    If you find any solution for this problem please share at [email protected]
    thanks in advance
    Srinivas B

  • AME APEXP Workflow Issue

    Hi All,
    In R12 I have issue in APEXP (Expenses) Workflow.
    User has created expense report and the workflow has started.
    It went through AME process where it has find the approver for the expense and then notification went to the approver.
    After this we have a block acitivity which waits untill the approver apporves or rejects.
    The problem here is though the approver says that he is approved the expense sheet , the work flow status is not moving beynod the block activity in the AME process.
    AME Workflow (12345-1) shows the process is complete, the notification to the first approver is closed with an Activity of ‘Approve’.
    The main workflow (12345) is blocked and waiting for the response back from the AME workflow. It appears the spawned workflow is not updating the main workflow when it completes.
    Please guide me on this how to resolve.
    Thanks
    Kumar.

    Hi Kumar/All
    I am facing the exactluy similar issue in R12 APEXP workflow.
    In my case also approver has approved the workflow but it got stuck at block activity in the main workflow.
    I tried to debug the issue and found that in the AME approval workflow ,a function AME Complete Approval is called after the approver has taken the action(reject or approve).
    this function in turn calls the wf_engine.completeactivity API......the output of this API should act as the response to main workflow(block) and it should start moving but its not happening.
    Declare
    result           varchar2(1);
    begin
    WF_ENGINE.CompleteActivity(itemtype => 'APEXP',itemkey => XITMKEYW ,activity => 'AME_APPROVAL_BLOCK',result => Null);
    DBMS_OUTPUT.PUT_LINE('result is : '||result);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.PUT_LINE('Error message : '||SQLERRM);
    end;
    I tried to run the complete activity from outside also and to my suprise i could see time stamp getting changed for the block but it still didnt proceed.
    i think this may be an oracle bug with R12. Please guide.
    Regards
    Gopal

  • Using loop in workflows

    Hi All,
             Can any one help me how to use loop in workflow.
    Initially i will send workitem to agents.
    if the loop condition fails i need to send the workitem again to the agents.
    Thank you,
    Harsha

    Hi,
    Just try it. Open the workflow builder, create a new workflow and enter a loop into it. It is really straightforward. You just need to enter the condition into the loop. Basically you need to check some value in the container. Let's say you have a container element APPROVED. If it has value X, the loop will end, etc.
    Regards,
    Karri

  • Using AME for Purchase Requisition Apporval transaction type

    Hi ,
    Product : EBS --11.5.10.2 AME B rollup 2 .
    We wanted to introduce approvers based on requisition line total and a dff value on requisition line.
    For that we created a line level attribute to calculate the requisition line amount Then created a test condition saying if req line total is > 1500 Introduce and approval group.
    When creating a rule It says create a rule at header level So went into Approvals Management Administrator resp and changed the Configuration Variables allowAllItemClassRuleswhether AME allows to create subordinate item class rules-- Yes at transaction type Purchase requisition Approval . This allowed be to create the rule for the line level Tested real transaction on test workbench --This works fine
    When tested this using the actual requisition --It gives and error "You do not have the authority to approve this requisition and an Approval List was not created automatically. Please contact your system administrator."
    Error message in the log shows :
    EXCEPTION:[icx.por.approval.server.ApprovalListAMImpl]:Fatal OAException:java.sql.SQLException: ORA-20001: The input ame_util.approverRecord2 does not belong to the header item class, as ame_api requires.
    ORA-06512: at "APPS.POR_AME_APPROVAL_LIST", line 485
    ORA-06512: at line 1
    Is it the correct way to define rules ?
    Is it possible to create a Header level attribute to calculate the line total or check for req total and add an approver looking at the line level req totals ?
    Please suggest if any body implemented Line level approval for requisition using AME ?
    If this is not the correct forum please inform which forum should i post the thread.
    -Regards,
    Chandra

    Hi,
    Please review the following documents and see if it helps.
    Note: 333270.1 - APINV: Line Item Class Rules Error in AP with ORA-20001: The input ame_util.approverRecord2 does not belong to the header item class, as ame_api. No Errors In AME Test Tab
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=333270.1
    Note: 393099.1 - Ora-20001 Error When Testing In Ame Test Tab
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=393099.1
    Regards,
    Hussein

Maybe you are looking for