on 10-21-2010 1:38 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I resolved my problem by using CALL TRANSACTION instruction
Thank you Expert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.