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

Doubt s in ABAP HR -Enhancements

Hi Experts,

I am working in enhancements, I have some doughtes in that ,so plz do help to me,

””””My enhancement is,

Whenever we enter data such as Emp Firstname, emp.lastname,empdate of birth, in ‘pb10’ this data should check in PAP database tables and if he is previous employer of the that company it should give his ‘Emp.id’.

And also it should check ‘how many months back he worked in this company ‘ if that period is less than r equal to 3monthes’

We have to send the message that he is not eligible for attending interview. if that is greater than 3 months he is eligible for attending interview.

For this I am trying in ‘cmod’ transaction code in EXIT of ‘pbs0001’.

CLASS CL_HR_PNNNN_TYPE_CAST DEFINITION LOAD.

CASE INNNN-INFTY.

WHEN '4000'.

data : p0002 like p0002.

data : p4000 like p4000.

call method CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN

EXPORTING

PRELP = INNNN

IMPORTING

INNNN = p0002.

if ( IPSYST-IOPER = 'INS' OR IPSYST-IOPER = 'MOD' )

**and sy-ucomm = 'UPD' .

CLEAR SY-UCOMM.

ENDIF.

BUT WHENEVER I SEE IN DEDUGGING MODE ,I am not getting any data in that mode ,

Where I am doing mistake I am not getting so plz do help on this.

Thank you very much,

Krishna.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 08:46 AM

    Hi Krishna,

    your coding works only for IT4000

    >CASE INNNN-INFTY.

    >WHEN '4000'.

    but in the call of the casting method you mix it

    with IT0002

    >PRELP = INNNN

    >IMPORTING

    >INNNN = p0002.

    I'm not sure if this works.

    Regards

    Bernd

    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.