Hi Mahesh,
I have follow bellow steps to release order after creation of order.
1. Create Prd Order Using
call function 'BAPI_PRODORD_CREATE'
* After Creating Order Component Should be initial.
if it_component is initial.
2. Release Order
call function 'BAPI_PRODORD_RELEASE'
3. Add Component
Using BDC
4. Do Consumption.
call function 'BAPI_GOODSMVT_CREATE'
endif.