IT_BADI_IDENTITY_UPDATE (Importing)
The table contains all user that were processed in the current
transaction. The field MODUS specifies for each user whether it was
created, changed, or deleted. The corresponding constants of class
CL_IDENTITY_PERSISTENCE are: CO_TA_MODUS_CREATE, CO_TA_MODUS_MODIFY,
CO_TA_MODUS_DISPLAY, and CO_TA_MODUS_DISPLAY.
Field IDREF contains a reference to the interface IF_IDENTITY. You
can use this to access the instance of the associated user. Note
that you can only call the read methods (GET_*) in this BAdI.
Folgende Benutzer bedankten sich beim Autor black_adept für den Beitrag:
jspranz
Code: Alles auswählen.
LOOP AT it_badi_identity_update[] ASSIGNING <ls_identity>.
TRY.
CASE <ls_identity>-modus.
WHEN cl_identity_persistence=>co_ta_modus_delete.
* Just do it
WHEN OTHERS.
* NOP
ENDCASE.
lg Jensmethod delete.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(1) Class CL_IDENTITY, Method DELETE, Start
* YOURE CODE GOES HERE
*
* Create new Identity instances with transaction mode "Delete"
*
data:
lv_lock_mode_excl type sesf_edit_mode