Hi Sujit,
As far as i can understand, you are not recieving any data. This happens because you have probably a database transaction wich means the data are not commited to the database, so its impossible to retrieve them.
But you can a SQL Query to retrieve the info that you want.
string DocEntry;
di.GetNewObjectCode(out DocEntry);
SELECT H.DocEntry ,
H.DocNum ,
H.OriginNum
FROM dbo.OWOR H
INNER JOIN WOR1 L ON H.DocEntry = L.DocEntry
WHERE 1 = 1
AND H.DocEntry =DocEntry
Select the column that you want and i think that you will be fine.
Good Luck
Evanggelos D. Plagianos