Skip to Content

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

HR_INFOTYPE_OPERATION Question

Hi Gurus,

I have read in the forums that the Function Module HR_INFOTYPE_OPERATION gets invoked when an Inbound IDoc is posted. I would appreciate if somebody could confirm.

Thanks.

Regards,

bw_newbie

Former Member
Former Member replied

Hi,

Use PNP logical database to start with then try to to debug this program and see why this program works.The solution is for the earlier question u have posted my bad I did not realize that

infotypes : 0002.

tables :pernr.

  • return structure

data: rec_return type bapiret1. "return code

start-of-selection.

get pernr.

rp-provide-from-last p0002 space sy-datum sy-datum.

p0002-nachn = 'test'.

call function 'BAPI_EMPLOYEE_ENQUEUE'

exporting

number = p0002-pernr

importing

return = rec_return.

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = '0002'

number = p0002-pernr

subtype = p0002-subty

objectid = p0002-objps

recordnumber = p0002-seqnr

validityend = p0002-endda

validitybegin = p0002-begda

record = p0002

operation = 'MOD'

*tclas = ''

*lockindicator = p0002-sprps

*nocommit = ' '

importing

return = rec_return.

call function 'BAPI_EMPLOYEE_DEQUEUE'

exporting

number = p0002-pernr

importing

return = rec_return.

end-of-selection.

Regards

Vick

Message was edited by: vick vennav

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question