cancel
Showing results for 
Search instead for 
Did you mean: 

Custom field mandatory

Former Member
0 Kudos

Hi All,

I am working on SRM 7.0. As per the clients requirement i made a custom column as mandatory and its working fine. But now the requirement has been changed. The mandatory description need to show when 'ENTER' is pressed. how to do it?

I am working on

Webdynpro application: /SAPSRM/WDC_UI_SC_DOTC_BD

View: V_SC_DOTC_BASIC

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

deleted as it became old.

Former Member
0 Kudos

Hi Radhika,

I am not at all getting any error message.

in the shopping cart, its not displaying to 'fill up the MANDATORY' fields. Its very starange for me too. I am working in SRM 7.0. is it matters in any way?

Former Member
0 Kudos

Hint:

In an input field, "onenter" only works if the value is entered and the return or"enter" key is pressed.

Hint:

Try implementing BAdI BBP_DOC_CHECK_BADI.

Former Member
0 Kudos

Hi Radhika,

Thanks for your lightening response......

I did like what you said. But its not working. I put the break point in the code, even debugger is not triggering.

any other solution plz....

when we are creating the ONENTER event, do we need to check the 'Transfer UI event parameters' check box?

Former Member
0 Kudos

Hi, No, 'Transfer UI event parameters' is not required. Its really strange that it is not entering the OnEnter event. Are you getting any error ? Regards, Radhika.

Former Member
0 Kudos

Hi, Create an OnEnter event for that input field and place your code there.

DATA: l_view_controller TYPE REF TO if_wd_view_controller.

* Check all the mandatory attributes
  l_view_controller = wd_this->wd_get_api( ).
  cl_wd_dynamic_tool=>check_mandatory_attr_on_view(
         EXPORTING  view_controller  = l_view_controller
                    display_messages = abap_true  ) .
Regards, Radhika.