Skip to Content
author's profile photo Former Member
Former Member

Delet applicant number without using PU90

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 22, 2010 at 09:15 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 22, 2010 at 02:44 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 26, 2010 at 08:21 AM

    I resolved my problem by using CALL TRANSACTION instruction

    Thank you Expert

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.