Dynamic url to use as link in a web template

Hello
I`ve git the following problem:
I want to define a hyperlink in a webtamplate (WAD), that referes to an existing query an my sap-system.
Of course, that link should point to the developement-system if achieved there, bit after beeing transported to q-system it should point to that.
I think, that there must only be a change to the first part of that url, a string that will be determined systembased.
Any solutions?
Thx a lot
Tom

You can generate the string dynamically based on program, and store it in some table to pass it.
Get the prefix from field URL_PREFIX  of table RSPOR_T_PORTAL.
Now create iView for that web template...say iView - test
use the below string say STRING
'/irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.IviewModeProxy?iview_id=''
Now give the location of iView of portal: say LOC
For example if its in main folder of content admin role:
'pcd%3Aportal_content/com.abc.abc_content_folder/com.frx.ZDW_IVIEWS/'
Now give your iView id: TEST
now concatenate URL_PREFIX, STRING, LOC & TEST that's the string which you can pass dynamically on any portal server.

Similar Messages

  • Header links in the web template is not working

    Hi all,
    I have a created webtemplete in that, header links in the web template is not working. But individually header links. I am not why they are not working in webtemplete.
    guys please help for above situation.
    Thanks,
    James

    Hi Bob,
    There are many XML schema files for the data connection, I recommend to check if the references to the XML files have been changed to the new schema files in the manifest file.
    For example, if we create a data connection called GetUserProfileByName, then there will be one XML file and three XML schema files for the data connection.
    Please make sure that all the references are updated in the manifest file.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Dynamic URL Configuration using variable range - WAD

    Hi,
    I am trying to configure a URL dynamically using variable range values. There are two variables which I pass to the URL, Sales Document Number and Posting Date. Sales Document Number has a single value and Posting Date is a range variable. The single value for sales document is passed to the URL but the date range is not passed and hence the web template gets the blank value for the date and shows the variable screen as this is mandatory. The URL is as follows.
    CONCATENATE
    l_web_protocol
    l_portal_server
    Initial URL
    '/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?TEMPLATE='
    l_web_template
    '&BI_COMMAND_1-BI_COMMAND_TYPE=SET_VARIABLES_STATE'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING'
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING='
    l_var_value  "variable value
    '&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE='
    l_var_name   "Variable for info object
    '&BI_COMMAND_2-BI_COMMAND_TYPE=SET_SELECTION_STATE_SIMPLE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR=INTERVAL_SELECTION'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-ATTRIBUTE_MEMBER_SELECTION-
    INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBERS_EXIT='
    l_range_var_name  "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_LOW_MEMBER-MEMBER_NAME='
    l_range-low     "Variable Value - Low
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-ATTRIBUTE_MEMBER_SELECTION- INFO_OBJECT=0PSTNG_DATE'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER=MEMBERS_EXIT'
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBERS_EXIT='
    l_range_var_name     "Customer Exit Variable
    '&BI_COMMAND_2-RANGE_SELECTION_OPERATOR-INTERVAL_SELECTION-INTERVAL_SELECTION_HIGH_MEMBER-MEMBER_NAME='
    l_range-high      "Variable Value - High
    '&BI_COMMAND_2-RANGE_SELECTION_SIGN=INCLUDING'
    '&BI_COMMAND_2-TARGET_DATA_PROVIDER_REF_LIST=DP_TAB'      "Tab in the Web Template
    into  l_url.
    Can someone tell me asto what's going wrong with this URL? I passed single value for Posting Date and it worked fine.
    Thanks and Regards,
    Arya

    Thanks for the reply. However I did not understand couple of things. Should I try the URL like below?
    BI_COMMAND=&
    BI_COMMAND-TARGET_DIALOG_REF=l_var_name&
    BI_COMMAND-BI_ADVANCED=DLG_VARIABLE_vsc_DropdownVariants& "Which value to be passed?
    BI_COMMAND-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&  "Which value to be passed?
    BI_COMMAND-PASSIVE_ID=DLG_VARIABLE_vsc_DropdownVariants_combobox& "Which value to be passed?
    BI_COMMAND-PASSIVE_VALUE=l_var_value&
    BI_COMMAND_1=&
    BI_COMMAND_1-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_1-BI_ADVANCED=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT& "Which value to be passed?
    BI_COMMAND_1-BI_COMMAND_TYPE=PASSIVE_VALUE_TRANSFER&
    BI_COMMAND_1-PASSIVE_ID=DLG_VARIABLE_vsc_CommonVariablesList_VAR_1_VARINPUT_inp& "Which value to be passed?
    BI_COMMAND_1-PASSIVE_VALUE=l_range_low-l_range_high&
    BI_COMMAND_2=&
    BI_COMMAND_2-TARGET_DIALOG_REF=l_range_var_name&
    BI_COMMAND_2-BI_COMMAND_TYPE=OK
    Thanks and Regars,
    Arya

  • Link in a Web Template as a Jump Target?

    Hi,
    I have a requirement to jump from a web template to a query using a link on the page. We're currently migrating from v3.5 to v7.
    In 3.5, we used javascript to build the link as follows:
    function openJumpTarget() {
        url = SAP_BW_URL_Get();
        url += "&DATA_PROVIDER=DATAPROVIDER_3&CMD=RRI&RRI_RECEIVER=CUBE0003&Stylesheet=/sap/bw/Mime/BEx/StyleSheets/Streamline_BWReports.css";
        window.open(url,"_blank");
    I'm using the Link web item, implementing the SCRIPT above, yet it doesn't seem to work. Any ideas what the issue is, or if there is a better way to build the link?
    Thanks
    Wayne

    Hi,
    Well one options is creating another web template for the target query. Use a Link item in the sender template or a button group, set commands for SET_WEBTEMPLATE under commands for Web Templates. Change Web Temp will ony change the Template and not the Analysis item.
    But using SET_WEBTEMPLATE, i dont think the desire result would be obtained, because it sets a new template. So, the Analysis item in the new template will be displayed as a whole and the concept of RRI would be missing. It will not work as RRI.
    You can use RSBBS. Give the sender as your Web Template and the Receiver as Query. So when you right click on the required field in Sender (Web Temp o/p), it would open up a window with the Receiver output(Query o/p).
    Pls try this. It might help.

  • Displaying name of the Used Query-View in a Web Template

    Hello Experts,
    I am using a Query View as Dataprovider in a Web Template.
    Now I would like to display the name of the View.
    But with a Text Element this isn't possible.
    You can only display the name of the Query.
    Is there a way to display the name of the used Query-View?
    Thank you for your help.
    D.Kramer

    Hi Sumit,
    hi Björn,
    thank you for your hints.
    We use a template to enable users to create Views.
    So its dynamic.
    That way we don't know the Name of the Views in advance.
    (So putting the text into 'Title' is not possible)
    We already use the "Query View Selection". This works out for users that are able to see different Views. (Power User)
    But is it also possible to display the Query View Name in an Item or with html methods for those templates where there is only one View (as dataprovider) we don't know in advance?
    Thanks again.
    D.Kramer

  • Hierarchy selection using a dropdown in IP web template

    Greetings,
    Is it possible to have a dropdown on my IP template where I could see all the 0COSTCENTER stored hierarchies ?
    What I'm really looking for is replicating the functionality of the dropwdown found in:
    In the query - > Click on the Char - In Properties Window - Right Hand Side - Hierarchy Tab (which displays the hierarchies for the infoobject).
    But i cannot find the template to view how SAP has done it there.
    Br,
    Henri

    Hi Martin,
    One easy way of solving is to include the WAD command TRANSFER_STATE at the end of all the Planning function / Sequence commands attached to the Button.
    This will refresh the WAD layout without having to reenter the variable values if any.
    The other Option is to reset all the variables associated with the execution of Planning function after every execution.
    This can be included under Web template Properties so this happens after every refresh of the layout.
    Hope this helps.
    Regards.
    Shafi.

  • Building arguments of URL when using HTTP Adapter

    I am using the HTTP adapter in one of my interfaces and need to call an url that has arguments. For e.g.
    http://dpw6716.roseville.mycompany.com:8058/accelis/servlet/publish?type=create&ItemId=1018&Name=Harshad&Desc=FromXI
    In the above URL the <b>ItemID</b> and the <b>Description</b> are dynamic. Is it possible to build such dynamic urls and used in the http adapter configuration? if so how? Can context objects be used here for the dynamic part?
    Thanks,
    Harshad

    Hi Harshad,
    it is possible to build up dynamic URLs, but the way is quite complex. You have to configure a XI-mandant as "Application System" to use it as allocator. Your message will be received there in an inbound-proxy (ABAP), where you have to implement a dynamic WAS-Request (class CL_HTTP_CLIENT).
    Regards Udo

  • Disable link of BEX 3.5 query web template

    Dear All,
    we migrated all BEX queries from 3.5 to 7.x. Since our users use the BEX queries via web template, most of then have the web template links of old 3.5 queries saved as bookmarks in their browser.
    Is there a way to disable this link server side, in order to force the user to update theyr link with the new one of BEX 7.x query web template?
    Thanks

    Hi,
    > You may delete all 3.X bookmarks. The standard 3.X bookmark administration can be found in transaction RUNSCHED.
    All below options mean, that you also cannot use the Broadcaster anymore !
    > You may deactivate service /sap/bw/BEx in SICF. Users will get an ICF error message (Service not found).
    > You may create your own handler on ICF service sap/bw/BEx, providing an appropriate message for users.
    > Your can create your own redirect/logon/error page on this service.
    > Another very drastic option would be to switch off service HTTP(S) in your ICM. In this case, no web applications are available via that service on the system anymore.
    regards,
    Martin

  • Link to BPS from  Web Template

    Dear friends,
    Urgent requirement!!!
    I need a huge helps from you all as based on my requirement.
    Is it possible to give a link from the web template to the BPS dialouge function where the user can enter the values?
    When the user clicks the link it has to display the dialouge where the user can enter the values...
    Also from the web template chart when i click on a particular plant will it give the detailed report in the next page of the particular plant automatically
    I need your helps please.....
    Thanks in advance
    Waiting for the replies
    Regards
    Srini

    Hi,
    for BI7 check this: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b085e86e-2353-2910-0c96-9f6ab693d0e6
    the best way to implement a corporate design for BPS Web Interfaces is to configure a cascading style sheet (CSS) and load the graphics into the MIME repository.
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/0d79ee29ee47edaec7fe6786543ff9/frameset.htm
    Thanks
    @ajy

  • Dynamic url link for Crystal Reports Enterprise?

    Hi all,
    We recently upgraded to SBOP 4.0 SP2 and are looking at migrating our existing Crystal Reports from Crystal Reports 2011 to Crystal Reports for Enterprise 4.0.
    Up to this point we have been utilizing the BW Publisher and role menus in BW.
    Our long term goal is to migrate users from the BW GUI to the BI LaunchPad but this will be a gradual process.
    Until we make the final switch to the LaunchPad we need to maintain the links in the role menus. I found the Document Link option for Crystal Reports so I have a URL to point to the report that we can put in the role menu, but the system value is not dynamic. Is there a way to make this dynamic like we can do with web template URLs?
    For example, when using a web template URL we can use the <bsp_server> parameter in the URL to determine the SAP system. Is there an equivalent that can be used in the Document Link for the Crystal Report to determine the respective SBOP system?
    Thanks.
    -Brian

    Hi,
    Below is link for the Crystal report for Eclipse 2.0:
    [http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp|http://www.businessobjects.com/campaigns/forms/downloads/crystal/eclipse/datasave.asp]
    you could always refer to the following thread as Bryan updated with new releases :
    [Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available!|Crystal Reports for Eclipse 2.0 Release Update 8 is Now Available!;
    Hope this will help
    Regards,
    Rameez Shaikh

  • Dynamic Url Link

    Hi,
    I want to generate a dynamic url link during the runtime (pick up fr database), which is to load an image from external source. How to do it programmatically?
    Any help would be much appreciated. Thanks.

    Hi Julius,
    Cant you use the LinkToURL element? For eg: like this,
    Create a LinkToURL element in your view. Give it a text like 'Click here to see photo'. The reference property of this element is bound to a context value attribute of type string. Bind the visibile property of this element to a context value attribute of type WDVisibility. This value is set to NONE in wdDoInit().
    When you know the value of the URL(for example , after a button click), form the URL value dynamically, set this value to the context attribute to which you have set the reference. At this point, set the visibility to true.
    Regards,
    Lm

  • Open a Dynamic URL from a Table column link

    Hi,
    Jdev Version (11.1.1.6.0)
    I have requirement to open a dynamic URL from table column. Any time I click on link, it should generate dynamic URL based on column attribute and open in popup or browser. Can someone pls suggest how to achieve this.
    Thanks
    Ank

    1)If you have any parameters that needs to be passed to build that dynamicURL, just set a propertyListener on the column attribute and get the value.
    2)Then on the af:commandLink action, build your dynamicURL with the required parameters.
    3) If you URL is all together a different application which doesn't share your transaction, you can open it as below
    In the below code, urlWithParams will be your dynamicURL.
    ExtendedRenderKitService erks =
    Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    StringBuilder sbURL = new StringBuilder();
    sbURL.append("window.open(\"" + urlWithParams + "\");");
    erks.addScript(facesContext, sbURL.toString());
    You can also try the above response by user 948181.
    Hope it helps.

  • Using database link  with a dynamic SQL in Forms 5

    I have a Form 5 application where a database link is specified in a client version of dynamic SQL. The function that the application is designed to perform is to access data in a table in a remote database and use it to populate another table in a local database with the same structure as the source table. Dynamic SQL is used because the name of the table can only be resolved during run time.
    The problem is that it gives error with code 'ORA-03113' and text 'End-of-file on communication channel' when you try to run it.
    Is it not possible to use a database link with a dynamic SQL? What can I do to overcome the problem ?

    Try to create a local view based ao the remote table and use the view.

  • How to use web services with Dynamic url behaviour

    Hi,
    IView created by me currently uses some web services whose url behavior is static but i want to give a dynamic url behavior. i.e. i want to use the url which user provides. So here are my questions
    1. How I shall assign the url supplied by the user to IView?
    2. If I want to set some config variables during runtimes how I shall do it?
    Thanks in advance,
    Vishvesh

    Hi,
    1. I'm guessing you mean the webservice's url the user provides is pointing to an identical webservice to what you used to create your proxy... otherwise I think it will be very hard to do (I can imagine creating the proxies using the wsdl tool in run time or using code dome.. but that can't be what you want, right?).
    So if what you wanted is to use the same web service with a different url, then the web service's proxy class you created has API for doing this in code! (it inherits it)
    2. you can't, simply since the portal application doesn't ever use the config file... it isn't even deployed to the portal... so dynamic properties are "out of the question" here, sorry... see 1 again
    Regards,
    Ofer

  • Dynamic URL link How?

    I want to be able to change the URL web address of web links
    inside my flash document by the means of an external text file, is
    this possible? I cant find any reference to any simple actionscript
    on the web.
    I don’t want to use php or any other scripting, I was
    thinking of putting a variable in the url field then loading a text
    file with the urls I want it to link to??
    [email protected]

    OK, I think people may be missing the obvious here. The posts
    above are all correct ActionScript. Some of them have more code
    than is really needed but it all looks correct so I am going to
    guess that the problem is that no one has mentioned that on the
    default Flash security settings, you cannot access links on the
    internet from Flash movies run from your local machine.
    In other words, if you create a button with a link to
    http://www.adobe.com and run that
    Flash movie on your computer, it will not work. A security warning
    will pop-up. You need to upload your Flash movie to a server for it
    to work properly unless you are only using relative links (links
    that are relative to the current file and part of the same file
    system with no domain needed).
    As for the code, my preference is to write it like this:
    In a text file name data.txt:
    URL1=http://www.adobe.com&URL2=http://www.google.com
    On the first frame of the Movie:
    loadVariablesNum("data.txt");
    On the button:
    on(release){
    GetURL(URL1,"_blank");
    UPLOAD IT TO YOUR SERVER TO TEST IT.
    Be sure to note that the text data will be cached by most
    browsers but that is something that can be saved for another time.

Maybe you are looking for

  • Unable to open windows database files hosted on Lion Server

    I use Mac Mini as a server. With Snow Leopard Server I shared files hosted on Mac Mini and other PC computers on the network could use together Access and Quickbooks files. After upgrading to Lion Server no PC is able to open these database files. E.

  • How Can I Achieve Collaborative Songwriting with Garageband?

    Hello, I don't yet have GarageBand as I'm awaiting my iPhone 6, but I had an idea to do collaborative songwriting with some friends, where I start off with just a beat, and someone else adds bass over the top, and someone else passes that along to an

  • Using Text Predicates with table aliases

    Is there any way to use text predicates with the CONTAINS operator against an event based on a table alias? Just trying to add the function "Contains" to the event struct doesn't work, and reading through the developer's guide, it looks like I need t

  • A window appear in sapscript upon printing but cannot be found on se71

    Hello experts, When my sapscript program is run and displayed, there is a window (w/contents) that appears when it shouldnt be. I need to delete this. However, this window is nowhere to be found in my sapscript program. Pls help. thanks.

  • Trying to simplify multiple steps into one - please help

    I have a set up of steps to perform on 3 tables in order to populate two tables, please suggest best way (performance wise) to do this CREATE TABLE AE   EID    VARCHAR2(100 BYTE),   UKEY   VARCHAR2(1000 BYTE),   TNAME  VARCHAR2(10 BYTE) CREATE TABLE