Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Infotype data insert problem

Hi Experts,

I have created an Infotype(IT9009).

I am trying to insert a record in this infotype(IT9009) using HR_INFOTYPE_OPERATION

Function module. here all fileds data has been inserted except only one field ie., Action field.

If i include the Action field the following message would be displayed.

No data stored for Separation in the selected period

Message no. PG009

if i did not include the field data the new record will be inserted.

Could you please let me know soultion to my problem ?

My Code :

DATA : lt_p9009 TYPE TABLE OF p9009,

wa_p9009 TYPE p9009,

wa_bapireturn LIKE bapireturn1,

lt_key LIKE bapipakey.

wa_p9009-pernr = '40000014'.

wa_p9009-begda = '20080901'.

wa_p9009-resign_initiated = 'X'.

wa_p9009-sepation_type = 'Resignaion'.

wa_p9009-ardate = '20081030'.

wa_p9009-ecomments = 'Please approve my resignation Request'.

wa_p9009-rrdate = '20081005'.

wa_p9009-reason = 'Career Growth'.

wa_p9009-ACTION = 'relieved'.

wa_p9009-RMANAGER = '40000007'.

wa_p9009-RMNAME = 'Prabhu Arumugam'.

wa_p9009-RMRRDATE = '20081005'.

wa_p9009-RCOMMENTS = 'Approved' .

wa_p9009-AMANAGER = '40000001'.

wa_p9009-AMNAME = 'Raja'.

wa_p9009-AMRDATE = '20081015'.

wa_p9009-ACOMMENTS = 'Yes. Approved'.

wa_p9009-HMANAGER = '40000004'.

wa_p9009-HRMNAME = 'Balamanikandan'.

wa_p9009-HRMRDATE = '20081015'.

wa_p9009-HCOMMENTS = 'Employee Retained'.

APPEND wa_p9009 TO lt_p9009.

  • If not P9009 is INITIAL.

LOOP AT lt_p9009 INTO wa_p9009.

CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'

EXPORTING

number = wa_p9009-pernr

IMPORTING

return = wa_bapireturn.

IF wa_bapireturn-number = '000'.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

infty = '9009'

number = wa_p9009-pernr

  • SUBTYPE = '2'

  • VALIDITYEND = '20080817' "'20080821'

validitybegin = wa_p9009-begda "

  • RECORDNUMBER =

record = wa_p9009 "lt_p9009

operation = 'INS'

tclas = 'A'

dialog_mode = '1'

IMPORTING

return = wa_bapireturn

key = lt_key

.

ENDIF.

CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'

EXPORTING

number = wa_p9009-pernr

IMPORTING

return = wa_bapireturn.

ENDLOOP.

Thanks in advance,

Regards,

Sivakumar.A

Former Member
Not what you were looking for? View more on this topic or Ask a question