Hi Preveen,
You can use business object type to differentiate confirmation or service order, in btdocflow itself we have a field to business object "OBJTYP_A" refers to parent business object "OBJTYPE_B" holds current object type.
You can check BUS2000116 incase of service order and BUS2000117 incase of confirmation for the objtype field.
Best Regards,
Dharmakasi.