Thanks guys
It was rectified through abaper.
This A and D combination works well with all other purchasing document types but it created error in only one document type in which this service purchase order was made.
so i checked with the abaper and got it done.