Application Development 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: 

Need a help to Update Infotype.....

Former Member
0 Kudos

Hi Experts,

*am developing HR-ABAP Report inthat, i have data in 2 internal tables, through these (itabs) i want to*

*insert the data into 2 Ztables(Respective tables) and then i want to Update one Custom Infotype.*

how can i procedure for this? is there any FM to update Infotype....

Thanks in Advance,

sudeer.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can use the FM-

HR_MAINTAIN_MASTERDATA

or-

HR_INFOTYPE_OPERATION

5 REPLIES 5

Former Member
0 Kudos

Hi,

You can use the FM-

HR_MAINTAIN_MASTERDATA

or-

HR_INFOTYPE_OPERATION

GauthamV
Active Contributor
0 Kudos

hi,

You can acheive that using this exit.

PBAS0001

EXIT_SAPFP50M_002.

Former Member
0 Kudos

Hi,

Single infotype updation using this FM : HR_MAINTAIN_MASTERDATA

Multi infotype updation HR_INFOTYPE_OPERATION

Thanks&Regards,

Naresh.

0 Kudos

Thank u very much friends, for ur help.

and is there any more info 4 that.....

thanks,

sudeer

0 Kudos

The best way is to use HR_INFOTYPE_OPERATION function module in your program.

Sample code:

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = p0082-infty

number = p0082-pernr

subtype = p0082-subty

validityend = p0082-endda

validitybegin = p0082-begda

record = p0082

operation = 'INS'

tclas = 'A'

dialog_mode = '0'

importing

return = return

key = key.

  • capture error messages

if return-type = 'E'.

concatenate 'Sub Type:' p0082-infty into messtab-tcode.

move return-message to messtab-param.

append messtab. clear messtab.

endif.

You can use it for modifying the record also.