IF and @descendants() functions
Hi All,
I want to use" @idescendants() function" in the " if statemens" area.
FIX([YEAR], [PARA],"SV01")
"NET_SALES"
IF([NET_SATIS_HESAPLA] ==1)
@IDESCENDANTS("Stock");
@IDESCENDANTS("Brand");
@IDESCENDANTS("Product");
@IDESCENDANTS("Country");
@IDESCENDANTS("Period");
ENDIF
)ENDFIX
how can i do like exaple 0f above.
thanks.
i think U can't do this, because in calc-member have restriction to use Functhis whos return members.
but i have workaround
- [ run external calcscript from CDF function |http://hack4essbase.wordpress.com/2009/02/25/run-external-program-from-calcscript/]
Similar Messages
-
@DESCENDANTS Function in Business rule creation
Hi,
I am using the copy data system template to copy data between two forms.
Everything is working well when seleting one member from each dimension, but for the period dimension I need to select multiple months.
I know that is possible by using @DESCENDANTS function, but actually i couldn't figure out what is the Member Name,Generation Level number and Generation level name.
I referd to the epma_admin but couldn't understand it yet.
My period dimension is like that
YearTotal
Q1
Jan
Feb
Mar
Q2
May
and i need the 12 months to be used in the forms to copy the data from and to
I used a work around to edit the script manually but i need some help on how to use the functions.
Thank youthere is 2 sections in copy data
First section is 'static'
and the second section is source destination.
I think what you want to do is put IDescendants(Yeartotal) in the static section. So this will do it for all 12 months. for whatever you put in the source / destination section.
So if you are copying Acc1 to Acc2 for example. and use IDescendants(Yeartotal) for Period
The
Static
Period IDescendants(Yeartotal)
Source Destionatioin
Acc1 Acc2
In this example of a 2 dimensional cube. This will copy 12 months of Acc1 to 12 months of Acc2 -
Hide sort(ascending and descending) buttons in an alv report.
Hi,
I want to hide the sort(ascending and descending) buttons in an alv report.
can any one help me with the code?
I am not able to use the parameter IT_TOOLBAR_EXCLUDING
of SET_TABLE_FOR_FIRST_DISPLAY of class CL_GUI_ALV_GRID.
Regards,
Himanshu.Hi,
data it_exclude type ui_functions.
Exclude Standard Functions
PERFORM f_excludetoolbar USING obj_cust_grid
CHANGING it_exclude.
FORM f_excludetoolbar USING u_obj_cust_grid TYPE REF TO cl_gui_alv_grid
CHANGING c_it_exclude TYPE ui_functions.
Exclude Standard Functions
CLEAR: c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_check TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_refresh TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_copy TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_copy_row TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_cut TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_delete_row TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_append_row TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_insert_row TO c_it_exclude.
APPEND u_obj_cust_grid->mc_fc_loc_move_row TO c_it_exclude.
APPEND u_obj_cust_grid->MC_FC_SORT_DSC TO c_it_exclude.
APPEND u_obj_cust_grid->MC_FC_SORT_ASC TO c_it_exclude.
APPEND u_obj_cust_grid->MC_FC_SORT TO c_it_exclude.*
ENDFORM. " f_excludetoolbar
Hope it will helpful for you.
Reward if found helpful.
Regards,
SB -
Difference btwn the Relative and Descendats functions
Hi,
Can anyone tell me what is the exact diff btwn @Relative and @Descendats functions in hyperion essbase.
ThanksTech ref has all the answers
@RELATIVE - Returns all members at the specified generation or level that are above or below the specified member in the database outline.
http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/relative.html
@DESCENDANTS - Returns all descendants of the specified member, or those down to the specified generation or level. This function excludes the specified member.
http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_tech_ref/descendants.html
Cheers
John
http://john-goodwin.blogspot.com/ -
GUI_DOWNLOAD and UPLOAD Function Modules?
Hi All,
What exactly done by GUI_DOWNLOAD and UPLOAD Function Modules?
Akshitha.What you exactly want know?
Here is the Sap documentation for both FM:
FU GUI_UPLOAD
Short Text
Upload for Data Provider
Functionality
The module loads a file from the PC to the server. Data can be transferred binarily or as text. Numbers and date fields can be interpreted according to the user settings.
Example
Binary upload: No conversion or interpretation
begin of itab,
raw(255) type x,
end of itab occurs 0.
CALL FUNCTION 'GUI_UPLOAD'
exporting
filetype = 'BIN'
filename = 'C:\DOWNLOAD.BIN'
tables
data_tab = itab.
Text upload
begin of itab,
text(255) type c,
end of itab occurs 0.
CALL FUNCTION 'GUI_UPLOAD'
exporting
filetype = 'ASC'
filename = 'C:\DOWNLOAD.TXT'
tables
data_tab = itab.
Parameters
FILENAME
FILETYPE
HAS_FIELD_SEPARATOR
HEADER_LENGTH
READ_BY_LINE
DAT_MODE
CODEPAGE
IGNORE_CERR
REPLACEMENT
CHECK_BOM
VIRUS_SCAN_PROFILE
NO_AUTH_CHECK
FILELENGTH
HEADER
DATA_TAB
Exceptions
FILE_OPEN_ERROR
FILE_READ_ERROR
NO_BATCH
GUI_REFUSE_FILETRANSFER
INVALID_TYPE
NO_AUTHORITY
UNKNOWN_ERROR
BAD_DATA_FORMAT
HEADER_NOT_ALLOWED
SEPARATOR_NOT_ALLOWED
HEADER_TOO_LONG
UNKNOWN_DP_ERROR
ACCESS_DENIED
DP_OUT_OF_MEMORY
DISK_FULL
DP_TIMEOUT
Function Group
SFES
FU GUI_DOWNLOAD
Short Text
Download an Internal Table to the PC
Functionality
Data transfer of an internal table form the server to a file on the PC. The Gui_Download module replaces the obsolete modules Ws_Download and Download. The file dialog of the download module is available in the class Cl_Gui_Frontend_Services.
Further information
TYPE-POOLS: ABAP.
Binary download table
DATA: BEGIN OF line_bin,
data(1024) TYPE X,
END OF line_bin.
DATA: data_tab_bin LIKE STANDARD TABLE OF line_bin.
Ascii download table
DATA: BEGIN OF line_asc,
text(1024) TYPE C,
END OF line_asc.
DATA: data_tab_asc LIKE STANDARD TABLE OF line_asc.
DAT download table
DATA: BEGIN OF line_dat,
Packed TYPE P,
Text(10) TYPE C,
Number TYPE I,
Date TYPE D,
Time TYPE T,
Float TYPE F,
Hex(3) TYPE X,
String TYPE String,
END OF line_dat.
DATA: data_tab_dat LIKE STANDARD TABLE OF line_dat.
Get filename
DATA: fullpath TYPE String,
filename TYPE String,
path TYPE String,
user_action TYPE I,
encoding TYPE ABAP_ENCODING.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
WINDOW_TITLE = 'Gui_Download Demo'
WITH_ENCODING = 'X'
INITIAL_DIRECTORY = 'C:\'
CHANGING
FILENAME = filename
PATH = path
FULLPATH = fullpath
USER_ACTION = user_action
FILE_ENCODING = encoding
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
IF user_action <> CL_GUI_FRONTEND_SERVICES=>ACTION_OK.
EXIT.
ENDIF.
Download variables
DATA: length TYPE I.
Binary download
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = fullpath
FILETYPE = 'BIN'
IMPORTING
FILELENGTH = length
TABLES
DATA_TAB = data_tab_bin
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
Ascii download
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = fullpath
FILETYPE = 'ASC'
IMPORTING
FILELENGTH = length
TABLES
DATA_TAB = data_tab_asc
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
DAT download
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = fullpath
FILETYPE = 'DAT'
IMPORTING
FILELENGTH = length
TABLES
DATA_TAB = data_tab_dat
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
Parameters
BIN_FILESIZE
FILENAME
FILETYPE
APPEND
WRITE_FIELD_SEPARATOR
HEADER
TRUNC_TRAILING_BLANKS
WRITE_LF
COL_SELECT
COL_SELECT_MASK
DAT_MODE
CONFIRM_OVERWRITE
NO_AUTH_CHECK
CODEPAGE
IGNORE_CERR
REPLACEMENT
WRITE_BOM
TRUNC_TRAILING_BLANKS_EOL
WK1_N_FORMAT
WK1_N_SIZE
WK1_T_FORMAT
WK1_T_SIZE
WRITE_EOL
FILELENGTH
DATA_TAB
FIELDNAMES
Exceptions
FILE_WRITE_ERROR
NO_BATCH
GUI_REFUSE_FILETRANSFER
INVALID_TYPE
NO_AUTHORITY
UNKNOWN_ERROR
HEADER_NOT_ALLOWED
SEPARATOR_NOT_ALLOWED
FILESIZE_NOT_ALLOWED
HEADER_TOO_LONG
DP_ERROR_CREATE
DP_ERROR_SEND
DP_ERROR_WRITE
UNKNOWN_DP_ERROR
ACCESS_DENIED
DP_OUT_OF_MEMORY
DISK_FULL
DP_TIMEOUT
FILE_NOT_FOUND
DATAPROVIDER_EXCEPTION
CONTROL_FLUSH_ERROR
Function Group
SFES -
Not able to sign into Blackberry Protect. Backup and Restore function not working. Message is: "Your device isn't associated with a Blackberry ID." My Blackberry Messenger and Blackberry World is working fine so I am sure its not an ID issue on the phone. I can sign into Link, Blackberry.com and Protect. I see my device in Protect but cannot send messages or view it on a map. Times out with cannot reach device message. BB Protect on Device has a swirling circle beside the on/of switch. Cannot turn off.
I have deleted Link and re-installed.
I have reset phone to default(factory) and signed in.
OS level is 10.2.1.3062
BB Link is 1.2.3.56
Solved!
Go to Solution.I managed to figure this out myself. I had to delete the device from the Blackberry Protect website. protect.blackberry.com. I wiped my device again and signed in with my Blackberry ID. I dont know if the step of wiping was necessary as I did not try my backup with the current configuration on the device following the delete. Restore is in progress for me!
-
Problem with tpcall and tpgetrply functions
Hi,
I have a problem with tpcall() and tpgetrply() functions.
In this example (invoke tpcall()):
FBFR32 *buf;
FLDLEN32 buflen;
buf = a_buffer.getBuffer(); /* getBuffer() returns FBFR32* */
buflen = a_buffer.getLongitud();
/* at this point: buf == a_buffer.getBuffer() */
if (tpcall(a_contenedor.getServname(),
(char*)a_contenedor.getBufferPeticion()->getBuffer(),
a_contenedor.getBufferPeticion()->getLongitud(),
(char**)&buf,
(long*)&buflen,
0) == -1)
if (tperrno != TPESVCFAIL)
LANZAR_EXCEPCION(CADENA_WHAT_SB,
"Error en funcion Execute(), llamada tpcall()",
tpstrerror(tperrno))
/* at this point: buf != a_buffer.getBuffer() */
tpcall() function change the memory address of buf. What is the problem? Is wrong my code? Is a problem with tuxedo version?
My tuxedo version is:
tmadmin -vINFO: BEA Tuxedo, Version 8.0, 32-bit, Patch Level 306
INFO: Serial #: 650522264137-773290431251, Expiration NONE, Maxusers 150
INFO: Licensed to: Telefonica Moviles Espa?a, S.A.
INFO: 56-bit Encryption Package
Thanks,
ANTONIO.There's nothing wrong with your code or tuxedo. tpcall (and tpgetrply) can change the address of the return buffer if it needs to allocate more memory to hold the data. This is the reason why you pass a pointer to the buffer as the output buffer parameter to tpcall and tpreturn. Everything is working as expected.
-
Pinch open and close function not working after upgrade
I'm having trouble with the pinch open and close function on my trackpad. It was working fine until I installed the new Google upgrade and now it doesn't seem to be working. Any suggestions. The other functions are working fine.
Click on the Apple icon at the top left of the screen. Select "System Preferences", then "Trackpad".
Be sure to select:
"Pinch Open and Close" in the "Two Finger" Menu...
Sly -
Display Like and Share functionality in SharePoint 2013 search result
Hello Experts,
I dont Know whether i am asking a good question or bad one . but i am not very much expert in search.
I have to display No of Likes , Share functionality in SharePoint Search Results.
i know little basic about how display templates works. i want to implement these like and share functionality as actions in Item_common_hoverpanel_Actions template. show that i can see in preview.
please if any body can help me . i will be highly thankful to you.
MukeshThis will be difficult. The number of likes has a managed property called LikesCount but it is not populated by the search crawler. So your JavaScript will have to read the "LikesCount" field of the corresponding list item. That would be a
lot of code to execute in the item display template just to display the number of likes. You could have a button that displayed a callout that would get the information and display it. The Sharing could be done via JavaScript in your item display template
using a REST call. You can see an example of code to do that here:
http://sharepointfieldnotes.blogspot.com/2014/09/sharing-documents-with-sharepoint-rest.html?showComment=1428595550241#c3227376854590814312
Just remember the user must have permission to share these documents, so your code will have to handle this.
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer -
My Ipad2 works fine except when I try to email myself a link to a safari webpage. I get an error message saying that the message failed to connect to the server. It says that a copy of the message has been left in the outbox. I cannot get the message from the outbox. All other email and safari functions work as expected.
I have cleared data and cookies, powered down, and done a reset. Nothing seems to help.Typing in additional text seems to get the job done. This seems to be a feature of the latest IOS update, I have never had the problem before the last update.
I use the box with the arrow just to the left of the URL block at the top of the page to send myself links to pages of interest. Adding the extra text seems like a pointless step, but it does work.
Thanks. -
MacBook Pro battery had accumulated more than a 1000 charges, and stopped functioning unexpectedly. Went and got the battery replaced. Just saw that SMC Firmware 1.6 update deals with this. Possible to get my money back?
The firmware update corrects an error that may occur, however the techs would have checked the condition of the battery prior to installing a new one. If the battery was questionable, the firmware update was really not too important.
You can check the battery condition by going to the apple, left side of the menu bar, About This Mac, More Info, System Report, Hardware, Power and see what it says about Cycle Count, Condition, Capacity: Condition anything but Normal needs to be checked and may need to be replaced.
The cycle count of 1,000 charge cycles is the typical life of a Lithium-Ion battery, the point at which the capacity drops to 80% of the as built capacity. -
MONTH and YEAR functions. Please help...
Can anyone tell me why the YEAR and MONTH functions will only accept the format dd-MMM-yyyy (ex. 01-JAN-2009)
The calendar prompt will only retun the format dd/mm/yyy (ex. 01/01/2009). This renders the calender pretty useless.
I am really in need of some help on this. Does anyone know how to get the value returned from the calendar in a prompt into a format that can be used by the YEAR and MONTH functions?
Thank you in advanceHi,
Can you do those things at DB Level.. addition of YEAR and MONTH columns to Table.. because doing CAST to DATE operation will work at DB Level..
Ex: In Answers if you give YEAR(CAST('01-03-2009' AS DATE)), it is erroring out because default allowed date format of BI is different from the one specified.. Though it is issuing correct SQL which is working at DB level.. donno how to change the default format of BI..
So, what I can suggest is an alternative, which is at DB level.. if it is apt for you.. then
Following statement gives you YEAR value..
TO_NUMBER(TO_CHAR( cast('01-03-2009' as DATE), 'yyyy'), '9999')
This is the statement taken from Manage Session of BI..
-Vency -
Below expression works fine with text box but gives error in dataset expression.
="SET FMTONLY OFF select "+ join(Parameters!Column.Value,",") +" FROM pamcustom.dbo.vw_HFL_HFD_HotfileData INNER JOIN pamcustom.dbo.HFL_HFB_HotFileBatch on BatchID = HFB_intBatchID where BatchID ="+Parameters!BatchId.Value+"
and "+Parameters!cmbTranType.Value+" "+ iif(CountRows("DS_Aml_Mnr_Iss_Desc")=Parameters!Mnr_Iss_Desc.count," "," and aml_mnr_iss_desc in "+"('" & join(Parameters!Mnr_Iss_Desc.Value,"','")
& "')")+iif(CountRows("ds_ReportingCategory")=Parameters!ReportingCategory.count," "," and ReportingCategory in "+"('" & join(Parameters!ReportingCategory.Value,"','") & "')")+iif(CountRows("ds_NAICSubGroup")=Parameters!NAICSubGroup.count,"
"," and naicsubgroup in "+"('" & join(Parameters!NAICSubGroup.Value,"','") & "')")+iif(CountRows("ds_PortTrading")=Parameters!PortTrading.count," "," and porttrading in "+"('"
& join(Parameters!PortTrading.Value,"','") & "')")+iif(CountRows("ds_GL_LE")=Parameters!GL_LE.count," "," and gl_le in "+"('" & join(Parameters!GL_LE.Value,"','") &
"')")+iif(CountRows("ds_coagroup")=Parameters!cmbCoaGrp.count," "," and coagroup in "+"('" & join(Parameters!cmbCoaGrp.Value,"','") & "')")+iif(CountRows("Portfolio")=Parameters!cmbPort.count,"
"," and portfolio in "+"('" & join(Parameters!cmbPort.Value,"','") & "')")+IIf(IsNothing(Parameters!txtSecID.Value)," "," and secid in ('"+Replace(Parameters!txtSecID.Value,",","','")+"')")+iif(IsNothing(Parameters!minPortFilter.Value)
and IsNothing(Parameters!MinPort.Value)," "," and portfolio "+Parameters!minPortFilter.Value+Parameters!MinPort.Value)+iif(IsNothing(Parameters!maxPortFilter.Value) and IsNothing(Parameters!MaxPort.Value)," ","
and portfolio "+Parameters!maxPortFilter.Value+Parameters!MaxPort.Value)+iif(IsNothing(Parameters!minCoaFilter.Value) and IsNothing(Parameters!txtMinCoa.Value)," "," and portfolio "+Parameters!minCoaFilter.Value+Parameters!txtMinCoa.Value)+iif(IsNothing(Parameters!maxCoaFilter.Value)
and IsNothing(Parameters!txtMaxCoa.Value)," "," and portfolio "+Parameters!maxCoaFilter.Value+Parameters!txtMaxCoa.Value)
I guess the error " Aggregate and lookup functions cannot be used in query parameter expressions." is because I am using CountRow to ensure that if all values of multi select all selected i will not use that filter in where clause.
Pls. guide...Hi, Include your parameter total count in the dataset for parameter and instead of using countrows() function use the count from dataset in the expression.
Hope this helps.........
Ione -
hi,
how I can delete add-in applications in add-in applications section , I try to delete one but I don't see any delete function, I see only enable and disable function in the manage add-in applications wizard.
thanks
johan
h.davidHi,
If you want to remove the add-ins of Office 2010 programs, you need to remove it from control panel.
For example, if you use Excel, please try to follow the link to delete the add-ins:
http://office.microsoft.com/en-us/excel-help/add-or-remove-add-ins-HP010342658.aspx
If I misunderstand something, please let me know.
Regards,
George Zhao
TechNet Community Support -
Ipod Touch will not turn on, recognize itunes and fully function.
My Ipod Touch will not turn on, recognize itunes and fully function. When it does, once in a blue moon, after 5 minutes it freezes. I am wondering if its becuase battery was left dead for 2 weeks or problems with the iOS. Resetting does not help.
Any help will be greatly appreciated.Hi,
Try a Reset
Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
The Apple logo will Appear and then Disappear...
Usually takes about 10 - 15 Seconds...
Turn the iPod On...
If that does not help... See Here:
Backing up, Updating and Restoring
http://support.apple.com/kb/HT1414
Maybe you are looking for
-
Hi All, A PDF file is attached to SAP Document Info Record. While opening that PDF file through CV03N getting a messege like - "Error while executing C:\DOCUME~1\.................." What can be the reason for this & how it can be soleved? Regards MHP
-
Itunes doesn't open when my ipod touch 4g is connected, consequently it won't charge or sync
itunes doesn't open when my ipod touch 4g is connected, consequently it won't charge or sync
-
How to extract the xcontrol output
I created one xcontrol for pressure sensors . I am able to display the output correctly but i could not able to use the output for other inputs . how to extract the xcontrol output for clear understanding please see the attached vi testing . Attachme
-
I would like to change the default email application, but I followed the directions in Mozilla support & did not have "mailto" in my listing.
-
Where is LMS 4.0 Detailed Device View ?
Can someone tell me how to get the Detailed Device View in LMS 4.0 please? From what I have been able to find out I should be able to go do Monitor> Fault Settings> Setup> Fault Device Details, select a device, click View and then click the device na