Question Status

Suggested Answer
cspanburgh asked a question on 5 Jul 2012 1:31 PM

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".

USE DEV

GO

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.

 

Reply
Suggested Answer
Ian Grieve responded on 5 Jul 2012 11:48 PM

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.


Author of azurecurve|Ramblings of a Dynamics GP Consultant
Senior Consultant at Perfect Image Ltd

Perfect Image/ Dynamics GP
Tel: +44 (0) 843 289 2656
1 Kings Manor, Newcastle upon Tyne, NE1 6PA, United Kingdom

Reply
Suggested Answer
Ian Grieve responded on 5 Jul 2012 11:48 PM

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.


Author of azurecurve|Ramblings of a Dynamics GP Consultant
Senior Consultant at Perfect Image Ltd

Perfect Image/ Dynamics GP
Tel: +44 (0) 843 289 2656
1 Kings Manor, Newcastle upon Tyne, NE1 6PA, United Kingdom

Reply
cjspanburgh responded on 11 Jul 2012 12:51 PM

That was it. Thanks Ian.

Reply