How to create a value set to list all AR transaction numbers based on operating unit


Objective

Create a list of values to display all accounts receivables transaction numbers based on each operating unit.


Sequence
a. Enter user defined value set name
b. Enter description that is informative according to value set that you display to user
c. Select list type as list of values
d. Define your own format validation
e. Define value validation (Type should of table type)


Enter Validation table information

(select t.trx_number, trunc(t.trx_date) trx_date, p.party_name, t.customer_trx_id,t.org_id from ra_customer_trx_all t, hz_parties p, hz_cust_accounts_all hca where  hca.party_id = p.party_id and hca.cust_account_id = t.bill_to_customer_id)

Define table columns (name, type, and size)


In where/order by field - place following piece of code to rely query table results based on operating unit list of value and order by transaction date

org_id = :$FLEX$.DCF_OP_UNITS_LOV
order by trx_date desc

In additional column, use below piece of code to add extra information to the table query list of values
party_name "Party"(240)


Test and validate value set




Comments

Popular posts from this blog

Query to get FSG report details with row/column set

How to use lexical parameters in Data template (XML document) R12

Sub Inventory Transfer API.