cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro Abap code to read IView Name

former_member205363
Contributor
0 Kudos

Hi Friends,

Could you please give me Webdynpro abap code to read the name of the Iview.

Regards,

Lakshmi Prasad.

Accepted Solutions (0)

Answers (1)

Answers (1)

saravanan_narayanan
Active Contributor
0 Kudos

Hello Lakshmi,

I dont think this is possible. If you want to differentiate from which iView your web dynpro application is launched, then you can pass some constant as Application Parameter in the iView. and in the web dynpro application you can read this parameter and perform your required logic.

For example suppose say your web dynpro application is hosted in iView1 and iView2. In both the iview properties, pass a parameter (say IVIEWNAMe) with values 'iView1' and iView2 respectively.

then in the Webdynpro -> Window Controllers' -> default event handler method, you read the parameter IVIEWNAME and based on the value you can peform your logic.

BR, Saravanan

former_member205363
Contributor
0 Kudos

Hi,

Thank you for your solution, I think this is the final solution.

Could plese give me the code to read IView parameters in Webdynpro Abap.

Thanks & Regards,

Lakshmi Prasad.

Former Member
0 Kudos

Hi Lakshmi,

Please go through this wiki

http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoreadURLparametersinWebDynprofor+ABAP

also check this..

Cheers,

Kris.

former_member205363
Contributor
0 Kudos

Hi Kris,

Thanks for your update. I am following the wiki.

I was trying to update the HANDLEDEFAULT event handler, but it got deleted from methods list unfortunately, now I am trying to create with the same name but it is not allowing me.

Please help ASAP.

Regards,

Lakshmi Prasad.

former_member205363
Contributor
0 Kudos

Thank you, I found the problem