Skip to Content
author's profile photo Former Member
Former Member

/SAPSRM/WDC_DODC_SC_I_DES

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 07, 2011 at 07:37 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2011 at 07:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2011 at 05:55 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2011 at 07:51 AM

    Thanks Nilima - my problem was solved with your suggestion.

    Anuradha.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.