How to claculate percentile at runtime?
Hi All,
I need to implement Percentile function in Function.
The example scenario as follows:
Data looks like below table.
Position country sales
1 Germany £230.00
2 Spain £480.00
3 Italy £720.00
4 UK £990.00
5 France £1,200.00
User will enter the percentile value(1 to 100 that means, 0.1 to 1.0), then bex varibale should receive values and calculates the percentile on keyfigure in the given example Sales is keyfigure.
Please shed some ideas how to implement this scenario?
Kind regards,
Ravi
Hi Ravi,
One way of implementing it is by creating a formula variable(say xyz) with the processing type as Manual Input/Default Value.
Then we can create a local formula in the query and write the formula here that you will be using to calculate the percentile.You can set the number of decimal places as 0.00 for this local formula.
Hope it helps.
VC
Similar Messages
-
How can I fix the Runtime Error R6034 so that I can correctly install iTunes on my PC ? I get a notice that states ' An application has made an attempt to load the C runtime library incorrectly - Please contact the application's support team for more info
Hey Debbiered1,
Follow the steps in this link to resolve the issue:
iTunes 11.1.4 for Windows: Unable to install or open
http://support.apple.com/kb/TS5376
When you uninstall, the items you uninstall and the order in which you do so are particularly important:
Use the Control Panel to uninstall iTunes and related software components in the following order and then restart your computer:
iTunes
Apple Software Update
Apple Mobile Device Support
Bonjour
Apple Application Support (iTunes 9 or later)
Important: Uninstalling these components in a different order, or only uninstalling some of these components may have unintended affects.
Let us know if following that article and uninstalling those components in that order helped the situation.
Welcome to Apple Support Communities!
Take care,
Delgadoh -
How to display BITMAP at runtime
Hey all....
I am new to Photoshop SDK CS2 plugin programming. Can anyone help me to find out any code or any information to display bitmap image on plugin dialog using photoshop API and not the Windows API or MFC. I am just using a simple Dialog extending PIDialog Class and placed a picture control at design time using resource editor in windows (Visual Studio).
When I pass the resourceID of an Image in design time to picture control it displays the image and plugin is also working good but don't know how to pass it at runtime.
thanksHi,
Thanks for your reply. My Plugin is an Automation type plugin and is visible in File/Automate menu. I am just opening a 'File Browse Dialog Box' through 'Open File' Button on Plugin Dialog to select a image file (*.bmp) then I want to display that image in thumbnail in Picture Control box on plugin Dialog (just like the File/Automate/Picture Package... plugin already included in Photoshop cs2).
I have also downloaded the code given by you. again thanks for that. I am trying to understand the code. But I think it is too much for just displaying an image in picture control.
Thanks -
How do I fix a runtime error?
How do I fix a runtime error?
See this tech note for rebuilding the media database and general troubleshooting tips.
http://helpx.adobe.com/photoshop-elements/kb/microsoft-c-runtime-error-launcing.html -
We are interested to know how/where to check query runtimes for any Query in SAP BW?
We are interested to know how/where to check query runtimes for any Query in SAP BW?
Is there any table or program to get the query run time details per query for a particular day.Hello Sravan,
Bex statics tables would be 'RSDDSTATHEADER','RSDDSTATINFO' & 'RSDDSTATEVDATA'. all these can found in one view 'RSDDSTAT_OLAP'.
above can give historical statistic.
For current Query statics : T-code RSRT, and select debug mode select display statistics and then execute.
Once you get the output press F3(one step back), there you can see statics of the query for that particular execution.
Thanks,
Mallikarjuna -
How to Close Adobe Pdf Runtime
Hi,
I am using the Adobe PDF Runtime to Print the *10g Report* Directly to Printer.
It's Is Working Fine. But After giving Print Option , The Adobe Runtime Still Running. Manually we need to Close that runtime window,
then only the control come back to Forms.
Can Any one tel me how to Close Adobe PDF Runtime window Automatically, When i give print report Directly to Printer.
Regards,
Gany
Edited by: Gany - Ford on Sep 28, 2010 2:03 PMThe easiest way is to set up syncing between your iPad and laptop with iTunes. You can read how on the Apple website in the iPad section, or you can answer a question on their forums: www.apple.com.
It's a really good idea to set up iTunes syncing so you can back up all the files on your iPad!
On a one-by-one basis you could email a PDF, or use Dropbox, but synching is much better.
Good luck! -
How to setup Forms 9i runtime environment?
How to setup Forms 9i runtime environment?
I developed a test form and I am getting "Page cannot be displayed" error when I run the form.
Steps I followed to run the form...
1. Started OC4J Instance
< Dos Window opened and contained data " Oracle 9iAS (9.0.2.0.0) containers for J2EE initialized >
2. I Run my test form.
< In the IE browser got "Page cannot be displayed" error.
In DOS Window I got the following message ...
FormsServlet init():
ConfigFileName: null
testMode false >
Do I need to setup something else???
Please advise.My guess then would be that the problem is that you get:
ConfigFileName: null in the OC4J log window. This should actually point to a config file for the Forms server : formsweb.cfg.
Are you running the OC4J that came with Oracle9iDS?
What happens if you try the following URL:
http://127.0.0.1:8888/forms90/f90servlet
I don't know why it is not configured for you. might be worth a reinstall. -
How to give path at runtime in GUI_DOWNLOAD
Hi experts,
I have a below given parameter on the selection screen:
SELECTION-SCREEN: BEGIN OF BLOCK b5 WITH FRAME TITLE text-005.
PARAMETERS: p_path LIKE RLGRAP-FILENAME modif id ZF1.
SELECTION-SCREEN: END OF BLOCK b5.
I am using the FM GUI_DOWNLOAD in my report.
My requirement is that I need to pass the path given
in p_path in this FM, i.e. I need not hard code the path in the
FM parameter 'filename', but need to pass it at runtime.
How can this functionality be achieved?
Thanks,
Ajay.Hi Ajay,
check the below code i hope it will help you.
SELECTION-SCREEN BEGIN OF BLOCK upfile WITH FRAME TITLE text-009.
PARAMETERS: p_file TYPE rlgrap-filename OBLIGATORY. "Source file name
SELECTION-SCREEN END OF BLOCK upfile.
*AT SELECTION-SCREEN
Browse source file name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
PERFORM f_browse_file CHANGING p_file.
FORM f_browse_file CHANGING p_p_file.
DATA: it_l_filetab TYPE filetable,
wa_l_filetab TYPE file_table,
l_rc TYPE i.
CLEAR it_l_filetab.
Browsing file
CALL METHOD cl_gui_frontend_services=>file_open_dialog
CHANGING
file_table = it_l_filetab
rc = l_rc
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
error_no_gui = 3
not_supported_by_gui = 4
OTHERS = 5.
IF sy-subrc IS NOT INITIAL.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
READ TABLE it_l_filetab INTO wa_l_filetab INDEX 1.
IF sy-subrc IS INITIAL.
p_p_file = wa_l_filetab-filename.
ENDIF. " sy-subrc Read
ENDIF. " sy-subrc-call method
ENDFORM. " f_browse_file
START-OF-SELECTION.
*Upload File
PERFORM f110_upload_from_pc.
FORM f110_upload_from_pc .
DATA : lv_file TYPE rlgrap-filename.
DATA : l_files TYPE string,
l_ret TYPE abap_bool.
CLEAR it_file_data.
lv_file = p_file.
l_files = p_file.
CONSTANTS: c_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_files
filetype = 'ASC'
has_field_separator = c_tab
codepage = '6300'
READ_BY_LINE = 'X'
replacement = '-'
TABLES
data_tab = i_tab_order
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
MESSAGE 'Error in upload'(008) TYPE 'I' DISPLAY LIKE 'E' .
LEAVE TO LIST-PROCESSING.
ENDIF.
ENDFORM. " f_UPLOAD_FROM_PC
I hopr this will helps you
Regards,
Tarun
Edited by: Devalla T Kumar on Dec 29, 2009 9:54 AM -
How can I determine at runtime the type and specs of the DAQ card a computer has installed?
I am creating a voltmeter with a record button for use in systems without LabView installed (stand alone exe's are used). My program allows users to select the scan rate on channels they have selected to view. I want to be able to determine the capabilities of the card (max sampling rate, # of channels avaliable, etc...) within LabView at runtime. Any help would be appriciated.
Thanks...Is there a similar type of function for NI-DAQmx? I'm trying to figure out how to programmatically query a card's number of AI channels, AO channels, CTRS's etc, without having to build up my own hard-coded table.
-
How to display images at runtime in a web appplication
i use C#. and also, how do i get an image to be downloaded from mysql database at runtime upon request. here is a bit of my declaration code and conditional construct code
byte [] f = (byte[])(read["Passport"]); // this reads d byte data from the column passport in the database and assigns it to byte f.
if (f == null)
admin1pass.ImageUrl = null;
else
MemoryStream ms = new MemoryStream(f); // this holds the image gotten from the database
admin1pass.ImageUrl = System.Drawing.Image.FromStream(ms);
'now thats where i'm stuck. i hv used the
using System.Drawing;
using System.Data;
namespaces but none contains the class Image which is oftren what i use in windows form apps.They'll help you over here.
Microsoft C# ASP.Net forum
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
How to dynamic order of groups & How to fetch data at runtime from database
Post Author: ferikpatel
CA Forum: Formula
I am using visual studio .net application having inbuilt crystal report feature. Now, what I want to do is, i have create 5 groups in crystal report, but dynamically want to change the order of those reports as per user's selection.
How to do that?
Also, how to fetch database item on runtime which is not selected through data expert as its relation is depends on situation. Say if one field's value is 5 than i want to get name of customer, but if same field's value is 6 than i want to get name of suppliers. In database both supplier and customers tables are different however they are connected with base table.
I'm bit new in crystal report. Please help me out if it is possible.Post Author: Charliy
CA Forum: Formula
You don't actually change the order of the groups. You group on a formula and change contents of the formula based on the parameter.
IF {?Group1} = "Manager" then {table.Manager}
else if {?Group1} = "Invoice Date" then Totext({table.InvDate},"yyyyMMdd") note all options must be the same date type, so numbers and dates are converted
else . . . -
How to load scrollbar at runtime
Hi in my project I have 2 datablock.Based on the condition the datablock gets loaded.Is it possible to add the scrollbar of the datablock at runtime.
Hi I have 2 block which is linked 2 canvas.In the content canvas condition is applied based on which the block along with canvas is displayed and the data is fetched from the view.How is it possible to hide the canvas along with scrollbar.Normally even after going to specific block by GO_BLOCK command the scroll is still displaye din the main canvas.Is there is method by which only 1 scrollbar is dispalyed on the content canvas as i block is selected
-
How to update ArrayCollection at runtime?
Am facing some problem with arraycollection..
am having an arraycolelction like this...
var dpHierarchy:ArrayCollection = new ArrayCollection([
{Region:"Demand1"},
{Region:"Demand2"},
{Region:"Demand3"},
{Region:"Demand4"}]
now what am looking for is.. how to update this
arraycollection at runtime using actions script?
i need to update this array colelction something like this...
var dpHierarchy:ArrayCollection = new ArrayCollection([
{Region:"Demand1", Year:"2008"},
{Region:"Demand2", Year:"2008"},
{Region:"Demand3", Year:"2008"},
{Region:"Demand4", Year:"2008"}]
How to add Year field in to existing arraycollection like
shown in about example..
thanks in advance
PratapThere are two ways you can do this. One would be setting it
straight like this.
private function updateDP():void {
dpHierarchy[0].Year = "2008";
This will also make it so that every other item in your
ArrayCollection has the Year identifier however nothing will be
filled in for the values. The other way you could do this would be
to user setItemAt which would look like this.
dpHierarchy.setItemAt({Region:"Demand1", Year:"2008"}, 0);
which essentially does the exact same thing except your
setting all the properties of that item instead of just adding the
identifier Year. -
How to use templates at runtime??
We are using a templates on our forms. We attach them using the wizard but this compiles it in. We would like to linked the template to the report so that the template information is pulled in fresh at runtime. This will allow us to make changes to the template, including the images.
Does anyone know how to accomplish this?Hello Howard,
Reports provides powerful XML customization features which enable you to effectively transform your report output at runtime, by selectively creating/overriding report objects and their properties, using a XML customization file specified at the commandline using the 'CUSTOMIZE=' parameter.
Please take a look at the relevant chapter of the Publishing Reports document on OTN which details the XML customization feature of Reports: http://download-west.oracle.com/docs/html/A92102_01/pbr_xml.htm#1005558
Thanks,
The Oracle Reports Team. -
How to extend structures at runtime
hello,
is there any chance to
extend a data structure at runtime?
normally you define a structure with
data: begin of x,
field1 type c,
field2 type n.
data: end of x.
this structure is the basis for your internal tables etc.
it would be definitely nice to add a third field at runtime if it is needed.
in other programming languages it would also be possible to add elements to an array. the question ist: how can i add fields to the structure dynamically?
it could be useful for a lot of situations.
dynamically generated fieldcatalogue for example.
i think i could succeed in changing the structure by using field symbols in combination with dynamically creating data objects by the "CREATE DATA" statement.
has anyone already done something similar?Hello Gideon,
It is possible using ABAP runtime program generation like in code below.
This program generate a dinamic ALV with N fields. There is a parameter where the user type how many fields he wants to display (or generate).
Then form f_create_dynamic_table generate an internal table with N fields according to the number in the parameter.
You can change the program to generate a dinamic structure if you want, in fact it already does it.
Just cut and paste the program and execute in your system.
Regards,
Mauricio
REPORT zasmm008.
$$ Declarações -
TYPE-POOLS:
kkblo. "Tipos para lista especial
FIELD-SYMBOLS:
TYPE table.
PARAMETERS p_qtd TYPE i OBLIGATORY DEFAULT 10.
$$ Eventos -
INITIALIZATION.
%_p_qtd_%_app_%-text = 'Dinamic fields quantity'.
START-OF-SELECTION.
CHECK p_qtd > 0 AND p_qtd < 100.
PERFORM f_create_dynamic_table.
PERFORM f_fill_dynamic_table.
PERFORM f_create_alv.
$$ Forms -
*& Form f_create_dynamic_table
FORM f_create_dynamic_table.
DATA:
lv_line TYPE i,
lv_word(72) TYPE c,
lv_form(30) TYPE c VALUE 'TABLE_CREATE',
lv_message(240) TYPE c,
lp_table TYPE REF TO data,
lp_struc TYPE REF TO data,
lv_name LIKE sy-repid,
lv_cont(02) TYPE n,
lv_lng TYPE i,
lv_typesrting(6) TYPE c.
The dynamic internal table stucture
DATA: BEGIN OF lt_struct OCCURS 0,
fildname(8) TYPE c,
abptype TYPE c,
length TYPE i,
END OF lt_struct.
The dynamic program source table
DATA: BEGIN OF lt_inctabl OCCURS 0,
line(72),
END OF lt_inctabl.
Sample dynamic internal table stucture
DO p_qtd TIMES.
ADD 1 TO lv_cont.
CONCATENATE 'FIELD' lv_cont INTO lt_struct-fildname.
lt_struct-abptype = 'C'.
lt_struct-length = '4'.
APPEND lt_struct.
ENDDO.
Create the dynamic internal table definition in the dyn. program
lt_inctabl-line = 'PROGRAM ZDYNPRO.'.
APPEND lt_inctabl.
lt_inctabl-line = 'FORM TABLE_CREATE CHANGING P_TABLE P_STRUC.'.
APPEND lt_inctabl.
lt_inctabl-line = 'DATA: BEGIN OF DYNTAB OCCURS 0,'.
APPEND lt_inctabl.
LOOP AT lt_struct.
lt_inctabl-line = lt_struct-fildname.
lv_lng = strlen( lt_struct-fildname ).
IF NOT lt_struct-length IS INITIAL .
lv_typesrting(1) = '('.
lv_typesrting+1 = lt_struct-length.
lv_typesrting+5 = ')'.
CONDENSE lv_typesrting NO-GAPS.
lt_inctabl-line+lv_lng = lv_typesrting.
ENDIF.
lt_inctabl-line+15 = 'TYPE'.
lt_inctabl-line+21 = lt_struct-abptype.
lt_inctabl-line+22 = ','.
APPEND lt_inctabl.
ENDLOOP.
lt_inctabl-line = 'END OF DYNTAB.'.
APPEND lt_inctabl.
lt_inctabl-line = 'DATA: POINTER TYPE REF TO DATA.'.
APPEND lt_inctabl.
lt_inctabl-line = 'CREATE DATA POINTER LIKE DYNTAB[].'.
APPEND lt_inctabl.
lt_inctabl-line = 'P_TABLE = POINTER.'.
APPEND lt_inctabl.
lt_inctabl-line = 'CREATE DATA POINTER LIKE LINE OF DYNTAB.'.
APPEND lt_inctabl.
lt_inctabl-line = 'P_STRUC = POINTER.'.
APPEND lt_inctabl.
lt_inctabl-line = 'ENDFORM.'.
APPEND lt_inctabl.
CATCH SYSTEM-EXCEPTIONS generate_subpool_dir_full = 9.
GENERATE SUBROUTINE POOL lt_inctabl[] NAME lv_name
MESSAGE lv_message LINE lv_line WORD lv_word.
ENDCATCH.
PERFORM (lv_form) IN PROGRAM (lv_name) CHANGING lp_table lp_struc.
Dynamic table in <tb> and its header line in <st>
ASSIGN lp_table->* TO .
ENDFORM. " f_create_dynamic_table
*& Form f_create_alv
FORM f_create_alv.
DATA:
ls_layout TYPE slis_layout_alv,
lv_cont(02) TYPE n,
lt_fieldcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
DO p_qtd TIMES.
CLEAR lt_fieldcat.
ADD 1 TO lv_cont.
CONCATENATE 'FIELD' lv_cont INTO lt_fieldcat-fieldname.
CONCATENATE 'Campo' lv_cont INTO lt_fieldcat-seltext_s
SEPARATED BY space.
lt_fieldcat-seltext_m = lt_fieldcat-seltext_s.
lt_fieldcat-seltext_l = lt_fieldcat-seltext_s.
lt_fieldcat-outputlen = 10.
APPEND lt_fieldcat.
ENDDO.
ls_layout-zebra = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat[]
TABLES
t_outtab =
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " f_create_alv
*& Form f_fill_dynamic_table
FORM f_fill_dynamic_table.
DATA:
lv_line(2) TYPE n,
lv_field(2) TYPE n.
DO 20 TIMES.
ADD 1 TO lv_line.
CLEAR lv_field.
DO p_qtd TIMES.
ADD 1 TO lv_field.
ASSIGN COMPONENT lv_field OF STRUCTURE .
ENDDO.
ENDFORM. " f_fill_dynamic_table
Maybe you are looking for
-
Problem with creating report in pl/sql
hi all i'm doing a report which fetch from 8 column i did something like this : set pages 132 set lines 150 set und = set spa=5 set feedback off set newpage 0 the column which i select has an alias for the headlines like this select tvia_num "NUMBER
-
How to remove the automatic option of saving in iCloud?
Is there a way to change the automatic option of saving to iCloud when saving new documents in most of the applications in osx lion? Example: launch pages. Immediately a screen pops up that shows finder or the option to create new doc. (I also dislik
-
I just updated the last version of OSX Mavericks on my MAc Pro and my thunder bolt display is not working correctly. Could you please help
-
Need to calculate interest paid/earned for the coming year ...
All, Working up the 2010 budget, and decided to give Numbers a whirl vs. continuing with M$ Excel for another year. One of the things I do is make some kind of educated estimate on how much my interest I will pay on each of my loans in the following
-
Hi all, I have following problem: To speed up some checking I created a cache inside package body. But everytime portal uses different session to serve show request I get ORA-04068 error. It's saying something about invalid state. I thought that priv