Skip to Content
0
Former Member
Nov 30, 2006 at 02:42 PM

Good old HR_INFOTYPE_OPERATION to DELETE data

34 Views

Hi,

I am using this FM to delete infotype data from within dynamic actions. The same piece of code works perfectly fine when I execute the program directly in online mode. But when I call the same routine through dynamic actions (even with dialog_mode = '2' and manually pressing DELETE button on infotype screen), the program keeps processing all records one by one and then ends without giving an error but also without deleting any data. Is this a known problem???

        CALL FUNCTION 'HR_INFOTYPE_OPERATION'
             EXPORTING
                  infty         = '9007'
                  number        = lv_rec-pernr
                  subtype       = lv_rec-subty
                  validityend   = l_pa9007-endda
                  validitybegin = l_pa9007-begda
                  record        = lv_rec
                  operation     = 'DEL'
                  dialog_mode   = '2'
             IMPORTING
                  return        = lv_ret
                  key           = lv_key.

Thanks and regards

NOTE: I am on 4.6C

Message was edited by:

Shehryar Khan