Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 1065

Re: GetByKey() Method use- retrieve recently created production order

$
0
0

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


Viewing all articles
Browse latest Browse all 1065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>