******************************************************************
*IMPORTING
*
*
*
*
*
*
*EXPORTING
*
*
*TABLES
*
*EXCEPTIONS
*
******************************************************************
DATA:INSERT
DATA:VALIDITYBEGIN LIKE OBJEC-BEGDA
DATA:EMPLOYEENUMBER LIKE OBJEC-REALO.
DATA:VALIDITYENDDA LIKE OBJEC-ENDDA.
VALIDITYBEGIN = ACT-BEGDA.
VALIDITYEND = ACT_ENDDA.
EMPLOYEENUMBER = ACT_OBJID.
SET PARAMETER ID 'ITP' FIELD '0006'.
SET PARAMETER ID 'SUB' FIELD SUBTYPE.
SET PARAMETER ID 'BEG' FIELD VALIDITYBEGIN.
SET PARAMETER ID 'PER' FIELD EMPLOYEENUMBER.
SET PARAMETER ID 'END' FIELD VALIDITYEND.
SET PARAMETER ID 'FCD' FIELD INSERT.
CALL TRANSACTION 'PA30' AND SKIP FIRST SCREEN.
ENDFUNCTION.