Quantcast
Channel: SCN : Discussion List - BOPF Application Framework
Viewing all articles
Browse latest Browse all 249

Throwing message for validation

$
0
0

Hi all,

 

Im using the following code in validation class to show a message for numbers in my field. but it is not getting any message.

i tried debugging, everything is working fine.

 

anybody help..

 

Regards,

Vipin V

 

METHOD /bobf/if_frw_validation~execute.

 

   DATA:

         lt_data TYPE zins_t_root,

         ls_data TYPE zins_s_root,

         ls_mesage TYPE symsg,

         ls_key TYPE /bobf/s_frw_key,

         lv_str TYPE string.

 

   ls_mesage-msgid = 'ZTR_BOPF'.

   ls_mesage-msgno = '000'.

   ls_mesage-msgty = 'E'.

 

 

   io_read->retrieve(

     EXPORTING

       iv_node                 zif_ins_demo_c=>sc_node-root   " Node Name

       it_key                  it_key   " Key Table

    IMPORTING

      et_data                 lt_data    " Data Return Structure

  ).

 

   READ TABLE lt_data INTO ls_data INDEX 1.

   IF sy-subrc <> 0.

     et_failed_key = it_key.

   ENDIF.

 

   IF ls_data-user_id CA '1234567890'.

       IF eo_message IS NOT BOUND.

       eo_message = /bobf/cl_frw_factory=>get_message( ).

       ENDIF.

      eo_message->add_message(

       EXPORTING

         is_msg       = ls_mesage    " Structure of Message Variables

         iv_node      = is_ctx-node_key    " Node Name

         iv_key       = ls_key-key    " Key

         iv_attribute = zif_ins_demo_c=>sc_node_attribute-root-user_id    " Field Name

     ).

     et_failed_key = it_key.

   ENDIF.

ENDMETHOD.


Viewing all articles
Browse latest Browse all 249

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>