4 weeks ago
Hi All
How to get a corresponding mapping between these two Origin values in Journal Entry Query Statement and Subledger Journal Entry so we know which Origin Number in JE belongs to AP Invoice PU Origin?
Kedalene Chong
Request clarification before answering.
Hi @kedalenechong ,
Yes. TransType is what you're looking for. A simple CASE statement will deal with it. See a very basic example below. You'll have to adapt it to your needs.
SELECT
CASE TransType
WHEN '13' THEN 'SI'
WHEN '14' THEN 'CN'
WHEN '15' THEN 'DN'
WHEN '18' THEN 'PU'
WHEN '19' THEN 'PC'
-- Include the other types based on the TransType (Object Type) list I shared
END AS 'Origin'
-- Then the rest of your query...
FROM OJDT
BR,
Felipe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
6 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.