Define and assign values to variables in calc manager

Hi all,
I have created a smartlist in data form for user to select the start month and end month.In BR,based on the smartlist ID,i need to assign the months to a variable,which i will later use it in the same BR.
For Eg:In data form,from the smartlists,user has choosen "Jul" for start month and "Nov" for end month,hence the smartlist ID is 7 for start month and 11 for end month.Now in calc manager,i have created 2 variables as "DateFrom" and "DateTo" of type "member" for dimension "Period"
Note: "Jan" to "Dec" are period dim level 0 members
IF(start month==1)
DateFrom="Jan";
ELSEIF(startmonth==2)
DateFrom="Feb";
ELSEIF(start month==7)
DateFrom="Jul";
ELSE
DateFrom="Dec";
ENDIF;
Similarly for end month as below:
IF(end month==1)
DateTo="Jan";
ELSEIF(end month==11)
DateTo="Nov";
ELSE
DateTo="Dec";
ENDIF;
Above method of assigning a value to a variable is not working and no values assigned to the 2 variables "DateFrom" and "DateTo"
Kindly help me on any additional steps required to use variables in calc manager.
Thanks!

Cant you use the values from RTP directly? What is the logic you are trying to build?
One of the ways to achieve this is to use Calc TP Index member, if you are not sure of this, create a workforce application and you will get the formula for calc TP index member in Essbase.
Edited: I just checked other question from you, will revert on that in some time.
Cheers..!!
Rahul S.

