Skip to Content

BCM workflow auto approval

hi,

There is a requriement in a certain scenario the second level approval should be auto-approved, it should not go to any user for approval

I am trying to do it so that i create activity step and programatically carry out the approval procedure.

There are two approaches - calling tcode bnk_app and approving the payment OR execute the workitem and release the payment

but I am not able to acheive it. I need to do exactly same proceeding progammatically what a user would do in dialog while approving at second level.

kindly help me with some BADI or any std program or any method to execute the BUSISB001-RELEASE in background

thanks

bhakti

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 01, 2012 at 01:29 PM

    Hi,

    -->> "I need to do exactly same proceeding progammatically what a user would do in dialog while approving at second level."

    This means you are not interested in skipping the approval (i mean not sending workitem) but need to do auto approval in workflow. Is this correct?

    and I think you are able to identify, if the approval is second level or not in the workflow.

    Declare a workflow container (of type char1) and populate it with value 'X' only for second level approval. In approval workitem step, Condition tab -> Complete Workflow, give this workflow container with condition as 'X'. So only for second level approval, this condition satisfies and workitem will get completed automatically.

    ->> "kindly help me with some BADI or any std program or any method to execute the BUSISB001-RELEASE in background"

    Why this Release method need to be executed after second level approval?. Normally after all agents approves, then finally we will release the document. Can you give more details on this?

    We can have this Release method as one of the step in workflow

    Vinoth

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 01, 2012 at 04:37 PM

    Hello Bhakthi !

    The RELEASE method in BUSISB001 is dialog method which cannot be completed in background.

    I suggest you to assign the first approver to the task that uses the above method.

    Also, can you share why second level approval should be auto-approval ?

    Regards,

    S.Suresh

    Add a comment
    10|10000 characters needed characters exceeded

    • hi Suresh,

      (thanks for the response , sorry for delay in reply)

      This is exactly the point I am trying to address......
      RELEASE method is a dialog method and I am trying to process it in background bcoz I need to 'simulate' the approval


      it is not supposed to go to any agent for approval but it is necessary for the step to take place in the workflow

      If I assign the first approver to the task of second approver then the same person will get the approval workitem two times which is not desirable

      the situation is as follows. for the same batch rule if a certain special approver does the first level approval then second level approval should not be routed to any person

      and if the first level approval is done by any person , other than the above list of special approvers then the second level approval should take place normally as per the rule configuration

      so inside the workflow ,at the time of second level approval, i check who did the first level and if its anyone from the set of special approvers (maintained in the ztable) i need to carry out the 'auto-approval'

      So I am trying below approaches :

      1) create a z tcode and call this method and then write BDC

      2) copy the entire code whatever is executed upon the user action of 'release' and write a background method.

      Please help me, if this approach is wrong or there is any other better way.


      @Vinoth : if i put a completion step then it superficialy completes the second approval step and sets the workflow to complete. the actual process is not carried out so i cannot employ this method.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.