Javascript Example to Read Variable Value  in WAD 7.0

Hi,
I am looking for a JavaScript example of how to read the value of a variable in the 7.0 WAD.  If anyone has done this and would like to share that would appreciated.
Thanks,
Mel

I'm afraid I haven't made my question understood clearly.
What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
Please advice.
Thanks in advance,
Shady

Similar Messages

  • How to Read Variable Values in WAD 7.0 Using JavaScript

    I found a how to: How to Read Variable Values in WAD 7.0 Using JavaScript on SDN.
    I get a Javascript error:
    bics.getElementsByTagName is not a function
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    Thats my script:
    function currency()
    var varnm = "SFS_CP_CURR"; // Name of the variable to be read
    root = document.childNodes[0]; // <HTML>
    body = root.getElementsByTagName("BODY")[0]; // <BODY>
    xml = body.getElementsByTagName("XML")[0]; // <XML>
    bics = xml.childNodes[0]; // <BICS_VIEW>
    vars = bics.getElementsByTagName("VARIABLES")[0]; // <VARIABLES>
    varl = vars.getElementsByTagName("VARIABLE"); // gives no. of variable in DP
    for ( i = 0; i <= varl.length; i++ ) // Loop one by one
    vari = vars.getElementsByTagName("VARIABLE")<i>;
    varnam = vari.attributes[0].text; // get variable name
    mem = vari.getElementsByTagName("MEMBER")[0];
    varval = mem.attributes.getNamedItem("name").value; // read variable value
    if (varnam == varnm) //check varname in loop needs to be read
    if (varval == "ZMON") // check for value1 and fire command1
    SFS_CP_M();
    if (varval == "ZKON") // check for value2 and fire command2
    SFS_CP_K();
    break;
    Where's the mistake?

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • How take variable value in WAD 7.0 from query

    Hi experts,
    We have some queries with the same type of data but with different structure. All have the same variables entry and we want to execute through WAD one of them based on the values entered in the variables screen.
    Could you help us saying how we can take that variables values entered in order to use in the Web template code?
    We are using WAD 7.0 and QD 7.0.
    Thanks in advance.

    I'm afraid I haven't made my question understood clearly.
    What I am looking for is a method to get the value of variable inside excel (e.g. put it into a cell / range of a worksheet, so that we can reference it and use it as an input for planning function execution).
    Please advice.
    Thanks in advance,
    Shady

  • Reading variable value via exit

    Hi folks,
        I have a problem while reading a variable value for a lead colum.my layout as follows,
    header : Cost center
    Lead Coloum : Functional location
    Lead Coloum : Equipment
    Data Coloum : Budget proposal.
    Here, I have written a exit for both lead coloum. Actually i want Functional location based on Costcenter and <b>Equipment based on Cost center and Functional location.</b>
    But Equipment variable is getting read before selecting the Functional location, So I am not getting the Equipment variable value based on Functional location.
    Note : I am running layout in the  Web.
    Please suggest.
    Thanks and Regards,
    Meiy

    Dear Meiy,
    Try using characteristic relationship. Use two steps. In the first step, use exit to select the Func location. In the second step, use exit to select the Equipment.
    regards,
    Lokesh Nandula

  • Passing variable values from WAD to BEx

    Hi Experts,
    I am working with a query which is included in a web template. At the top of this template, I have several variables included in drop down boxes for the user to navigate through the data.
    With clicking at "open in Excel" a BEx-Query is started.
    My question: How can I pass the variable values from those drop down boxes to my Query in BEx?
    The current HTML code for starting the Excel BEx-Query looks like this:
    http://sapserver:port/x/x/x/rsr_bex_launch/bexanalyzerportalwrapper.htm?QUERY=Queryname
    Thanks in advance
    Marco

    If you export your report after selecting required drop down values, your report will be saved to Excel as it was filtered. You do not need any HTML code for this.
    My question: How can I pass the variable values from those drop down boxes to my Query in BEx?
    Why do you want to re-execute your query when you have already ouptut in the first screen shot?

  • Read variable value knowing only name

    Is there a way to read a variable value from only knowing the label name? I have Labview 11 and am reading a text file with a list of variable labels and trying to read the value without having to create a case structure of hundreds of variables.
    Solved!
    Go to Solution.

    My first answer was going to be "No", but then I started to think about it.  I'm assuming that the Variables are controls or indicators that are part of the VI or Project of interest.  You could do the following (but it could get messy) --
    Use the AllVIs property of the current Application to get an array of all VI names in memory.
    For each VI name, get a VI Reference, use that to get a Front Panel Reference (property), use that to get Controls[] (property).
    For each Control, get its Label (property).  At this point, I think I'd make two arrays, one of the Control References, the other of the Labels.
    Once your arrays are built, you can use the Array functions to find the index of the variable you want in the Labels array, and use that index to pull the Value out using the appropriate indexed Control Reference.  Note that this doesn't tell you the "Type" of the variable -- this will be left as an Exercise to the Reader.
    Let me know if this works, and is worth the effort.
    BS

  • How to display a variable value in WAD?

    I am using a replacement path variable to filter a report by project number. While this works fine, the project number is not easily visible (only via Filter -> Display All Filter Values and this only displays the description, not the key).
    How can I display the key and the description of the project number variable at the top of the report?
    Thank you,
    Dennis

    The first part is right -
    1) drag a text element onto the page, at a location in which you want the variable value to be displayed
    2) On the left hand bottom page - go to the web item properties for the text element
    3) scroll down to the specific properties for the item - in that uncheck the first two check boxes - display general text elements & display static filter values
    4) in the next item in the properties (List of text elements) click once on the box where List is written and then clcik on the small browse button that appears.
    5) in the window that opens, in the element type field, select variable/variable value as key (as per your requirement) and then under the element ID field type in the technical name of your variable that you want to display.
    click ok and save your template and try executing it.
    See if this solves your problem.
    regards,
    Nikhil

  • Refresh Variable values in WAD

    We have a strange problem in WAD.
    Actually we are on 731 on Hana and we have built a web report with WAD which contain 20 queries. these queries has 2 varibales:
    - calyear
    - Company code
    As ex when we launch the report with variable's values 2013 - CC01 the system shows the message ' No data found..' for one query  but now if we select the button 'refresh variables' (always for 2013 - CC01) the system shows data!
    Also if we execute the same query in BEX the system shows data.
    In fact there are correct data in InfoProvider for this selection but it looks like that for the 1st execution the system is unable to incorporate the correct variable's value.
    Regards
    Luca

    The problem is that refreshing data across all queries works only if we are already into the report (img 2) but if we launch for 1st time the same report it doesn't work (img 1), so:
    1) launch the wad (variables 2013 CC01) the result is 'No data'
    2) refresh the wad (always with 2013 CC01) the system show data.
    thanks.

  • PLSQL: Reading variable value from keybord

    In default cursor it is possible to use:
    ACCEPT variable PROMPT "Enter value: ";
    I got a problem while I try to have the message depend on a constant eg. language:
    DECLARE
    v_DATA VARCHAR2(10);
    v_TEXT VARCHAR2(10);
    c_language CONSTANT VARCHAR2(2) := 'PL';
    BEGIN
    CASE c_language
    WHEN ('PL') THEN v_TEXT := "PODAJ DATE";
    ELSE v_TEXT := "ENTER DATE";
    END CASE;
    ACCEPT v_DATA Prompt v_TEXT;
    END;
    Can anybody help me how to properly enter values within PLSQL begin-end statement.
    I suppose it is quite simple but still... :-)

    THX a lot
    And there is another thing.
    In your example the question is asked always in English and is always the standard one "Enter value for ..."
    I need to support 4 language versions and have to ask question in different languages depending on a value of c_language variable, without the "Enter value for ..." :-)
    English user would see (c_language='EN' ):
    Enter the receipt date: {here cursor waiting for entering date}
    Polish user would see (c_language='PL' ):
    Podaj date przyjecia: {here cursor waiting for entering date}
    So now it looks as follows:
    set serveroutput on
    set verify off
    DECLARE
    v_DATA VARCHAR2(10);
    v_QUESTION VARCHAR2(30);
    c_language CONSTANT VARCHAR2(2) := 'EN';
    BEGIN
    CASE c_language
    WHEN ('PL') THEN v_QUESTION := 'PODAJ DATE';
         ELSE v_QUESTION := 'ENTER PO DATE';
    END CASE;
    dbms_output.put_line(v_QUESTION);
    v_DATA := '&v_ENTERED';
    dbms_output.put_line('Entered value:'||v_DATA);
    END;
    Result:
    Enter value for v_entered: 28-08-05
    ENTER PO DATE
    Entered value:28-08-05
    PL/SQL procedure successfully completed.
    SQL>
    Message was edited by:
    user448557

  • Variables value

    Hi.
    How to get current variable value in WAD using Javascript?

    Hi,
    Go to RSD! and check the infoobject.
    The setting "Query Execution filter value selection" for that particular infoobject of the variable in the "Business Explorer" tab must be set to "values in Master Data table".
    so based on this the variable WILL show all the values that are maintained in the master data.
    To achieve what you are requesting for, in the variable selection pop up screen,
    In the F4 help, click on "Settings"
    and in the "Value Restrictions" tab,
    set the "Read Mode" setting to "custom : Only values in the InfoProvider"
    By Making this setting you should be able to see on the values present in the infoprovider.
    Hope this helps,
    Regards,
    Joe

  • Re: Passing Bex variable values to javascript in WAD 7.0

    Hi,
    Is there any possibility to pass a Bex variable value to the java script in WAD 7.0 so that i can create a pop up and display the value.
    I found a post explaining its possibility in WAD 3.5. but i am not able to find how it can be done in WAD 7.0
    Any inputs will help.
    Regards.
    Shafi

    Hi Shafi...
    Yes it can be done. Insert a Dataprovier Information Item and a Script Item with a code for querying the xml island that provide the infomation you need. I hope this helps. If you need help with the code let me know.
    Edited by: Alvaro Wilfrido Lozada Borrero on Dec 28, 2009 8:44 PM

  • Assign a Javascript variable value to a ABAP variable

    Hi,
       I wish to assign a javascript variable value to  a ABAP variable. Any ideas how to do that?
        Many thanks.
    Rgds,
    Bernice

    Here's another suggestion for you.
    BSP Application: SBSPEXT_HTMLB
    Check out the radionbuttongroup.bsp
    So then instead of using a standard HTML radio buttons you can use the HTMLB element with the parameter for onClick set then in your DO_HANDLE_EVENT you can read the value.
    VIEW
    <htmlb:radioButtonGroup id="radio">
      <htmlb:radioButton id="id_link"
                       text="Link"
                    onClick="myClickHandler"/>
      <htmlb:radioButton id="id_unlink"
                       text="Unlink"
                    onClick="myClickHandler"/>
    </htmlb:radioButtonGroup>
    DO_HANDLE_EVENT
      DATA:   lt_event        TYPE REF TO if_htmlb_data.
      lt_event = cl_htmlb_manager=>get_event_ex( request ).
      if lt_event IS NOT INITIAL.
        if  lt_event->event_name = htmlb_events=>radiobutton.
           case lt_event->event_id.
            when 'control_id_link'.
              schalter = ' '..
            when 'control_id_unlink'.
              schalter = '1'.
           endcase.
        endif.
      endif.
    There is an example of how to use it and read it in the DO_HANDLE_EVENT you then just have to pass the variable around (in this example the variable name is schalter and is defined as char1 in the class)

  • How to read Filter selection variable values into ABAP code

    HI IP Gurus,
    Requierement: In my filter characterstics, i have assigned variables, which use will enter when running th e planning sequence.
    so  variable values entered by user , i would like to get those values into ABAP code and pass them to some function module.
    SO please give me step by step detail how to achive this.
    MY understanding use the below method . but not sure how to proceed.Please let me know abap code to get values.
    GET_TAB_PARAM_DATA_SEL and GET_PARAM_DATA_SEL.
    Please help me.
    Thanks in advance.Will Assign points
    Sania

    Hi Srinivas,
    So In RSPLF1 , in paramters tab, Do i have create structure(str1) and then create component Data selection (Dtsel1) under str1(what setting i have to do here, where should i enter variable value and do i need to give info object name and how do it in code.i tried to following example, not able to get any values in tab_sel .
    It will be great, if you could explain in detail.
    other thing i found out is in Initialization method i can read i_t_data_charsel table values , where it contains filter slected values.but could not pass  these values to execute method
    Is there is any way that i can pass values from init method to execute method.
    A tabular structured parameter with name "MY_TABSTRUC" is defined for the function type. "MY_TABSTRUC" consists of the two parameter components "MY_ELEM" and "MY_DATASEL". You access the parameter values as follows:
    DATA: TAB_PARAM_STRUC TYPE RSPLFA_T_PARAM_STRUC,
           REF_PARAM_STRUC    TYPE REF TO IF_RSPLFA_PARAM_STRUC,
          REF_PARAM_ELEM     TYPE REF TO IF_RSPLFA_PARAM_ELEM,
          REF_PARAM_DATASEL  TYPE REF TO IF_RSPLFA_PARAM_DATESEL,
           L_VAL(20)          TYPE C,
           TAB_SEL            TYPE RSPLF_T_CHARSEL.
    get table of parameter MY_TABSTRUC:
      TAB_PARAM_STRUC = I_R_PARAM_SET->GET_TAB_PARAM_STRUC( 'MY_TABSTRUC' ).
    process all lines:
      LOOP AT TAB_PARAM_STRUC into REF_PARAM_STRUC.
      get component MY_ELEM:
        REF_PARAM_ELEM = REF_PARAM_STRUC->GET_COMP_ELEM( 'MY_ELEM' ).
      get internal value of MY_ELEM:
        REF_PARAM_ELEM->GET_VALUE( IMPORTING E_VALUE = L_VAL ).
      get component MY_DATASEL:
        REF_PARAM_DATASEL = REF_PARAM_STRUC->GET_COMP_DATA_SEL( 'MY_DATASEL' ).
      get data selection table of MY_DATASEL:
        TAB_SEL = REF_PARAM_DATASEL->GET_T_SEL( ).
      ENDLOOP.
    Thanks in Advance..please help me

  • Change Data Entry Template variable values using javascript

    Content ServerIs there a way to change the Data Entry Template's text/Integer variable values using javascript?

    I believe you're asking if you can change the value of a content item's property using Javascript (a content item is created from a data entry template, which defines the set of properties).
    Unfortunately there is not a way to permanently change it in the content item, since Javascript is executed client-side rather than on the server. However, if you're just interested in how the value is displayed in the published HTML, you could modify the presentation template to store the property value into a Javascript variable and then manipulate it to be displayed in whatever manner you wish.

  • Open a crystal report from WAD with passing  the variables values

    Hi,
    I need to know is there any way to link SAP WAD to crystal reports (open a crystal report from WAD)and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Maybe we need to pass parameter by WAD URL but this is just my assumption and have no idea how to do this with passing variable values.
    right now I know the method of how Bex queries which are used as data source for crystal reports but in my current scenario we have the structure like this that bex queries link with WAD and then WAD is linked with crystal reports.
    No doubt that Crystal report is target option in RRI but there the source is Bex Query only but in current scenario we are looking  WAD (web template) as a source to crystal report or crystal report called in WAD.
    Please suggest something on same.
    Thanks
    Take care
    Vishal sharma

    Hello Vishal.
    Did you find a solution for this problem?
    I'm facing right now the same problem, I need a way to link SAP WAD to crystal reports (open a crystal report from WAD) and pass the values of the variables which are entered in the Web App. (e.g. Customer id,year) should be passed to the Crystal Report.
    Have found an answer to this issue? If yes, please kindly inform how have you solved this.
    Best Regars
    Armando Santos

Maybe you are looking for

  • Reg Logical System Name

    Hi, We have ECC 6.0 PROD and ECC 6.0 QAS System. WE have different logical system names for both the systems But when we refreshed the PROD to QAS , we have to run the BDLS transcation to change the logical System name(since we are having different l

  • Bind Variable Values in SQL Queries

    When I want to test a query in Raptor, say something like this: select first_name, last_name from people where first_name like :P1_SEARCH or last_name = :P1_SEARCHI am prompted to provide a value for :P1_SEARCH two times. It would make more sense if

  • Image Capture application keeps "losing" my device

    Image Capture was telling me that there wasn't a scanner or camera connected. I use an HP Photosmart C4680. The printer aspect has been fine since upgrading to SL. I inserted my SL disk. Opened Optional Installs. Went through the prompts etc. and sel

  • Stickies for SocketA Via chipset mobos

    Hello and welcome to the SocketA forum! If this is your first visit here, and this is the first place you have come to, well done! Many answers can be found here before posting your problem, so please take the time to search through first. If you hav

  • 2LIS_02_SCL Datasource dataload issue

    Hi Sdns, i am using 2lis_02_scl datasource, i am seeing the strange behaviour of the datasource. I have filled the setuptables without any issues. then i am trying to load the data to the BI by using the Repair Full request infopackage. I found that