cancel
Showing results for 
Search instead for 
Did you mean: 

Disable the ‘Unlimited’ checkbox on the Limit screen of the Shopping cart.

Former Member
0 Kudos

I am trying to hide the checkbox 'unlimited' on limit screen of shopping cart using SPRO customizing.

Am going in IMG--Supplier Relationship management -- Cross-Application Basic settings -- Extensions and Field Contol -- Configure Field control -- Configure control for fields of substructures -- Metadata for Fields of Substructures and Table-Like Enhancements.

Have created the below entry:

Bus. Object Set Type  32  (Limit)  

Structure Field Name  UNLIMITED

Bus. Object Type      BUS2121 (Shopping Cart)

Set Level             ITEM (Item Level)

Even after doing this configuration, the field ‘Unlimited’ is not hidden on shopping cart.

Is anything else required apart from the configuration I am doing?

Thanks !!

Accepted Solutions (0)

Answers (2)

Answers (2)

laurent_burtaire
Active Contributor
0 Kudos

Hello,

for 'Unlimited' field in the pop-up window, rather than doing a Web Dynpro Component Configuration enhancement (which cannot be tracked by changed version), implement enhancement spot WD_BADI.

Implement BAdI definition WD_BADI_DOMODIFYVIEW and WDDOMODIFY method:

DATA: lr_checkbox   TYPE REF TO cl_wd_checkbox

lr_checkbox ?= view->get_element( 'UNLIMITED' ).

IF lr_checkbox IS BOUND.
    CALL METHOD lr_checkbox->set_visible
      
EXPORTING
           
value = '1'.

ENDIF.

Regards.

Laurent.

ivy_li
Active Contributor
0 Kudos

Hi,

If you want to hide 'unlimited' field in item detail of SC, you should configure this in the following path:

customising in the IMG path: SAP Supplier Relationship Management > SRM

Server > Cross-Application Basic Settings > Extensions and Field

Control (Personalization) > Configure Field Control > Configure Control

for Fields on Item Level > Metadata for Fields on Item Level

If you want to hide 'unlimited' field in the pop-up window while adding limit item, this can't be realized via customizing. For such field there is a governing business logic that stops it from taking changes into the field through SPRO.

You have to hide it in the following way:

============

Go to SE80
Enter Webdynpro comp./ Intf /SAPSRM/WDC_DODC_SC_I_LIM
Expand the component configurator and select /SAPSRM/WDCC_SC_I_LIM_PROF
Click on Start Configurator.
Goto change mode
Go to 'Web dynpro Built-in' tab
Expand the view V_SC_DOFC_I_LIMITEM
Exapnd STANDARD_CONTENT -> UNLIMITED_CONT -> UNLIMITED
click on UNLIMITED, select the radio button 'invisible'
Save your changes and retest the system behavior.

There are also other properties which allow you to control the fields
(eg. Read-Only Access). You could make the change as you need.

=============

Best regards,

Ivy