I developed one work flow for leave request. Everything is fine for one approver.
Like the request is initiated by the user and send it to the approver. The approver, approves the request and the status is changed to Approved and the background program posts the request. So its fine for a single approver.
Now I have one more scenario, in this case there is no approver is required. The leave request should directly post with out any approval. Here Im getting issue's. The document status is send. If it is approved only, the background program will post this request.
So I need to change the status from 'Send' to 'Approved'. I checked the FM PT_ARQ_REQUEST_EXECUTE . In this FM parameter IM_COMMAND, If i give input as 'EXECUTE_SEND' then it will change the status from 'Approved' to 'Send'. But I need the reverse of this.
What should i pass to this parameter to change the status of the document from 'Send' to 'Approve'.
Please any one help me on this.
Helps will be highly Appreciated.