Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Infotype 0105 Record insertion problem

muhammad_sohail
Participant
0 Likes
431

Dear Experts,

I am using the following code to insert a record in infotype 0105. But it is not inserting the record. anyone pls. tell me the problem in this code.

CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
      EXPORTING
        number = wa_pernr-pernr
 IMPORTING
 RETURN = P_P_RETURN.

    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty         = wa_pa0105-infty "p_p0015-infty
        number        = wa_pa0105-pernr
        subtype       = wa_pa0105-subty
        validityend   = wa_pa0105-endda
        validitybegin = wa_pa0105-begda
        record        = i_pa0105 "wa_pa0105 "p_p2002 "p_p0015
        operation     = 'INS'
        tclas         = 'A'
   "     dialog_mode   = '1'
      IMPORTING
        return        = p_p_return
        key           = l_key.

"p_p_subrc = sy-subrc.

CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'

EXPORTING

number = wa_pernr-pernr

IMPORTING

RETURN = RETURN.

Regards,

Sohail

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
393

Hi,

Check the structure of i_pa0105 , it should refer to P0105.

Regards,

Srini.

1 REPLY 1
Read only

Former Member
0 Likes
394

Hi,

Check the structure of i_pa0105 , it should refer to P0105.

Regards,

Srini.