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

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

  • 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 & 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

    ..

  • 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

  • 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

  • Webdynpro appln Url parameter "sap-wd-client= XML client "

    Hi all,
        I am a beginner in Webdynpro application development.
    I have a query on the usuage of Url parameter "sap-wd-client=XmlClient" in webdynpro application.
          When i set the Application parameter property of webdynpro iview in portal as "sap-wd-client=XmlClient", i am getting the content of webdynpro appln in XML format. What is the use of this XML format.
    Can we use this webdynpro appln in XML format in any other portal say Weblogic portal and produce an UI in that portal.
    Let me know the use of this XML format.
    Pls give me some exposure on this.
    Thanks & Regards,
    Siva

    Hi sivakumar,
    It is used for supplying data to another kind of client. You can download a trial version of it somewhere on SDN.
    Best regards,
    Thomas

  • 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

  • Adding and reading the parameters from the WebDynpro Application URL

    Hi,
    I have a WebDynpro Application with two views. Based on the values populated by the user in the first view, I am pulling the data from database and populating the data in the second view. I do have a scenario where I have to skip the first screen and show the second screen directly. But, for the values that has to be populated in first screen, I am planning to append the  parameters in the url and provide the link to the users via email.
    Is it possible to add parameters to URL and read those Parameter values when user clicks on the URL.
    Thanks & Regards
    swetha.

    HI,
    Code for accessing params in webdynpro java:
    String urlParamVal = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameter("URL_PARAMETER");
    if((urlParamVal != null) && (urlParamVal.trim().length() > 0))
    <Write the code>
    Reading parameters:
    Re: Reading URL Parameter
    How to pass and fetch multiple parameter in the URL of the Web Dynpro
    Regards,
    Lavanya.G

  • Reading URL parameters in ABAP webdynpro

    I have a requirements to run my ABAP Webdynpro application view based on two parameters passed to it from portal. How can I read the parameters in ABAP webdynpro and use them to write my condition in the run time. I would appreciate it if someone has any code that would help me also.
    Again your help and support is highly appreciated.
    Lily

    Hi Lily,
    To read the URL parameters, you need to right the following code in the HANDLEDEFAULT method
    of the your default window controller.
    DATA : it_parameter TYPE tihttpnvp,
             wa_parameter  TYPE ihttpnvp.
      DATA lo_nd_url_param TYPE REF TO if_wd_context_node.
      DATA ls_url_param TYPE wd_this->element_url_param.
      " Get all URL parameters
      CALL METHOD wdevent->get_data
        EXPORTING
          name  = if_wd_application=>all_url_parameters
        IMPORTING
          value = it_parameter.
      " Get parameter values
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'PERNR' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-pernr = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'SUBTY' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-subty = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'BEGDA' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-begda = wa_parameter-value.
      ENDIF.
      CLEAR wa_parameter.
      READ TABLE it_parameter WITH KEY name = 'ZZPRNTOPT' INTO wa_parameter.
      IF sy-subrc EQ 0.
        ls_url_param-zzprntopt = wa_parameter-value.
      ENDIF.
      " Save URL parameter to context
      lo_nd_url_param = wd_context->get_child_node( name = wd_this->wdctx_url_param ).
      lo_nd_url_param->set_static_attributes(
         static_attributes = ls_url_param ).
    Regards,
    Vikrant

  • How to read URL Parameters in ABAP WebDynpro ?

    Hi,
    How and where (which class, method) in ABAP WebDynpro we can read URL Parameters ? I found answers for WebDynpro JAVA but nothing for ABAP.
    Thanks
    Meenal

    Hi Meenal,
    Please see a post by Sanjay Agarwal titled 'Sequencing Problem in Web Dynpro ABAP'. I believe you will find your answer there.
    Cheers,
    Rich

  • Reading Task Container in ABAP Webdynpro

    Hi All,
    I have to read the task container in ABAP Webdynpro to show the details on a ABAP interactive form which is embedded in WDA. For this I have approached in the following way.
    1) Task is configured in SWFVISU with DYNPARM = WI_ID=${item.externalId}
    2) Workitem is obtained in UWL and ABAPWebDynpro is launched when Task is executed from UWL
    3) START is the "startup" plug that triggers the HANDLESTART method
         This method has WDEVENT as a standar parameter. Then the following code is for reading the URL parameters.
         wdevent->get_data(
        EXPORTING
          name =  if_wd_application=>all_url_parameters
        IMPORTING
          value = l_url_parameters  ).
      READ TABLE l_url_parameters WITH KEY name = 'WI_ID' INTO l_url_parameter.
    4)  Set the WI_ID to a componentcontroller attribute
    5) This attirbute is now binded to the WDDOMODIFYVIEW method of the View
    6) Finally set the form elements attributes of the VIEW by reading the container based on the WI_ID
    Problems:
    1) I am not getting the form populated
    2) The form is getting populated if I hardcode the WI_ID and execute the application directly from backend.
    Please tell me where I might have gone wrong.
    Thanks
    Deb

    solved by self

  • ABAP Webdynpro passing parameter

    I am trying to pass a parameter to an ABAP webdynpro.
    i have a parameter defined in the application "PLANNING_SEQUENCE"
    if i run the webdynpro via a direct url and pass the parameter ?PLANNING_SEQUENCE=<sequence> it seems to receive the parameter ok.
    if i run the webdynpro through an abap webdynpro iview and try to pass the parameter via ApplicationParameter=PLANNING_SEQUENCE=<sequence> it doesn't.
    anyone know how this can be done??

    Hi,
    I think for the webdynpro Iview this parameter works fine when integrated in portal.
    First try running in Portal otherwise do this way.
    When you call this Webdynpro in Poratl Iview then there are also portal application parameters
    where you need to pass it.
    Please give it a try as I have not tried.
    Regards,
    Lekha.

  • ABAP WEBDYNPRO Application Administrative DATA URL HOST & PORT empty/blank

    My ABAP Webdynpro applications do not display the preview layout in SE80 just white page - no errors ANYWHERE.
    Also in SE80 the properties on the application look like: https://:/sap/bc/webdynpro/sap/z_rep_text.  Don't know why https, but I think if I could figure that out I may resolve the issue.  Can't see why trying to run HTTPS, then the host & port are empty.
    I have been reading SDN posts & notes for days on this. I HAVE ACTIVATED ALL SERVICES that is not the issue.  This works fine in our QA system so I know it is some sort of configuration in the development system that is causing this issue.
    We just applied support packs to 23 on SAP ECC 6.0. SAP_ABAP, SAP_BASIS 7.0 level 23.  This was working before patches. There had to be some note that changed what WEBdynpro's look at so now development is no longer working. 
    Any suggestions would be appretiated.
    Regards,
    Diane Szmurlo

    We found that the profile parameter login/ticket_only_by_https was set to 1.  Once we changed to 0 everything worked fine.

  • Missing planning sequence as URL parameter (PLANNING_SEQUENCE)  webdynpro

    Hi,
    I created an iview for Abap WebDynPro for 'zrsplf_file_upload' (webdynpro for load a flat file in IP) and assigned application name, application parameters (PLANNING_SEQUENCE=FILE_SEQ) but i get "Missing planning sequence as URL parameter (PLANNING_SEQUENCE)".
    This one is working in when I run the webdynpro in BW with the same parameter:
    Do you have any suggestion ?
    Thanks

    Hi ,
    Check for the links given below:-
    Check this blog IP:
    /people/marc.bernard/blog/2007/11/25/how-to-load-a-file-into-sap-netweaver-bi-integrated-planning-part-1
    if you're using the BPS:
    through Web
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/708fc3f8-a61d-2a10-fb82-b7c237ae16ba
    using SAPGUI
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/7034028c-ad1d-2a10-2c94-868e7707dfe2
    Please open a seperate thread for the problem you are facing.
    Regards,
    Indu

