Hi ,
I have created OIF application for my WD component using FPM_GAF_COMPONENT.
I am able to generated the roadmap and on the second step of the roadmap , I have certain input fields. Now based on some validations, I want to generate the error message.
I have made a button and in the onaction of that , I am successfully able to validate the fields using report T100 message.
DATA: valid_characters TYPE string . CONCATENATE '0123456789' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ ' 'abcdefghijklmnopqrstuvwxyz&' INTO valid_characters RESPECTING BLANKS. DATA lo_nd_node_vname TYPE REF TO if_wd_context_node. DATA lo_el_node_vname TYPE REF TO if_wd_context_element. DATA ls_node_vname TYPE wd_this->element_node_vname. DATA lv_vname LIKE ls_node_vname-vname. * navigate from <CONTEXT> to <NODE_VNAME> via lead selection lo_nd_node_vname = wd_context->get_child_node( name = wd_this->wdctx_node_vname ). * get element via lead selection lo_el_node_vname = lo_nd_node_vname->get_element( ). * get single attribute lo_el_node_vname->get_attribute( EXPORTING name = `VNAME` IMPORTING value = lv_vname ). IF NOT lv_vname CO valid_characters. CALL METHOD wd_this->mr_message_manager->report_t100_message EXPORTING iv_msgid = 'ZVM_MESSAGE_CLASS' iv_msgno = 000 io_component = wd_this iv_severity = if_fpm_message_manager=>gc_severity_error iv_lifetime = if_fpm_message_manager=>gc_life_visibility_automatic io_element = lo_el_node_vname iv_attribute_name = `VNAME`. ENDIF.
But my requirement is to validate the input fields on click of the Next button of the roadmap
How can I do it?
Thanks,
Amit