Re: Use of Variables in Formula (GRR3 Report)
Hello,
I have defined a report in the GRR3 transaction (Report writer) and am trying to use a variable in one of the columns. By reading the advice, it says you can enter the variable (0F-RP00 for example) as '&0F-RP00' and it should work, i am doing this but it keeps on telling me that it is incorrect. Can anybody tell me what i may be missing?
regards,
Stepheh
The Variable is created of course. In fact, its standard 0F-RP00.
Similar Messages
-
Using Bind variables in SQL PLUS Report
using Bind variables in SQL PLUS Report. This report gets the arguments from the application concurrent program. Now my need is to convert the start_date and end_date to bind Variables to improve the performance. I have commented the original code in 'prompt List of Unapproved Adjustments' and used my Bind Variable but it is giving an error
error: Bind Variable "ENDING_DATE" not declared
Report Date and Time:
26-OCT-2010 15:44:13
List of Unapproved Adjustments
Bind Variable 'ENDING_DATE" not declared
Please see below the code for the sql plus report:
define p_org_id = '&1'
define p_fy_begin_date = '&2'
define p_start_date = '&3'
define p_end_date = '&4'
define p_conversion = '&5'
declare
variable begin_date date;
exec :begin_date := p_start_date;
variable ending_date date;
exec :ending_date := p_end_date;
/* Begin
:begin_date := to_date('&p_start_date','YYYY/MM/DD HH24:MI:SS');
:ending_date := to_date('&p_end_date','YYYY/MM/DD HH24:MI:SS');
End; */
set newpage none
set termout off
set pagesize 55
set linesize 180
set heading on
set feedback off
set wrap off
set space 1
set heading on
begin
dbms_application_info.set_client_info('&p_org_id');
end;
prompt
prompt Report Date and Time:
prompt ----------------------
select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS')
from dual ;
prompt
prompt List of Unapproved Adjustments
prompt -------------------------------
select b.trx_number,
a.adjustment_number,
f.user_name created_by
from apps.ar_adjustments a,
apps.ra_customer_trx b,
apps.fnd_user f
where a.customer_trx_id = b.customer_trx_id
and a.status <> 'A'
and a.created_by = f.user_id
and a.creation_date between :begin_date
and :ending_date
-- and a.creation_Date between to_date('&p_start_date','YYYY/MM/DD HH24:MI:SS')
-- and to_date('&p_end_date','YYYY/MM/DD HH24:MI:SS')
order by
b.trx_number ;Hi
Please go to customization part of the report and verify..You have set a default value out there ..And also verify your lov and look at the values ..If it is again giving you the problem ..pl delete the report and develop it again from the scratch it will be solved...
vishnu
null -
Use of variable to generate a report
Hi,
Can anyone help!
I've created a selection list with submit, which displays a list of applications, the return value is the name of the remote database table which holds exceptions associated to the chosen application. This is in a html region called Database Selection and the return is P4_APPLICATIONS (e.g. aps_monitor_excp_codes@eds.
I then have a report in a region called Exceptions which must used the supplied database name in the from. Here is the source, when I change the table variable back to a literal it works so the problem must be with how or where I'm using the variable.
declare
v_return varchar2(4000);
begin
v_return := 'Select SortOrder, ExceptionSequence, DateStamp, Priority, ProcessID, ExceptionCode, ShortMsg, FullDesc, ProcessName, ExceptionObject, ErrorDetails, Action, apex_item.checkbox(1,Acknowledged, decode(Acknowledged,''Y'',''CHECKED'',Null)) Acknowledged
from (SELECT upper(nvl(a.exception_acknowledged_yn,''N'')) SortOrder,
a.exception_sequence_number ExceptionSequence,
a.exception_timestamp DateStamp,
decode(b.priority, ''A'', ''HIGH'', ''B'', ''MEDIUM'', ''C'', ''LOW'', ''D'', ''INFO'', ''UNKNOWN'') Priority,
a.unix_pid ProcessID,
a.exception_code ExceptionCode,
htf.escape_sc(b.short_exception_message) ShortMsg,
htf.escape_sc(b.full_description) FullDesc,
a.process_name ProcessName,
a.exception_object ExceptionObject,
htf.escape_sc(a.exception_detail) ErrorDetails,
htf.escape_sc(b.action) Action,
upper(nvl(a.exception_acknowledged_yn,''N'')) Acknowledged
FROM :P4_APPLICATIONS a, monitor_excp_codes@eds b
WHERE a.exception_code = b.exception_code (+))
order by 1, 2 desc';
return v_return;
end;
Any help would be appreciated, if I have to ask my colleagues I'll get a blonde joke!
Thanks
BecksYou can't use bind variables in place of table names in SQL. Change it to:
...FROM ' || :P4_APPLICATIONS || 'a ...
Scott -
Using bind variables in a portal report
I'm using a portal 3.0.9 report with bind variables.
I also use LOV to let the user choose his own parameters for these variables.
When user click Apply on the customization form of the report, the selection is always "set to default"Hi
Please go to customization part of the report and verify..You have set a default value out there ..And also verify your lov and look at the values ..If it is again giving you the problem ..pl delete the report and develop it again from the scratch it will be solved...
vishnu
null -
Using Text variables in Formula
Hi all,
I wanted to know if there is a known problem with using a text variable in a formula's title???
Every time I try to use the text var. in formula with the same technique i do in the selction, i recieve the message :
'No Valye found for text variable zzz in "&zzz&" .'
Anyone have a clue?
I promise to return and reward the answers
Yaniv.Hi,
Pls give the properties of the variable you have used.
It should of user entry variable right? -
Using bind variables in Shared Component Reports not working
I've created a report query as a shared component in my APEX application. I'm calling the report on a page via a button. The query behind the report has bind variables for period and entity fields which are both defined on Page 0. I can run the query and return values just fine, but when you run the report from the page via the button, I get no values back. Does anyone know a trick to getting this to work? I've been working in APEX for about a month and I don't have much developer experience so any help is appreciated.
Regards,
-SteveRohit,
Thanks for your response. We are using APEX version 4.2.1.00.08. I do have Session State enabled and have put the required page items in the list. Here is my report query (highlighted lines contain the bind variables):
SELECT TAX_DIVISION.DIVISION_CODE Division,
TAX_ENTITY.ENTITY_CODE Entity_Code,
DECODE(TAX_ADJUSTMENT.CATEGORY_DESC,'Net Income/(Loss)',1,'Permanent Adjustment',2,'Temporary Adjustment',3,4) Category_Desc,
TAX_ADJUSTMENT.CLASSIFICATION Classification,
TAX_ADJUSTMENT.ADJUSTMENT_CODE Adjustment_Code,
SUM(NVL(NVL(TAX_ENTITY_ADJUSTMENT.OVERRIDE_AMT,TAX_ENTITY_ADJUSTMENT.ADJUSTMENT_AMT),0)) Tax_Amount
FROM TAX_DIVISION,
TAX_ENTITY,
TAX_ENTITY_ADJUSTMENT,
TAX_ADJUSTMENT,
TAX_PERIOD
WHERE TAX_DIVISION.DIVISION_ID = TAX_ENTITY.DIVISION_ID
AND TAX_ENTITY.ENTITY_ID = TAX_ENTITY_ADJUSTMENT.ENTITY_ID
AND TAX_ENTITY_ADJUSTMENT.ADJUSTMENT_ID = TAX_ADJUSTMENT.ADJUSTMENT_ID
AND TAX_ENTITY_ADJUSTMENT.PERIOD_ID = :P0_PERIOD_ID
AND TAX_ENTITY_ADJUSTMENT.YEAR_ID = :P0_YEAR_ID
AND TAX_ENTITY.DIVISION_ID = :P0_DIVISION_ID
AND TAX_ADJUSTMENT.ADJUSTMENT_CODE = 'IBIT'
GROUP BY TAX_DIVISION.DIVISION_CODE ,
TAX_ENTITY.ENTITY_CODE ,
DECODE(TAX_ADJUSTMENT.CATEGORY_DESC,'Net Income/(Loss)',1,'Permanent Adjustment',2,'Temporary Adjustment',3,4),
TAX_ADJUSTMENT.CLASSIFICATION ,
TAX_ADJUSTMENT.ADJUSTMENT_CODE
HAVING SUM(NVL(NVL(TAX_ENTITY_ADJUSTMENT.OVERRIDE_AMT,TAX_ENTITY_ADJUSTMENT.ADJUSTMENT_AMT),0)) !=0
ORDER BY DIVISION_CODE, DECODE(TAX_ADJUSTMENT.CATEGORY_DESC,'Net Income/(Loss)',1,'Permanent Adjustment',2,'Temporary Adjustment',3,4), CLASSIFICATION, ENTITY_CODE, ADJUSTMENT_CODE
The query returns data when I set the bind variables and test in the report queries screen. When I assign the report query URL to the button in the application and run from there, I get no results. -
Using bind variables in user defined reports
How do I go about using a bind variable in a user defined report?
Here's a trivial example in SQL*Plus:
var ublocksize number
begin
select value into :ublocksize
from v$parameter
where name = 'db_block_size';
end;
select :ublocksize from dual;
This code does not work in raptor.
The error displayed is:
Missing IN or OUT parameter at index:: 1
Vendor code 17041
any ideas?You also have a second issue of supporting the following syntax in SQL scripts:
var ublocksize number
begin
select value into :ublocksize
from v$parameter
where name = 'db_block_size';
end;
We are itterating to support all SQL plus commands
Mike -
How to declare and use a variable in BI Publisher report
Hi Experts ,
I have to groups of serial numbers and both group are put in same table and same row one after another , and i have a condition that if no serial number is present in both group than the line of that table should not be appeared ,i used the condition region ,biut this condition region is working in single group case if i put both groups together ,the blaing line appears with its label ,I think if i will have have variable which can count the total present of serial number than I cant put a single condition ,would you please help me ,how can I declare a variable and how can i count the number of serials in both groups ,please find below the example
<grp1><?SR_NUM1?><end of grp1> <grp2><?SR_NUM2?><end of grp2>
above example is how i am printing now ,now i need a combined condition where if bot group do not contain any value then this blank line should not appear . thanks in advance.
Thanks
PratapHi ,
Decalring the Varible :
<?xdoxslt:set_variable($_XDOCTX, 'var', 0)?>
Do the calculation :
<?xdoxslt:set_variable($_XDOCTX,'var', xdoxslt:get_variable($_XDOCTX,'var‘)+ XML columnname)?>
Display the Variable :
<?xdoxslt:get_variable($_XDOCTX, 'var')?>
Declare the varaible before your loop starts.Do the calculation part inside the loop so for each row it will be updated.
Display the results where you want using the form field and place the display varaible syntax.
Hope this will helpful for you.
Thanks,
Ananth -
Report Painter - variables in formulas
Dear all,
we try to use value variables in formulas within Report Painter reports which should not influence the selection. Example: the benchmark of a daily rate is 975 - and the report should calculate the variance between the effective daily rate (total of service-provider costs divided by number of rendered hours divided by 8). The 975 should not be stored as a fixed value within the formula but should be defined as a value variable.
Ideally the value should be editable at the selection screen.
Has anybody an idea?
Thanks for your response.Hi
I suspect you are not able to use the '& symbol in the formula in your system because the note 593897 was not present in old release.
Due to this note there is no need to enter '&' symbol for variables in the formula but in order for the variables to be used please make sure that the variable is contained in the general data selection of the report.
Kidn Regards
davide -
Use subreport total in formula in main report
Hi,
I have a subreport which is a total figure. I just want to muliply this by a number in a field on the main report, can this be done?
Any help appreciated!Symptom
A report contains a subreport. Data from the subreport is required for calculations in the main report.
How can you share subreport data with the main report in version 7 (or higher) of the Crystal Reports Designer?
Resolution
Shared variables, introduced in Crystal Reports version 7, make it easier to pass values from a subreport to the main report. Using shared variables requires two formulas: one to store the value in a shared variable, the other to retrieve the value from the shared variable.
The most important thing to remember when using shared variables is that Crystal Reports must first evaluate the formula where the value is stored before evaluating the formula that retrieves the shared variable.
For example if you want to pass a grand total from the subreport to do a calculation in the main report, follow these steps:
1. In the subreport, create a formula similar to the one below:
//@SubFormula
//Stores the grand total of the
//{Orders.Order Amount} field
//in a currency variable called 'myTotal'
WhilePrintingRecords;
Shared CurrencyVar myTotal := Sum ({Orders.Order Amount})
2. Place this formula in your subreport.
3. In the main report, create a formula that declares the same variable name:
//@MainFormula
//Returns the value that was stored
//in the shared currency variable called
//myTotal in the subreport
WhilePrintingRecords;
Shared CurrencyVar myTotal;
myTotal
4. Place @MainFormula in a main report section that is beneath the section containing the subreport.
NOTE:======
For the shared variable to return the correct value in the main report, you must place @MainFormula in a main report section that is beneath the section containing the subreport. This ensures Crystal Reports evaluates the @SubFormula before @MainFormula.
One way to do this is to insert a section below the section containing the subreport, and place @MainFormula in this new sub-section:
· On the 'Format' menu, click 'Section'.
· On the 'Sections' list, click the section containing the subreport.
· Click 'Insert' (at top of dialog box). This inserts an additional subsection.
· Click 'OK' to return to the report, and insert @MainFormula into this new sub-section.
The next time you preview the report, @MainFormula displays the value from the subreport. In this particular example, that value was the grand total of the {Orders.Order Amount} field.
============
5. Once you have verified that @MainFormula is returning the correct value from the subreport, you can include this formula in other main report formulas, such as:
//@NewFormula
//includes data from subreport
{@MainFormula}+ Sum ({Customer.Last Year's Sales})
· Place this formula in the same section as @MainFormula, or in a section further down on the report.
You have now successfully shared data from a subreport with the main report.
NOTE: =====
This is not possible with On Demand Subreports in Crystal Reports. -
Conditional suppression using substitution variable in Hyperion financial r
Hi all,
Is there a way that I can suppress a column using substitution variable in hyperion financial reporting?
For eg, i want to suppress the column if the value of the substitution variable curr_mnth = jun.
Is there a way to do this? In conditional suprression dialog box, I dont find this option.
Please suggest.
Your response is appreciated.
Thanks,
Sirisha.Hi Sirisha
In my earlier reply I think I may have mislead you as I thought that you could set the member name equal to that in a row/column and I've managed to get into a HFR studio session this morning and realised that the conditional suppression only allows you to suppress where member name = 'XXX' (specific text) so that doesn;t meet your requirement.
Different people will have different ways of achieving what you want and everyones requirements are different. If it helps my preferred way of conditionally suppressing periodic data (for Planning/Essbase) is to add a dynamic calc account member called 'TP-Index' into the database, set up a formula so that each period returns a numeric value from 1 to 12 to match the fiscal/calendar year as required.
Then in reporting bring the account and period dimensions into rows/columns so that you are able to retrieve data for the TP-Index account and the period as defined in your substitution variable. You can then choose how the suppression works based on a numeric value, commonly you may want to suppress if greater than, e.g. you have a multi-period report where your actual data is to June so you want to suppress everything from July onwards.
I'm sure that a similar thing could be achieved in HFM as well if that is your underlying system instead of Essbase.
Does that help?
Stuart -
Create New Variable for COPA Drilldown Reports in KE3E
Hi,
How can we create a formula variable for COPA Drill down reports in KE3E? In standard global variables formula variable is not avaiable, I need to create a formula variables like ...from period, to period, last fiscal year and next fiscal year..
While creating report in KE31/KE35 trying create local variables, but it doesn't.
Can any body advise how can we create a new variables for "from period, to period, last fiscal year and next fiscal year.."
Thanks
VS RaoHi Rao
For Period (From &To)
1. KE3E
2. Type of Var = Char Value
Enter variable name, say, ZPERIOD
Field Name = PERDE
Replacement type = Entry
Enter Description
Parameter/selectop = Selection Option
For Fiscal Year
Type of Var = Char Value
Enter variable name, say, ZGJAHR
Field Name = GJAHR
Replacement type = Entry
Enter Description
Parameter/selectop = Parameter
For Next and Last Fiscal Year
When you define your form in KE34/KE35
Use the variable ZGJAHR in your report
In the column for Next Year, Enter "ZGJAHR+1" as the local variable for GJAHR
In the Column for Last year, Enter "ZGJAHR-1" as the local variable for GJAHR
Regards
Ajay M -
ALL variables in one single report
Hi Experts,
I have one requirement, i am creating report on multi provider , so i have to create report to include all variable and it's definition(for wht purpose the variables are created means with description in report.).
So is there any posibility Please explaine me clearly how we crarte report on all variables.
Thanks in advance
BharatiHi Bharati,
Still not clear about the requirement ......
There is a table for variable name and its description been stored. Please do generic extraction using table of view and load data to cube. then generate a report on top of it. But purpose of variable may be differ for each report , identifying of the purpose of the variable not possible with out manual intervention. eg. i have calmonth variable reference to document data which ready for input .. using the same I am deriving a customer exit variable to populate ytd or mtd how will you analyze this ?? if I want to use same variable to any other report which used to used as it is based on doc date..
Thanks
BVR -
How to use System Variable SY_ROW in the Process Instruction Category
Hi ,
I want to assign a value of System variable SY_ROW to a Normal Variable in the Process Instruction Category and use it in the formula. Please help me with the Syntax in the Process Instruction Category to get the System Variable: SY_ROW value into a Variable.
Thanks,
SVHello,
You can use these variables in formulas or, for example, to pass on certain pieces of information to a function module. How the function called by the function module behaves depends on the type of information passed on.
SY_ROW is used to view the current Table line.
Please look into the below link for more details on syntax :
http://help.sap.com/saphelp_46c/helpdata/en/1a/514e38493e4774e10000009b38f889/frameset.htm
http://help.sap.com/saphelp_470/helpdata/en/1a/514e38493e4774e10000009b38f889/frameset.htm
Hope the information is helpful
Regards -
Variables in WebI - several reports
Hi,
I'm reporting on SAP BW data in Web Intelligence. However, I'm not sure how to handle variables (prompts) in my scenario.
I like the functionality that a WebI document can consist of several reports in different tabs. But how does this impact the use of variables (prompts)?
One report should show sales data for a time period that is specified by the user. This can be handled via a bw variabe. Furthermore the next report should have a column with sales data for one month + one column for the accumulated data for the entire year up to that month.
How should I arrange my variables in order to facilitate this? Should I use BW variables or should they be created in WebI?
Regards,
FredrikFredrik
One report do follow the same approach (BEx Variable-- BO Prompt)
Second report: (one month)
1. Filter the data as per date.
or
2. Create one more query and implement prompt at Query level , which gives only one month data.
or
3. Create one more variable in BEx & make it as Optional.
Hope it helps you.
I'm Back
Maybe you are looking for
-
How to use different Web Dynpro Applicat. in one view?
hello all, i want to call at least 3 different Web Dynpro Applicat as main view in one component configuration (or as subtables in one page in portal). can anyone please show me how to resolve this? thank you SR
-
I'm on vacation and tried to access my Facebook application. The icon is there, and when I click on it it acts like it's going to open, but then it returns to the main page. It does this for all of my applications that I have uploaded. I tried both r
-
Airport Extreme B.S. shutting down after a few minutes!
I have one of these,it's the one with the USB port and Ethernet port.Bought it a few months ago and it had been working perfectly until this weekend when I was out of town.Apparently,my Roadrunner cable/internet/phone service was disconected this las
-
CS4 Design Suite not working after OSX 10.7.5 upgrade
I recently upgraded my Mac OS to 10.7.5 from 10.7.4. I also upgraded Java from SE6 to 7. Now my cs4 design suite will not open. I click on the Illustrator alias but nothing happens. I get the Rainbow Pinwheel that spins for 2 seconds and then stops
-
Hello, We have Product Configuraion in ECC5.0 (SD System). Now we want to configure IPC for ECC5.0. Please let me know what is work effort involved in it?. Also I appreciate if somebody can tell what are the configuration steps involved with it. Than