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

clear data from infotype

Former Member
0 Likes
986

i want to clear all the data which is there in infotype 2006 how can i do it

plzzz help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
960

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

6 REPLIES 6
Read only

Former Member
0 Likes
960

Hi

Use the fun module

HR_INFOTYPE_OPERATION

use the OPERATION = 'DEL'

Reward points for useful Answers

Regards

Anji

Read only

0 Likes
960

WILL IT DELETE ONLY DATA AS I ONLY WANT TO DELETE ONLY DATA

Read only

0 Likes
960

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.

Read only

Former Member
0 Likes
961

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

Read only

0 Likes
960

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

Read only

Former Member
0 Likes
960

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 itab

Girish