How to identify that a member is "Dynamic Calc" in script

Hi there,
i wonder if there is a way to write a HBR that will do the following:
if([Member1] is dynamic calc)
do something;
elseif
do something else;
endif
where [Member1] is a variable passed from Planning form (squre brackets are ommited by editor).
I think it can be done with CDF and Japi IEssMember.EEssShareOption, but may be there is an easier way?
Thanks!
Dmitry

Glenn,
Thanks for the idea, yet marking all the members with storage type UDA would mean too much maintenance for me.
I eventually have done that with api. Here’s the code if someone is interested.
Thanks again,
Dmitry
static int getShareOption(String[] args) {
int shareOption=0;
try{
acceptArgs(args);
String appName = args[4];
String cubeName = args[5];
String memberName = args[6];
IEssbase ess = null;
ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
IEssOlapServer olapSvr = null;
IEssDomain dom = ess.signOn(s_userName, s_password, false, null, s_provider);
olapSvr = (IEssOlapServer) dom.getOlapServer(s_olapSvrName);
olapSvr.connect();
IEssCube cube = olapSvr.getApplication(appName).getCube(cubeName);
IEssCubeOutline otl = cube.openOutline();
IEssMember curMember = otl.findMember(memberName);
System.out.println("getShareOption: "+curMember.getShareOption().stringValue());
System.out.println("getShareOption: "+curMember.getShareOption().intValue());
shareOption=curMember.getShareOption().intValue();
otl.close();
otl = null;
} catch (EssException x) {
System.err.println("Error: " + x.getMessage());
return(shareOption);
}

Similar Messages

  • How to identify that a host is connected to which particular edge switch

    Hello Guys
    Can anybody explain how to identify that a host is connected to which particular edge switch and port in a Cisco SAN Fabric ??

    Hi,
    Hopefully you know the host PWWN. 
    If the edge switch is not in NPV mode, get the FCID from the output of "show fcns database"
    The answer may also be as simple as finding this entry in the "show fcns database detail".
    If not, once you have the fcid, the first byte of the fcid is the switch domain ID. With the combination of "show fcdomain domain-list vsan xx" "show fcs ie" you should be able to determine what you need.
    If the edge switch is in NPV and registers as a NPV device ( Cisco switches do ), then the FCID will be assigned by the core switch upstream of that edge switch.   You can see this from a "show flogi database".  Find the PWWN here.  There will likely be multiple entries for the port where the host is connected.  Once you find the port where the NPV switch is attached.  The first flogi entry on that port will be the switch WWN.  Get the FCID for the switch and then find the entry for this FCID in the "show fcns database detail", this will give you the switch information.
    Best regards,
    Jim

  • How to identify that an InfoCube needs to be compressed?

    How to identify that an InfoCube needs to be compressed?
    Is there any ratio or method to check that the InfoCube is ready enough to Compress.

    Hi Chandran,
    When a request is loaded and aggregated(rollup) it is ready for compression. I don't understand what u mean by <i>"ready enough"</i>.
    As SAP says, compressing the requests in InfoCube improves the query performace as it reduces the amt of data by eliminating request ids and do Zero elimination. see below link for detailed adv and disadv of compressing a cube.
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/aa6437e7a4080ee10000009b38f842/frameset.htm
    Regards,
    Sree

  • How to Identify that which Region is attached to which Jsp page?

    Hi
    I am working on module Quoting Sales. I have my jsp page qotSCocHeader.jsp . In responsibility AK Developer we have a region QOTSCOCHEADER . As we can see that the jsp page name and the AK region name both are same.
    Now my doubt here is that :
    How can we identify that which region is attached to which jsp page ?
    Analysis that I have done so far:
    1) I have check the Application Developer responsibility --> Function also . Here I can see 1 tab for Region , but no details are present in this tab
    2) All jsp pages are present in $OA_HTML . So I have done grep in this directory but no reference to region name .
    Pls guide me as how can I get information about Jsp page and region linkage .
    Thanks
    Amit

    Hi
    Thanks for the update.
    I have Right clicked my jsp page --> View Source and searched for the Region name i.e XXQOTSCOCHEADERLLLP and found one occurence for the region. Reference to region name was like this:
    <form target=_top method=POST name="_etffm001"> <input type=hidden name="jfn"
    href="http://betsyn1.emrsn.com:29604/OA_HTML/jsp/fnd/fndhelp.jsp?lang=US&root=FND:LIBRARY&path=US/QOT/@XXQOTSCOCHEADERLLLP" target="HELP_WIN"><span
    But still I have an open question, Where in the Oracle Apps setup we attach the region with Jsp page ?
    i) I am not able to find any setup for this in Oracle.
    ii) In jsp code I am not able to find as where we are making call to region associated with the Jsp page.
    So can you pls help me out in identifying as where exactly the Jsp page and region are attached . How the Oracles Apps identify as which region is attached to which Jsp pae ?
    Thanks
    Amit

  • Bug while deleting values in form and it's parent member is dynamic calc

    Hi,
    I'm having a problem that seems to be a bug. I am trying to delete the values of member A11 in the following hierarchy, in a Planning Form:
    A (Dynamic Calc)
    |_A1 (Dynamic Calc)
    |__A11 (Store)
    |_A2(Dynamic Calc)
    !_A21 (Store)
    However when I save the form that has IDescendants(A) in rows, values aren't deleted and it's replaced with the value in A1. I'm not sure whats going on but if I place Ilvl0Descendants(A) in form, it works without problems.
    Anyone had this problem before? Thank you

    Hi, have a read of http://docs.oracle.com/cd/E17236_01/epm.1112/hp_admin_11122/ch02s04.html
    to understand what's happened and why

  • Tagging Dynamic Calc using scripts

    Hi,<BR><BR>I frequently need to tag certain members within a dimension as Dynamic Calc. Is there a script, an ESSCMD type of script which I can use to make it easy? Right now I constantly have to use Administration console to do so.<BR><BR>Thanks,<BR>Hank

    Sorry, but I don't think that you can do what you want via scripts.<BR><BR>Setting a member to be dynamic calc would involve either a Dense or Sparse restructure because you are altering the storage.<BR><BR>If you think about it, it would not be possible to do this via a calc script, because part way through (when it got to the part you wanted to change) it would have to do a restructure, and then it would have to resume the calc.<BR><BR>Question - why would you frequently need to change a member to be Dynamically calculated ?

  • How to identify that the call to a BAdI is coming from SAPGUI

    Hi All,
    In the current project involving SAPCRM 5.0 (both GUI and PCUI), we need to display a pop-up asking the user whether he would like to go ahead with the changes in both GUI and PCUI.
    The function module 'Popup-to-confirm'  was used in a BAdI implementation and it worked fine in GUI but caused problems in PCUI. So this code was commented out as of now.
    Could you let me know as to how should we differentiate the call being placed to a BAdI is from GUI or from PCUI so that we could ensure that the pop-up gets displaced in GUI atleast as of now and does not get populated/cause errors in PCUI as of now?
    Else please let me know what is the correct way of displaying a pop-up in both GUI and PCUI in CRM 5.0?
    Thanks,
    Ravi Kiran

    Hello All,
    I am moving this to another forum as I accidentally put it in this category.
    Thanks,
    Ravi Kiran

  • How to identify that my physical standby database in use real time apply?

    Hi,
    Can any one give me the SQL to identifiy that my physical standby database is in real time applying redo logs?
    Its urgen please....
    Thanks.

    You could just look at the alert log. Look for "Recovery of Online Redo Log"
    Or you could select from v$standby_apply_snapshot to see if the standby is up-to-date.
    select thread#, to_char(snapshot_time,'dd-mon-yyyy:hh24:mi'),
    to_char(applied_time,'dd-mon-yyyy:hh24:mi'),
    to_char(newest_time,'dd-mon-yyyy:hh24:mi') from V$STANDBY_APPLY_SNAPSHOT;

  • Process via Runtime.getRuntime().exec(), how to identify that it�s closed?

    A process(console program) is started via Runtime.getRuntime().exec() from Swing Application.
    Swing Application need to know the result of this process.
    So, is there any possibility to find whether the console program is finished?

    Runtime.exec() returns a Process object.
    Look at its methods, especially waitFor(). Read carefully the whole Process documentation, especially what has to be done with the output streams.

  • How to identify a rehire candidate?

    Hi,
    Please let us know if you have worked on the following:
    1) How can we identify in e-recruiting that an external candidate was a previous employee of the company at some point in time? OR how to identify that the candidate had a record in SAP PA in the company?
    2) what exactly is the difference between the "deleting external candidate" and " delete external candidate registration" ? is it only that the "delete external cand registration" first closes all the open applications/assignments to requisition and then deletes the details? or some more differerences are there?
    Also can you provide more information on "Store Legal Periods"? Can we define these periods based on some other criteria apart from Country/city criteria? if so how?
    Thanks,

    1) How can we identify in e-recruiting that an external candidate was a previous employee of the company at some point in time? OR how to identify that the candidate had a record in SAP PA in the company?
    You can identify in R/3 in INFOTYPE 0001 go to over view you will find all information of employee history
    2) what exactly is the difference between the "deleting external candidate" and " delete external candidate registration" ? is it only that the "delete external cand registration" first closes all the open applications/assignments to requisition and then deletes the details? or some more differerences are there?
    I belive both are one and same please what expert will say
    Best Regards

  • How to identify multiple checkbox selected in JSF

    Hi All,
    My scenorio is.
    I am diplaying records on page using <h:dataTable>
    I have one column in dataTable which contains checkboxes which I displayed as,
    <h:selectBooleanCheckbox id="abc" />
    Also I have button on page.
    I want to select 2 check boxes & then click onto button then that 2 records should get deleted.
    how to identify that 2 checkbox selected ?
    can anybody help ?
    Thanks
    Sandip

    Hi BalusC
    Thanks for your reply.
    Is there any other approach to do this ?
    because as per your approach my code will not work because you are using seperate bean.
    If i try to compare your code with my code then I have to do changes in my entity bean which is not possible.
    So is there any other way ,
    If I want select more than 1 checkbox & delete those records of selected checkboxes .
    i.e. I want to find which checkboxes selected on JSP page sothat I will get those selected value on Java side & will delete that record from java side.
    Please help.
    I am not finding any solution to this.
    If any code then it will be a great help for me.
    Thanks
    Sandip

  • Datacopy from Dynamic Calc member

    Hi All,
    Within a dense dimension(Accounts) I want to copy data from dynamic calc member to a stored member. Below is the structure of my dimension.
    Member X (~, Stored)
    Member A (Dynamic calc, TBLast)
    ----Member A1 (Dynamic Calc)
    ----Member A2 (Dynamic Calc)
    ----Member A3 (Member formula, Dynamic Calc, TBFirst)
    Now I want to copy data from Member A to Member X. I believe we cannot copy from Member A because it is a dynamic calc member, instead we can write a script which adds the children of Member A1, A2 and A3 provided A3 did not have member formula. I hope i'm right. Any suggestions will be highly appreciated. Using ver 11.1.13.
    Thanks

    Kevin,
    Unfortunately, I think this is the way it works. DATACOPY will not copy dynamically calculated members to stored members.
    Although it is not in the DATACOPY Tech Ref documentation, that's the way it works.
    Here are some older threads on the "other" board:
    http://www.network54.com/Forum/58296/thread/1184768427/DATACOPY+Help
    http://www.network54.com/Forum/58296/thread/1054220911/Datacopy+Problem
    You are going to have to come up with another way of copying the Scenario by summing the members into the target Scenario. It can be a pain because you're going to have to mind the creation of the blocks. SET CREATEBLOCKONEQ will be your friend on this one.
    Regards,
    Cameron Lackpour

  • How to identify the trailing spaces in a column

    Hi,
    How to identify the trailing spaces in a column.
    for ex: empno char(5) and i enter 333 then there will be 2 spaces remaining. How to identify that two spaces

    One method...
    ME_XE?create table test1 (some_char char(5));
    Table created.
    Elapsed: 00:00:00.11
    ME_XE?
    ME_XE?insert into test1 values ('HI');
    1 row created.
    Elapsed: 00:00:00.07
    ME_XE?insert into test1 values ('HI HO');
    1 row created.
    Elapsed: 00:00:00.07
    ME_XE?select * from test1 where trim(some_char) <> some_char;
    SOME_CHAR
    HI
    1 row selected.
    Elapsed: 00:00:00.14
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to identify offseting account

    Dear friends
    i am creating zreport in which i have some query related to offsetting account.
    please find some details.
    while viewing GL account in FBL3N ,
    we found different document numbers
    aginst these document number there is an offsetting account
    in certain document offsetting account is GL account number
    while in other it is Vendor code
    How system identify that for perticular document
    which type of offsetting account comes.
    is there any table for that??
    or any function module??
    or any logic for that??
    Regards
    Avirat

    Hi
    See the article [Offsetting Account Display in FBL Reports|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2074877d-fad9-2d10-c69b-f47fb0685327?QuickLink=index&overridelayout=true] by Praveen.J in this site.
    I hope this helps you
    Regards
    Eduardo

  • In E-recruiting how to identify a rehire candidate?

    Hi,
    Please let us know if you have worked on the following:
    1) How can we identify in e-recruiting that an external candidate was a previous employee of the company at some point in time? OR how to identify that the candidate had a record in SAP PA in the company?
    2) what exactly is the difference between the "deleting external candidate" and " delete external candidate registration" ? is it only that the "delete external cand registration" first closes all the open applications/assignments to requisition and then deletes the details? or some more differerences are there?
    Also can you provide more information on "Store Legal Periods"? Can we define these periods based on some other criteria apart from Country/city criteria? if so how?
    Thanks,

    1) How can we identify in e-recruiting that an external candidate was a previous employee of the company at some point in time? OR how to identify that the candidate had a record in SAP PA in the company?
    You can identify in R/3 in INFOTYPE 0001 go to over view you will find all information of employee history
    2) what exactly is the difference between the "deleting external candidate" and " delete external candidate registration" ? is it only that the "delete external cand registration" first closes all the open applications/assignments to requisition and then deletes the details? or some more differerences are there?
    I belive both are one and same please what expert will say
    Best Regards

