2010 Sep 29 9:58 PM
Hi All,
I am working on a project where I need to send a URL to the user in his email, the URL contains the document number in it. when the user clicks on that URL a webdynpro application will open with data prepopulated based on the document number, now what I want his how can encrypt the document number in the URL when sending it to the user. so basically the user who gets the URL should not be able to see the document number in the URL.
Please advise.
Thanks,
Rajat Garg
2010 Sep 29 10:11 PM
You could try to create a GUID (e.g. using function module GUID_CREATE) for each document that should be exposed via an URL. Store this link (GUID <-> document key) in a custom table and map the GUID into the document key within your webdynpro.
2010 Sep 29 10:11 PM
You could try to create a GUID (e.g. using function module GUID_CREATE) for each document that should be exposed via an URL. Store this link (GUID <-> document key) in a custom table and map the GUID into the document key within your webdynpro.
2010 Sep 29 10:14 PM
Thanks for the reply, actually we are trying to avoid using any custom table. Any otehr suggestion please.
2010 Sep 29 10:32 PM
Tough customer...
Please have a look at the following thread: [encrypt data in ABAP|;.
This won't be able to 'encrypt' the document number, but at least you should be able to hide it...
Would be great if you could tell me nevertheless why you won't 'like' custom tables?
Edit: Check the last post in the linked thread for the use of class cl_http_utility (or search for other examples in the forums).
2010 Oct 01 2:18 PM
Thanks again for the reply and now I am able to encrypt and decrypt my document number... one more question please : will it be possible to chnage the whole URL to some basic message type URL for eg:
let's say our URL is "http://testdoc/post?mssg" and I want to change this to as "OPEN DOCUMENT" and when user clicks on ""OPEN DOCUMENT" it will still direct to the original destination that is our original URL.
I have been told that we don;t want to maintain custom table until and unless it's our last choice.
Thanks,
Rajat