cancel
Showing results for 
Search instead for 
Did you mean: 

BDC for infotype 0008

Former Member
0 Kudos

Dear Freinds,

Could any one please give me sample code specifically for the infotype 0008, as we have to have upload data . For the wagetype and amounts are the table

control being used in infotype 0008 . Secondly i would like to know is when you are

uploading the data , if we have record in infotype 0008 we have to change the data.

Hence could any one please give me code for infotype 0008 . I studied the document that we have to use for infotype 0008 especially the funciton module HR_INFOTYPE_OPERATION. So Please any of you please give me sample code for infotype 0008.

Regards

Latha.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Just to add, I would use the code above using HR_INFOTYPE_OPERATION before a BDC session because it is much faster then a BDC.

thanks.

Jamie

Former Member
0 Kudos

Hi ,

Please find the below example

data: l_f_return like bapireturn1,

l_f_empl like pernr-pernr,

l_f_mod like pspar-actio,

l_f_sty like p0001-subty value '0'.

l_f_empl = pernr-pernr.

l_f_mod = 'INS'.

clear : l_f_return.

call function 'BAPI_EMPLOYEET_ENQUEUE'

exporting

number = pernr-pernr

validitybegin = sy-datum.

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = '0008'

subtype = l_f_sty

number = l_f_empl

validityend = g_f_p0008-endda " enddate

validitybegin = g_f_p0008-begda " begind date

record = g_f_p0008 " g_f_p0008 like P0008

operation = l_f_mod

importing

return = l_f_return

  • key = personaldatakey

exceptions

others = 0.

commit work.

call function 'BAPI_EMPLOYEET_DEQUEUE'

exporting

number = pernr-pernr

validitybegin = sy-datum.

Reward if helps.

Thanks!

gctl
Contributor
0 Kudos

try tr create a BDC recording in SHDB for entering IT8 through PA30.