Hello Sonam,
Though i am not much of a expert in this area, But i would suggest with the help of Technical Consultant, could you check the program -- IDOC_OUTPUT_ORDERS or IDOC_OUTPUT_ORDCHG function module so that the specific areas related to "substituted items, quantity and price variations" can be traced out ?
Thanks,
Sarthak