cancel
Showing results for 
Search instead for 
Did you mean: 

Query to show the name of the preferred vendor instead of the code

Former Member
0 Kudos

I'm asking for a query to show the name of the preferred vendor instead of the code

Accepted Solutions (1)

Accepted Solutions (1)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Please try this query,

SELECT T0.[ItemCode], T0.[ItemName], T1.[CardName] FROM OITM T0  INNER JOIN OCRD T1 ON T0.[CardCode] = T1.[CardCode]

Thanks

Answers (2)

Answers (2)

KennedyT21
Active Contributor
0 Kudos

Hi Omar,

Do you mean to show the vendor name instead of the of the code in the item master data, then it is not possible by the standard you can create a udf and pull cardname using the FMS...

Cheers

gaurav_bali
Active Participant
0 Kudos

Hi,

The query for Preferred vendors:

Select T0.ItemCode,T0.ItemName,T1.VendorCode,T2.CardName 'Prefered Vendor'

from OITM T0

inner join ITM2 T1 on T0.ItemCode = T1.ItemCode

inner join OCRD T2 on T1.VendorCode = T2.CardCode