Sounds like the same problem that was posted once before. If I get it correctly you have one tdsls040 record to be displayed and multiple tdsls045 records. Plus you only want to display those tdsls040 records where it has a tdsls045 record where tdsls045.ssls=1. The program itself already has the current tdsls040 record - reading the table again would probably confuse the session.
as set with 1 rows
PS - not familiar with these tables or relationships.
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.
systems provided free by Baan Board
Play the Google game and help Baanboard get better rankings. Do your part. Click here
to find how.