Skip to Content
author's profile photo Former Member
Former Member

HR_INFOTYPE_OPERATION

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 04, 2008 at 07:42 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 05, 2008 at 04:29 AM

    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!!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 05, 2008 at 07:04 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.