cancel
Showing results for 
Search instead for 
Did you mean: 

Delet applicant number without using PU90

tony_morellet
Participant
0 Kudos

Hi Expert,

I wrote an RFC function to create an applicant. I use BAPI_APPLICANT_CREATE.

After, when I have an applicant number, I need to update some infotype.

If during this update, I have an error, I need to delete the applicant number.

It is possible with a function module or class ?

Thanx

Tony

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

If i see the PU90 code, it is calling an external sub-routine for this purpose. So, the line below should solve your problem.

PERFORM delete_data(sapfp50g) USING $pernr.

Where,

$pernr = Applicant no. you want to delete.

Regards

Ranganath

tony_morellet
Participant
0 Kudos

Hi Ranganath,

this solution doesn't work. I have try it before this post.

Thank you

Answers (2)

Answers (2)

tony_morellet
Participant
0 Kudos

I resolved my problem by using CALL TRANSACTION instruction

Thank you Expert

former_member226519
Active Contributor
0 Kudos

a class dealing with candidates is CL_HRRCF_CANDIDATE. may be you can find something there.

or you could try to do it the database way:

candidate is OTYPE NA in HRP1000

There are relations in HRP1001:

A/B 650 to CP

A/B 651 to ND

CP may refer to OTYPES P, US, BP and S

The infotypes contayning candidates information are 51xx, tables HRP51xx, HRT51xx and maybe HRHAPxxx.

And don't forget: some information (addresses etc.) are stored as business partner in tables BUPAxxxx.

tony_morellet
Participant
0 Kudos

My principal problem it's I use 'AP' otype