Skip to Content
0
Former Member
Dec 09, 2008 at 01:02 PM

Problem - Maintaining IT2001 through ABAP

23 Views

I am trying to maintain IT 2001 from module pool of a custom infotype. This is a wrapper custom infotype and we need to maintain Absences (through Abap) using data from this infotype. I have all the required data available. When I do the save on custom infotype, system gets out of the action without saving either custom infotype or IT 2001. I am using following code in PAI.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '2001'

NUMBER = WA_2001-PERNR

SUBTYPE = '0100'

  • OBJECTID = WA_2001-objps

LOCKINDICATOR = WA_2001-SPRPS

VALIDITYEND = LV_ENDDA

VALIDITYBEGIN = LV_BEGDA

  • RECORDNUMBER = WA_2001-SEQNR

RECORD = WA_2001

OPERATION = 'INS'

  • TCLAS = 'A'

DIALOG_MODE = '0'

  • NOCOMMIT = 'X'

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

RETURN = RETURN

KEY = KEY.

Edited by: Nikhil Sood on Dec 9, 2008 2:02 PM