We have a transaction which creates delivery for certain type of purchase orders. I wrote a piece of code in a BADI to move some data from Purchase Order to Delivery. An IDoc is getting created once delivery is created. One segment is missing from IDoc if the code written for this enhancment is activated. IDoc is not giving any problem if this code is commented. Can anyone tell me why this problem is coming up? Need your help as this is a serious issue.
Any help will be deeply appreciated.