cancel
Showing results for 
Search instead for 
Did you mean: 

How to change a standard field to required one in add limit item to SC popup

Former Member
0 Kudos

Hello expert

please help me to change the PRICE field to REQUIRED with blocking message.

I changed it to required in WDMODIFYVIEW post exit method, but there is no blocking error message yet and the user is able to add the item.

thank you

Imrich

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Imrich,

If I am right, you want the the field Price to be filled. If not throw an error msg in the pop up and doesnt allow to add the limit item.

Goto the class -> /SAPSRM/CL_CH_WD_DODM_SC_I_LIM

Methods -> /SAPSRM/IF_CLL_DODM_SC_I_LIMIT~MANDATORY_FIELDS_FILLED

Create an enhancement, post exit

Do the following

1. Read the node "Price"

2. If its initial.

    ev_filled = abap_false.

  Add the validation error

3. Endif

I hope this will solve your problem.

Regards,

Robin

Former Member
0 Kudos

Thank you Robin.

Answers (0)