I hope that someone like Victoria or Leslie can help me out here.
I've done SRS reports before but never had a request to include user defined fields in the report.
Using the test copy of the company database, I ran the following script to search all the tables for a user defined field with the label "Promo".
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%Promo%'
ORDER BY schema_name, table_name;
No love. I ran a trace and I see.
Lots of calls to SOP10200, SOP10100, and IV00101 when I use the Sales Transaction Inquiry zoom window adn drill down to the Sales user defined fields inquiry zoom user-defined part of the form.
Any advice on including the user-defined fields into the my queries would be helpful.
Well, I'm neither a Victoria nor a Leslie but the information you're looking for will be in Sales User-Defined Work History (SOP10600) and keyed on SOPNUMBE and SOPTYPE.
Perfect Image/ Dynamics GP
Tel: +44 (0) 843 289 2656
Equinox House, Cobalt 3.2, Silver Fox Lane, Silverlink, North Tyneside, NE27 0QJ, United Kingdom
That was it. Thanks Ian.