Skip to Content

Can I read webui URL from any class or method.

I wanted to read the Webui URL. Is there any class or method from which i can directly read the ulr . I need to do it in Do_prepare output of the IC_Agent page.

There is a mapper class from which we can build the url but here i want to read the url from do_prepare_output.

can anyone please help me ....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2014 at 06:48 AM

    Hi

    If I am not wrong ,every screen in WebUI comes with your predefined URL like www.XXXXX.com/viename.do etc...Please observe the URL which is predefined and if you read the view name in do_prepare_output and append that view name in URL you will be getting the URL of that screen.

    Please give a try and let me know

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2014 at 06:52 AM

    Hi Golden,

    There is a table which store the URL. I have forgot the table name I am giving the T.CODE name from the T.code you can find the table name.


    'CRMS_IC_CROSS_SYS' T.code.


    Regards

    RR Pradhan


    20110826_04.jpg (52.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 05, 2014 at 08:18 AM

    Thanks Rashmi and Sivaram for the quick reply but my requirement is to actually read the url.

    for example if i am putting this url:

    http:XXXX/bc/bsp/sap/crm_ui_start/default.htm?sap-client=200&sap-language=EN&account id=12345

    i want to read account id 12345 in do prepare output of the page and give all results relevant to this account id.

    What i am thinking if by any class or method i can read this account id then i can fill the context node of result by doing my custom code of search.

    But my fight is will i be able to read url .

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Ashik,

      Thanks for ur reply but what i see in the standard that only one account_id is passed in the url.

      But i need to pass several account just like the screen which comes after searching the account like 12345*. I mean the search result screen with many results.

      And moreover i guess we cant pass the telephone no in the url.

      kindly share if any idea on this.

  • Posted on Jan 05, 2014 at 12:58 PM

    Hi Ashik,

    Thanks for ur reply but what i see in the standard that only one account_id is passed in the url.

    But i need to pass several account just like the screen which comes after searching the account like 12345*. I mean the search result screen with many results.

    And moreover i guess we cant pass the telephone no in the url.

    kindly share if any idea on this.

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      You can take system Web UI link by using below code.

      DATA: lv_appl_model TYPE REF TO if_bsp_wd_appl_model.

      cl_bsp_wd_appl_model=>get_appl_model(
      EXPORTING
      iv_bsp_appl = 'CRM_UI_START '
      iv_model_type = 'CL_BSP_WD_APPL_MODEL_RTTI'
      RECEIVING
      rv_model = lv_appl_model
      EXCEPTIONS
      OTHERS = 1 ).
      IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE 'E' NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      EXIT.
      ENDIF.
      rv_url = lv_appl_model->get_start_url( ).

      Regards,

      Deepika.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.