cancel
Showing results for 
Search instead for 
Did you mean: 

Hide /Disable the Copy/Paste buttons in SHopping cart in SRM 7.0 ?

Former Member
0 Kudos

Hi,

I want to hide the Copy and Paste buttons in Shopping cart. We are in SRM 7.0.

We are able to disable the Copy button using the control actions through SPRO. But for paster button we didnt see the correspoding field in SPRO.

Can any one please help in this.

Regards

Venkatesh P

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

(double post)

Edited by: Marcin Gajewski on May 10, 2011 7:36 PM

Former Member
0 Kudos

Hi Thanks for your reply.

If i change that configuration. Whether it will effect the future upgrades?

It wont be core mod?

Please let me know.

Regards

Venkatesh P

Former Member
0 Kudos

Hi,

No, configuration bypasses upgrades, so its safe.

Offcourse you can achieve the same efect via enhancement in wddomodifyview (post-method). I can provide solution for that if you want.

Regards,

Marcin

Former Member
0 Kudos

Hi,

Yeah please provide the enhacement code.

Thank you!!

Regards

Venkatesh P

Former Member
0 Kudos

Hi,

Table with SC items are in dynpro /SAPSRM/WDC_UI_SC_DOTC_BD

Go to SE80 and select webdynpro /SAPSRM/WDC_UI_SC_DOTC_BD. Expand to views and select V_SC_DOTC_BASIC.

Go to the methods and enchance method WDDOMODIFYVIEW (post-exit).

In enhancement write something like this:


DATA:  lo_button  TYPE REF TO cl_wd_toolbar_button.

  lo_button  ?= view->get_element( 'COPY' ).
  lo_button->set_visible( '01' ).

  lo_button  ?= view->get_element( 'PASTE' ).
  lo_button->set_visible( '01' ).

Regards,

Marcin

PS. Please add points for helpful answers

0 Kudos

Hello Marcin,

I'm following your suggestion to hide the "ADD APPROVER" button from the view V_DO_APV_HDR of the Web Dynpro Component /SAPSRM/WDC_DO_APV_EXT.

Activating the enhancement button I don't see how to write additional code (Method: WDDOMODIFYVIEW).

Could you pls advice on that matter?

Thanks and Regards,

Salvo

Answers (2)

Answers (2)

Former Member

Hi,

Have you try configuration from Dynpro?

If no:

1. Right click on Copy/Paste button and select Properties

2. WebDynpro component is /SAPSRM/WDC_UI_SC_DOTC_BD and configuration ID /SAPSRM/WDCC_DOTC_SC_BD_WIZ_2ND

3. Go to tran. SE80 and select WebDynpro from dropdown

4. Type ID of component (/SAPSRM/WDC_UI_SC_DOTC_BD) in the field below and hit Enter

5. Expand component configuration and double-click on configuration /SAPSRM/WDCC_DOTC_SC_BD_WIZ_2ND

6. Double-click on Start configurator (web browser window appears)

7. Click on Change button

8. Select WebDynpro Build-In Tab

9. Expand tree V_SC_DOTC_BASIC -> ITEMS_TABLE -> ITEMS_TABLE_TOOLBAR

10. Search for COPY and PASTE buttons

11. Click on COPY or PASTE buttons

12. On the right side choose Visibility -> invisible radio-button

13. Save the changes and retest

Regards,

Marcin

Former Member
0 Kudos

You can create a transaction variant, in transaction SHD0.

Nilson