Hi,
for both sales order and purchase order the message type and idoc type is same. then how you can identify which type of order you are sending.
Thanks.