on 04-13-2015 1:21 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.