cancel
Showing results for 
Search instead for 
Did you mean: 

How to embed URL (Longer than 60 Chars) into CRM-Web UI

Former Member
0 Kudos

Hello

i would like to have a textfield with an URL embeded into the Incident UI

So far i managed to create the Char-Field and fill it with the URL

Unfortunately the generated Fields are limited to 60 Chars, but i need 100 for the URL with all parameters to work.

At the Moment the URL is truncated to 60 chars which leaves the link unfunctional

Any Ideas would be appreciated.

Kind regards

Rolf

Accepted Solutions (1)

Accepted Solutions (1)

mamartins
Active Contributor
0 Kudos

Hi,

Maybe you could start to short the webdynpro path to the application.

On this example: "http://[SERVER_NAME]:[PORT]/sap/bc/webdynpro/sap/my_dashboard"

You can create an alias to point directly to that application, please check

MM

Former Member
0 Kudos

Hello

Thanks for the idea, but the target is not sap. So i can't shorten the URL.

I want to call something like:  http://some_nonsap_server/path/param?id=<GUID>

where the whole URL has 73 Chars at the Moment.

So i am looking for a method to store only the <guid> part in the generated field. This is 32 Chars Long, so it fits.

And somehow add a OCA for a second field (which has an affiliated value in it) that builds the URL by concatinating the static part with the Contents of the first field and fires the URL.

Regards

Rolf


richard_pietsch
Active Contributor
0 Kudos

Hi Rolf,

I build a simple URL shortener in our system similar to

The concept is quite easy. You store the source URL in a table and use a unique short-id instead. In my case I use function GENERAL_GET_RANDOM_PWD to generate the id for a given length (e.g. aBcD3). In addition, I created an ICF node 'ID' with a handler class that passes the short URL (e.g. http://mycompany/id/aBcD3) to the corresponding long URL, which can be internal or external.

The other option is to split the URL path into string_table and store the last entry, like:

lv_path = server->request->get_header_field( '~path_translated' ).

  IF NOT lv_path IS INITIAL.

    SPLIT lv_path AT '=' INTO TABLE lt_path.

    DESCRIBE TABLE lt_path LINES lv_lines.

    READ TABLE lt_path INTO ls_path INDEX lv_lines.

    lv_guid = ls_path.

  ENDIF.

Regards, Richard

Former Member
0 Kudos

Hello Richard

Thank you for the idea. This approach solved my problem.

Regards

Rolf

mamartins
Active Contributor
0 Kudos

Hi,

Glad that you problem is solved. Please mark this issue as closed.

Regards,

MM

Answers (0)