Parameters default
How can I define a procedure with a default (null) parameter, when the parameter type is as owa_util.ident_arr or vc_arr ?
This doesn't work..
proc_name(
p_1 owa_util.ident_array default (null),
p_2 owa_util.vc_arr default (null)
null
All the data conversions are necessary because you're comparing a number (SRBRECR_TERM_CODE) with a character ('%').
SQL> select ename, sal from emp
2 where deptno = to_number(case when to_char('&&dno') = '%' then to_char(deptno)
else '&&dno' end)
3 /
Enter value for dno: 10
old 2: where deptno = to_number(case when to_char('&&dno') = '%' then to_char(
deptno) else '&&dno' end)
new 2: where deptno = to_number(case when to_char('10') = '%' then to_char(dep
tno) else '10' end)
ENAME SAL
BOEHMER 2450
SCHNEIDER 5000
KISHORE 1300
SQL> undef dno
SQL> r
1 select ename, sal from emp
2* where deptno = to_number(case when to_char('&&dno') = '%' then to_char(deptno)
else '&&dno' end)
Enter value for dno: %
old 2: where deptno = to_number(case when to_char('&&dno') = '%' then to_char(
deptno) else '&&dno' end)
new 2: where deptno = to_number(case when to_char('%') = '%' then to_char(dept
no) else '%' end)
ENAME SAL
CLARKE 800
VAN WIJK 1600
PADFIELD 1250
ROBERTSON 2975
BILLINGTON 1250
SPENCER 2850
BOEHMER 2450
RIGBY 3000
SCHNEIDER 5000
CAVE 1500
KULASH 1100
HALL 950
GASPAROTTO 3000
KISHORE 1300
14 rows selected.
SQL>Cheers, APC
blog: http://radiofreetooting.blogspot.com
Similar Messages
-
HI all;
am working with ALV Reports .
These reports will be displayed data in ALV Format and as well it will Transfered the ALV displayed data into xml files.
for given location in application server.
PARAMETERS zfname TYPE AUTHB-FILENAME DEFAULT ''D:\usr\sap\CCMS\sap_itax\Cust_'.
xml files will be generating in application server with this path.
Note: am using OPEN DATASET filename FOR OUTPUT IN TEXT MODE message msgs ENCODING DEFAULT.
it's woking fine with this Path.
My Requirement is:
i want to generate these xml files into specific location (not in Application server) it's in different system.
can i give the default File path(OTHER SYSTEM SHARED FOLDER) like the below.
PARAMETERS zfname TYPE AUTHB-FILENAME DEFAULT '
192.123.1.114\TEST\FILE1'.
IP:
199.123.1.123\
TEST: IS THE FULL ACCESS SHARED FOLDER NAME (IT'S IN OTHER SYSTEM) OR CLIENT SYSTEM.
FILE1: NAME OF THE FILE.
THANKS;
UPEN.http://www.saptechies.com/how-to-send-some-abap-data-to-an-excel-sheet-using-ole-automation/
-
Static Parameters - Default Values Not Showing On Crystal Server
First, I create a basic report with static parameters. Then I assign default values to the parameters. When I run the report in the Crystal Developer, a window pops up and I see my parameters with the default values assigned. At this point, if I run the report, it runs as expected and uses the default parameter values.
However... if I install this same report on the Crystal Server, select 'Properties' > 'Default Settings' > 'Parameters', I see my parameters but I don't see their default values, yet if I select 'View', then a window pops up and I see my parameters and their default values.
I guess I have the following questions:
1. What's the difference between 'Viewing' and 'Running' a report on the Crystal Server?
2. Why don't I see the parameter default values when I select 'Properties' > 'Default Settings' > 'Parameters' in the Crystal Server?
I see the same behavior whether I use CR Developer XI or 2008. The reports are being run on Crystal Server 2008.Hi,
There are two modes of saving a report. 1 save your report with data (to do this go in File-- Save Report with Data check this option) 2. Save your report without data (uncheck the above said option)
I think you are saving your report without saving the data with your report. Try to save the report with saved data this will keep your parameter default values.
Viewing is just looking at your report data which was saved along with your report. 'Running' is nothing but you are refreshing your report which will give you current data.
Thanks,
Sastry -
User Parameters default to Selection Screen params
Hi Experts,
I am having a SELECTION SCREEN with Parameters for Company Code(BUKRS) & Purch Org (EKORG).
I need to default the values of these fields with their respective user parameters for BUKRS & EKORG.
manintained iwhich are 'EKO' & 'BUK' in my program.
How can i do that?
Thanks
DanHi,
If the user maintains these parameters in their profile with the values , then the values will be populated from there.
System->User Profile-> goto the parameters tab there you can ask the user to maintain the parameters you mentioned with the default value they need and save this.
Now when that user runs the report, the values from the user profile will be copied to the respective selection screen parameters
regards,
Advait -
SSRS 2008 R2 Report parameters have default values and report not to auto run
Hi, I am using SSRS 2008 R2 one of my requirements for a Report is all the parameters have default value and I do not want this report to auto run when users open this report. I can create a dummy hidden parameter to break the auto run for this
report. But I am looking for solutions other than that.
Thanks in advance..........
IoneHi lone,
According to your description, you have a report with parameters. Now you want you report not to run automatically with your parameters default values. Right?
In Reporting Service, if you have parameters with default values in your report, your report will always auto run with these default values. We can say these default values are used for report running initially. So for your requirement, if you really need
to see your default value before the report running, the best workaround is set one more parameter to break the auto run like you have done. If you just want your report not to auto run, your can achieve it by removing those default values.
Reference:
Report Parameters (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou (Pactera) -
Default values for parameters in Java API
I have a Crystal report formats with some input parameters set to default values. How do I retrieve them in the Crystal Java API?
Thanks,
Chandra PrakashI normally do not look at this forum as about all I know about Java is that it comes out of the coffee machine in the kitchen...
But see if the following KBA will help, even though it is written specifically for .NET:
1202315 - How do I get a parameters default value's description via the NET SDK?
- Ludek
SCN Moderator -
Sender Mail Adapter - default interface name
Hi,
I need to receive through one e-mail sender channel tree different kind of messages.
In sender mail adapter I specify ecept other parameters "Default Interface Name". When I send a message with a same as defined in an interface the message is processed correctly.
But when I send a different kind of message then I get an error : "Receiver could not be determined".
Is any way around how through one sender e-mail adapter receive a different kinds of messages ?
Thanks for any help,
MarianHello Marzian,
have you find a solution for this problem?
We're facing the same issue.
thanks,
-Peter Ha -
Issues passing drillthrough parameters from a multi-level tablix in SSRS 2008 R2
Hello,
I am really struggling with trying creating a drillthrough report that starts with a matrix (tablix) and passing those parameters. I am using SSRS 2008 R2.
Here's my scenario:
I have a matrix that has mulitple levels where you can drill down. Here an example with all the levels open:
Active
Term
Leave
Total
128
88
121
United States
110
80
85
New York
65
30
57
Manhattan
10
6
9
Buffalo
20
23
4
Albany
35
1
44
Texas
45
50
28
Dallas
40
30
22
Houston
5
20
6
France
18
8
36
Centre
18
8
36
Blois
7
2
8
Druex
6
1
15
Tours
5
5
13
I want to drillthrough to another report - Detail Report. As I understand it, I would click the 65 for New York and I would see the detail for the 65 Active people. If I click the 2 under Blois, I would see the 2 terminated people in Blois. My understanding
for this to work, the Detail Report would need a a parameter for each of the level possibilities in the matrix that I could click: Country, State, City as well as the Status (Active, Term, Leave).
While I understand about passing parameters, what I don't understand is how to pass the parameters if they are blank. Let's say I clicked 65 for New York, I would need to pass State = New York Status = Active. But the remaining parameters (Country
and City would be null). I know Country doesn't need to be Null in this case.
My Detail Report has the parameters defaulted to Null, but whether I put the parameters in a Filter for the dataset or in the query itself, I cannot get it to ignore the Nulls.
As a crazy work-around (I think) I can put in the Where of the query something along the lines of: this:
and (a.Country in (@paramCountryCode) or NULL in (@paramCountryCode) )
and I would need to do that for each parameter. Usually I have to use 'ALL' instead of NULL, I'm note sure why.
Additionally, in the Report Action of the Main Report, I need to pass those parameters for each level and their Status. I am also not clear whether or not I need to put in all the parameters on each of the levels (Country, State, City) of the matrix. And if
I do, do I need to make the expressions an IIF statement stating whether or not they are In Scope?
All the examples I was able to find, only showed one or maybe two parameters being passed. Doing the way I am trying, seems convoluted, error-prone and tedious. I really hope that I am wrong.
Is there a better way to approach drilltrough reports from a matrix when there are multiple levels?
Thank you for the help.
~JHi Jenna_Fire,
According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
multiple values for parameter Country, State and City in both reports.
2. In corresponding textbox, pass appropriate parameters in go to report Action.
4. Filter data in detail report (in where clause or using filters).
5. Save and preview. It looks like below:
Reference:
Using Parameters to Connect to Other Reports
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
I need to pass null as a default value for a parameter in Before Trigger
Hi All,
I am using Before trigger function in calculation tab which has some set of parameters.So, I accept some parameters which are passed to this Before Trigger function and need these parameters default value as null.
To be clear I want to set the Default value for a parameter in workbook to be NULL and pass the same to the calling Function.
please help me.
Thanks in advanceHi All,
I am using Before trigger function in calculation tab which has some set of parameters.So, I accept some parameters which are passed to this Before Trigger function and need these parameters default value as null.
To be clear I want to set the Default value for a parameter in workbook to be NULL and pass the same to the calling Function.
please help me.
Thanks in advance -
Bursting and Parameterized report
Hi,
My scenario is as follows:
I have a report which displays customer details for particular month.
Previously, I created this report with two parameters -
a) Customer ID
b) Month-Year
Now, I have to use bursting to generate report for each combination of customer and month-year
My questions are,
1) In this case, I have two KEY values - Customer and Month-Year
But, we can give only one KEY value.
How should I add Customer ID as well as Month-Year in KEY tag?
2) If I have to use bursting capability, I have to remove parameters - Customer ID and Month-Year
Because, if I keep it, my data set query has filter on it
and I don't get any result for bursting.
Can we use parameters and bursting at the same time?
For example:
Previously my query was,
Select Customer_ID, Month_Year from Customers where Customer_ID = :Customer_ID and Month_Year = :Month_Year
In Bursting Query will be,
Select Customer_ID, Month_Year from Customers
I want to use both the capabilities -
a) User should be able to view report with parameters
b) User should be able to burst the report
Thanks for helpThanks for reply..
Following are my comments:
1. I will try that. Thanks
2. Ok. Good.
3. See,
My Data Set Query is,
Select Customer_ID, Month_Year from Customers where Customer_ID = :Customer_ID(Parameter 1) and Month_Year(Parameter 2) = :Month_Year
Here, :Customer_ID and :Month_Year are parameters
Default values would be,
Say, Customer ID = '123456'
And, Month_Year = '201412'
In this scenario, user can enter customer ID and month-year
In case of bursting, how we can handle this?
4. We don't expect NULL values as reports will be fetched from processed data
5. When bursting, we wnat to create PDFs for each Customer ID and Month-Year combination
So there will not be any input parameters (Customer ID and Month_Year) -
11g - job_queue_processes parameter default to 1000 (also the max value)
Hi,
I'm just playing with my first installation of 11g (11.1.0.6.0 on Windows XP) and I'm looking through the parameters, default values etc.
I've noticed that if I create a database without specifiyng a value for job_queue_processes it defaults to *1000* (also the max possible value). Is this normal? A good idea?!! Why have they set the default so high? I would think setting it this high may lead to resource problems (O/S resource problems for example) and that most sites would not need to go anywhere near this high. What does the team think...?
Regards,
AdosAdos wrote:
Hi,
I'm just playing with my first installation of 11g (11.1.0.6.0 on Windows XP) and I'm looking through the parameters, default values etc.
I've noticed that if I create a database without specifiyng a value for job_queue_processes it defaults to *1000* (also the max possible value). Is this normal? Yes. See http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/initparams102.htm#CHDGECCF -
Default selection parameter in ME2M
Is it possible to default selection parameter in ME2M to " ALL" by setting in SU3 - Parameter with parameter ID " SEL"
If yes,what is the parameter value to be enter?
Thank youyou can define a general default value for all users in customizing OLME > purchasing > reporting > selection parameters > default..
a user can individual set a default in parameter SEL in SU3 . The value is then just the value that you want in the screen, which you can see if you press F4 in the selection paramater field in ME2M e.g. WE101
In general ME2M remembers how the user executed the selection the last time and uses this values as default for the next time. -
Default value of report parameter
hi there,
i want to filter my data with a dynamic report parameter as a combo box. its default value should be "all". If "all" is selected, all of the data should be shown.
It worked using the filter:
row["status"] Equal to (params["NewParameter"].value == "all" ? row["status"] : params["NewParameter"].value )
to make it more dynamic i want to replace "all" by the parameters default value. something like
row["status"] Equal to (params["NewParameter"].value == params["NewParameter"].defaultValue ? row["status"] : params["NewParameter"].value )
does anybody know how to get the default value?You can use this in script or the expression builder to get the default
value of a parameter:
//1stparameter
reportContext.getDesignHandle().getParameters().get(0).getDe faultValue();
Jason
On 8/12/2010 7:52 AM, xoto wrote:
> hi there,
>
> i want to filter my data with a dynamic report parameter. its default
> value should be "all". If "all" is selected, every data should be shown.
> It worked using the filter: row["status"] Equal to
> (params["NewParameter"].value == "all" ? row["status"] :
> params["NewParameter"].value )
>
> to make it more dynamic i want to replace "all" by the parameters
> default value. something like
> row["status"] Equal to (params["NewParameter"].value == "all" ?
> row["status"] : params["NewParameter"].defaultValue )
>
> does anybody know how to get the default value? -
Dear All,
Can we make MRP screen Parameters Default.
If Yes How?
Please let me know.
Thanks
Regards
RAghuDear Raghu,
Not in front of SAP
But in MD01 or MD02, Just input required parameters you want then go to header tab
Settings > Save
Now every time same parameters will appear
Regards
Madhu -
MPS/MRP : OPM Schedule Parameters
Hi Folks,
"If you accepted the default organization from the previous field, the code for the
default schedule parameters assigned to the user/planner (in User Profiles)
displays here."
Above Paragraph i copied from OPM - MPS/MRP user guide.
My query is :
Where i can find the "User Profiles"?
Please reply me, this is urgent i have to continue my setup.....
RazzyHi Razzy ,
May be from Session Parameters > Default Values > Schedule
Regards,
Ram
Maybe you are looking for
-
"File Error: Unknown File" when rendering
Hi, When attempting to render any clip I get a "File Error: Unknown File". Help? I'm using FCP 6.0.5 with video content from a Canon consumer HD camera. Thank you, Tim Moore
-
DATE probs with turn-of-the-century
Any suggestions are appreciated. This is probably something hundreds of you have run across, but I am experiencing it now, for the first time, with two separate WinNT4 installs. For background: http://technet.oracle.com/doc/server.804/a58225/ch3all.h
-
A few questions about the Zen Mi
I'm looking into the Zen Micro 5GB, and I have a few questions that I couldn't find on the sight or aren't completely sure of. Sorry if I'm just blind and didn't see them, but I figured you guys could help. ) How do you charge the battery? I'm assumi
-
Compare n kyf and m chanm of Top 10 Document-No.s between two dates
Dear BW-Gurus, Our Customer want´s a query, which shows in the TOP 10 of some sales-doc´s and marks a line, if the key figures or a characteristic has changed from one date to an other date (Comparision of a sales document between two dates). We now
-
How to process screen flow using PAPI and WAPI
Dear all, I need to process the screen flow from PAPI or WAPI. I want to know which API(PAPI or WAPI) i should use and how to achieve that. as far as i know, there is two part in WAPI. (external to work portal, throungh the html process API, and inte