cancel
Showing results for 
Search instead for 
Did you mean: 

BCM workflow auto approval

bhakti2
Active Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

suresh_subramanian2
Active Contributor
0 Kudos

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

bhakti2
Active Participant
0 Kudos

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.

former_member183917
Active Contributor
0 Kudos

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