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

Deletion HR - Infotype records using BAPI

Former Member
0 Likes
1,503

Hi experts,

I sucessfully added infotype crecords in HR-ABAP using function module HR_INFOTYPE_OPERATION. For deleting the same record using the same function module (operation = 'DEL'), i got error message as <b>009No data stored for 0008 in the selected period</b>. What is the problem...?

Can any one pls solve it.

<b><REMOVED BY MODERATOR></b>

Thank u.

Regards,

Murugan Arumugam

Message was edited by:

Alvaro Tejada Galindo

Hi experts,

I sucessfully added infotype crecords in HR-ABAP using function module HR_INFOTYPE_OPERATION. For deleting the same record using the same function module (operation = 'DEL'), i got error message as <b>009No data stored for 0008 in the selected period</b>. What is the problem...?

Can any one pls solve it.

<b><REMOVED BY MODERATOR></b>

Thank u.

Regards,

Murugan Arumugam

Message was edited by:

Alvaro Tejada Galindo

3 REPLIES 3
Read only

Former Member
0 Likes
893

You can use teh same function module for deletion. Pl check the dates & other parameters of the function call.. you can set the DIALOG_MODE = '2' to verify the values that get passed to the screen..

Arya

Read only

0 Likes
893

Hi Arya,

it doesn't go to the Dialog mode. simply it is throwing the errors message as i given before.... what r all the parameter for deletion.. can u please give me an example source code for deletion..

Regards,

Murugan Arumugam

Read only

0 Likes
893

HI Murugan,

Following is the sample code for deletion of a record using the FM...'HR_INFOTYPE_OPERATION'

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '4002'

NUMBER = RECORD_4002-PERNR

SUBTYPE = RECORD_4002-SUBTY

OBJECTID = RECORD_4002-OBJPS

LOCKINDICATOR = RECORD_4002-SPRPS

VALIDITYEND = WENDDA

VALIDITYBEGIN = WBEGDA

RECORDNUMBER = RECORD_4002-SEQNR

RECORD = RECORD_4002

OPERATION = 'DEL'

TCLAS = 'B'

DIALOG_MODE = '0'

IMPORTING

RETURN = RETLIST.

Regards,

Ranganathan.