cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when open a bsp link in a office document (word, excel, ppt...)

Former Member
0 Kudos

Hi experts,

I developed a bsp application where the "index.htm" does the search and pass the result in "application variables" so that the "doc_list.htm" can display the result.

When I copy paste the link directly in IE7, it works perfectly but when I paste this link in a MS Office Application (Word or excel for example) and click on this link, it opens the bsp but doesn't display the result.

By debugging, I discovered that the "doc_list.htm" is initialized twice. The first time, it goes in "on initilization", all my "application variables" has got the data but after construction of this "doc_list.htm", this "on initilization" is called a second time and all my variables are empty and the page is build with empty data.

Do you have an idea why this happens only when I open this bsp through a MS office application.

Thanks for your help

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

how did you resolved this problem please? I have exactly the same problem, but I cant find any solution.

Above mentioned solution with session did not help.

Thanks for your help.

Former Member
0 Kudos

Hi,

No idea about my problem ?

Former Member
0 Kudos

Hi,

Please try adding URL parameter sap-sessioncmd=open:

http://maplmqa.sylvania.com:8000/sap/bc/bsp/sap/z_phl_guest/index.htm?dokar=ZPI&doknr=00000000000000...

I've experienced the same issue and it solved the problem. But I just can't figure out why this is happening...

Hope it helps!

Tanguy

Edited by: Tanguy Pares on Nov 4, 2010 12:37 PM

Former Member
0 Kudos

Hi Tanguy,

I tried but it's not better.

Should I handle this sap-sessioncmd in my bsp or just add it in the url ?

Former Member
0 Kudos

Hi Imran,

- yes I use an application class and both variables are "instance attribute" and "public". As I said, both variables contain the values in the first "on initialisation" of the result htm page but loose the values in the second "on initilisation"

- yes the bsp application is stateful

- the link is given to word with copy/paste (and "enter" which build automaticaly the hyperlink). I checked the hyperlink and it's ok, all the parameters are right.

here is an example of the parameters that I put in the link:

http://maplmqa.sylvania.com:8000/sap/bc/bsp/sap/z_phl_guest/index.htm?dokar=ZPI&doknr=00000000000000...

Thanks for your help

Former Member
0 Kudos

hye..

Very intresting observation..

I have few question.

-> how are you passing the data from Search page to result page. Are you using an application class which is linked your application.

-> is you application a stateful application

->how is the link given in the MS word document.

Please let me know so that i can replicate the scenario

Regards

Imran.