Maybe you are looking for

  • Re: BT can actually fix broadband faults! (no I'm ...

    Can anyone tell me how I get in touch with this chariman's office? It's been years and I have tried writing to the 'managing director' but not had a response. My next step i think in any case is the only one open to me: sending a bill for compensatio

  • Not able to see the material documents against the status of GMPS

    Hi, Although the PM order has the status of GMPS(Goods Movement Posted) in IW33.No material document is seen against the Order under the order type :Preventive Maintenance.

  • BB Link not for Mac OS X 10.6.8

    Dear all, I am a mac user and never had problems with older BB devices like BB Bold. Now, buying the 10 I need the BB Link software. Problem: My Mac is 3 years old and after running a software update, I am using Mac OS X 10.6.8 but the BB Link softwa

  • Reset Reservation on email in Agent Inbox

    Hi Gurus, Hopefully this is an easy one for you, the question sounds simple enough to me anyway!  A user is able to reserve and reset reservation on emails in the Agent Inbox so that the email can be locked for processing by that user. If a user rese

  • Canon, Sony??

    From this helpful board, decided to buy a new camcorder after Dec 25. I am moving from 8mm to miniDV. Although, I was hoping by now that HD would do the job. My little pea brain says it should, but the collective wisdom of the Apple boards (and David