Maybe you are looking for

  • Iphone takes LONG time to sync with iTunes?

    Hi all, I have and Iphone 3G with 8GB pretty much stuffed, I have only 200MB free and 1000 audio, 50 podcast video, 60 photo and TONS of apps.. I just check how long it would take to sync with my PC yeasterday... 10 hours... is that normal for a back

  • BigInteger.parseBigInteger : help

    hi, everybody. i want to parse a string which is in number format to BigInteger. but i was enable to find any method for it in the java api so currently i am working on Long, and it is working fine. but in future if i get a number which is beyond the

  • Using 3.6 version, updated this morning no bookmarks, restored them but bring it up and no bookmarks again?

    Using 3.6 version, updated this morning no bookmarks, restored them but bring it up and no bookmarks again? I restarted my computer after re installing my bookmarks from my desktop but the bookmarks are not showing up when I bring up a new browser wi

  • Wrong sync key error

    i keep getting wrong sync key error after i click finish on "Setup Complete." i have tried resetting the sync key. nothing works.

  • JSON, SAP & other AJAX stuff related.

    Hi everyone, Guess what, JavaScript is hot again, if you wanna be a cool kid, you got use it, do some and let everybody know You’re on it. Lucky you’all I’ve been checking out what you have to do to be a fashionable BSP developer. First you want a Ja