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 experts,

In my conversion report I am using HR_INFOTYPE_OPERATION for deleting a record in the infotype.

I am passing the pernr,begda and endda values exactly as such in infotype.

But it returns error message as 'No Data Stored for 0315 in the selected period'.

Below is my report.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = '0315'

number = p0315-pernr

subtype = p0315-subty

objectid = p0315-objps

lockindicator = p0315-sprps

validityend = p0315-endda

validitybegin = p0315-begda

recordnumber = p0315-seqnr

record = p0315

operation = 'DEL'

tclas = 'A'

dialog_mode = '0'

IMPORTING

return = wf_return.

I am passin pernr,begda and endda values perfectly eventhough I am getting such error.

May I get some idea about how to solve this problem.

Thanks,

Sakthi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sakthi

Pls check begindate,endate, SEQNR, pernr Those fields are mandatory for manipulations.

Check this function module.

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = '9000'

number = p9000-pernr

subtype = p9000-subty

validityend = p9000-endda

validitybegin = p9000-begda

recordnumber = p9000-seqnr

record = p9000

operation = 'DEL'

tclas = 'A'

"nocommit = ''

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

importing

return = return

key = personaldatakey

exceptions

others = 0.

Before deleting you have to check whether entires is available are not, if entry is there you should call this fm.

Edited by: Muthu kumar on Jun 4, 2008 1:13 PM

3 REPLIES 3

Former Member
0 Kudos

Hi Sakthi

Pls check begindate,endate, SEQNR, pernr Those fields are mandatory for manipulations.

Check this function module.

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = '9000'

number = p9000-pernr

subtype = p9000-subty

validityend = p9000-endda

validitybegin = p9000-begda

recordnumber = p9000-seqnr

record = p9000

operation = 'DEL'

tclas = 'A'

"nocommit = ''

  • VIEW_IDENTIFIER =

  • SECONDARY_RECORD =

importing

return = return

key = personaldatakey

exceptions

others = 0.

Before deleting you have to check whether entires is available are not, if entry is there you should call this fm.

Edited by: Muthu kumar on Jun 4, 2008 1:13 PM

Former Member
0 Kudos

Hi,

The only reason why this message has to appear is that data for that period is not

present in the infotype...check properly the dates in the infotype and then try to delete it...

Also i hope u r using enque and deque with this FM

Have Fun!!

Ira!!

Former Member
0 Kudos

Hi,

Assing infotype number to structure p0315 like

p0315-infty = '0315'.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = '0315'

number = p0315-pernr

subtype = p0315-subty

objectid = p0315-objps

lockindicator = p0315-sprps

validityend = p0315-endda

validitybegin = p0315-begda

recordnumber = p0315-seqnr

record = p0315

operation = 'DEL'

tclas = 'A'

dialog_mode = '0'

IMPORTING

return = wf_return.