cancel
Showing results for 
Search instead for 
Did you mean: 

Diabling/unchecking the buttons in one screen shopping cart - Webdynpro

Former Member
0 Kudos

Hi all,

While creating a one screen shopping cart, i want to disable , check and uncheck few buttons and check boxes . For that I tried via the path webdynpro component ->component configurator ,I was able to successfully disable but unable to uncheck/check them.

Following is the technical data I have used:

Webdynpro component: /SAPSRM/WDC_UI_DO_LIMIT

Component configurator : /SAPSRM/WDCC_UI_DO_LIMIT_SC_BD

Radio buttons I want to disbale and uncheck :

1.Follow up actions ->invoice only

2.Account assignment -> Unknown

check boxes I want to disbale and uncheck :

1. Value limit -> Unlimited.

Please help .

Regards,

Vishal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Vishal,

You need to do a minor level meta data configuration as follows to achive this..

-> SAP Supplier Relationship Management

-> SRM Server

-> Cross-Application Basic Settings

-> Extensions and Field Control (Personalization)

-> Configure Field Control

-> Configure Control for Fields of Substructures

Select -> New Entry -> Set Type = "32"

Structure Field Name = "EXP_VALUE"

Object Type = "BUS2121"

Field Visible = Check it (If you like to hide the Value limit -> Unlimited check box, leave it unchecked)

Field Enabled = You know what to do here

-> Save

With the above config you can hide or disable "Value limit -> Unlimited check "

Follow the same for rest two..

Thanks!!

Bharath

Former Member
0 Kudos

Hi Vishal,

You can make the fields visible/invisible by following Bharath's procedure. To check/uncheck them you have to follow the below steps.

for add limit item , WDC - /SAPSRM/WDC_DODC_SC_I_LIM

view - V_SC_DOFC_I_LIMITEM - change the ACCOUNT_KNOWN field 'key to select' - '02'. and in the binding for 'selected key' - change in the context - context -limit_item-limit_sub- acc_ind - default value to '02' . For the other one 'account_unknown' it should be the opposite i.e '01'.

I did this recently as we had the same requirement and it worked for me.

While debugging I found in the SAP standard code select/deselect happens based on these two values.

Class : /SAPSRM/CL_CH_WD_DODM_SC_I_LIM

*..accounting
  IF acc_ind EQ '01' .
    lv_account_required = abap_false.
  ELSE.
    lv_account_required = abap_true.
  ENDIF.

*..follow documents
  IF follow_ind EQ '01'.
    ls_pdo_item-gr_ind  = abap_true.
    ls_pdo_item-ir_ind  = abap_true.
  ELSE.
    ls_pdo_item-ir_ind  = abap_true.
    ls_pdo_item-gr_ind  = abap_false.
  ENDIF.

In our case if we make it to '02' , acc_known and inv_only are set to true.

The same will be reflected on the item details screen with WDC - /SAPSRM/WDC_UI_DO_LIMIT.

You can follow the same procedure for other fields as well.

Regards

Lavanya

Edited by: LAVANYA CHAVA on Aug 11, 2010 2:06 AM

Former Member
0 Kudos

hi LAVANYA,

we followed the steps mention by you.

But could not able to change the value of field 'key to select' - '02'.

The following steps we did :

Created the enhancement for the same.

In enhancement we trying to change the value to "02" but its not allowing to change as its not coming in edit mode.

Pleaase help us to make this work for us. Give the details steps to achive the same

Regards

Pravesh.

Former Member
0 Kudos

Hi Pravesh,

Creating an enhancement and changing it doesn't work here as you are trying to change an element that is already existing on a standard Web Dynpro component . If you want to add few new fields at the given enhancement points then it's fine.But to change a standard field You have to get an access key from SAP and modify the existing component. Basis guys will help you out for aquring a key.

Hope that helps...

Regards

Lavanya

Answers (0)