cancel
Showing results for 
Search instead for 
Did you mean: 

/SAPSRM/WDC_DODC_SC_I_DES

Former Member
0 Kudos

Hi.

I am trying to modify the /SAPSRM/WDC_DODC_SC_I_DES webdynpro component (in the POST EXIT method of the modify view method).

When I try to add a new item in the cart, there is an option 'Add item with Free description' - In that we want to make the Product type only as Material and do not want the option Services to show up in there. Basically the requirement is to supress or disable one of the options in the dropdown for Product type.

Please let me know how to achieve this.

Thanks.

Anuradha.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi.

I added the exact code as what was said, but I am getting the dump now.

Error application is coming up.

UNCAUGHT_EXCEPTION

Could not find attribute PRODUCT_TYPE

Method: IF_WD_CONTEXT_NODE_INFO~SET_ATTRIBUTE_VALUE_SET of program CL_WDR_CONTEXT_NODE_INFO======CP

Method: PST00O2TPTKMUAS3QS0EK84SK5IP of program /1BCWDY/0MMJ2TKDBD7QSPW57F23==CP

Method: IF_WDR_VIEW_DELEGATE~WD_DO_MODIFY_VIEW of program /1BCWDY/0MMJ2TKDBD7QSPW57F23==CP

Method: DO_MODIFY_VIEW of program CL_WDR_DELEGATING_VIEW========CP

Method: MODIFY_VIEW of program CL_WDR_VIEW===================CP

Method: DO_MODIFY_VIEW of program CL_WDR_CLIENT_COMPONENT=======CP

Method: DO_MODIFY_VIEW of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP

Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP

Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP

Please advice as to what changes need to be made.

Thanks.

Anuradha.

Former Member
0 Kudos

Hi Anuradha,

There was a space in front of PRODUCT_TYPE in below statement.

That the reason it cannot found the attribute PRODUCT_TYPE

Please remove the space.

Wrong one

lo_item_detail->set_attribute_value_set( name = ' PRODUCT_TYPE'

value_set = lt_value_set ).

correct one

lo_item_detail->set_attribute_value_set( name = 'PRODUCT_TYPE'

value_set = lt_value_set ).

Please reaward if it works

Regards,

Neelima

Edited by: S Neelima on Dec 8, 2011 8:15 AM

Edited by: S Neelima on Dec 8, 2011 8:17 AM

Edited by: S Neelima on Dec 8, 2011 8:18 AM

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks Nilima - my problem was solved with your suggestion.

Anuradha.

Former Member
0 Kudos

Hi Nilima.

Thanks for the answer.

However can you please also provide me with the code as to how to relate the node with the Dropdown key? I am trying to use the code snippet you sent over. But its dumping for some reason.

Thanks in advance.

Anuradha.

Former Member
0 Kudos

Hello,

please use this code.

DATA : lo_item_detail TYPE REF TO if_wd_context_node_info,

lo_root_context_node_info TYPE REF TO if_wd_context_node_info.

DATA: lt_value_set TYPE wdy_key_value_table,

ls_value TYPE wdy_key_value.

lo_root_context_node_info = wd_context->get_node_info( ).

lo_item_detail = lo_root_context_node_info->get_child_node( 'DESCRIBE_ITEM' ).

CLEAR: lt_value_set.

ls_value-key = ' 02'.

ls_value-value = 'services'.

APPEND ls_value TO lt_value_set.

lo_item_detail->set_attribute_value_set( name = ' PRODUCT_TYPE'

value_set = lt_value_set ).

Regards,

Neelima

Former Member
0 Kudos

Hello,

Please use below code.

ls_value-key = ' 02'.

ls_value-value = 'services'.

APPEND ls_value TO lt_value_set.

lo_item_detail->set_attribute_value_set( name = ' PRODUCT_TYPE'

value_set = lt_value_set ).

Regards,

Neelima