Complete Form approval step programatically

Hi,
     I have a Form approval step and is sent to set of agents (through org unit id assignment on step). I have a requirement to programatically (by calling FMs may be) either approve or reject this form and complete the form from agents inbox.
I tried using following FMs but in vain
SAP_WAPI_WORKITEM_COMPLETE - It does complete the WI but does not send the result (approve / reject back to workflow)
SAP_WAPI_SET_WORKITEM_COMPLETD - Not of use for this requirement
SAP_WAPI_DECISION_COMPLETE - Used to complete dialod step and not Form step.
Thanks in advance.
-- Amit

Can you clear us what kind of workitem it is  I mean is it a decision workitem? or a workitem which needs a user interaction? e.t.c if it is a decision workitem and after completing the decision step programatically, if at all you want to continue to the next step of teh workflow then you have to sue the FM SAP_WAPI_DECISION_COMPLETE  in the importing parameter DECISION_KEY you have to sepcify the value, 0001 for Approve 0002 for Reject 0003 for Review.
Ooops sorry to ask you again what type of step it is , you mentioned it in the question , but when it is a form step with APPROVE or REJECT then the FM SAP_WAPI_DECISION_COMPELTE works

Similar Messages

  • FICO-Invoice Parking and approval; Unable to complete some Config steps

    FICO-Invoice Parking and approval; Unable to complete some Config steps
    I am using standard WF: WS10000051 (SAP template) in Accounts payable to get triggered for Invoice Parking-Approval and Posting.
    One of the steps mentioned at help.sap.com is below;
    1. Data for Event Linkage
    Object type     FIPP
    Event     CREATED
    Receiver type     WS10000051
    Receiver module     SWW_WI_CREATE_VIA_EVENT
    2. Check Function
    Receiver type (function module)     
    Global     X
    Enabled     X
    I could get to 1. Data for Event Linkage which is T Code SWETYPV but could not find 2. Check Function.
    Where do I set the parameters for :  2. Check Function in SAP
    The help file link is
    http://help.sap.com/saphelp_erp2005/helpdata/en/01/a9ceb5455711d182b40000e829fbfe/content.htm
    Regards
    Nilabh

    You dont need to assign the Check function module.
    Check function module is used to prevent the workflow from triggering if the checks written in the function fail.
    For eg. check if the invoice amount is GT 500. If yes trigger workflow else dont.
    -Kiran

  • How to restart a curent approval step rather complete wfl with a event

    Hi,
    I want to restart the current approval step BUt this should happen dynamically.
    so i have created an event Restart in the business object. I need to restart the step whether the approver has rejeced so rather starting the entire workflow again,
    Can I use the event - Restart Current step which I have created in the BO or do i need to handle it differently...
    Kindly suggest me soon as I need to complette this today
    Thanks,
    shanky
    Edited by: shanky s on Nov 10, 2010 8:02 AM

    Hi,
    Gautam
    Here the scenario is a resignation workflow.
    The moment the employee raises a request for resignation, it go es for approvals at various levels.
    For supporse it has been approved by 3 approvers, it has to get approved by the 4 the approver, The 4 th approver rejects the employee. Here in normal case the workflow starts from the 1st level and again it goes for approval..sequentialy
    But in my case the workflow should start from the place where it got rejected initially....not from the 1st level but shuld start from the rejected level.
    So at this place, I want to restart the level where it was rejected earlier not from all the levels.
    Thanks,
    Shanky

  • How do I save a completed form?

    My job requires that I complete forms, applications, data sheets, etc. and return the completed form to the vendor.  Since an upgrade to Adobe Acrobat X Pro, I can't figure out how to SAVE THE COMPLETED FORM.  Once I fill everything in, I need to know how to save the information so it can't be changed.  How do I do this?  Thank you for any answers!

    To save the form and prevent changes to the form fields you can either flatten the fields, apply standard password security, or digitally sign the document (certification or approval signature). Some of these may not be possible depending on how the forms are currently set up. It's hard to say which would be best without knowing more about the forms and how they will be used throughout the intended workflow.

  • Form Participant Step.

    Hi All, Back again with my qns to experts.
    My qn is related to Form Participant workflow. I wanted to work with Form Participant as I think it gives me a flexiblity to work with java script as against with dialog participant step.
    What I did:
    1. I create a page with some text fields.
    2. Created a workflow model with choosing this page as a part of form participant Step.
    3. Kicked off a workflow
    4. Came to my workflow inbox.
    5. Right click on my action item in the inbox and choose complete.
    6. Here I was expecting to have some sort of an interaction with my form/page that I have associated my participant workflow step with. But I dont see my form but just an out of the box dialog with next step and comment.
    So,
    1. Is it the right approch?
    2. Choosing a 'page' as part of my step is right one or should I be creating my form differently?
    3. Or my interaction with the page would be some where else and not from the inbox.
    Any suggestions here would help.
    Thanks and Regards
    Rama.

    Hi Evangelos
    The QPAC is now ready for beta testing.
    I'll send you the QPAC by separate email.
    There is no documentation yet, but hopefully the user interface makes it fairly easy to work out.
    One point: the QPAC picks a file off the file system, NOT out of a process variable. The file must be accessible from the Workflow server machine, not the user's machine.
    Please let us know if you encounter any problems, or if you need any enhancements.
    Also, please note that in order for this QPAC to work, it has to introduce a "dummy" task into the task history within Form Manager. We're hoping to come up with a more elegant way of solving this at some point, but this will require a lot more code, and I wanted to give you something that works. Hopefully this is just a minor inconvenience.
    Regards,
    Howard

  • Assign step after Approve step can't execute automatically

    I have a Assign step after Approve step in my workflow. After Approve step is completed. Assign step always shown as Error status in the workflow owner's queue. The workflow owner has to manually Perform this Assign step and send to next step.
    Is there way to let Assign step execute automatically after Approve step is completed?

    Thanks for the posting. I am using MDM 5.5 SP4, maybe that is the reason. Assignment works fine if I manually perform it during the workflow. But it can't execute automatically as part of the workflow. it needs manual execution. Do you think this will be resolved if I upgrade to SP5? Is SP5 already available now?

  • Approve step in workflow

    Hi Folks,
    Can someone explain how the Approve step is used in case a record is not approved ?
    example.
    Start->Process->Approve -> syndicate
                            -> reject-> send notification.
    -Vinay

    Hi Vinay,
    The MDM workflow step is used for providing an Approval on the already craeted/Enriched records in MDM.The approver in MDM is allowed to approve or disapprove the records.
    The disapproved records go back to the previous step and teh process step team ahs to correct teh records and send it again for approval.
    The workflow steps will be as follows
    Start->Process->Approve->Notify ->Stop
    The notify step can be used ater nay atep if you want to users of the workflow to be notified of the staus of the completed task and the stataus of teh task to be completed.
    You can folow some of these helpful links on how to use MDM wf effectively
    Workflow:Disapproved records
    Re: How to use the Validate step for Approve step
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/60f28084-b90e-2b10-3eb6-d6565367048a
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/001d22fb-622d-2b10-22ac-998acecf68a8
    Hope It Helped,
    Thanks & Regards
    Simona Pinto

  • Approval step without ad-hoc capability. No preview possible

    In both SC and PO WF, the approval preview shows the text  :" Approval step without ad-hoc capability. No preview possible"
    Can you tell me what could be the problem ? .I can approvers determining correctly from the badi . In the preview I can see approvers correctly . this message still shows after approving shopping cart completely also.
    Thanks in Advance .

    Hello Latha,
       This error will not come until you add Ad-hoc approver at last level..for an example.. there are 5 approvers determined by Badi.. You will get this issue when you add Ad-hoc approver after 5th Level of approver then all approver(Including Ad-approver) approved the SC / PO. Here is the solution for this issue.
    write the code in your Badi after you appended the approval_table.
        data : lv_index type i.
        describe table approval_table lines lv_index.
         if actual_approval_index gt lv_index.
         no_further_approval_needed = 'X'.
         endif.
    please let me know if you need anything help.
    John.

  • Approver step after provisioning

    Hello all,
    Is it possible to make in CUP additional approver step after provisioning new user (via CUA)?
    The goal is to have a manual step in SAP HR to assign structural authorization based on request comments after new user is created in HR system with approved roles. HR employee should do this step and close a CUP request only after that.
    Thanks,
    Anton.

    Hi,
    As Alpesh mentioned it is not possible in CUP/AE.
    Once the CUP workflow completed all the stages approvals, the userid is created in target systems and an email will be sent out to the corresponding user (if auto-user provisioning enabled in CUP configuration)(notifications to other people too depending on the CUP configuration).
    You could try forwarding the successful userid creation email notification to HRgroup email id, HR will assign structural profile and then forward the email to the corresponding user. ( I never tried this scenario - just a thought).
    Thanks
    Himadama

  • Integration with Lotus Notes 8.5 - Room Reservation System to Add Approval Steps

    I have implemented several LiveCycle Forms with Some Workflow all
    based on XML and .NET. All working fine.
    Now, I have a new project (yet to be approved) which is to add
    Workflow and Approval Steps for Lotus Notes Room Reservation System.
    The current system on Lotus Notes, is out-of-the-box from Lotus, and
    it is working very well, and it has great repeat option to setup the
    required schedule to make the needed room reservation system.
    The user now requested to add some new features like add 2 more
    approval steps, and some new fields.
    I can modify the application in Lotus Notes, but this will creat a new
    problem. If there is new version coming for this system from Lotus
    Notes, then I will have to sync the modifications I did, and it will
    be a problem.
    I have put some screen shots to help understand what we are talking
    about:
    https://docs.google.com/leaf?id=0B97clwYte2SHYmUyZTRiZDEtZWRjZS00YmQ3LTg1MDUtM2MxNmYyYTIzM 2Ix&hl=en
    I have developed several programs in the past, I was able to connect
    to Lotus Notes Database from .NET.
    My plan is to develop the new Form in Adobe LC Desinger, with all the
    new required features, and connect to what ever existing functions/
    data to Lotus Notes (in both directions).
    The only thing I need help for is how to capture the Repeating
    Calendar Entry. I think this will take some effort. Becuase, once I
    capture all input parameters, I have to call a Web Service (in .NET)
    to get a list of Free Rooms to choose from.
    Here are my questions:
    1. Do you have any feedback on the above ?
    2. Any one has done any work to capture a repeating calendar entry in
    a PDF Form ?

    Hi Anil
    For Lotus notes integration with SAP solutions, pl check the following links:
    http://www.redbooks.ibm.com/redpieces/pdfs/redp4215.pdf
    http://www-306.ibm.com/software/info/ecatalog/en_US/products/Z262246B25186K14.html
    Best regards
    Ramki

  • Work Order Less Completion Form-Help

    Hello Guys i have a question on WIP- Work Order Less Completion Form.
    In the form when we enter the assemebly item and go to Components-->Lot/Serial, In Lot entry form there is a field called Lot number which has LOV and also allows user to enter his own Value what he needs.
    My question is is there any controls in Oracle where we can prevent user from entering his value in the LOt number field,instead he has to select it from LOV only.
    Please help me on this.
    Thanks

    Hi,
    Please see if these documents help.
    Note: 112055.1 - Lot/Serial Control Setups
    Note: 338189.1 - When Receiving an RMA, Lot Number LOV Shows All Lots
    Regards,
    Hussein

  • How to provide transition comment while completing a process step

    Out of the box, we can indicate transition comment for participant steps when completing a inbox item, which is then displayed as a subheading of a inbox item for next step - which is really helpful.
    but, how can i provide a transition comment, when completing a process step.
    I see the complete method, but dont see where i can provide transition comment.
    complete(WorkItem item, Route route)
    Environment CQ 5.5

    Its workitem metadata which holds the comments info. Can you try this if it works
    workitem.getWorkflowData().getMetaData(); which will return the dictionary object and set "comment" in this object.

  • I have an iPad 1.  I filled out a PDF questionaire in adobe reader. When I send it to Dropbox, iBooks,mercury browser the form shows up without the answers .  My objective is to email the completed form. Please advise as to how to do thisThanks. Big Jake

    I have an iPad 1.  I filled out a PDF questionaire in adobe reader. When I send it to Dropbox, iBooks,mercury browser the form shows up without the answers .  My objective is to email the completed form. Please advise as to how to do thisThanks.
    Big Jake

    If the PDF is a form fillable PDF, which I assume that it is, email it to yourself or send it to DropBox and open it on your computer. You should see the fields filled in there. It works for me if I do it that way.
    Adobe Reader supports it, but the other apps don't. I assume that if you email the PDF to a computer user it would be readable in Adode Reader.

  • Submit button on Android doesn't submit completed form via e-mail

    We've created a form in Adobe Acrobat Pro with a submit button using the "mailto:" command.  When we are in the android app and click the button, the e-mail script works fine, but it doesn't send the actual file, just a blank e-mail.  Any advice?  I've seen some older posts saying java scripts aren't supported, but they were older posts.  Has this been addressed or is there a workaround to submit the completed forms via e-mail (with an added service or expense)? 

    When you write this
    > but it doesn't send the actual file, just a blank e-mail
    do you mean that it sends an email with a blank form attached? 
    If this is the case, this is currently as-designed, since your button has two actions: one that submits the form and one that resets the form.  Because emailing on an Android device is asynchronous, by the time the email is constructed by the mail app of choice, the reset form action has already executed and as a result, you end up sending a blank form.
    I will look into the Android mail APIs to find out if we can make the behavior synchronous, that is, the reset form action will not execute until AFTER the submit form action has fully completed.  In the meantime, you can work around this by separating the submit & reset button into two separate buttons: one that submits, and one that resets.  Users will tap the submit button to submit and then have to tap the reset button after submit completes to reset the form.
    Hope this helps,
    Darrell

  • Adding system and client specific TMS approval steps

    Hello,
    In defining QA approval steps, how to define a step which is not system and client wide?
    When adding a new step, it is automaticaly defined with * in the client and system fields, and when changing the steps, these fields are not editable. However, there are several approval steps for which a specific system and client are entered, but this was done by a consultant, who was here some years ago.
    Does anyone know how to do this?
    Thanks in advance,
    A

    Hi Aleksandra,
    Did you ever find a solution to this issue.  I too have multiple QA systems in our landscape (4 system landscape), and yet I can not defined system/client specific approval procedures in STMS.
    The system and client options don't even appear when I go into change mode, yet table TMSQASTEPS has the options available.  Direct table update works fine, but it would be nice to know the "SAP standard" way of doing this.
    Cheers
    Shaun

Maybe you are looking for

  • Changing page template

    I have a page that was built with a template, but I decided to create sub-templates for sub-pages and now I would like that page to connect with a sub-template page.  It simply just changes the background image.  Is there a simple way of doing this?

  • Reducing maintenance time.

    Hey all, My colleagues and I have been experiencing more and more requests for BI publisher reports along with the standard apex reports. This way the user has something nice to present to upper management or someone outside of the company. Both of t

  • Trouble connecting to external server with 10.9.2

    So despite all my complaints about Mavericks 10.9 and 10.9.1, I was at least able to mount my GoDaddy server on the disk. Although whenever I restarted the computer, I had to run the mounting program/script again. But now, with 10.9.2 it has stopped

  • Wireless Skype IP camera

    Hello hardware community, I hope this is not construed too much as advertising but wanted to share since this is relevant to Skype Hardware. My team and I have been working on an IP camera that uses Skype. We received 'plugged into Skype' certificati

  • PR relealse not picking

    Dear All I have created PR release (item level) with following details 1) Releale class RClass 2) Characteristics: Doc type (CEBAN-BSART); Plant (CEBAN-WERKS); Acc Assignment (CEBAN-KNTTP); Total value of PR item (CEBAN-GSWRT) 3) Strategy: assigned w