‎2007 Jun 13 10:21 AM
i want to clear all the data which is there in infotype 2006 how can i do it
plzzz help
‎2007 Jun 13 10:44 AM
write a program
selection parameters : s_pernr for pa2006-pernr .
TYPES: data : begin of itab_wa occurs
include structure pa2006 .
end of itab_wa .
DATA itab TYPE TABLE OF itab_wa.
SELECT * FROM pa2006
INTO CORRESPONDING FIELDS OF TABLE itab
WHERE pernr in s_pernr .
DELETE pa2006 FROM TABLE itab .
reward points if it is usefull
Girish
‎2007 Jun 13 10:33 AM
Hi
Use the fun module
HR_INFOTYPE_OPERATION
use the OPERATION = 'DEL'
Reward points for useful Answers
Regards
Anji
‎2007 Jun 13 10:45 AM
‎2007 Jun 13 11:23 AM
can u be some more clear how and where to write code i want to delete all the date which is there in infotype 2006 not based on any condition.
‎2007 Jun 13 10:44 AM
write a program
selection parameters : s_pernr for pa2006-pernr .
TYPES: data : begin of itab_wa occurs
include structure pa2006 .
end of itab_wa .
DATA itab TYPE TABLE OF itab_wa.
SELECT * FROM pa2006
INTO CORRESPONDING FIELDS OF TABLE itab
WHERE pernr in s_pernr .
DELETE pa2006 FROM TABLE itab .
reward points if it is usefull
Girish
‎2007 Jun 13 11:20 AM
surely reward point is pending from my side but please give me clearified code i want to delete all the data which is there in infotype 2006
‎2007 Jun 13 12:13 PM
please use this code .... it was working fine ..
just copy and paste ... inselection screen give all the employee no... if not it will clear all the employess data in it2006
tables : pa2006 .
select-options : s_pernr for pa2006-pernr .
TYPES: begin of itab_wa.
include structure pa2006 .
types : end of itab_wa .
DATA itab TYPE TABLE OF itab_wa.
SELECT * FROM pa2006
INTO CORRESPONDING FIELDS OF TABLE itab
WHERE pernr in s_pernr .
DELETE pa2006 FROM TABLE itabGirish