Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

table maintenance event 01 - compare field original field value with current screen value

$
0
0

Hello all,

 

I'm attempting to compare the original field value with the current screen value in event 01. When executing the select from the database, the  select is returning the current screen value rather than the actual database value.

 

Is there another event where I should be making this comparison?

 

The code I'm using follows.

*

  data: w_ZJE_PD_SENDER type ZJE_PD_SENDER.

*

  data: begin of l_total.

          include structure zje_pd_sender.

  include  structure vimtbflags.

  data  end of l_total.

*

*

  loop at total into l_total.

*

    if l_total-vim_action =   'U'.                " change record

*

      clear w_ZJE_PD_SENDER

      select * from ZJE_PD_SENDER

        into w_ZJE_PD_SENDER

        where S_NETWORK_ID = l_total-S_NETWORK_ID   " these are all 3 key fields

              S_EXTENSION  = l_total-S_EXTENSION    "

              APPROVER     = l_total-APPROVER       "

       endselect.             

*

    if l_total-wt  ne w_ZJE_PD_SENDER-wt.

*

*     check user authorization

*     MESSAGE .............

 

Thanks

Bruce


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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