Application Development and Automation 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: 
Read only

Infotype does not exist

Former Member
0 Likes
2,318

Hi,

I want update KTART field in infotype 2006. So I am using 'HR_INFOTYPE_OPERATION' this FM.But this is showing following error.

'Infotype does not exist'

DATA : P2006 TYPE P2006.

DATA : RETURN LIKE BAPIRETURN1.

DATA : KEY LIKE BAPIPAKEY.

DATA : RETURNE LIKE BAPIRETURN1 .

P2006-PERNR = '80000002'.

P2006-BEGDA = '20110811'.

P2006-endda = '20111231'.

P2006-SUBTY = '02'.

p2006-ktart = '02'. "Old value '03'

CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'

EXPORTING

number = '80000002'

IMPORTING

return = return

locking_user = sy-uname.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '2006'

NUMBER = p2006-pernr

SUBTYPE = P2006-SUBTY

  • OBJECTID = P2006-OBJPS

  • LOCKINDICATOR = P2006-SPRPS

VALIDITYEND = P2006-ENDDA

VALIDITYBEGIN = P2006-BEGDA

  • RECORDNUMBER = P2006-SEQNR

RECORD = P2006

OPERATION = 'MOD'

TCLAS = 'A'

DIALOG_MODE = '0'

  • NOCOMMIT = 'X'

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

IMPORTING

RETURN = RETURN

KEY = KEY.

CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'

EXPORTING

number = '80000002'

IMPORTING

return = return.

Please tell me how to correct this Error.

Regards,

SathishKumar.A

1 ACCEPTED SOLUTION
Read only

former_member209703
Active Contributor
0 Likes
1,268

Hi

I think you missed this part.

In the record with the data


P2006-infty = '2006'.

3 REPLIES 3
Read only

former_member209703
Active Contributor
0 Likes
1,269

Hi

I think you missed this part.

In the record with the data


P2006-infty = '2006'.

Read only

0 Likes
1,268

Thank you

You solved my problem..

This applies to OPERATION = 'MOD' / CHANGE situation.

Rgds

Araman

Read only

Former Member
0 Likes
1,268

Hi,

if you want to use HR_INFOTYPE_OPERATION with update parameter. First you have to use HR_READ_INFOTYPE function, change KTART in return table (INFTY_TAB) then use HR_INFOTYPE_OPERATION.

Take care.

Çağatay