cancel
Showing results for 
Search instead for 
Did you mean: 

modification in standard webdynpro abap application

Former Member
0 Kudos

Hi

In my portal for some of my ESS applications are used in webdynpro abap for example travel expense and travel request now i have a requirement like i have to make the create travel expense button disable based on the condition llike i only he has to click create travel expense after creating travel request .So can anybody let us know how to do modofications in the standard webdynpro abap application.

Thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,

Please have a look at the following link.

[Link.|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8b81?quicklink=index&overridelayout=true]

Thanks,

Aditya.

Answers (4)

Answers (4)

Former Member
0 Kudos

Resolved

gill367
Active Contributor
0 Kudos

Hi

For making changes in the standard web dynpro compoenent, you need to create and implement enhancement.

For this you can find many links in SDN on how to create enhancement.

Now coming to your specific requirement.

Here what you can do is open the standard component.

1. press ctrl +F4, It will open a popup there give some name to your enhancement.and desicrption . then press Enter.

Assign it to teh package you want.

2. Go to the view where you want to disable the button, There go to the layout and find the ID of the button. say it is 'BTN'.

3. Now go to methods tab, scroll right and selct post exit method of wddomodifyview emthod.

4. there write the code with the condition you want.


if  flag  eq 'yes'.
data  lv_btn type ref to cl_wd_button.
lv_btn ?= view->get_element( 'BTN' ).
lv_btn->set_enabled( abap_false ).

endif.

5. one last thing is you can create a attribute named flag of type string and set its value to 'yes' when you want the button to enable.

Thanks

Sarbjeet Singh

Former Member
0 Kudos

Hi krishnakk,

With the above link this might can help you .

[Editing Standard ESS Travel Abap Webdynpro Application|;

[Configuration of ESS u2013 Travel Management (FI-TV)|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0ca7949-af7b-2b10-db80-ed8ca509f573?quicklink=index&overridelayout=true]

Thanks & Regards,

Monishankar C

sahai
Contributor
0 Kudos

hi krishna,

check out this link

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/700317da-bd79-2c10-368e-8f18bf5d8...

i hope that this will help you

regards,

sahai.s