Hi Nishant Gupta,
Please follow as said by Aram.
consider using program /POSDW/CHANGE_TASKSTATUS
and program /POSDW/PIPEDISPATCHER,
If you want to automate in simple way, use process chains in BI and add in subsequent steps with relevant Variant.
Thanks and Regards,
Ramesh D