Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HR_INFOTYPE_OPERATION

Former Member
0 Kudos

Hi,

I need to create infotype 2003 based on some condition when infotype 2001 is created. I am planning to do this with User exit HRPAD00INFTY in BEFORE_OUTPUT method. I am planning to create 2003 using FM HR_INFOTYPE_OPERATION but i am getting an error. Any idea?

if INNNN-INFTY = '2001'.

WA_P2003-TPROG = 'W08H'.

WA_P2003-pernr = innnn-pernr.

WA_P2003-begda = innnn-begda.

WA_P2003-endda = innnn-endda.

WA_P2003-VTART = '02'.

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'

EXPORTING

number = innnn-pernr

IMPORTING

return = li_return.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '2003'

NUMBER = innnn-pernr

SUBTYPE = '02'

  • OBJECTID = li_pskey-OBJPS

  • LOCKINDICATOR = li_pskey-SPRPS

VALIDITYEND = innnn-endda

VALIDITYBEGIN = innnn-begda

RECORD = WA_P2003

OPERATION = 'INS'

  • TCLAS = 'A'

  • DIALOG_MODE = '1'

  • NOCOMMIT = ' '

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

RETURN = li_return

KEY = li_key.

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

EXPORTING

number = innnn-pernr

IMPORTING

return = li_return.

1 REPLY 1

former_member186746
Active Contributor
0 Kudos

what kind of error?