on 2018 Jul 06 9:19 AM - last edited on 2024 Feb 04 4:34 AM by postmig_api_4
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
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
).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.