Similar Messages

  • Read XML in BPEL and assign values to variables

    Hello,
    I need to read an xml message in BPEL and assign variables created in BPEL the values of elements in XML message. Whats the best possible way to do this.

    When you say"*read an xml message*", is the xml coming as input message or you need to read from file ?
    If you want to read from file, you can make use of the below function.
    Returns the string value of an element defined by lookupXPath in a XML file (docURL) given its parent XPath (parentXPath), the key XPath (keyXPath) and the value of the key (key). Usage: oraext:lookup-xml(docURL as string, parentXPath as string, keyXPath as string, lookupXPath as string, key as string)
    Example: oraext:lookup-xml('file:/d:/country_data.xml', '/Countries/Country', 'Abbreviation', 'FullName', 'UK') returns the value of the element FullName child of /Countries/Country where Abbreviation = 'UK' in the file d:\country_data.xml
    Thanks,
    Vijay

  • DEFINING AND ASSIGNING COMP CODE

    Hi,
    I have a bit of a problem. I need to define and assign the following:
    --COMP CODE
    --CONTROLLING AREA
    --PURCHASE ORG
    --SALES ORG
    --PLANTS
    --CHARTS OF ACCOUNTS
    Need help in finding out where and how do i go to perform the above. I understand its a novice question but any help would be greatly helpful. I already have a company code to work with.

    Hi,
    Each user can set their own defaults to most if not all of the fields you mention, by setting the corresponding Parameter ID against their own user profile.
    Once set, the correct default values will be then be populated correctly trhoughout each transaction ans screen that displays them.
    To define default values in a user master record:
    From within SAPgui:
    Select System > User defaults > Personal data.
    The Maintain individual user defaults screen appears.
    Choose the Parameter tab page.
    Enter the parameter ID and the parameter value:
    From memory the Parameter ID for Company Code might be BKR (but I am not sure)
    Save your settings.
    Cheers, Phil G.
    Message was edited by:
            Phil Gleadhill

  • Define and assign user authorization groups in FI

    Hi All,
    In order to allow some specific group of users to post in AUGR allowed periods, how do I define and assign user authorization groups in FI?
    Thanks,
    Teo

    Hi Teo,
    Here i am giving some authorisations in fi
    F_AVIK_BUK FI Payment Advice: Authorization for Company Codes
    F_BKPF_BED FI Accounting Document: Account Authorization for Customers
    F_BKPF_BEK FI Accounting Document: Account Authorization for Vendors
    F_BKPF_BES FI Accounting Document: Account Authorization for G/L Accounts
    F_BKPF_BLA FI Accounting Document: Authorization for Document Types
    F_BKPF_BUK FI Accounting Document: Authorization for Company Codes
    F_BKPF_BUP FI Accounting Document: Authorization for Posting Periods
    F_BKPF_GSB FI Accounting Document: Authorization for Business Areas
    F_BKPF_KOA FI Accounting Document: Authorization for Account Types
    F_BKPF_VW FI Acc. Document: Change/Display Default Vals for Doc.Type/PKey
    F_BL_BANK FI Authorization for House Banks and Payment Methods
    F_BNKA_BUK FI Banks: Authorization for Company Codes
    I hope it will help.
    BR,
    Satya

  • I want to read and assign value of ADF Table rows  with Java Script

    Hi,
    I want to read and assign value of ADF Table rows with Java Script, but I cant true index of current row , so I assign wrong value to anathor column of ADF Table.
    My Code;
    ADF Table items
    <af:column sortProperty="Adet" sortable="false"
    headerText="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.labels.Adet}"
    binding="#{backing_ucret.column2}" id="column2">
    <af:inputText value="#{row.Adet}"
    required="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.attrDefs.Adet.mandatory}"
    columns="10"
    binding="#{backing_ucret.inputText2}"
    id="inputText2" onchange="getTutar('#{bindings.voHarcamaOdeme1Iterator.rangeStart + bindings.voHarcamaOdeme1Iterator.currentRowIndexInRange + 1}','#{bindings.voHarcamaOdeme1Iterator.estimatedRowCount}','#{row.index}')">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.formats.Adet}"/>
    </af:inputText>
    </af:column>
    MY JAVA SCRIPT CODE
    <f:verbatim>
    <script language="javascript" type="text/javascript">
    function getTutar(rowkey,totalrow,currentRow){
    alert('rowkey--totalRow--currentRow-->'+rowkey+'--'+totalrow+'--'+currentRow);
    if (currentRow==0) {
    rowkey=totalrow-1;
    }else{
    var rw=totalrow-currentRow-1;
    rowkey=rw;
    alert(document.getElementById('form1:table1:'+rowkey+':inputText8').value);
    alert(document.getElementById('form1:table1:'+currentRow+':inputText8').value);
    var birim_ucret=document.getElementById('form1:table1:'+rowkey+':inputText8').value;
    var adet=document.getElementById('form1:table1:'+rowkey+':inputText2').value;
    document.getElementById('form1:table1:'+rowkey+':inputText3').value=birim_ucret*adet;
    document.getElementById('form1:inputText6').value=0;
    var t;
    var toplam=0;
    alert('before Sum');
    for (var i=0;i!=totalrow-1;i++){
    t = document.getElementById('form1:table1:'+i+':inputText3');
    toplam+=t.value*1;
    document.getElementById('form1:inputText6').value=toplam;
    </script>
    </f:verbatim>

    You can achieve the use case you describe with partial page rendering (PPR), a feature of the ADF Faces framework. Here are a few posts that achieve an interactive behavior using PPR. Off the top of my head I do not know of an exact example, but this should be a good starting point:
    http://thepeninsulasedge.com/blog/2006/09/12/adf-faces-aftableselectmany/
    http://thepeninsulasedge.com/blog/2006/08/31/adf-faces-working-with-aftableselectone-and-the-dialog-framework/
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Assigning Value to Variable in Sapscript

    Hi,
    To initialized value of the variable when I tried to assign 0 to variable (like in the following statement) it comes up with error 'Command Expected'.
    &RF140-ZALBT&= '0'.
    Please let me know where and what I am doing wrong in assigning value to a variable?
    Regards,
    Shabbar

    Hi,
    Still its not working. The statement I am writing is
    /: &NET& = &RF140-WRSHB& - &RF140-MSATZ&
    but the system gives error on that.
    NET is the local variable declared with Define statement and both the others are defined in print program.
    Even I tried
    /: &RF140-ZALBT& = &RF140-WRSHB& - &RF140-MSATZ&
    but still the same error.
    Any comments?
    Regards,
    Shabbar

  • Assigning value to variable in ODI

    Hi
    TotalCount(datatype is numeric)--->Action is (Latest value)
    And i want to assign value it by using following query
    select count(*) from Investment_ato
    i am writing this in a refresh tab
    And i am using this variable in another variable(var_account)
    but value of TotalCount variable is not coming in var_account
    so plz suggest regards the same
    thanks

    You can set the refreshing mode in the variable var_account and in the refreshing tab put the query as: select #TotalCount from dual.
    Hope it helps!

  • Assigning value to variable of type time

    Hi,
    I want to assign value '8:00:00' to a time variable (w_time like sy-uzeit).
    How do i do this? Do i need to do any casting?
    w_time = '8:00:00' didnt work.
    I am trying to use this in a customer exit.
    Thanks,
    Arun KK

    Gotcha!
    Thanks!!

  • Budget Availability control and Assigned Value in Project

    Hi,
    Project is so structured that it is similar to the product structure. Assume a simple case with two level BOM where a sub assembly M1 includes another sub assembly M2.
    In project, these two sub assemblies are assigned under two different WBS elements W1 and W2 respectively where hierarchically W1 is assigned under W2.
    After release we have two Production Order P1 and P2 account assigned to W1 and W2 respectively.
    Assume M2 stnd price is 100 and M1 stnd Price is 150.
    My process output ultimately is only M1 so I would prefer to give a Budget of 150 Rs. However, since P1 and P2 production Orders are accoun assigned, a total 100+150 =250 Rs is showing up under assigned value and error of Budget over run is being encountered.
    One solution can be to give budget of 250 Rs, which not logical as I am producing only M1.
    We tried by un flagging Additional and Assign funds in plan indicators for Order category 20 and 10 in OPSV. But that did not help.
    Once P2 prod order is confirmed, the assigned value for W2 is becoming to actual cost of P2 and remains even after setting TECO and Settling P2. It becomes Zero only when W2 is removed from acct assignment of P2, which again can not be a solution as WBS and Prod Order will loose the linkage.
    We desire avaialbility control to verify only against the actual cost Project. No assigned value should be considered.
    Need your help to resolve it.
    Thanks
    Saikishore ganga.

    Hi Sudhir,
    Thanks for the valuable input.
    As you rightly said we can not produce M1 without M2. But budget has to be only 150 Rs. Because
    Cost M1 = Cost M2 + other mat Cost in assly + Assly operations Cost.
    Cost M1 = 100 + 10 (assume) + 40 = 150 Rs.
    Physically I am Producing only M1. So my budget would be atmost the cost of the item that is 150 Rs.
    But in project we had to assign M1 and M2 under two diff WBS elements because it takes considerable amount of time to completed entire qnty structure i.e BOM and Routing of M1 and then release. Till them M2 has to wait for M1 BOM and Routing to be completed. In order again time , M1 is assigned under W2 , W2 is released and in MRP W2-M1 BOM explodes and manufacturing begins.
    When M1 bom gets ready, it is assigned under W1 and then W1 will be released. Duplication of Prod Orders are taken care.
    However, by using exempt cost elements feature I think we can resolve the above.
    Will update once I do my experiments on this.
    Thanks for the input.
    Saikishore. Ganga

  • Plant as Vendor Defination and Assignment, for Stock Transport Order.

    Hallow All,
    Can anybody explain the procedure of  Plant as Vendor defination and their assignment for the Stock transfer with Stock Transport Order.
    Thanks in advance !!!!!!

    hi
    Following are the steps:
    1.Create a vendor for the company code of receiving plant, using account group :0007 using T-Code XK01.
    2 Assign this vendor to Delivering plant
    Go to XK02 >Purchasing view>Extras>Add. Purchasing data>Plant
    3. Create internal customer with the sales area of the vendor. Go To XD01
    4.In Pricing procedure determination relevant to STO, assign document Pricing Procedure and customer pricing procedure appropriate for STO to get the pricing in the invoice.
    5.Maintain condition records for the relevant pricing condition.
    6. Some more setting for STO: Go to MM> Purchasing > Purchase Order > Set up STO> define shipping data for plants > Go to Receiving plant >assign customer here & Supplying SA (for billing) to Receiving plant here
    7. Go to MM> Purchasing > Purchase Order > Set up STO> define shipping data for plants > Go to Supplying plant and assign the sales area of receiving plant.
    8. Go to MM> Purchasing > Purchase Order > Set up STO> assign delivery Type & Checking rule
    Assign the delivery type to document type. In this case, Delivery type NLCC is assigned to Document type NB
    9. Go to MM> Purchasing > Purchase Order > Set up STO>Assign document Type, One step Procedure, Under delivery tolerance
    Assign the document type NB to supplying plant and receiving plant
    10. After all settings , Create the STO using T-Code:ME21n and Save.
    11. Create Delivery :VL10G
    Click on the Background Button after selecting line item
    A message is flashed : See log for information> next Click on Log for delivery creation Button >click on line item>click on document button to get Delivery document No
    12. Picking, PGI:[VL02n
    13. Billing:VF01n
    Save the document and its done
    try this
    reward points if heilpful

  • How to import values from txt and pass values to variables

    I need to export some variables from Indesign and import them in Illustrator.  I can export a txt file from InDesign but I don't know how to import and pass the values to variables in Illustrator.
    Can someone help?

    Well from you ID script Im presuming that you are simply writing a few lines of info to a plain text file like so…
    writeFile('SomeData');
    writeFile('AnotherData');
    writeFile('LastData');
    function writeFile(info) {
         try     {
              var log = File('~/Desktop/ID_Data.txt');
              log.open('a');
              log.write(info + '\r');
              log.close()
         catch (e) {
              alert(e);
    So you would just read this back where or when ever you need to use it in your Illustrator script…
    var log = File('~/Desktop/ID_Data.txt');
    log.open('r');
    var a = log.readln();
    var b = log.readln();
    var c = log.readln();
    log.close();
    alert(a);

  • Save  layout and not values of variables

    When I use SAVE_PERSONALIZATION, the values of variables are also saved. I want only the layout is saved and not the values of variables. is that possible?
    Note: version 7 of the wad
    Thanks,
    IKA

    Hi
    Save personalization is for saving variables not for saving layout. If you are doing any changes to layout you can directly save by clicking save button.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/45/6f6b52f5981c91e10000000a11466f/frameset.htm
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/01/42c73c13b0ce5be10000000a114084/frameset.htm
    Regards
    Ravi
    Edited by: Ravi Naalla on Apr 3, 2009 3:47 AM
    Edited by: Ravi Naalla on Apr 3, 2009 3:49 AM

  • How to  define and work with bind-variables without the dialog-box ?

    I want to select different tables with the same bind_variables,
    but do want not fill the bind-variables-dialogbox
    everytime I use the select statements
    because I could simple edit and bind this bind-variables once
    at the first select.
    select col1, col2 into :bind1, :bind2 from mybasictable_10 where col3 = 'ABCD':
    select * from mytable_b where b1 = :bind1 and b2 = :bind2 ;
    select * from mytable_c where c1 = :bind1 and c2 = :bind2 ;
    select * from mytable_d where d1 = :bind1 and d2 = :bind2 ;
    select * from mytable_e where e1 = :bind1 and e2 = :bind2 ;
    it doesn't work and I didn't find that in help,
    how does it work in sql-developer ?
    regards

    david,
    back to the root of my question:
    I do use an 10 years old low-end sql / plsql-tool where I can simple and fast do sql-things like that:
    select col1, col2 into :bind1, :bind2 from mybasictable_10 where col3 = 'for_example_ABCD':
    select * from mytable_b where b1 = :bind1 and b2 = :bind2 ;
    select * from mytable_c where c1 = :bind1 and c2 = :bind2 ;
    select * from mytable_d where d1 = :bind1 and d2 = :bind2 ;
    select * from mytable_e where e1 = :bind1 and e2 = :bind2 ;
    I would like to use oracles SQL-Developer instead of this 'old' tool,
    and want to use my 'old' sql / plsql scripts
    but the SQL-Developer in this matter seems is to much complicate to use,
    I can do complex and big things with sql-dev,
    but not simple using bind-variables ;-)( .

  • How to define and populate value to a variable in a text file

    hi all,
    i have a text file on unix server, when i read it through open dataset, is it possible to populate dynamic value to a variable in the text file. and is it possible to define a variable at any place in the text file?
    after this the program will send the internal table for emailing.
    thanks.

    Hi, If this file on server is a email template you can put some tags / marks and you can change it after you read it with OPEN DATASET / READ...
    Sample:
    OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    CHECK sy-subrc EQ 0.
    DO.
      READ DATASET p_file INTO lv_string.
      IF sy-subrc EQ 0.
        EXIT.
      ENDIF.
      REPLACE ALL OCCURENCES OF '((SYSTEM_ID))' WITH sy-sysid.
      APPEND input_file_tab.
    ENDDO.
    CLOSE DATASET p_file.
    on file there's a line with:
    This email was generated on server ((SYSTEM_ID))
    It will be translated to (sy-sysid = DEV):
    This email was generated on server DEV
    This is a "variable" like that you can use.

  • Assigning value to variable defined as LOCAL in standard program

    Hello Gurus,
    We have a Z function module which gets called via standrad SAP program. Now inside this Z FM we have to code such that it updates an internal table defined via LOCAL in program LQEEMF72 (Main program SAPLQEEM). Is this possible ?
    I tried following :
      DATA gt_qasptab TYPE qaspr OCCURS 0.
      FIELD-SYMBOLS: <qasptab>.
      ASSIGN ('(SAPLQEEM)QASPTAB[]') TO <qasptab>.
      gt_qasptab[] = <qasptab>.
    and at the end
    ASSIGN gt_qasptab[] TO <qasptab>.
    This does not work. How to update the table QASPTAB ?
    Please provide your suggestions ....
    Thanks in advance <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Dec 28, 2007 8:26 AM

    Hi tushar,
    I'm very sorry I can't reallly help you if you don't describe your process at all.
    The include you mentioned is not part of an SAP program but a FORMS include of a SAP function group.
    In this function group QEEM SAP provides lots of userexits:
    EXIT_SAPLQEEM_001 Customer Function for Calculating Formulas in Results Recording          
    EXIT_SAPLQEEM_002 Customer Function: Add. Fns for Importing Insp. Chars in Results Recording
    EXIT_SAPLQEEM_003 Customer Function: Add. Functions After Valuating Insp. Characteristics  
    EXIT_SAPLQEEM_004 Customer Function: Add. Functions After Valuating Partial Samples        
    EXIT_SAPLQEEM_006 Customer Function: Add. Functions After Closing Insp. Characteristics    
    EXIT_SAPLQEEM_007 Customer Exit: Additional Functions After Closing Partial Samples        
    EXIT_SAPLQEEM_011 Customer Function: Add. Functions Before Valuating Insp. Characteristics 
    EXIT_SAPLQEEM_012 Customer Function: Additional Functions Before Valuating Partial Samples 
    EXIT_SAPLQEEM_015 Customer Function: Add. Functions After Entering Individual Results      
    EXIT_SAPLQEEM_020 Customer Function: Additional Functions After Entering Inspector         
    EXIT_SAPLQEEM_021 Customer Function: Add. Functions for User Key +US1 (Char. Single Screen)
    EXIT_SAPLQEEM_022 Customer Function: Add. Functions for User Key +US2 (Char. Single Screen)
    EXIT_SAPLQEEM_023 Customer Function: Add. Functions for User Key +US3 (Char. Single Screen)
    EXIT_SAPLQEEM_024 Customer Function: Add. Functions for User Key +US4 (Char. Single Screen)
    EXIT_SAPLQEEM_025 Customer Function: Add. Functions for User Key +US1 as Pushbutton        
    EXIT_SAPLQEEM_026 Customer Function: Add. Functions for User Key +US2 as Pushbutton        
    EXIT_SAPLQEEM_027 Customer Function: Add. Functions for User Key +US3 as Pushbutton        
    EXIT_SAPLQEEM_028 Customer Function: Add. Functions for User Key +US4 as Pushbutton        
    EXIT_SAPLQEEM_029 Customer-Function for Subscreen Characteristic Overview                  
    EXIT_SAPLQEEM_030 Customer Function for Subscreen Characteristic Single Screen             
    EXIT_SAPLQEEM_031 Customer Function Creating Table with External Numbers                   
    EXIT_SAPLQEEM_032 Customer Function Characteristic Text in Logon Language                  
    Try one of them.
    Regards,
    Clemens

Maybe you are looking for

  • Pl/sql and oracle portal session

    Hi all i use portal      v.10.1.2.2.0 and i would like to play with a session variable. all i do is grant execute on wwsto_api_session to myportal from portal schema. and then i want to do l_store := portal.wwsto_api_session.load_session (p_domain, p

  • Web Analysis client failure at startup

    I'm reseive an exception with message: "Cannot create unregistered service: analyzer.licensing.service" Any suggestion?

  • "Remove and check cartridge" error message

    My Dell Latitude died.  It was hooked up to my hp psc 2110 all in one printer. After completing the set-up basics on new laptop, I downloaded the drivers for the printer successfully.  A test was successful.  Next day, I tried to print.  The printer

  • Blank iTunes store page on iPod touch

    I upgraded to iOS 7 on latest generation iPod touch and now I cannot get a picture when I try to access iTune store. Everything else seems to work ok.  Is this something I can fix? Is it problem with new upgrade?

  • Any way to retrieve data (mainly photos) off of a water damaged iPod 4?

    I dropped it in the washing machine (because i'm an idiot) so it's completely fried. I recently backed it up on iTunes, but not iCloud. I have important pictures that I really need. Is there anyway to get them back off of the old iPod and put them on