cancel
Showing results for 
Search instead for 
Did you mean: 

V Urgent : How to pass a variable from URL link in an email to BSP page ??

Former Member
0 Kudos

Hi All

I have a requirement where i have to send out internet emails from SAP R/3 to different users . While sending out email i pass an URL link to each user in the email body . Now i have a reqmnt where i should display different sets of informations to different users based on their HR data when they click that URL which i pass to them in the e-mail .

Any pointers as to how this can be achieved . ??

Myself thought of passing an url as something

http://.........../Info.htm?W_EMPL_NUM in the e-mail that i send.

I was thinking of passing employee no in the variable W_EMPL_NUM and attach that to the URL which i will send to the users . Then i should define W_EMPL_NUM in the page attribute o BSP page Info.htm . In the On Initialization event check W_EMPL_NUM and based on this make an RFC call to R/3 and gather info and display out the HTML page to the user . Thus from a single BSP page only based on the employe number which i get from the URL , i can gather various users' info and display ecah user their respective relevant data on HTML page .

Please guide me as to if this way i can achieve my result or not ? Let me knwo how else this can be achieved

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Private_Member_9643
Active Contributor
0 Kudos

hi rohan,

u r sending URL through email to ur company employees and on the basis of that they are checking their status throug BSP Page which ur giving as reference.

and in URL u r attaching the employee number , which u r acessing through BSP application and displaying result on that basis. So i think its all ok.

But can u please tell me that ur company employee don't have employee number with them already, so if they have then it is better to take this as a input from the BSP application itself.

But ok whatever u thought is not a bad idea.

Regards,

Kamaljeet

Answers (1)

Answers (1)

Former Member
0 Kudos

hi rohan,

u r right because we can pass variables with links in following format :

http://<domain>:<port>/<path>/page.htm?empid=123

and in this "page.htm" create a page attribute EMPID with AUTO ATTRIBUTE CHECKED .

now we can retrieve the value of empid .

similarly u can pass multiple variables with same link separated by "&" in following format :

http://<domain>:<port>/<path>/page.htm?empid=123&empname=anx&empdept=it .

and create corresponding page attributes in the same manner.

hope it will help u.

Regards,

Ankur