Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to encrypt the document number in URL

Former Member
0 Kudos
158

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

1 ACCEPTED SOLUTION

alejiandro_sensejl
Active Participant
0 Kudos
77

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.

4 REPLIES 4

alejiandro_sensejl
Active Participant
0 Kudos
78

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.

0 Kudos
77

Thanks for the reply, actually we are trying to avoid using any custom table. Any otehr suggestion please.

0 Kudos
77

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).

0 Kudos
77

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