Fnd_Standard_Date in concurrent program parameter
Hi All,
I hv a Pl/Sql concurrent program which has to accept date parameter in format 'DD-MON-YYYY'. I am using the value set, FND_STANDARD_DATE. But after passing parameter, it gets converted to 'dd/mon/yyyy hh:mi:ss', due to this the program is erroring out with the msg "ORA-01861: literal does not match format string".
Pls suggest a workaround.
regards
Suresh
Hi ,
in the PL/SQL do format mask for variable of date type to the exsting format of
FND_Standard_Date value set.
try with this.
--Basava.S
Similar Messages
-
How to validate concurrent program parameter and display a custom message?
Hi Friends,
I have a concurrent program which has two non-mandatory parameters.
The requirement is that user should provide value for any one of the parameters.
If user does not enter value for both the parameters, i need to display a custom error message.
Parameter1 has an independent value set.
Parameter2 has character value set with validation type as special.
Process i tried so far:
In the value set for the second parameter, under the Validate event, i have written the following code:
FND PLSQL "declare
l_paramb VARCHAR2(20) := :!VALUE;
l_parama VARCHAR2(20) := :$FLEX$.MOT_CUSTMSGTST_A;
BEGIN
IF 1 = 1 THEN
fnd_message.set_name('FND','FND_GENERIC_MESSAGE');
fnd_message.set_token('MESSAGE','Please enter any of the ip1 or ip2');
fnd_message.raise_error;
END IF;
END;" I am not using those variables that are defined for the time being.
Now since the condition 1=1 is always satisfied, i should always receive the error message.
I am not receving any error message and i can go ahead and submit the program..
Please advise on where am i going wrong.
Reports Version - 6i
Oracle Apps Version - 11.5.10.2
Regards,
Sreekanth MunagalaHi srrekanth,,
I've similar issue , I need to display custom message for concurrent program parameter.Need to validate the parameter & display custom message .
Can you pl provide solution. -
Using concurrent program parameter in bursting
Hi there,
I am passing a concurrent program parameter into my rtf using the ?param@begin method & displaying it on the XMLP PDF output.
However when I am sending that PDF via bursting the param data does not show, even though it's present when viewing the PDF output via the concurrent request.
Does that mean I cannot do that and need to define the parameter as part of the Oracle report first?
cheers.please check xml user guide
-
Help needed in setting Default Value of Concurrent program parameter
Hi All,
I have 3 parameters in a concurrent program
Org ID From
Org ID To
Currency Code
In the Currency Code parameter I want to use the following query in the Default Value
SELECT currency_code
FROM gl_sets_of_books sob, org_organization_definitions ood
WHERE ood.organization_id = :p_org_id_from
AND sob.set_of_books_id = ood.set_of_books_id
Now, at runtime this gives me an error of p_org_id.
Can anyone please advice me how can I use this parameter(p_org_id_from) in the above query.
Any help will be really appreciated.
Regards,
ShrutiHi Helios,
Thaks a lot for the help.
I modified the query as follows:
SELECT currency_code
FROM gl_sets_of_books sob, org_organization_definitions ood
WHERE ood.organization_id = :$FLEX$.ORG_INTRANSIT
AND sob.set_of_books_id = ood.set_of_books_id
Here ORG_INTRANSIT is the valueset I am using in From Org ID and To Org ID.
Now the problem which I face is that when I use ORG_INTRANSIT valueset in both From Org as well as TO Org then the Currency is not defaulted, but if I use it in either From Org or To Org then the Currency is defaulted.
How can I resolve this. Please help.
Regards,
Shruti -
Date lov in the concurrent program parameter field
Hi,
I have a date parameter in the concurrent program. I need to have a date calendar for the parameter, can I have the data calendar? I am not sure if we can do that.
Can anybody throw some light on this.
Thanks a million
Regards
RumaHi swati
u cannt create a multi select LOV for Apps concurrent program.
Some of the options:
-> Create different parameters. Also u cannt create parameters dynamically depending upon the number of options u want to give for that parameter, better fix the maximum no. of options say 5 .. ORG1, ORG2, ORG3, ORG4, ORG5
-> If multi select LOV are of high priority, go for Discoverer if it is a Report.
cheers
chakoo -
Issue in concurrent program parameter.
Hello
I have one request set which has 2 concurrent programs. All the parameters of first programs are shared by 2nd program.
In first program there is one parameter p_load_seq where I am using default type=
"SQL Statement" and default value "select per_hr_br_outbound_seq.nextval from dual' .
If we submit this program/req set manually then it is taking the nextvalue correctly but If we schedule this job or copy this job/program it is not taking next value of the sequence.
Please let us know what is to be done to get the next value even if we schedule or copy this job.
Thanks
Ganesh ManeThis seem to be due to the fact that when You copy, previous execution parameter values are inherited, not defaulted again, and for scheduling, the values are derived when You secify parameter values and then they are carried to the next scheduled execution.
The only ways to circunvent this may be to obtain the sequence in concurrent program itself, and if that is not possible because of a standard program, You may code a launcher that calls the request set, so everytime it fetches the new sequence value. -
Register concurrent programs parameter customization.
Is there a way to register customization of concurrent programs parameters (I need to make one of the parameters mandatory) like it is done with customized files in applcust.txt?
Sorry about the late reply, but the issue with applcust.txt is that it only checks files updated by the patch. To provide an update to a concurrent program definition, Oracle includes an LDT file in the patch, but the name of the file doesn't have to relate to the concurrent program being updated. For example, the Purchasing concurrent program POXACREC is defined in the following files (look for the BEGIN PROGRAM "POXACREC" "PO" line in the ldt files in $PO_TOP/patch/115/import/US), shown in their applcust.txt format:
po patch/115/import/US cst4946920_1.ldt
po patch/115/import/US poprg.ldt
po patch/115/import/US poxacrec.ldt
Based on the name of the file and the concurrent program name, you would assume the last of these is the "correct" one, but all three could provide an update to the concurrent program definition. If you have multiple files defining your customised concurrent program, I would suggest you list all three in your applcust.txt. However, even if you list all three, there is nothing stopping Oracle from updating the POXACREC concurrent program with a file called abc123.ldt.
To help with this, I would suggest for your concurrent program you also include the concurrent program executable itself in the applcust.txt file (po reports/US POXACREC.rdf in my example) as a change to parameters in an unexpected ldt file would require a change in the program as well.
This basic problem can occur with any of data provided by LDT files or objects where the object name is not dependent on the file name - even views can be updated by odf files or sql files.
theFurryOne -
Making Concurrent Program Parameter manadatory during runtime
Hi
For AR Invoice Print Reprot we want to make Customer number parameter mandatory based onsome responsiibilities used to submit this report
for other responsibilities mandatory option is not required. Would like to know if there is possible solution for this
Thanks
KamalakarYou can try the following.
Add a new hidden parameter. The default for the parameter should be set to the responsibility_id.
And then in the customer number parameter's value set, you should say use the hidden parameter.
See How to make 2nd Param requried , when First Param is set to Y? for a similar example.
Hope this helps
Sandeep Gandhi
Independent Techno-functional Consultant -
Hi,
Lets say, we have three parameters A, B and C. B is dependent on A, C is dependent on A and B. If A value is entered, then we can list only the values of B which are related to A. If User is not entered A value then how can we list all values available in B? In the sameway for C also ( If A and B values not entered then it should allow to select a value from all available values in C)?
I don't want to put default "ALL" value and then use this in other value sets to get all values. Is there any other way using some dummy parameters? I searched in threads but couldn't find relevant.
Thanks,
Venkat.Hi,
Lets say, we have three parameters A, B and C. B is dependent on A, C is dependent on A and B. If A value is entered, then we can list only the values of B which are related to A. If User is not entered A value then how can we list all values available in B? In the sameway for C also ( If A and B values not entered then it should allow to select a value from all available values in C)?
I don't want to put default "ALL" value and then use this in other value sets to get all values. Is there any other way using some dummy parameters? I searched in threads but couldn't find relevant.
Thanks,
Venkat. -
How to control range of dates in concurrent program parameters
Hi,
I have a requirement to show date fields in the concurrent program parameters and I also need a validation as follows:
TO_date between from_Date and from_Date+30
Can we achieve this ?
Any pointers/he is highly helpful as this is quite urgent for us.
Thanks in Advance.
regards,
MukthiPlease see if these links help.
Enabling/disabling DATE parameters of a concurrent program
http://chandramatta.blogspot.com/2009/11/enablingdisabling-date-parameters-of.html
Enable/Disable Concurrent program parameter based on Other Parameter
http://sureshvaishya.blogspot.com/2008/05/disable-concurrent-program-parameter.html
Thanks,
Hussein -
Run concurrent program one by one based on different parameter values.
The PO report runs as a concurrent program, but this should launch another concurrent program to run after its execution based on its PO Number as parameter to the next concurrent program.
while running this PO report, it should search the email id of vendor and sends the output of that report to respective vendors.
Any help would be appreciated.
Needed very urgently.
Thanks,
Atul
Edited by: Atul on Jul 11, 2011 4:10 PMHi Hussein,
Thanks a lot for ur kind help.
After getting through the many problems and errors, Now I am able to send an email with attachment :)
But the thing is that, now i want to run PO report which will capture the approved PO's for the sysdate.
So I will call this (PO Report) sub concurrent prog in my pl sql procedure(which is main concurrent program).
when i will call the pl sql procedure that procedure should shoot an email of approved PO's onto the respective vendor's email address.
So if on a day I am getting Ten approved PO's then it should send an email with PO Report's output as an attachment to the respective vendor email id
So can u please tell me how to go about it.
And how to call vendor email id's in "UTL_MAIL.send_attach_varchar2".
Thanks,
Atul -
How to fetch the return parameter while running the concurrent program
Hi,
I have created one Pl/SQLl function and register into a apps concurrent programs. how to add the return type parameter in to CP and to get the out put..
Please help me.. i am new to oracle apps technical.
Thanks in advance..
WinskyHi,
i don't understand the return part? You need to fetch it to where?
Simple pl/sql code for concurrent program writing to standard FND log and output file:
CREATE OR REPLACE PROCEDURE TEST(errbuf OUT varchar2, retcode OUT varchar2, param1 IN number ) AS
BEGIN
fnd_file.put_line(FND_FILE.LOG,'LOG'); --text for log
fnd_file.put_line(FND_FILE.OUTPUT,'OUTPUT'); -- text for output
errbuf := '';
retcode := 0;
EXCEPTION
WHEN OTHERS THEN
retcode := 2;
END TEST; -
Can't access parameter of java concurrent program
I'm trying to access a parameter value in my rtf template from the PO Output for Communication program, which is a java concurrent program. In my template I put a field with:
<?param@begin:P_report_type?>
but when I reference the parameter using $P_report_type it is not populated with the value passed to the program. Does param@begin work with a java concurrent program, or only with an RDF?
Thanks,
GaryDuplicate thread.
How to find code behind application
How to find code behind application -
Hi All,
I have a requirement where i need to get the user entered value in the Parameter of a concurrent program while submitting it. i tried to query the FND_CONCURRENT_REQUESTS table but in that it stores the ID values from the value set of the Parameter.
After submitting the Concurrent request when we click on the view Details button it opens a form where it displays the arguments in the parameter field . i want to get that string.
Thanks a lot in advance for your time and help.
- VijayHi All,
I have a requirement where i need to get the user entered value in the Parameter of a concurrent program while submitting it. i tried to query the FND_CONCURRENT_REQUESTS table but in that it stores the ID values from the value set of the Parameter.
After submitting the Concurrent request when we click on the view Details button it opens a form where it displays the arguments in the parameter field . i want to get that string.
Thanks a lot in advance for your time and help.
- Vijay -
Current date parameter in concurrent program is not not taking current date
Hi All,
I have scheduled one concurrent request running very day @21:30 ,one of the parameter passed is current date ,which defined as default value at the time of defining concurrent program.Surprisingly its taking next day date as parameter.Can someone help me resolving this issue.
From where this current date is taken.
When I am logged in unix as oracle user and executing following query I am getting follwoing results
SQL> alter session set nls_date_format='MM/DD/YYYY HH24:MI:SS';
Session altered.
SQL> select current_date from dual;
CURRENT_DATE
05/25/2010 07:40:11
SQL> select sysdate from dual;
SYSDATE
05/25/2010 07:40:20
date
Tue May 25 07:40:35 SAUST 2010
When I logged in unix as applmgr user:
SQL> select current_date from dual;
CURRENT_DATE
05/25/2010 04:41:17
SQL> select sysdate from dual;
SYSDATE
05/25/2010 07:41:19
date
Tue May 25 07:41:04 SAUST 2010
Unix level date is correct and sysdate is also correct in both cases.
But current_date when logged in s applmgr user is wrong,is this reason for the issue.
If so how can I change it
Version : 11.5.10.2
Database : 10.2.0.4
OS : AIX 5.3
Thanks in advanceHi;
Please check below and see its helpful:
Scheduled Request Set Using 'Current Date' In Parameters Will Set Parameters One Day Out [ID 242654.1]
The parameter Argument 2 (GL DATE) does not select the Current Date when schedule [ID 250431.1]
Regard
Helios
Maybe you are looking for
-
Hi, A windows application uploads document to a document library programatically. Although they get added to the document library but are not shown there. Only when I go to the "Managed file that have no checked in verison" I see all the documents. T
-
How much does a Macbook Pro AC adapter weigh?
I know the 15.4" laptop is 2.54kg, but how much does the AC adapter weigh? Is there anyone with a postage scale who would be kind enough to weigh one?
-
Passing user-defined field to Backend system
Hi All, Please advice how we can pass user-defined fields of shopping cart to same user-defined fields in purchase requisition/purchase order in backend R/3 system. I know there is parameter IT_CUF_ITEM in BADI BBP_CREATE_REQ_BACK. If anyone know how
-
Please let me know the process of sending the output of a smartform as an E-mail.(Detailed procedure please).
-
UCCX Script XML Select equivalent
Assume the following XML document exists: <Technician> <ID>1234</ID> <CellPhone>5039991234</CellPhone> <HomePhone>5039992345</HomePhone> <ID>2345</ID> <CellPhone>4155551212</CellPhone> <HomePhone