Read url parameter

Hi friends,
I am using some parameters like crm-object-action, crm-object-value etc to launch the order directly.
while doing this, i want to read the parameter like crm-object-value - which has the guid in the do_init_context of bt115h_slso...
i am using server->request->get_form_field( name = 'crm-object-value' ), and i tried method get_header_fields too... but ai am not able to get the parameter value, this is getting blank value..
how to read these parameters...
kindly provide some inputs on this..
thanks in advance.
RD

Hi Hermiz,
thanks for replying
I did the same way
value type string,
value = request->get_form_field( name = 'crm-object-value' ).
but value has getting nothing.. its blank...
my url has
http://host:port/sap/bc/bsp/sap/crm_ui_frame/default.htm?crm-object-type=BT115_SLSO&crm-object-action=C&sap-client=020&sap-language=EN&crm-object-value=4D240235B73F8143E1008000116CCC
but value is getting nothing..
could you tell me how can i get these values
thanks
RD

Similar Messages

  • Reading url parameter  in HANDLEDEFAULT method

    Hi,
    May be I am doing something very silly but I am trying to read URL parameter in my HANDLEDEFAULT method of  MAIN window , and I am trying to define URL paramter as Method parameters but its gives me run time exception every time 'The ASSERT condition was violated.' 
    my simple paramter is like this  HEADER_ID   TYPE  importing  associated type   STRING
    Can any body help me why this error happens.
    Regards,
    Gaurav

    Hello, Gaurav,
    Have you tried something like this:
      DATA: l_url_parameters          TYPE tihttpnvp,
            l_url_parameter           TYPE ihttpnvp.
      wdevent->get_data( EXPORTING name  = if_wd_application=>all_url_parameters
                         IMPORTING value = l_url_parameters ).
      READ TABLE l_url_parameters WITH KEY name = 'parameter_name'
                                  INTO l_url_parameter.
      IF sy-subrc EQ 0.
    *    your value treatment here
      ENDIF.
    There's no need to declare your parameters as method parameters.
    Regards,
    Andre

  • HTTP Sender - how to read URL Parameter USER id into Mapping

    Hi,
    My scenario is HTTP - XI - ABAP Proxy.
    I wanted to capture USER id of the person who posted(HTTP) into XI(Mapping). How to read/evaluate the value of sap-user from querystring of URL ?
    http://HOST:8008/sap/xi/adapter_plain?namespace=http%3A//abc.com/sales_oa&interface=MI_sales_OA&service=DEV_D&party=&agency=&scheme=&QOS=EO&<b>sap-user=SM9999</b>&sap-password=xxxxx&sap-client=001&sap-language=EN
    please help.

    Mallik,
    Try  URL Parameters in HTTP sender communication channel.
    In the sender communication channel set Adapter Specific Message Attributes. Click on Apply URL Parameters. In Parameter1 put sap-user (U can query any URL parameter by giving its name as in the HTTP URL).
    Now in SXMB_MONI, in inbound payload SOAP Header, under Dynamic configuration u can see the value of the user. Query the same in Mapping using Dynamic Configuration using keyName as UrlParamOne.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • ABAP -WebDynpro - Read URL Parameter

    Hi,
    We have a Custom 'Catalog' that needs to be called from SRM using OCI (Open Catalog Interface). We are developing this custom catalog using ABAP Web Dynpro. We have following issues because of which we are unable to communicate back to Shopping cart from the Custom Catalog:
    1. Unable to read the value of 'HOOK_URL' in WebDynpro application. We need this value so that it can be used as Exit URL. How and where do we read this URL parameter in ABAP WebDynpro ?
    2. How can we return the 'HTML Form' to SRM with the values from Custom Catalog to fill the shopping cart ?
    I would appreciate your help...
    Thanks
    Meenal

    Hi Menal,
    I had the same problem.
    Did you define the HOOK_URL parameter in your webservice ? If not, do this 1st.
    2nd
    In you Webdynpro read the HOOK_URL in your handledefault method your window. Store it e.g. as attrribute in you assistance class.
    method handledefault .
    *&- Add FOF and HOOK_URL to assistanceclass attributes
      wd_assist->hook_url = hook_url.
    endmethod.
    After this you can read your HOOK_URL e.g in a view via:
    concatenate 'HOOK_URL=' wd_assist->hook_url zlv_hook_url into zlv_hook_url
    I hope your question is answered.
    What I want to now is: How to controll the HOOK_URL so that the formfields of the extenal catalog is added to the shopping card. Do you now that ?
    John

  • Read URL parameter of my webDynpro application ?

    Hi,
    How to read the URL parameter of my webDynpro application from within the webDynpro Application code ??
    Example : My application URL is : "http://ldai99wdd:50000/webdynpro/dispatcher/local/target/TargetApp?SAPtestId=38
    &sap-wd-resumeurl=http%3A%2F%2Fldai99wdd%3A50000%2Fwebdynpro%2Fdispatcher%2Flocal%2Fplugs%2FTest%3Fsap-wd-cltwndid%3D1c175200265c11ddc21900300571b288%26sap-wd-appwndid%3D1c175201265c11ddaa3a00300571b288%26sap-wd-resume%3Dtrue"
    I want to read the Parameter sap-wd-resumeurl.
    Regards,
    Mahesh

    Hi,
    You can use the following code to get parameters from an URL
    IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
    IWDRequest request = protocolAdapter.getRequestObject();
    String paramValue1 = request.getParameter("<URL Parameter name>");
    Re: Web Dynpro URL-Invocation with umlauts (like %FC) in the url
    http://help.sap.com/saphelp_nw2004s/helpdata/en/44/be65751c743959e10000000a1553f6/content.htm
    Thanks n Regards,
    Jhansi Miryala

  • Reading URL Parameter

    Dear Experts
    I have created a webdynpro ivew, and added a Quick link to it and added to the workset. So that I can acccess the ivews form URL. I need to pass the URL paramenter also
    like
    http://<Server Name>:<portNumber>/irj/portal/Quick link?param1=Value, Now I need to read the param1 value in my Webdynpro code.
    When i set the value in Application parameter I was able to get the value using the following code
    path=WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("path");
    My Question in how to get the value which is given in URL parameter
    Regards
    Noel

    Hi
    I think the code that you mentioned should works. I observe one thing that in getParameter you mentioned path as an argument. You need to mention the application parameter name.
    Also, if you run the webdynpro application standalone you will not get its iView application parameter. You should only run the iView in portal or in preview mode to get the desired value.
    Following code can help you in listing down all the application parameters that a webdynpro iview can contain. If you mentioned your parameter it will display the same too:
              Enumeration enum =
                   WDProtocolAdapter
                        .getProtocolAdapter()
                        .getRequestObject()
                        .getParameterNames();
              for (Enumeration e = enum; e.hasMoreElements();) {
                   wdComponentAPI.getMessageManager().reportSuccess(
                        "iView Params::" + e.nextElement());
    Coming back to your problem, suppose you have application parameter set as ivuParam  then you can get its value as
              String ivuParam =
                   WDProtocolAdapter
                        .getProtocolAdapter()
                        .getRequestObject()
                        .getParameter(
                        "ivuParam");
    Hope this helps.
    Abhinav

  • Reading URL parameter & displaying into view element

    Dear All,
    I have designed a ABAP webdynpro application.
    With one parameter in application so that I can pass data to webdynpro to views elements.
    Can any one help how to pass data from URL additional parameters to Views context elements?
    For Example:
    WebDynpro Application URL: http://XXXX.com:YYYY/sap/bc/webdynpro/sap/zumruf4?zdata=909090
    So Can I display parameter zdata '909090' to main view?
    Thanks

    ..

  • Reading a parameter from the URL

    Hi,
    There is a custom OA page that I launch from another isupplier form. The custom OA page is supposed to query only details of the purchase order. I have taken the following approach but am unable to capture the parameter.
    on the source form, i have personalized the po number column to include an URL with OA.jsp?page=/../../../TestPG&PoHeaderId={@ICX_HEADER_ID}
    in the custom page, I write a code
    //PoHdrId = "2346";
    String PoHdrId = pageContext.getParameter("PoHeaderId")
    I cannot read the parameter and i am hard coding this to make my custom page query for a particular PO number.
    Appreciate a quick response.
    Regards,
    Jagan

    Hi Ram:
    I have the similar problem.
    I added a new Button thru' Personalization to the View Purchase Orders Page of iSupplier module.
    In the destination URI of the newly created button I gave,
    javascript:var print_window = window.open("http://server:port/OA_HTML/myJSPPage.jsp?PoNum={@PoNum}")
    Before cliccking the button when I checked the properties of the link, it is not well formed. (i.e The Parameter {@PoNum} is shown as it is. The value is not substituted.)
    When I Click the new button it is calling the custom jsp page, but not passing the PoNum parameter value instead it passes {@PoNum} string.
    Please help me ASAP.
    Thanks,
    San

  • How to change the fields in a JSF form based on a URL parameter

    I am trying to build a generic JSF form of parameters which I want to dynamically change (i.e.
    change which field is visible, what the label text should be, etc) based on a URL parameter.
    I can set the fields using logic in the backing bean as an action on a command button pressed.
    But how do I do it based on the URL parameter ? I can retrieve the URL parameter but I
    don't know where to put (or hook) the Java code to do this initialization prior to
    the page being rendered for the first time.
    The fields in the JSF is being configured dynamically using a database table.
    BTW I am using Jdeveloper 10.1.3.5
    Thanks
    CK

    Thanks. I decided to set a Session bean to store the value of the URL parameter (if it is set)
    and then to use the session bean to initialize the attributes of the fields on the JSF Page.
    There also seems to be some caching of the inputText fields (i.e. it reverts back to the first
    initialized value) even though I tried to change it using the URL parameter in the requestScope
    backing bean. So, setting the values into the Session bean and retrieving it back from there
    seems to be more reliable.

  • How can I pass URL parameter value to text field?

    Dear Masters,
    I have a text field. I want it to have a value based on the URL parameter, for example:
    http://myapplication.net:7777/pls/apex/f?p=102:1:::::P1_RTNUM:9448,P1_EMAILADD:email.add.here
    I want the value of the text field = P1_EMAILADD after the form was loaded. Also, please have it read-only.
    Thanks a lot.
    Edited by: user6368519 on Sep 16, 2009 11:39 PM

    Thanks Saad,
    Can I email you(I would need your email) for any concerns or just create a new thread for you to look?
    This is ok now. I'm sorry but I just marked this one as an "answered" one last time.
    Thanks for all the help again I appreciate it. ;)
    Thanks,
    Aaron
    [email protected]

  • How can I pass empty value in URL Parameter

    Hi,
    I am passing different URL parameters to one page, to filter
    the recordset on that page. How can I pass an empty value in the
    URL parameter so that the recordset in unfiltered?
    The URL parameter is based on one field of the database:
    ContentType. So, the link would be to
    default.asp?ContentType=Event
    and then all records that have the ContentType field in the
    DB as Event are displayed. Is it possible to use this system to
    pass an empty parameter so that all records are displayed?
    Thanks
    Ian

    ?ContentType=All
    <% if (ContentType == "All")
    Build recordset w/o filtering
    ASP is rusty, but those are the basics.
    "iandobie" <[email protected]> wrote in
    message
    news:e8im80$q7m$[email protected]..
    > Hi,
    > I am passing different URL parameters to one page, to
    filter the recordset
    > on
    > that page. How can I pass an empty value in the URL
    parameter so that the
    > recordset in unfiltered?
    > The URL parameter is based on one field of the database:
    ContentType. So,
    > the
    > link would be to
    > default.asp?ContentType=Event
    > and then all records that have the ContentType field in
    the DB as Event
    > are
    > displayed. Is it possible to use this system to pass an
    empty parameter so
    > that
    > all records are displayed?
    > Thanks
    > Ian
    >

  • How to catch URL parameter from Portal URL in Web Dynpro iView

    Hi All,
    I have a web dynpro application running as a portal iView successfully. Now the client wants to make it internationalized with 7 languages. Currently they access the portal - and via role assignment they get to the portal tab with the wd iView. Now they want to send a parameter for the language key with the portal URL. So when they are typing in http://myportal.mydomain.com now they want to type in http://myportal.mydomain.com?sap-locale=de or so. My question is how can I catch this parameter in the WD application when it is running inside a portal iView? Is it at all possible?
    I have written a very small application which is trying to catch a URL parameter named PARAM. The code I have written is the default one as below:
    String paramValue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("PARAM");
    When I run the application standalone and add the PARAM=something in last of the URL I can catch it. But when I create an iView and while previewing it I add the same PARAM value it is coming as null all the time. Same when I add this iView to a role and show it via role assignment in protal. Please help to let me know how to achieve this. I think if I can read the parameter value from Portal URL in the WD iView - then I can set it as the default locale of the application and then show language specific file to achieve internationalization.
    Your urgent help will be highly appreciated.
    Warm Regards,
    Shubho

    Hi Shubhadip
    Even if you get the parameters, how do you internationalize your application? Are you not following the standard way as described in the following link. In this case you never need to capture any such parameter. This is done by the WD runtime automatically .
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/f4/d95664da179b4db731e21c2e470b72/frameset.htm">Internationalization of WD projects</a>
    You can retrieve application parameters specified at the creation of iview by "adding parameters(with the same name as in iview application parameters) to the default plug of the Component Interface View of the WD application". "onDefaultPlug" method of the interface view controller you get these values as parameters, which you can save in the context node of component controller for later use.This is guaranteed to work.
    But again this is not what you want exactly. You want the user to specify the value at runtime. If you have just 7 languages, you can create 7 set of iviews with different application parameter value indicating language key, and assign to 7 different set of roles, each representing one set of users with common language.
    I hope you find a solution.
    Regards
    kk

  • How to pass mysql query id through url parameter to a detail page

    Hi there,
    I am a newbie to JSP and I am trying to pass a url parameter to a detail page so that it will query a mysql data query to show the details of that query. How can I write the query on the details page so that it will display the query results on the page. eg select * From data Where = "passed_url parameter_ value". Please i need urgent help on this please.

    <Acknowledged>
    which should be strongly cautioned against even for "newbies".
    </Acknowledged>
    Right, but the code you posted will "work" in a very harmful wayNot always, I used normal Statements last year and I had no problems.
    Even with pretty capible code brakers trying to cause $h!t with my application.
    Just check for invalid datatypes, and for SQL Injections remove stuff like ' or replace with `
    But yes PStat... are the better way.

  • How to get value of URL parameter

    Hi,
    If an ABAP Web Dynpro URL looks like this: http://<server>:<port>/sap/bc/webdynpro/sap/zny_test1?sap-client=100&sap-language=EN, how to get value of the URL parameter “sap-client” at runtime in the application?
    Thanks,
    Nancy

    The framework currently strips all the framework specific params.
    Perhaps the will be made available in a future release.  Thomas, any comments ?
    However, I dont understand the requriement to know the sap-client URL value.
    If your code is running, a user has successfully connected to system a therefore he has a session open and this session is associated with exactly 1 client at any point in time.
    See SYSTEM VARAIBLE   SY-MANDT.
    this represents the client in which the users session is running and negates the need to see
    sap-client URL value.
    regards
    Phil.

  • How to read URL parameters of one wdp component into other WDP component?

    Dear Experts,
    Can anyone let me know how to read URL parameters of one wdp component into other WDP component?
    My requirement is i have one standard WDP component with 3 URL parameters and i needto
    read that URL parameters along with their values in my Z-WDP component.
    Thanks
    SK

    Hi Santosh,
    You can read parameters send from one WebDynpro Component to another component by adding code in "HANDLEDEFAULT" Event Handler method ( Window )of your target Web Dynpro Component.
    data: lt_parameter             type tihttpnvp,
             ls_parameter             type ihttpnvp.
    lo_api_controller ?= wd_this->wd_get_api( ).
       call method lo_api_controller->get_message_manager
         receiving
           message_manager = lo_message_manager.
       clear : ls_parameter.
       refresh : lt_parameter[].
    * Read all URL parameters
       wdevent->get_data( exporting name = if_wd_application=>all_url_parameters importing value = lt_parameter ).
    if not lt_parameter[] is initial.
         clear : ls_parameter.
         read table lt_parameter into ls_parameter index 1.
         if ls_parameter-name = 'ACTION' and
            ls_parameter-value is initial.
           lv_flag = 'X'.
           clear : lo_msg.
           lo_msg = 'Action Parameter Missing in URL Link !'.
    *         report message
           call method lo_message_manager->report_error_message
             exporting
               message_text = lo_msg.
         else.
         endif.
    Best Regards
    Priyesh Shah

Maybe you are looking for

  • Calculated measures

         Hi everyone Hoping that there is an easy workaround to the below I am calculating GM at a SKU level, however would like to be able to present the data at a product category and/or customer channel level However when I drag in my calculated field

  • Iphone 4 won't show up in Itunes, windows, or the device manager

    I've had this problem for about a month where one day my Iphone stopped syncing to Itunes. When I plug my Iphone in the phone will connect and start to charge, but it won't give me the normal options when I connect my phone showing that Windows recog

  • IMovie no longer importing analog source correctly -- what's wrong?

    Hi all, I'm using iMovie '11 with a VCR deck connected via RCA to a ADVC-100 Canopus converter that is connected to my iMac via Firewire 800. This setup has served me well for many years, though I've recently taken on a big project to capture about 3

  • External HD Backup Help

    Last August when I was updating my 20 GB G4 to Tiger I wanted to backup my current material. I have a Disk-Go External HD, Firewire, with 120 GB. It is not currently bootable though. Someone named Cornelius was a big help to me and recommended I make

  • Could not connect to the update server. (2011)

    Sorry if this has already been answered but I couldn't find a message. I keep getting this error message (as above) when I'm trying to install the update on my new Playbook. It's still in the initial set-up, so I haven't actually been able to use the