title: SAP SLT into HANA not updating date field
body: <p>I would like to SLT data into our HANA Data warehouse.  That is the easy part, I can move data that is a one to one match (type 1 table).  But I would like to make it type 2 and preserve history.  I have the following code in the transform, and it will not populate the update field. </p>
  
  <pre><code>*&amp;---------------------------------------------------------------------*
  *&amp;  Include           ZAUSP_SLT_TRANSFORM
  *&amp;---------------------------------------------------------------------*
  
  
  STATICS lv_syn_name TYPE tabname.
  
  DATA con_name TYPE dbcon_name.
  
  DATA lv_timestamp TYPE timestampl.
  
  FIELD-SYMBOLS &lt;lv_operation&gt; TYPE any.
  
  
  CONCATENATE _mt_id ':R:R' INTO con_name.
  
  ASSIGN COMPONENT 'IUUC_OPERAT_FLAG' OF STRUCTURE &lt;wa_s_AUSP&gt; TO &lt;lv_operation&gt;.
  
  IF sy-subrc = 0 AND
     &lt;lv_operation&gt; = 'D'.
  
    IF lv_syn_name IS INITIAL.
      CALL METHOD cl_iuuc_tab_ident_access=&gt;get_ident
        EXPORTING
          iv_mt_id       = _mt_id
          iv_tabname     = _cobj_alias
          iv_system_type = cl_iuuc_tab_ident_access=&gt;co_system_receiver
          iv_ident_type  = cl_iuuc_tab_ident_access=&gt;co_ident_synonym
        IMPORTING
          ev_full_name   = lv_syn_name.
      IF lv_syn_name IS INITIAL.
        allog_msg 'E' 'DMC_RT_MSG' '000'
        'Get Synonym Error' space space space 'IL '.
        RAISE stopped_by_rule.
      ENDIF.
    ENDIF.
  
    GET TIME STAMP FIELD lv_timestamp.
  
    UPDATE (lv_syn_name) CLIENT SPECIFIED CONNECTION (con_name)
      SET ZDELETE_FLAG = 'X'
          ZUPD_DATETIME = lv_timestamp
      WHERE mandt  = &lt;wa_s_AUSP&gt;-mandt
        AND objek = &lt;wa_s_AUSP&gt;-objek
        AND atinn = &lt;wa_s_AUSP&gt;-atinn
        AND atzhl = &lt;wa_s_AUSP&gt;-atzhl
        AND mafid = &lt;wa_s_AUSP&gt;-mafid
        AND klart = &lt;wa_s_AUSP&gt;-klart
        AND adzhl = &lt;wa_s_AUSP&gt;-adzhl.
  
  
    IF sy-subrc &lt;&gt; 0.
      allog_msg 'E' 'DMC_RT_MSG' '000'
      'Update Error' space space space 'IL '.
      RAISE stopped_by_rule.
    ENDIF.
  
    skip_record.
  ENDIF.
  
  "Code for timestamp outside of delete.
  
   IF lv_syn_name IS INITIAL.
      CALL METHOD cl_iuuc_tab_ident_access=&gt;get_ident
        EXPORTING
          iv_mt_id       = _mt_id
          iv_tabname     = _cobj_alias
          iv_system_type = cl_iuuc_tab_ident_access=&gt;co_system_receiver
          iv_ident_type  = cl_iuuc_tab_ident_access=&gt;co_ident_synonym
        IMPORTING
          ev_full_name   = lv_syn_name.
      IF lv_syn_name IS INITIAL.
        allog_msg 'E' 'DMC_RT_MSG' '000'
        'Get Synonym Error' space space space 'IL '.
        RAISE stopped_by_rule.
      ENDIF.
    ENDIF.
  
    GET TIME STAMP FIELD lv_timestamp.
  
    UPDATE (lv_syn_name) CLIENT SPECIFIED CONNECTION (con_name)
      SET   ZUPD_DATETIME = lv_timestamp          "slt_update is the name in your slt strucure!
      WHERE MANDT  = &lt;wa_s_AUSP&gt;-MANDT             "key_1 = pk of your table
      AND   OBJEK  = &lt;wa_s_AUSP&gt;-OBJEK
      AND   ATINN  = &lt;wa_s_AUSP&gt;-ATINN
      AND   ATZHL  = &lt;wa_s_AUSP&gt;-ATZHL
      AND   MAFID  = &lt;wa_s_AUSP&gt;-MAFID
      AND   KLART  = &lt;wa_s_AUSP&gt;-KLART
      AND   ADZHL  = &lt;wa_s_AUSP&gt;-ADZHL.
  
     IF sy-subrc &lt;&gt; 0.
      allog_msg 'E' 'DMC_RT_MSG' '000'
      'Update Error' space space space 'IL '.
      RAISE stopped_by_rule.
    ENDIF.
  </code></pre>
  
  <p>Why don't the time field get updated for all rows inserted into target? When I try and set a break point to debug during replication, I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/0jvQm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0jvQm.png" alt="enter image description here"></a></p>
  
  <p>So I click one, and get the following for each one:</p>
  
  <p><a href="https://i.stack.imgur.com/L7Kt6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L7Kt6.png" alt="enter image description here"></a></p>
  
  <p>So I go to SE38 and try to activate each one individually:</p>
  
  <p><a href="https://i.stack.imgur.com/m0C2s.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m0C2s.png" alt="enter image description here"></a></p>
  
  <p>I did not write the code in these additional programs, and do not understand how they relate to the INCLUDE I wrote. I am left thinking the INCLUDE transform I wrote is not being executed due to the background programs not being active?</p>