cancel
Showing results for 
Search instead for 
Did you mean: 

Delete record in T710

Former Member
0 Kudos

Hi everyone,

I am creating a program to update T710. I am using the FM 'HRCM_SALARY_STRUCTURE_UPDATE' and it works beautifully with one minor issue. Whenever I want to update a record, it delimits. ie If a record exist in the db table T710 from 01/01/2010 to 31/12/9999 and I want to change the non-key fields (min, max and ref salaries) along with the endda (to say 31/12/2010), what I want is for one record to exist in the db table from 01/01/2010-31/12/2010 with my updated entries. However, the FM creates two records-one from 01/01/2010-31/12/2010 with my entries and the already existing db record now starting from 01/01/2011-31/12/9999. Is there any work-around for this? ie. is there anyway I could delete the second record being updated by the FM through my program? I have tried searching for FMs to delete but have been unsuccessful..

Any help will be deeply appreciated.

Regards,

Alpana.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

We just ended up making an enhancement in the FM 'HRCM_SALARY_STRUCTURE_UPDATE' where only for our custom Tcode, the new line being created after the delimit would be deleted.

Former Member
0 Kudos

Hi Alpana,

could you please send the steps you took to accomplish the same. I am facing the exact same issue. Any help on how u modified the code would be grateful. did u use Access key or should we use any BDC ? what do u suggest ?

Thanks in advance,

Rohan Malik

Former Member
0 Kudos

While using the FM HRCM_SALARY_STRUCTURE_UPDATE try giving the DELIMIT_FLAG = X (export parameters)

Former Member
0 Kudos

The DELIMIT_FLAG is already X. The existing record in the db is from 01/01/2010 to 31/12/9999. I want to modify this to exist from 01/01/2010 to 31/12/2010. I pass a table with this entry in it and the DELIMIT_FLAG is X as inputs for my FM. However, the output is as follows:

one record which corresponds to my entries exists from 01/01/2010 to 31/12/2010. and another with corresponds to the db entries from 01/01/2011 to 31/12/9999. I do NOT want the presence of the second record ie, I only want one record in the db which corresponds to my entries and is valid from 01/01/2010 to 31/12/2010. How do I delete that second record or prevent it from being created in the first place using a program?

Thanks in advance.

Regards,

Alpana

Former Member
0 Kudos

I have been constantly searching for a FM which will allow me to delete entries from the DB table T710 through an ABAP program. Is anyone aware of such an FM?

Former Member
0 Kudos

You can user DELETE statement for deleting entry from T710 table.

DELETE T710 FROM TABLE i_tab. in i_tab please populate the entries which you want to delete.

Thanks,

Sandip