Hello Data Dude,
Would you be able to clarify more around 'gets distributed to multiple customers in dta10200 so there is no trx date nor docnumber in dta10200'? In Payables, we don't have Customers. In the DTA10100 and DTA10200, we don't hold the Vendor or Customer in this table.
I went and tested splitting this to more then one code and it still showed in the smartlist and there are no 1900 dates. I suspect, i am doing something differently then you are when entering this.
There is not alternative smartlist for MDA. However, with Smartlist Designer you can create your own and the joins as you need.
Below is the view that is used for the MDA Smartlist. You can also get this from SQL under the views folder under the company. You can modify this to have the join you want and then create a new Smartlist off of the new view.
support.microsoft.com/.../how-to-create-a-smartlist-designer-report-using-a-sql-view-f8c31ecf-9c63-9590-8ebd-f5bc3f65b4d1
SELECT [dta10200].[groupid] AS 'DTA_Group_ID',
[dta10200].[docnumbr] AS 'Document Number',
( CASE
WHEN [dta10100].[groupamt] < 0 THEN
'-'
+ (SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 0 THEN
Rtrim(crncysym)
+ (SELECT CASE
WHEN (SELECT
inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1
THEN ' '
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
+ Ltrim(Str(Abs([dta10100].[groupamt]), 100, (SELECT decplcur-1 FROM
dynamics..mc40200 WHERE
curncyid = 'Z-US$')))
ELSE(SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$') = 0 THEN Rtrim(
crncysym)
+
(SELECT CASE
WHEN (SELECT
inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1
THEN ' '
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
+ Ltrim(Str([dta10100].[groupamt], 100, (SELECT decplcur-1 FROM
dynamics..mc40200 WHERE curncyid = 'Z-US$')))
+ (SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$') <> 0 THEN (SELECT
CASE
WHEN (SELECT inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1 THEN ' '
ELSE ''
END
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$')
+ Rtrim(
crncysym)
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
END ) AS 'DTA_Group_Amount',
[dta10100].[jrnentry] AS 'Journal Entry',
[dta10200].[trxdate] AS 'TRX Date',
[dta10200].[codeid] AS 'DTA_Code_ID',
( CASE
WHEN [dta10200].[dtaqnty] < 0 THEN
'-'
+ (SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$'
) = 0 THEN Rtrim(crncysym)
+
(SELECT CASE
WHEN (SELECT
inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1
THEN ' '
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
+ Ltrim(Str(Abs([dta10200].[dtaqnty]), 100, (SELECT decplcur-1 FROM
dynamics..mc40200 WHERE
curncyid = 'Z-US$')))
ELSE(SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$') = 0 THEN Rtrim(
crncysym)
+
(SELECT CASE
WHEN (SELECT
inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1
THEN ' '
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
+ Ltrim(Str([dta10200].[dtaqnty], 100, (SELECT decplcur-1 FROM
dynamics..mc40200 WHERE curncyid = 'Z-US$')))
+ (SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$') <> 0 THEN (SELECT
CASE
WHEN (SELECT inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1 THEN ' '
ELSE ''
END
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$')
+ Rtrim(
crncysym)
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
END ) AS 'DTA_Quantity',
( CASE
WHEN [dta10200].[codeamt] < 0 THEN
'-'
+ (SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$'
) = 0 THEN Rtrim(crncysym)
+
(SELECT CASE
WHEN (SELECT
inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1
THEN ' '
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
+ Ltrim(Str(Abs([dta10200].[codeamt]), 100, (SELECT decplcur-1 FROM
dynamics..mc40200 WHERE
curncyid = 'Z-US$')))
ELSE(SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$') = 0 THEN Rtrim(
crncysym)
+
(SELECT CASE
WHEN (SELECT
inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1
THEN ' '
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
+ Ltrim(Str([dta10200].[codeamt], 100, (SELECT decplcur-1 FROM
dynamics..mc40200 WHERE curncyid = 'Z-US$')))
+ (SELECT CASE
WHEN (SELECT cysymplc
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$') <> 0 THEN (SELECT
CASE
WHEN (SELECT inclspac
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$') = 1 THEN ' '
ELSE ''
END
FROM
dynamics..mc40200
WHERE
curncyid = 'Z-US$')
+ Rtrim(
crncysym)
ELSE ''
END
FROM dynamics..mc40200
WHERE curncyid = 'Z-US$')
END ) AS 'DTA_Amount',
Rtrim([gl00100].actnumbr_1) + '-'
+ Rtrim([gl00100].actnumbr_2) + '-'
+ Rtrim([gl00100].actnumbr_3) AS 'Account Number'
FROM two..[dta10200]
LEFT JOIN two..[dta10100]
ON [dta10200].[dtaseries] = [dta10100].[dtaseries]
AND [dta10200].[dtaref] = [dta10100].[dtaref]
AND [dta10200].[actindx] = [dta10100].[actindx]
AND [dta10200].[seqnumbr] = [dta10100].[seqnumbr]
AND [dta10200].[groupid] = [dta10100].[groupid]
LEFT JOIN two..[gl00100]
ON [dta10200].[actindx] = [gl00100].[actindx]
If you can provide more detail on how you are entering this to create the issue, i can use the same steps and see if i get the same thing as right now, i do not get the same results.
I hope this helps!
Thank you!
Brandon Jarrett | Microsoft Support Engineer.