cancel
Showing results for 
Search instead for 
Did you mean: 

Error Message is not stopping the Incident creation in SAP EHSM

Former Member
0 Kudos
180

Hi SAP Gurus,

Need one help in understanding the possible ways if we have any way to stop the incident creation when we have dynamically sending the error messages into ET_MESSAGES.

Class we used is 'CL_EHHSS_INC_Q_LOC_UI_FRM'

Method used for validation and error passed into ET_MESSAGES : GET_DATA

how could we achieve the Mandatory functionality for a field during run time and it should not allow the Incident to creation if there is any error.

Thanks

Satish

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Guys,

Need help from SAP Gurus.

I have checked in some place we need to use the below code to achieve the Mandatory functionality. I have tried but I am getting dump while executing lo_property_helper ->set_attribute_mandatory. Can any one help me in providing me the sample complete code if you have worked on similar kind of issue.

Thanks

Raj

Sample Code:

DATA lo_property_helper TYPE REF TO /bobf/cl_lib_h_set_property.

* updating property nodes is done using the property helper

CREATE OBJECT lo_property_helper

EXPORTING

is_context = is_ctx

io_modify = io_modify.

lo_property_helper->set_attribute_mandatory(

iv_attribute_name = lv_fieldname

iv_key = lr_acc_data->key

iv_value = lv_mand_check

).