Empty Value set - PY_SRS_PAYROLL
Hello All,
A new responsibility was created (with application as Payables) and a PAYROLL report request was added to its request group (again a Payables group).
The report uses the seeded PY_SRS_PAYROLL value set for one of its parameter. This is not returning any rows when logged in through this responsibility. All profile options are in place and I ran the Security List Maintenance too. Yet I can't make the report run for this responsibility.
Is it because it belongs to a different application?
I tested the code of value set from backend for this responsibility and application (using FND_GLOBAL.APPS_INITIALIZE) and its works fine. But not in front end.
Am I missing something? I request you to give me some suggestions.
Regards,
Balu
Baloo,
Please check the output of following query after replacing the busingess group and your user session login values
SELECT PAY.PAYROLL_NAME
FROM PAY_PAYROLLS_F PAY,fnd_sessions fnd
WHERE pay.business_group_id = :$PROFILES$.PER_BUSINESS_GROUP_ID
and fnd.session_id = userenv('sessionid')
and fnd.effective_date between pay.effective_start_date
and pay.effective_end_date
order by pay.payroll_name
this is query , run by py_srs_payroll value set .
Hope it helps
Ankur
Similar Messages
-
Empty Precalculated Value Set Tables?
We've successfully implemented Pre-calculated Value Sets in BW 3.5 using Reporting Agent.
Does anyone know how to get rid of, or empty pre-calculated value set tables that you no longer need? There are some reporting agent settings that I have deleted from reporting agent but they continue to appear in the Pre-calc value set variable as an available option when running the query. It's like the setting got deleted from reporting agent but the underlying table didn't?
Perhaps this is an issue for OSS but I thought I'd see if maybe there is an option I'm not aware of.
Thanks,
ChrisThanks - I also found OSS note 825017 that seems to address the issue as well. We'll see if we can apply this note so we can get the ABAP program to delete or empty these tables. I think that will resolve the issue.
Thanks,
Chris -
Passing null/empty values from a actionscript VO to a Coldfusion ORM object
This is the situation.
If you have an actionscript VO that binds to a Coldfusion ORM object via the RemoteClass metadata and some of the values are not set, null, or empty strings and you pass it from Flex to Coldfusion then the Coldfusion deserialization barfs saying the values are not acceptable date values (for type="date") or valid emails (for validation="email") or other such validations, even if required="false" on the property.
For instance, if you have the following actionscript VO:
package vo
[RemoteClass(alias="com.companyname.Person")]
[Bindable]
public class Person
public var person_id:Number;
public var last_name:String;
public var first_name:String;
public var email:String;
public var created_date:date;
public function Person() {}
And you have the corresponding Coldfusion component:
<cfcomponent displayname="person" output="false"
alias="com.companyname.Person"
schema="dbo" persistent="true"
table="PERSON">
<cfproperty name="person_id" type="numeric" fieldtype="id" validate="integer" required="true" column="PERSON_ID"/>
<cfproperty name="last_name" type="string" column="LAST_NAME" required="true"/>
<cfproperty name="first_name" type="string" required="true" column="FIRST_NAME"/>
<cfproperty name="email" type="string" validate="email" required="false" column="EMAIL"/>
<cfproperty name="date_created" type="date" required="false" column="DATE_CREATED"/>
</cfcomponent>
Then if you pass the actionscript VO as is to Coldfusion, the deserialization complains that you do not have a valid email or a valid date for date_created. This is bad, bad, bad. Essentially if you have a validation of certain types (email being one) or a date property, or probably some other cases, then you essentially can not make it not required, it automatically makes it required because the Coldfusion serializer considers null/empty values as invalid dates or emails. But the serializer should not care for values that are not required, there has to be a way to pass null/empty values to these data types, but apparently there's not. If you pass an empty string ("") you still have the same problem. I know Coldfusion does not have null values, but there has to be a way to do this, otherwise it defeats the purpose of having required="false" and some kind of validation on the property.
There seems to be two ways around it. One is to override the implicit setters for the properties on the Coldfusion side and check for 0 length values yourself, then set the property if it is not, or create your own validation routine. I ended up creating my own validation function since I didn't want to have to write a setter function for everyone of these cases and I can pass back user friendly validation messages.
Have other people encountered this problem? How have you gotten around it? Thanks.I realize that I didn't clarify that I am using ColdFusion
for getting the data. This class was generated by the Create CFC
wizard in Flex Builder.
package com.generated
[Managed]
[RemoteClass(alias="components.generated.clients.Clients")]
public class Clients
public var clientid:Number = 0;
public var clientfirstname:String = "";
public var clientlastname:String = "";
public var clientaddress1:String = "";
public var clientaddress2:String = "";
public var clientcity:String = "";
public var clientstate:String = "";
public var clientzip:String = "";
public var clientphone:String = "";
public var clientemail:String = "";
public function Clients()
} -
Passing null/empty values from Flex to a Coldfusion ORM object
This is the situation.
If you have an actionscript VO that binds to a Coldfusion ORM object via the RemoteClass metadata and some of the values are not set, null, or empty strings and you pass it from Flex to Coldfusion then the Coldfusion deserialization barfs saying the values are not acceptable date values (for type="date") or valid emails (for validation="email") or other such validations, even if required="false" on the property.
For instance, if you have the following actionscript VO:
package vo
[RemoteClass(alias="com.companyname.Person")]
[Bindable]
public class Person
public var person_id:Number;
public var last_name:String;
public var first_name:String;
public var email:String;
public var created_date:date;
public function Person() {}
And you have the corresponding Coldfusion component:
<cfcomponent displayname="person" output="false"
alias="com.companyname.Person"
schema="dbo" persistent="true"
table="PERSON">
<cfproperty name="person_id" type="numeric" fieldtype="id" validate="integer" required="true" column="PERSON_ID"/>
<cfproperty name="last_name" type="string" column="LAST_NAME" required="true"/>
<cfproperty name="first_name" type="string" required="true" column="FIRST_NAME"/>
<cfproperty name="email" type="string" validate="email" required="false" column="EMAIL"/>
<cfproperty name="date_created" type="date" required="false" column="DATE_CREATED"/>
</cfcomponent>
Then if you pass the actionscript VO as is to Coldfusion, the deserialization complains that you do not have a valid email or a valid date for date_created. This is bad, bad, bad. Essentially if you have a validation of certain types (email being one) or a date property, or probably some other cases, then you essentially can not make it not required, it automatically makes it required because the Coldfusion serializer considers null/empty values as invalid dates or emails. But the serializer should not care for values that are not required, there has to be a way to pass null/empty values to these data types, but apparently there's not. If you pass an empty string ("") you still have the same problem. I know Coldfusion does not have null values, but there has to be a way to do this, otherwise it defeats the purpose of having required="false" and some kind of validation on the property.
There seems to be two ways around it. One is to override the implicit setters for the properties on the Coldfusion side and check for 0 length values yourself, then set the property if it is not, or create your own validation routine. I ended up creating my own validation function since I didn't want to have to write a setter function for everyone of these cases and I can pass back user friendly validation messages.
Have other people encountered this problem? How have you gotten around it? Thanks.Looks like a known workaround to this issue is to wrap the Flex object in an array.
The ColdFusion CFC will accept that as an array, with the first an only element being a struct, which is the object you built in Flex. -
How to define null or empty value in BAPI function modules?
Hi,
I have problem with BAPI functions, where some parameters are mandatory.
For example: when I try to use HR BAPI's(BAPI_PERSDATA_CHANGE, etc.) I have to insert parameters like SUBTYPE,OBJECTID,LOCKINDICATOR. The PA0002 table that is used from this BAPI doesn't have SUBTYPE, OBJECTID, LOCKINDICATOR, for any of the records that I would like to select.
So what I tried, was to put a ' ', to indicate that is empty. It returned an error message saying "Make an entry in all required fields". Next tried to put in some values for these fields -- and it returned an error message saying "No data selected from 0002 for this period".
I also tried to run BAPI_FAMILY_CHANGE that uses data from table PA0021. Here I found some records with SUBTYPE, OBJECTID fields that were not empty, but LOCKINDICATOR was still missing. So I tried to put LOCINDICATOR value directly in to database (with MS SQL Enterprise Manager). After that I was able to use BAPI_FAMILY_CHANGE.
I think that manually inserting data in database is not normal procedure.
Is there something that I have missed out?
I mean -- how can I get this to work without inserting data directly in database?
How can I define null or empty value in BAPI function modules?
Thank you in advance.
Best regards,
MihailDefining an empty value for a parm in a table is easy.
First get the function's definition from the SAP system
Second only populate the fields for which you have a value to set
Third execute the function.
The JCO takes care of the rest.
Enjoy -
Cfprocparam type="OUT" brings back empty value
ISSUE OBJECTIVE:
After conversion from CF 5 to CFMX 7, <cfprocparam
type="OUT" brings back empty value
OUR STORED PROC:
<cfstoredproc procedure="sp_rass_user_guidance"
datasource="#rass_data_source#" returncode="YES">
<cfprocparam type="IN" dbvarname="@status" value="2"
cfsqltype="CF_SQL_INTEGER">
<cfprocparam type="IN" dbvarname="@addname"
value="#form.newVersionName#" cfsqltype="CF_SQL_CHAR">
<cfprocparam type="IN" dbvarname="@userid"
value="#client.userid#" cfsqltype="CF_SQL_CHAR">
<cfprocparam type="OUT" dbvarname="@rc" variable="rc"
cfsqltype="CF_SQL_SMALLINT">
<cfprocparam type="OUT" dbvarname="@reason"
variable="reason" cfsqltype="CF_SQL_VARCHAR">
<cfprocresult name="retrieveVersions">
</cfstoredproc>
In SQL query anylizer this stored proc brings back some
values for variables rc and reason, but empty values on CF pages.
Cf gurus please helpSomething sounds fishy. I'm not sure what more you could do
at the database, since PL/SQL VARCHAR2 variables have a max length
of 32,767 (as opposed to the VARCHAR2 data type limit of 4000
bytes). Should let you return more than 900 bytes! Perhaps you may
need to look into your kernal parameters, or Oracle parameters like
sga_max_size, etc.
You say that "Long Buffer Varchar is checked and set to
max"... what value? Also, what version of ColdFusion are you using,
as I can not "check" Long Text Buffer (chr) but only supply a
value, or I can check CLOB (or BLOB), where checking CLOB will
override the Long Text Buffer (chr) value.
Phil -
Result Set(Value set ) Error..URGENT
Hi Gurus,
I am facing an issue here. I created a valueset and passed it as a variable to pass the top 10 customer to another query. When we run the second query ( which need top 10 customers as value set)we get message 'ABORT COULD NOT CARRY OUT ALL NORMINGS'
Also on the RSA1> Reporting Agent> Valueset after scheduling the scheduling package to Immediate, when we check the Scheduling package for Job Over view, we get message saying ' Job List is Empty'. We need your help.
Thanks and Regards,
AnilWhat database are you connecting to?
There is a bug in Oracle 8 that will make all
your Select * from ... result sets not updatables,
you need to list the columns name to get around it. -
Hi,
I have a situation where I have to update the previous non empty date until there is non empty value. Then use the next non empty value. Data is sorted on group id.
for example I am creating new field which update the date column which just for example:
it would be great if there is way to implement using set operation not through cursor.
thanks in advance
Zaim Raza
http://zaimraza.wordpress.com/CREATE TABLE #C (X CHAR(1) ,Y INT)
INSERT INTO #C values(NULL, 1)
INSERT INTO #C values(NULL, 2)
INSERT INTO #C values(NULL, 3)
INSERT INTO #C values('A', 4)
INSERT INTO #C values(NULL, 1)
INSERT INTO #C values(NULL, 2)
INSERT INTO #C values('B', 3)
SELECT * FROM #C
ALTER TABLE #C ADD ID INT IDENTITY(1,1)
SELECT CASE WHEN X is not null
THEN X
ELSE (SELECT MIN(X)
FROM #C
WHERE ID >= t.ID)
END AS X,
Y
FROM #C t
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
Value set in constructor is not getting saved in button Action method
Hi All,
I am not understanding why the value set ( On Condition )in constructor is not hold in the button actoin method.
Could any body explain me on that
for this I will try to explain with sample example
I have taken a button and add a integer property in session bean.
now if session bean's property is even then I am trying to set the button value to bidNow other wise Accept Invitation.
Till this opstion everything is OK
but once I click on Button,
Constructor is doing the right job only. But I do not understand why in button action I am getting the First Value only.
public Page1() {
// <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
try {
if (getSessionBean1().getIntValue()%2==0)
button1.setValue("BidNow");
else
button1.setValue("Accept Invitation");
getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
log("In Constructor Button Value : "+button1.getValue());
} catch (Exception e) {
log("Page1 Initialization Failure", e);
throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
// </editor-fold>
// Additional user provided initialization code
public String button1_action() {
// TODO Replace with your code
log("In Action Button Value : "+button1.getValue());
return null;
}and here is the log
[#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
[#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
[#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
[#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
[#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
[#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:20.234+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
[#|2005-07-19T11:55:20.250+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
[#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
[#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
[#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:35.906+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
[#|2005-07-19T11:55:35.921+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
[#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
[#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
[#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
[#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
[#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]As per this log every time I am getting Bid Now only in action, though the value is changed in Construtcor
Can u explain the reason for thisHi Sudhakar,
Please try the following and you will get an idea as to what is happening:
1. Drag and drop a button, 2 outputText components
2. Add a property to the session bean called intValue of type int. Customize it to set it's initial value to 0
3. Add the following lines of code to the constructor
outputText1.setValue("" + getSessionBean1().getIntValue());
getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
4. Double click on the button component to go to the button action method.
5. Add the following line of code
outputText2.setValue("" + etSessionBean1().getIntValue());
6. Save and run the application
7. Watch the values of outputText1 and outputText2 with each click of the button
Also, try the application with the following code block in the button action method:
if(getSessionBean1().getIntValue()%2==0){
button1.setValue("Bid Now");
} else{
button1.setValue("Accept Invitation");
getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
outputText1.setValue(button1.getValue());
outputText2.setValue("" + getSessionBean1().getIntValue());
When the above code block is in the button action method the values set to button are as expected.
Hope that helps
Cheers
Giri :-) -
System.Exception: null or empty values
Have designed a 4 part form Using DW MX, ASP.NET C# and MySQL
and currently getting the below error when moving from one page to
the next.
The web.config file is on the server, there are no null or
empty values, and the key tags match.
I am new to applicaiton development in DW and am now stuck -
any suggestions?
System.Exception: This page has a MM:DataSet, MM:Insert,
MM:Update or MM:Delete tag with a null or empty value for the
ConnectionString and DatabaseType attributes.
Often, such values come from application settings in the
web.config file. That file might be missing from the server
executing this page. Or, it might be missing the particular add key
tags for the database connection this page uses. If you are using
Dreamweaver, look for the web.config file in the local root folder
of your Dreamweaver site. Once you find this file, you can either:
Put this file onto the server that is executing this page.
Copy the add key tags from the web.config in the local root
folder of your Dreamweaver site and paste them into the web.config
file in the server that is executing this page.
at DreamweaverCtrls.DataSet.DoInit()
Texthttp://java.sun.com/docs/books/tutorial/uiswing/components/spinner.html#model
Might be a good start. -
I created a report with multiple fields. I would like to create a generic formula in which it evaluates all the values and if it found a null or empty value it will be replaced by a 'N/A'. I was searching in the forums and I found the following formula
if (isnull() or ( ='')) then
"Display the required text"
else
when I tried to use it i had an error that the value must be boolean. Is there is a way where I can change all the fields as string?? and a assign "N/A"
or
how can I assign a "N/A"to a boolean field??
also I have approx. 140 fields to evaluate, does the formula can be generic or I will need to create a formula for each variable??
thanksUsually when Crystal runs across a field that is NULL, it immediately stops executing the formula, unless the field is enclosed within IsNull(). However, I'm not sure if that is the case for a parameter being passed to a function. So, you may be able to create a function like (Formula Workshop -> Create Custom Functions -> Add; basic syntax):
function DisplayString (inVal as string) as string
if (isnull(inVal) or (inVal ='')) then
DisplayString = "N/A"
else
DisplayString = inVal
end if
If Crystal does stop when passing a NULL value as a parameter, then you could code a similar function (without the isnull()), and check the Convert NULL Database Values to Default option on the File -> Report Options panel.
You would need to create one such function for each data type that you want to show "N/A" for, and for data types other than string, convert the value to a string when it is not null.
These functions could then be used in the Display String formula for the field on the report.
The only other way I can think of achieving this would be to base the report(s) on an SQL Command and convert NULL values to "N/A" there. It might be a bit easier to do in an SQL Command, but probably not a whole bunch.
Or, educate your users that when nothing is printed, it means that it's not applicable!
HTH,
Carl -
can any body tell me how to get the distinct values for a table valueset
from GL_CODE_COMBINATIONS table i want to get the distinct values of SEGMENT2 so any body tell me how to create a table value set for this its very very urgent.
Regards,
Azeez
[email protected]Hi
When u create table value sets
Table columns-----------
Value-
Meaning
-ID------------distinct(id) from that table
it will work fine let me know if u ned anything.
Rakesh -
How to create a value sets for concurrent program?
Hi Friends,
I am creating a concurrent program with a parameter period...
In the value set for the parameter period, I am using the following query :
---where application_id = 101
and set_of_books_id = :$PROFILES$.gl_set_of_bks_id
and closing_status IN ( 'O', 'F', 'C')
order by period_year, period_num' ----
In my cursor, i have a condition 'where set_of_books_id = ' ---
How can I pass the above set of books id into the cursor ?? it is not working when I am defining another parameter as Book and passing that value to the cursor....
I need that period parameter to return all the periods for the set of books where we are running the concurrent request from...I also need to get the set of books id for my cursor...
Hope I am making sense...All that I am trying is to have period parameter and also a SOB id in cursor condition...
Rgds,Hi Vamsi /Nitin,
Let me explain the whole thing now.....
My plsql procedure is ......
CREATE OR REPLACE procedure GL_INT(
perrbuff out varchar2,
pretcode out varchar2,
pbook in varchar2,
pperiod in varchar2
) is
cursor cur1 (p_sdate in date, p_edate in date )is
select distinct group_id groupid,
user_je_source_name source
from gl_interface
where accounting_date >= p_sdate
and accounting_date <= p_edate
and set_of_books_id = pbook;
cursor cur2 is
select distinct start_date sdate,
end_date edate, period_name period
from gl_period_statuses
where period_name = pperiod
and set_of_books_id = pbook
and application_id = 101;
i cur1%rowtype;
j cur2%rowtype;
begin
open cur2;
fnd_file.put_line(fnd_file.output,'PERIOD'||'----'||'GROUPID'||
'----'|| 'SOURCE');
loop
fetch cur2 into J;
exit when cur2%notfound;
open cur1(J.sdate,J.edate);
loop
fetch cur1 into I;
exit when cur1%notfound;
fnd_file.put_line(fnd_file.output, J.period||'----'||I.groupid||'----'||
I.source);
end loop;
end loop;
Close cur1;
close cur2;
Exception when others then dbms_output.put_line(SQLERRM);
end;
==================================================================================================
For SOB value set, I have passed the default value as vamsi suggested ($profiles$.gl_set_of_bks_id)....
For period value set, I have entered query as ..where application_id = 101
and set_of_books_id = :$PROFILES$.gl_set_of_bks_id
and closing_status IN ( 'O', 'F', 'C')
order by period_year, period_num...................
It still doesn't work....I don't know how to derive those Periods based on the SOBs and at the same time pass SOB id into the cursors...
Please help...
Rgds,
Murali -
Value sets and Report Parameters
Hi
these are my requirements
i have developed report using scott where the
parametes are
dname
empinfo
(1)If i select Department 1o then
in parameter empinfo should display the value only from department 10
(2) i have created a value set for report parameters empinfo
it only shows two columns like EMPNO AND eNAME AND THERE only two column space to be shows
how could i make columns to be displayed in addition to ename and empno
RegardHi KittyCat101,
If I understand correctly, you want to use a parameter to filter Status field that starts with “Is” or “Can” or “Fi”. If in this scenario, we can refer to the following steps to achieve your goal:
Modify the available values for @Status parameter to “Is”, “Can” and “Fi”.
Right-click the tablix or dataset to open the properties dialog box.
Select Filter in the left pane, then add a filter like below to filter Status field:
Expression: =Fields!Status.Value like (Parameters!Status.Value & "*") Type: Boolean
Operator: =
Value: true
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to do a reverse lookup on a value set?
I have a concurrent program which has multiple paramaters with various value sets. When I run reports, I want to dynamically list on the output the parameters the user gave. The problem is that these values are often the IDs and not the value the user sees.
Are there any packages in applications that will let me to do a "reverse lookup" with the value sets to get the values the user saw?
Thanks,
Kurzweil4Hi Stomie,
Based on your description, the network ID of your reverse lookup zone is 172.16.160.
To create a reverse lookup zone, please follow steps below,
Right click Reverse Lookup Zones, click New Zone, choose proper settings of
Zone Type, Active Directory one Replication Scope,
Reverse Lookup Zone Name type based on your actual situation.
In the Reverse Lookup Zone Name page, check Network ID
radio button, enter the network ID. For example, if the network ID is 172.16.160, then enter 172, 16, 160 in order. Then you will see it appears
160.16.172.in-addr.arpa in the Reverse lookup zone name edit.
Or in the Reverse Lookup Zone Name page, check
Reverse lookup zone name radio button, then enter the name of the reverse lookup zone directly. Such as, enter
160.16.172.in-addr.arpa in the edit.
Click Next twice, click Finish.
Reverse lookup zone name end up with in-addr.arpa.
Best Regards,
Tina
Maybe you are looking for
-
How do I delete imported photos on the iPad in less then 2000 clics?
Hi. I've been using the iPad to collect photos form my digital cameras. I have a few thousand of such photos on my iPad. Today I wanted to delete them (because they take a lot of memory and are synched anyway after correction). I could only find how
-
I have a question to ask you about General Data Selection in Report Painter
Please help me out. Thi is the question....here it goes. In a Report in ReportPainter, I have in the General Data Selection the following selected characteristics. They are: Ledger = 0 Record Type = 0 Version = 1 Fiscal Year = Z-ANOACT Period = (1CP
-
Why are some of my songs ghosted and some are not?
Why are some of my songs ghosted and some are not?
-
MacBook AIR not functioning correctly
HI everyone, I have a 2014 MacBook Air running Yosemite and it has been completely functional until Friday morning when it rebooted itself without any input from myself. I was on a webpage and the screen went white before going to the Apple logo and
-
Making a button with a picture
I'm trying to make a button with a picture I made in photoshop.. but the problem is that the background is transparent, I just want the main part to be clickable. Here is an example.. I just want the purple part to be clickable. The box around that i