all groups > sql server programming > october 2004 >
You're in the

sql server programming

group:

Need assistance with Stored Procedure



Need assistance with Stored Procedure Sam Commar
10/31/2004 8:32:01 PM
sql server programming: I have a Table ARTRAN where is getting populated when a AR debit memo is
created. ( Assume Batch 0001) The fields that i am trying to work with are
tran date and tran id which are created and captured.

Then a credit memo is created which again has a tran date and a tran id.
(Assume Batch 0002 is created)

After that a batch is created where the Debit memo is matched with the
Credit Memo. (Assume Batch 0003). This is in a different screen.

What I am trying to do is capture on a Crystal report the Batch 0003 with
the tran id's and tran date's of the Batch 0001 and Batch 0002. I though
that a simple thing that I can do is create a stored procedure which
populates the tranid and tran date of batches 0001 and 0002 in Batch 0003.

Could someone please assist with this.
I would be greatful.

Thanks
Sam
Re: Need assistance with Stored Procedure Adam Machanic
10/31/2004 11:57:09 PM
Please post DDL, sample data, and sample output...

http://www.aspfaq.com/etiquette.asp?id=5006

--
Adam Machanic
SQL Server MVP
http://www.sqljunkies.com/weblog/amachanic
--


[quoted text, click to view]

AddThis Social Bookmark Button