cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Button in Sap Standard webdynpro Component

Former Member
0 Kudos

Hi Friends,

i have one requirement

1. want to added one custom Button in SAP SRM standard webdynpro component - This is done using component configurator

2. but when i click this button, one Z webdynpro component should run,

Can any one please give me idea on this

Thanks and Regards

Kumar Srini

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The zweb dynpro component has any application name?

if it has means you can use

using wizard button u can call external window . there u can give url adress paste the creted url there then u can achieve ur req.

hope this helps,

Regards,

Srini.

Former Member
0 Kudos

Hi Srinivas, thx for ur replu

can u please tell me

how to use this wizard button and how to call this external window,

this is my first i am modifying standard webdynpro components

thnx

Kumar Srini

Former Member
0 Kudos

Hi,

copy below given code and paste inside of your on action method,

Note: just change the url address

data: l_window type ref to if_wd_window_manager.

data: l_cmp_api type ref to if_wd_component.

data: str type stinrg.

data: result type if_wd_window.

CALL METHOD cl_wd_utilities=>construct_wd_url

EXPORTING

application_name = 'ZWEBDYNPRO COMPONENT NAME'

IMPORTING

out_obsolute_url = str.

l_cmp_api = wd_comp_controller->wd_get_api( ).

l_window = l_cmp_api->get_window_manager ( ).

result = l_window->create_external_window(

url = str ).

result->open( ).

saravanan_narayanan
Active Contributor
0 Kudos

Hello Kumar,

Is your standard webdynpro component is based FPM (Floor Plan Manager)?

BR, Saravanan