2008 Jun 04 8:35 AM
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.
2008 Jun 04 8: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
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.
2008 Jun 04 8: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
2008 Jun 05 5: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!!
2008 Jun 05 8: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.