FDM Web interface - inputbox to populate variable in script

Hi Everyone,
I am looking for a way to input a variable via the web so that the variable can be used when scripting in FDM. I am currently using the messaging function in FDM to display the message but can not seem to find an “inputbox” within FDM API:
RES.PlngActionType = 2
RES.PstrActionValue = “Input Variable!”
I was told by someone that there is a way to input via the API somewhere.
Any help would be much appreciated.
Thanks

I think this is what you meant, since it sounds like you are trying to get() not to set(). The oats variable (different than java variable) is set in the solveXPath() call.
myStr = getVariables().get("web.link.MyFirstTestQuestion"); // Trying to get the value of web.link.MyFirstTestQuestion

Similar Messages

  • To retreive the data based on input in a variable in web interface.

    Hello all,
    I am working on BW-BPS.
    I have a web interface which has many variables.One of them is Version.
    I fill in the values in the variables(including the version) and save the data.
    This saves the plan data in the Infocube.
    Now next time the user opens the web interface.when he enters the version which is existing in the cube,then
    all the variables should get filled in with the values in the cube for that particular version.
    how do i achieve this??I mean how do i code this in the BSP page of my web interface.
    I have read about methods for redefinition in the class CL_UPWB_BSP_APPL.but do not know much about this.
    Regards,
    Dhanya.

    hi,
    you have to create a sub class of CL_UPWB_BSP_APPL i.e(create a class whose super class is CL_UPWB_BSP_APPL).
    since the BSP Event Handlers are implemented in it
    you can change accordingly.
    check this for enhancement for web interface:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/62/e5a562753511d5b3d70050dadfb23f/frameset.htm
    regards,

  • How can I find out the web interface a module function is executed from?

    Hello all,
    I was wondering if anybody knows how would be possible de determine the web interface a function is being launched from, within the function.
    I've got this function that is used for a exit variable that updates the variable value depending on another variable in a web interface. The thing is that this very same function and variable will be used in many web interfaces and the "source" variable will be different for each mask.
    So, for example, mask 1 will have variable 1 as a selector variable and variable X will be updated by it. Then I also have variable 2 in mask 2 as a selector variable and variable X will be updated by it as well.
    I want to develop a code, within the function module, that depending on the web interface that is calling it, it will use a source the correct variable and for this I need to know which web interface is calling the function.
    I hope to have been able to explain myself clearly. It's a purely technical question.
    Thanks in advance.
    Best regards.

    Hi Francesco,
    Are you talking about that ??? )) It will explain you about to get the name of the web page when you are executing an abap function for determining the values of variables...
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20make%20a%20variable%20even%20more%20flexible%20in%20bw-bps.pdf">How to make a variable even more flexible in BW-BPS?</a>
    This is weird: I wrote that document a few weeks ago, it is theorically published on SDN but this is not possible to find it by using the research tool... Maybe because it applies only to BPS in 3.5. I did not have enough time to migrate that solution to BI-IP 7.0.
    Regards
    Laurent

  • Remove standard webservice web interface?

    When I have created and deployed a web service on the soa suite (10.1.3), a standard web interface is generated where I can test the web service. You can put in values and get the response back, formatted in XML. That is OK, but you can also perform stress testing among other things. I do not want this feature on the production site. Is this possible to turn off or something?

    Hi mike,
    in web interface there are three variables:
    fiscal year (single value)
    plant       (single value)
    matirial group (range)
    Formatting is lost only for matirial grouop 12.
    the variable matirial group is standard in layout web...

  • Variable Selection For User in Web Interface for BPS

    Hi All,
    I've created a manual Input sheet in BPS0 to upload target sales. User need to select the month, plant and then enter the target amount for each category. Its working fine.
    Now I need to create web interface for user to upload the data every month. Using BPS_WB I've created the interface (with help of Wizard). I'm getting the input sheet. But I'm not able to get screen where user can select the parameters?
    How to get this? It should work like web report, where user select the report variables then execute. Only difference here is user will have to enter the data for selected variable.
    Thanks in advance.
    Regards: Gaurave

    Hi....add the variables to a folder along with the layout. Then create the web interface.

  • Range of Variable in Web Interface Builder

    Hi,
    I have created a Web Interface Builder in BW-BPS. I have created Cost Center as a Variable. However, I am unable to get this range of cost centers say 1001 to 1005 in Web Inteface Builder.
    Whereas, in the Planning Folder, this works fine and I am able to select the range of Cost Centers from 1001 to 1005.
    The issue is only with WEB INTERFACE BUILDER.
    Looking forward for some valueable inputs.
    Regards,
    Ravi

    Hi Mayank,
    Thanks for your reply.
    I will also look at the different options given.
    I also found the following thread is more useful.
    BSP Value Help Input Field and Select-Options Ranges
    I will let you know on this.
    Regards,
    Ravi

  • User-Specific Variable in Web Interface

    I have created a manual planning layout with User-Specific variables – one for Sale Group and one for Sales District.
    The variable successfully restricts user access to data when executed in SAP GUI.
    A Web Interface was successfully generated from the Planning Folder containing the manual planning layout described above.
    When I execute planning via the web, all possible values are displayed, even though the User-Specific variable limits this user to a single value for each variable.
    Is there a way to restore the restriction defined in the User-Specific variable ?
    I saw an earlier thread indicating that the “Planning Level” property of the Selector Variable Value for each variable used in the Web Interface Builder had to be set - but that field is protected from input.
    Any insights would be appreciated !
    Thanks,
    Lyle

    Narasimha,
    Each variable was created as :
    -     Replacement Type = User-Defined Values.
    -     Restriction of Values required by User = OFF.
    -     Input Allowed by User = OFF.
    Several users are defined within each variable.
    Most users represent Sales Representatives, with a single value assigned to each – a single Sales Rep is assigned a single Group and District ( i.e one-to-one relationship ).
    The other type user represents a Sales Manager, and includes all the values assigned to the Sales Reps reporting to him.
    When Restriction functionality is turned on, the following error message is received :
    Restrict variable UDSALDST (Sales District - User-Defined) (area ZBILLIC (IC Billings Estimate)) to single value
    <b>Diagnosis</b>
    Variable UDSALDST (Sales District - User-Defined) (planning area ZBILLIC (IC Billings Estimate)) is defined so that the user must restrict the values of the variable (indicator 'Restriction of values required by user' is set). However, you have not defined a restriction.
    <b>Procedure</b>
    Restrict the variable or change the definition of the variable so that restriction is no longer required.
    •     To restrict the variable, choose Goto -> Set variables and search for variable UDSALDST (Sales District - User-Defined) in the list. Make the restriction and subsequently continue the planning session.
    •     To change the variable definition, choose the tab page Variables in the context of planning area ZBILLIC (IC Billings Estimate) and reset the indicator 'Restriction of values required by user'.
    While the first option ( Goto > Set Variables ) seems to defeat the purpose of a User-Specific variable, I tried it.  When I use F4 to determine available values, it displays those previously assigned when creating the User-Specific variable !? – this doe not seem to add any more than I already have.
    The second option effectively puts me back to where I was when I posted the question.
    Of interest though, I noticed when the Restriction functionality was turned on, the “All” value previously displayed as available for selection was no longer available – but the specific values for each of the other Sales Reps continue to be reflected, and this user can select values related to another Sales Rep..
    As mentioned in my original posting,
    I saw an earlier thread indicating that the “Planning Level” property of the Selector Variable Value for each variable used in the Web Interface Builder has to be set – but that the field is protected from input.
    Should this object property be ‘open’ to permit input ?  If so, is there a step or setting that needs to be performed.  Could authorization be an issue ?
    Thanks,
    Lyle

  • Variables in BPS populating the template built using web interface builder

    Hi All,
    I have a issue :
    I created some variables in bps0 (under a planning area) based on Fiscal Year, Fiscal Year/Period, Posting Period, Cal. Yr /Quarter and Version.
    Then I created a template using the web interface builder .
    The end user goes and puts the varaibels in the SEM template and that will run the BW queries in BW (ABAP code has been written to popluate the values entered in SEM tempalte in to BW variable screen).
    Now the problem is it works well for all values other than for #(not assigned).
    What should be done to make it work even for #?
    We do not have # as the value in master data for all the above info objects. We have # only for 0version  and for the rest I can't even see the master data as it says " master data is not maintained" .
    when I come back and look in bps0 then I see that the values entered in the SEM template are getting accumulated in selection conditionds in bps0 (when we click on the variable then when we see the selection conditions there it is getting accumulated)
    Can anyone please suggest a solution to make the # (not assigned) work and to clear the selection conditions table after refresh of the SEM template?
    Thanks
    Sri

    Hi
    You should create a BEX Web Query and integrate it in the upper level of WEB Layout.
    Check this link for a step by step guide about this topic
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to%20guides%20-%20rig%20official/bi/nw04/how%20to%20integrate%20bex%20web%20applications%20into%20bps%20web%20interfaces.doc
    Ciao
    Andr

  • Web Interface Builder & Variable???

    Hi,
    Can someone help me to resolve this two issues.
    I try to create variables by using web interface builder.
    <b>1)</b>The variable- company code-<b>US100, CA100</b> are only ones I use in the selection of my planning leveL. <b>However, it shows all possible entries for the variable-company code</b> when I added the variable-company code in the web interface builder.
    <b>2)</b>Another variable-forecast year, I created it in the planning area (using 'fiscl year') and try to add this variable in the web interface builder and got <b>an error message-the selection to 0fisclyear is not 'restricted'.</b>
    Advices are appreciated.
    J.

    1) Set "Planning level" property of selector for you variable in web interface builder
    2) Restrict fiscal year

  • Displaying a BW query in web interface

    Hello People ,
    I am trying to see a BW query in a web interface . I will tell you how am I doing it . I run the transaction RRMX which opens an excel sheet and gives me a tol bar from which I open a query . Then I choose info areas from the next window and it shows me a tree structure with two nodes
    1) Financial
    2) Industry sectors
    I expand industry sectors > retail > staff works
    This takes me to two nodes
    1)       operational
    2)       sales infocube
    I expand sales infocube and this takes me to a couple of nodes
    1)       Key business driver
    2)       Manager forcasted sales
    3)       Productivity data source
    4)       ….
    5)       ….etc
    I select key business driver and choose the “CHANGE” icon from the toolbar . This opens the query designer . There I have an icon in the toolbar which says “display quey on web” . I click that and it attempts to display the query in internet explorer .
    Now the problem is the the message that appears on the browser is
    Warning sign : variable OFPER for characterstic fiscal year/period has been converted to required entry .
    Error sign : Error when generating data provider .
    Now my question is what does this message mean ?Does this mean that the required content that I am trying to access has not been activated or there is some configurational issue ?
    Regards
    Deepak Singh

    Hi Deepak,
    It means that there is a selection screen for Fiscal period in which you have to enter the Fiscal Period. Only for the Fiscal period for which you entered the data would be displayed.
    But the best way to create teh web report is to goto Web Application Designer -> Drag and drop the "Table" webitem on the right hand side -> Assign the Query to the web item. Now execute it in browser from the Web Application designer. Copy the link and use it whenver you want it.
    Bye
    Dinesh

  • P&L report (using web interface builder)???

    Hi all,
    Can someone explain BPS report concept for me?
    For example,
    In my P&L report, I will have fixed cost, variable cost, and revenue...etc.
    I created fixed cost layout, variable cost layout, and revenue layout...etc.
    My question is <b>how those layouts generate a P&L report on the web interface??? If</b> I enter planning data in the fixed cost layout and the values should be in the P&L report as well. <b>How can I create P&L report in the web interface after I finished all layouts???</b>Thank you for sharing
    J.

    Hi
    You should create a BEX Web Query and integrate it in the upper level of WEB Layout.
    Check this link for a step by step guide about this topic
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/how-to%20guides%20-%20rig%20official/bi/nw04/how%20to%20integrate%20bex%20web%20applications%20into%20bps%20web%20interfaces.doc
    Ciao
    Andr

  • Query in BPS Web Interfaces - Open in New Window

    Hello,
    I am trying to insert a BW Query into a web interface but have it launch in a new window.  I know how to have it open in the web interface by using a text box.  In July of 05 I found an answer from Marc Bernard on a similar topic, but with a query returning variables.  When I tried to use the code, I got an error.  I know that I can create a URL with Target="_Blank" but I don't want to hard code the full URL of the web report because the default host and port will change with the systems.  I tried the following URL in hopes that would inherit the system but it doesn't work.
    http://<default_host>:<default_port>/sap/bw/BEx?cmd=ldoc&infocube=EPABUDGET&query=EPA322BR
    Here is the code I have for the report.   Can someone tell me how to open in a new window or how to get the URL to work?
    <iframe
        id="BWReport01"
        name="BWQUERY"
        src="/sap/bw/BEx?cmd=ldoc&infocube=EPABUDGET&query=EPA322BR"
        width="900"
        height="800">
    Frames are not supported.
    </iframe>
    Thanks,
    Cherie

    Hi Cherie,
    you are on the right track. Just use a href="/sap/bw/bex..." target="_blank". If you need the URL to be more dynamic, use javascript with window.open.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Abap code in HTML Tag in Web Interface

    Hello,
    in a text tag im my web interface for a BPS a added the sap example code "How to Integrate BEx Web Applications into BPS Web Interfaces".
    Now I want to open a web template with a query containing the user and the date as filter object. this filter i want to fill already while creating the url.
    I inserted a command like <%sy-uname%>  but it doesn't get the users name. Do I miss a command to make abap available in this context, or do i have to use javascript. -> can someone give me a tip where i can find the javascript functions ?
    I add the coding below.
    Thanks for your help.
    Dieter
    <iframe id="BWReport03" name="BWQUERY" src="/sap/bw/mime/bex/icons/pixel.gif" width="1000" height="700"></iframe>
    <script language="JavaScript" type="text/javascript">
    function varValueConvert(dispValue){
    /* Expected formatting of variable selector: Text(Key) or Key
       If there are more than one (...) expression the first is taken.
      var keySection = dispValue.match(/(.*?)/);
      if (keySection){
        var keyValue = keySection[0].replace(/(|)/g,"");
        alert(dispValue + ' : ' + keySection + " : " +keyValue);
         return keyValue;
       } else {//alert(dispValue);
        return dispValue;
    var frame = document.getElementById( 'BWReport03' );
    var url = '/sap/bw/BEx?cmd=ldoc&TEMPLATE_ID=';
    var filter1 = '&FILTER_IOBJNM_1=ZIPBTCUSR&FILTER_COLLAPS_1=&FILTER_VALUE_EXT_1=';
    var filter2 = '&FILTER_IOBJNM_2=0CALDAY&FILTER_COLLAPS_2=';
    var filter2low  = '&FILTER_VALUE_LOW_EXT_2=';
    var filter2high = '&FILTER_VALUE_HIGH_EXT_2=';
    var appl = 'WZIPBTCLOG_S_LOG001';
    var varvl1 =<b> '<%=sy-uname%>';</b>
    var varvl2 = <b>'<%=sy-datum%>';</b>
    var varvl3 = <b>'<%=sy-datum - 7%>';</b>
    // create URL
    url = url + appl + filter1 + varvl1 + filter2 + filter2low + varvl2 + filter2high + varvl3;
    // remove possible white spaces
    url = url.replace(/ /,"");
    // set source attribute of iframe to new URL
    frame.src = url;
    </script>

    Hi,
    There's a disjoin here when we write the java script it's run at the front end and cannot read any standard SAP variables(unless you code for some kind of rfc call not sure). It can only read what's displayed on the web page. If you can somehow display the user id on the web page you will be able to read it back in the script. Regarding date that's a standard functionality in script
    please refer
    <a href="http://www.w3schools.com/js/js_obj_date.asp">Java script</a>
    hope this was helpful.
    thanks

  • How to call a BPS Web Interface with predefined selections

    Hi,
    I have read and try to implement the "How to... call a BPS Web Interface with predefined selections" but it is not working.
    I have one Web Interface called ZXXXXX, then I created one BSP and copied the ABAP code into the Layout screen.
    I checked the ABAP and it concatenates and fill the variable l_url, but the page is not displayed.
    l_url = /sap/bc/bsp/sap/zxxxxx/zxxxxx.htm 
    I have checked that I have no errors in the BPS variables and its values.
    It just opens internet explorer and the page displays "<<<" in the top of the screen.
    I am working with BW7.0 and BPS 3.5.
    If anyone can help me it will be rewarded,
    Thanks a lot,
    Fernando

    I think the problem is in the last part of the code.
    <frameset framespacing=0 frameborder=0 border=0>
    <frame src="<%= l_url%>" name="x" framespacing=0 frameborder=0 border=0
    marginwidth=0 marginheight=0>
    </frameset>
    It is doing nothing in this point, but the ABAP fills correctly the l_url variable.
    Thnks

  • Query in Web Interface

    Hello all,
    as described in the "How to integrate BEX Web application into BPS WEB Interface" i've implemented the below listed coding. In the query we ask for a from and to date. Depending on the users setting i have to build the filter value for the query. Unfortunately i have no idea, how to read inside this java script function the user setting from table usr01-datfm.
    please help. thank you.
    Dieter
    // create variable of date, get the actual date and subtract a number of days
    var heute = new Date();
    heute.setDate(heute.getDate()-2)
    // move the values to separate variables
    var jahr = heute.getYear();
    var monat = heute.getMonth()+1;
    var tag = heute.getDate();
    var heute = new Date();
    var from_date;
        from_date = <i>jahr + '.' + monat + '.' + tag;</i>
    // renew variables and to the same
    var heute = new Date();
    heute.setDate(heute.getDate())
    var jahr = heute.getYear();
    var monat = heute.getMonth()+1;
    var tag = heute.getDate();
    var to_date;
        to_date = <i>jahr + '.' + monat + '.' + tag;</i>

    Hi Dieter,
    From your earlier comment I understand you are using the principles as explained in How to integrate BEX Web application into BPS WEB Interface.
    You thus have a BPS web interface. This web interface contains a text item that calls a URL.
    This URL calls a web application.
    The web application calls a Bex query.
    Yes it is possible to use ABAP programmed userexit variables in this query.
    Please assign points if this solved your problem,
    Best Regards,
    Filip

Maybe you are looking for

  • How can I sync my iPod with my computer without deleting the songs that are on my ipod

    how can I sync my iPod with my computer without deleting the songs that are on my ipod

  • Trying to build my own edit suite

    What are the basic components to a good FCP system to broadcast master tape. I'm looking to get at least 10 bit quality at the cheapest price. I have G5 2.3 Dual processor 1 gig of RAM 1 media drive at 300 GIG (7200) 23 Cinema Display I know I need a

  • Creative give us some answ

    Dear creative plez could u tell me, sorry plez could u tell everybody wtf are u doing to support your(make that, our cards) as we all have paid u decent money 4, no offence to the mods in here but i would like some answers from the organ grinder and

  • Raw sockets with IP headers in mac osx

    I am trying to send IP packets through a raw socket (SOCK_RAW) on my mac (osx 10.6), and always get an "Invalid Argument" error. I have tried with IPPROTO_RAW, IPPROTO_UDP, and IPPROTO_DIVERT (which should also send raw packets). When using _RAW or _

  • Oc4j islands

    Hello all, when I create few more islands other than juts one default_isalnd for my oc4j , the http requests to my application are being load-balanced automatically with all the available island processes.Is this the default behavior when I create mo