Validate a value against table validation value set within PL/SQL
Hi,
I am trying to import price list lines along with Pricing attribute values.
I have to validate the uploaded values against the pricing attribute value set, before I import them into base tables.
Value set defined is of type table validation.
I wanted to know if there are any public APIs that can be used to validate the value against the Value set values within my PL/SQL procedure
Also please point me to documentation that lists various public PL/SQL APIs
Regards,
Mrutyunjay
You can find functions and procedure for Value sets in packages FND_FLEX_VAL_API or FND_FLEX_VAL_UTIL.
Example : get_table_vset_select gives you the select statement of your value set. Executing this statement will allow you to validate your values.
Similar Messages
-
API to validate a value against a value set
I have a 'Table' Value Set based on the MTL_CATEGORIES_V view, and need to validate some loaded data against it to check the loaded values are are valid. Rather than use a cursor to perform a lookup of the value in MTL_CATEGORIES_V, is there an API that can be used instead?
I thought I'd found something when I discovered "FND_FLEX_VAL_UTIL.is_value_valid", but this seems to just check that a value meets the criteria of the valueset based on the datatype. size, hi-lo range etc, it doesn't check if the value is actually permitted within the set.
AndyHi,
you can use fm FM_DOMAINVALUE_CHECK. Pass parameter values for I_DOMNAME and I_DOMVALUE.
If the value is invalid, exception VALUE_NOT_ALLOWED will occur.
Regards,
Klaus -
How to use the :$PROFILE$ token in a table validation value set
Hi Community,
Let me explain the scenario.
We have a Flex Value Set (CLIENTES SERVICIO DIRECTO) with a table validation, included in the PO Headers DFF, which shows a LOV with the Ship-to addressfrom the customer which we want to serve the goods; i.e. we are acting as a commisionists and the supplier puts the goods in the Ship-to address of the customer.
This Flex Value Set, as I mentioned, have a table validation, with the following validation table information:
Table Application: Oracle Receivables
Table Name: RA_ADDRESSES_ALL a, RA_CUSTOMERS b
Table Columnns: b.CUSTOMER_NAME Varchar2(20), a.PARTY_LOCATION_ID Varchar2(20)
Where/Order By: a.CUSTOMER_ID = b.CUSTOMER_ID
Additional Columns: a.ADDRESS1 "Dirección"(20), a.CITY "Ciudad"(10)
If we translate this to a SQL code:
select a.address1,
a.city,
a.party_location_id,
b.customer_name
from ra_addresses_all a,
ra_customers b
where a.customer_id = b.customer_id
and b.customer_id = 6283 <--- This last condition clause is for narrowing the result to the interested customer.
This select retrive us two records; for the same customer, one of them for one organization_id (let's say 85) and one of them for the other organization_id (84).
What we are looking for and want is that the LOV, which actually display the two records, shows only the ship-to site of the customer that belongs to the organization_id which belongs the user who queries or creates the Purchase Order.
I.e. Suppose that we enter to Purchasing using the responsibility assigned to the Operating Unit or Organization_id 84. We want that theLOV only shows the Ship-to Site from the customer that belongs to the Operating Unit or Organization_id 84.
I believe that we can achieve this using the :$PROFILE$ token, but we do not know how.
Any ideas?
Thanks a lot for your answer.Hi Rcana,
We have just test your suggestion and it works. We believe that the correc sentence was fnd_profile.get('profile_name'), but the value feature solve the problem. Thanks for your help.
Regards. -
How define Value Set to validate date against sysdate
Hi gurus,
I need to validate Value Set against current date. The date entered should be today date or higher.
During defining Value Set I choose Format Type: Standard Date. The problem is that
I can not enter value "sysdate" to Min Value field. The following error shows up:
"Please enter date values sysdate in correct format: DD-MM-RRRR".
Is it possible to achieve what I need ?
regards,
malinHi Hussein,
I enter not a concrete date but 'sysdate' value.
The message is of course DD-MM-YYYY in English (DD-MM-RRRR is inPolish). Sorry of mistake.
I afraid I can not achieve it using Standard Date Format Type.
regards,
marcin -
Verify a value against value set
Hi,
I am trying to import price list lines along with Pricing attribute values.
I have to validate the uploaded values against the pricing attribute value set, before I import them into base tables.
Value set defined is of type table validation.
I wanted to know if there are any public APIs that can be used to validate the value against the Value set values within my PL/SQL procedure
Also please point me to documentation that lists various public PL/SQL APIs
Regards,
MrutyunjayHi,
You can query the fnd_flex_values or fnd_flex_value_segments_vl to find the name of the value set defined.
Another point is that the Value Set is defined of validation type Table so the values are dependent on the base tables.
There are no such API's to cater the need for Verfying a Value against a Value Set.
If u want to search for public API's go to the metalink.
Regards -
Special Validation Value Set - Key Flexfield
Hi Gurus...
I have a problem with my special value set.. i did this... :
FND POPID APPL_SHORT_NAME=SQLGL
CODE="GL#"
WHERE="segment2 not like '1%'"
DISPLAY="1"
DISPLAY="2"
DISPLAY="3"
DISPLAY="4"
REQUIRED=Y
VALIDATE=FULL
ID=:!ID
SEG=:!VALUE
DESC=:!MEANING
NAVIGATE=!DIR
DINSERT=N
The problem is that the SEGMENT2 of this value set is not being filtered... should filter by SEGMENT1 like '1%'. When i use the parameter associated to this value set there is no error.... always shows SEGMENT2 with all data.. without filter....
Any suggestions ??
Thanks!!
Pablo.-Use Validation Type 'Table'
Press 'Edit Information' button
Select the Table name and Column that you want to show in your list, you can restrict the list using the Where section.
Cheers! -
Table Value Set Definition - Fetch Error
I am trying to use a TABLE Validated Value Set based on the value set used in the Accounting Key Flexfield using the following query. When you run the test button in the DFF Table definition, it says that it is succesfully tested.
SELECT FLEX_VALUE, DESCRIPTION
FROM FND_FLEX_VALUES_VL
WHERE FLEX_VALUE_SET_ID=1010305
order by flex_value
But when I go to the Oracle form to the respective DFF, it throws the below long error.
APP-FND-01564: ORACLE error 24345 in fdlget
Cause: fdlget failed due to ORA-24345: A Truncation or null fetch error occurred.
The SQL statement being executed at the time of the error was: SELECT FLEX_VALUE, FLEX_VALUE VALUE, DESCRIPTION DESCRIPTION, NVL('N','N'), NVL(TO_NUMBER(NULL),-1), NULL, NVL('Y','Y')
Can anybody help me, how to get this resolved.
Regards,R12 problem - check the definition of your value set being used. If it is defined as List type "List of Values", then try changing to "Long List of Values". Save and try again. If you don't get the error again, then you probably have a column in the value set that is shorter than the defined table size. For example, description is 50 characters long in the value set, but the table column is 240 characters. If you have data that is longer than 50 characters, you will get this error. But if you change the List type to "Long List of Values", it won't throw the error. I've been trying to get Oracle to figure out the problem, but they just want us to increase the size of the value sets.
Good luck and let me know if this works for you. -
Cost Allocation Flexfield with Table Value Sets
Hi
I am setting up Costing for Payroll. I have a requirement where I want to use Table Validated value sets for Cost Allocation Flexfield. In the Administrator Guide it is written that we should not use Table validated value sets for any KFFs.
I still tried the same (defining Table validated value sets) and my process errored out. It was giving following error
Value 381 for the flexfield segment Cost Center does not exist in the value set
SJR_COST_CENTER_LIST.
invalid code combination:
381SJR_COST_CENTER_LIST is name of the value set.
Then I changed the value set and keep the code and meaning in the value set table as same and my process worked fine.
Now I want to know that should I use Table validated value set or not. As Oracle does not support these in KFFsHi Thierry
Thanks for the reply
have you used cross validation rules?I am not sure about cross validation rules and how we can use in my case.
An other thought: there is an action parameter available parameter_name=COST_API_IMODE
Set the parameter_value = 'Y'In my case my costing process is working fine, even when I define my table validated value sets. My question is should we define table validated values sets or not as Oracle does not support it now? Oracle use to support this for KFFs some time back but now they are saying they does not support.
Are there any known issues if we use Table validated value sets? Why Oracle does not support it for KFFs? -
Value set using non-Apps table
Hi All
Can I use a third party application table (not belonging to Apps) in Value Set (GL Super User > Setup > Financials > Validation > Sets). The purpose is to create a DFF and use this value set as a LOV.
Thanks
AnandAs long as you can access the table from apps schema, it should be no problem.
There's no validation on the table field in value set, so you can insert custom tables, views without issues. -
Hi All
I've just create a Table Validation Value Set(XX_LOV) so what this do it eliminate all the values that have been used when you submit a request.
But now when you use the COPY Button when you submit a request it looks like it's not Validating my Values Set.
I'd like to know when Value set Validation happens or how can i force Validation.
ThanksHi Deepali,
Your understanding on special valueset is incorrect.
Special validation type is used to have a KFF combination value as a single parameter, rather than having individual parameter for each segment.
You can achieve this calculation by using a table valueset , where you can can access the values of C and D by using $FLEX$.C and $FLEX$.D
All you need is to frame a query to get the desired values for E valueset.
Please refer to the 11i Application Developer Guide for more details.
Regards
Justin -
ListVal Event in Special Validation Value Set
Hi all,
Has anyone used ListVal event in Special Validation value set? I want to show list of values by giving a query using special validation.
Thanking YouUse Validation Type 'Table'
Press 'Edit Information' button
Select the Table name and Column that you want to show in your list, you can restrict the list using the Where section.
Cheers! -
Creation of a Table Type value set with 'ALL' as one of the value
Gurus,
My requirement is to create [table type]value set which would show the [LOV]values in parameter of Conc Progr .
So far we have three such values to chose from ,they are, 'Frozen', 'Pending' and 'Testing'. I achieved it.
My question is ,
if user wants to choose 'ALL' three values , how shall I accommodate it in this table type value set?
Giving fourth option as ALL, which would eventually select 'ALL' three values 'Frozen', 'Pending' and 'Testing'.
thanks in advance.
-sDJYou can't have UNION in the value set.
Try creating a view, which is having UNION with ALL.
Check the following links.
Table Value Set.
ORA-00907 Missing Right Parenthesis in Value Set
By
Vamsi -
Hi,
i have created a Table value Set for showing Vendor_site_code in DFF
XXXX_VENDOR_NAME
Table Application :Purchasing
Table Name:PO_VENDORS
Value:VENDOR_NAME
ID:VENDOR_ID
XXXX_VENDOR_SITECODE
Table Application :Purchasing
Table Name:PO_VENDORS PV, PO_VENDOR_SITES_ALL PVS
Value:PVS.VENDOR_SITE_CODE
ID:PVS.VENDOR_SITE_ID
where/order by: where PV.VENDOR_ID=PVS.VENDOR_ID
XXX_ITEM
Table Application :IVENTORY
Table Name:MTL_SYSTEM_ITEMS_B
Value:PVSSEGMENT1||'-'||SEGMENT2||SEGMENT3
ID:PVS.INVENTORY_ITEM_ID
where/order by:WHERE ORGANIZATION_ID = cs_std.get_item_valdn_orgzn_id
i am facing the below error when opening the Form related to that DFF
APP-FND-01564: ORACLE error 1722 in FDFGVD
Cause: FDFGVD failed due to ORA-01722: invalid number.
The SQL statement being executed at the time of the error was: SELECT PVS.VENDOR_SITE_ID,PVS.VENDOR_SITE_CODE VALUE, PVS.VENDOR_SITE_CODE DESCRIPTION, NVL('N', 'N'), NVL(TO_NUMBER(NULL), -1), NULL, NVL('Y', 'Y'), NVL(TO_CHAR(TO_DATE(NULL), 'J'), 0), NVL(TO_CHAR(TO_DATE(NULL), 'J'), 0) FROM PO_VENDORS PV, PO_VENDOR_SITES_ALL PVS WHERE ( PV.VENDOR_ID=PVS.VENDOR_ID) AND PVS.VENDOR_SITE_ID = :X and was executed from the file &ERRFILE.Can you say where have you placed this valueset - which DFF, in which form?
-
How to add one default value in table type value set?
Hi All
I have the below requirement:
Need to display all the organization ids in the parameter for one concurrent program along with one default value of 'ALL'.
I have created a table value set which picks up the organization name from hr_all_organization_units. But while submitting the program I should also be able to give 'ALL'.
Any pointer/idea how to achieve this will be highly appreciated!!
Thanks in Advance!!
Regards,
Shashank MishraHI
i get below error when i change the script
PS C:\scripts> C:\Scripts\updatedefaultvalue.ps1
Cannot index into a null array.
At C:\Scripts\updatedefaultvalue.ps1:8 char:7
+ IF($i[ <<<< "Title"] -eq $null)
+ CategoryInfo : InvalidOperation: (Title:String) [], RuntimeExce
ption
+ FullyQualifiedErrorId : NullArray
$web = Get-SPWeb http://tspmcwfe:89/
$list = $web.Lists["test"]
$item = $list.Items | Where { $_["Name"] -eq "Emc" }
foreach($i in $items)
IF($i["Title"] -eq $null)
$i["Title"] = "test"
$i.Update()
adil
Why are you piping a where in the items? Do you only want to add the "test" to ones matching
a name?
If you have ISE installed on your server I recommend you put your code in there and debug it.
If this is helpful please mark it so. Also if this solved your problem mark as answer. -
Validate field value against LOV in JClient
Hi,
I have wondered is it possible when i have a LOV attached to a textfield or column from JTable to validate entered value against values in LOV. I mean when i enter wrong value in field, automatically to invoke LOV panel when the field lost focus.
Thanks in advance!Hi,
this is currently not a feature available in JClient. We are evaluating this as a new feature in a next version fo ADF JClient (which will be named ADF Swing then)
Frank
Maybe you are looking for
-
Cannot print PDFs in any application except Adobe
I upgraded to OS 10.5 recently (and now 10.5.1 on my laptop), and I am no longer able to print PDF files from Preview, nor am I able to produce PDF files from the printer dialog in any program. Printing PDFs in Adobe Reader works fine. Whatever other
-
After Lion Reinstall, Safari Crashing
I reinstalled Lion on a new hard drive in my 2008 iMac. Then restored from a Time Machine backup. Can't get Safari to work at all, just keeps giving me a crash report. Can I fix this without reinstalling again? Here's what the report states: Process:
-
I have a daq card usb dux fast and I'm using linux zenwalk, so please if any one has done a program on daq using comedi language or any language or any other related to it. please send me the code and algorithm for it. if possible a algorithm and cod
-
I downloaded the Windows Live Essentials for Windows 7 running under Parallels 5.0.9310. When I try to bring up Windows Live Mail I receive the error: Windows Live Mail could not be started. Closing Windows Live Mail. Your calendar contains corrup
-
Zen is playing the song that is above the one that i wanted to p
hello,?i got the zen at 2 this afternoon, it said charge it for 4 hours... i did (i did 5 hours but it still did not take away the charging icon)?i disconnect it and start playing the music but the Zen is playing the songs that are above the song tha