Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8635

Like error msg in chain endchain, but in ALV

$
0
0

Hey experts,

 

I would like to do my own input check in ALV, I already made the input check, but I don't know how to highlight the current cell and block the alv while the wrong data is not changed to the correct one.

 

I want to achieve this

aaa.png

on the picture you can see the automatic input check because of the foreign key of that field. But I want to implement my own input check.

I already made data_change event handler, where I doing the input check, but I don't know to block the alv, while the user correct the input.

I already know how to add that Error Log and how to highlight the cell, but I still don't know how to block the alv to don't allow me save the data while I don't change the value of the cell.

 

if er_data_changed->mt_mod_cells is not INITIAL.

       loop at er_data_changed->mt_mod_cells into ls_cell.

         check ls_cell-fieldname eq 'ID_KNIZNICE'.

         check ls_cell-value is not initial.

         select SINGLE * from zbr_t_kniznice into wa_kniznica

           where id_kniznice eq ls_cell-value

           AND aktivne eq 'X'.

         if sy-subrc NE 0.


           " here somehow block it


       ENDLOOP.

endif.

 

Regards,

Robert


Viewing all articles
Browse latest Browse all 8635

Trending Articles



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