Skip to Content
author's profile photo Former Member
Former Member

PCUI: URL in HTMLviewver

Hi,

We have htmlviewer for a webdynpro as a PCUI application tabstrip.

Currently we have hardcoded the webdynpro url / iview url in the model access class of the html viewer.

Can any one tell me how we can avoid hard coding the url as we move in to different systems like QA and prod.

Is there any function module / configuration setting available in CRM to get the url runtime.

Thanks in advance,

Abdul

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Oct 06, 2005 at 07:47 PM

    Abdul,

    I don't think in CRM 40 there is such a thing for webdynpro linkage, for BSP there would be no issue. However there is a very simple development solution:

    - Create a Z-table to store your URL configuration. You can then generate a maintenance view for SM30.

    - Design your code to read from your Z-table.

    - In each enviroment maintain an entry for the URL.

    Honestly this KISS approach is probably your best approach until someone comes up with the magic function module to point to the webdynpro. It should take you no more than one to two hours to implement. Try using data element BAPI_URL for the URL field in your table.

    Good luck,

    Stephen

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Abdul,

      take the solution suggested by Stephen or write a Function Module like this:

      FUNCTION Z_GET_PORTAL.
      *"----------------------------------------------------------------------
      *"  EXPORTING
      *"     VALUE(WA_PORTAL) TYPE  CHAR32
      *"----------------------------------------------------------------------
        data : sysid type sy-sysid.
      
        sysid = sy-sysid.
      
        case sy-sysid.
          when 'CRD'.
           WA_portal = 'dev.domain.com:50000'.
          when 'CRT'.
            WA_portal = 'test.domain.com:50000'.
          when 'CRP'.
            WA_portal = 'prod.domain.com'.
        endcase.
      ENDFUNCTION.

      Regards

      Gregor

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.