cancel
Showing results for 
Search instead for 
Did you mean: 

CHARM: How can I make partner mandatory on a particular status?

Former Member
0 Kudos

Hi,

Is there a configuration to make partner field mandantory on a particluar status?

It is very common that requestor do not know who should be set in CAB field, so

I want developer to input CAB ID# when "in development" status is set.

Thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I am not aware of any standard functionality to achieve this. You could consider making an implementation of the Badi ORDER_SAVE. There you could first check the status via the FM CRM_ORDER_READ_OW and then check if CAB is filled out. If not then raise an error message and a no save info. Coding could look like this:

CALL FUNCTION 'CRM_MESSAGE_COLLECT'

EXPORTING

iv_caller_name = 'ORDER'

iv_ref_object = iv_guid

iv_ref_kind = 'A'

iv_msgno = '003'

iv_msgid = 'YCRM'

iv_msgty = 'E'

EXCEPTIONS

OTHERS = 0.

RAISE do_not_save.

/Anders