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: 

regarding function module

Former Member
0 Kudos
86

hi experts

cud u plz tell me is der any function module with the help of which we can populate the infotype table from our own customized database table against a particular wage type.....plz let me know....

1 ACCEPTED SOLUTION

Former Member
0 Kudos
63

Hi

check the fun module

HR_INFOTYPE_OPERATION

use the operation = INS or MOD to insert records or modify records.

<b>Reward points for useful Answers</b>

Regards

Anji

5 REPLIES 5

Former Member
0 Kudos
64

Hi

check the fun module

HR_INFOTYPE_OPERATION

use the operation = INS or MOD to insert records or modify records.

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos
63

Hi,

This is a Function Module .......

used to upload that data into tables.

CALL FUNCTION 'HR_INFOTYPE_OPERATION'

EXPORTING

INFTY = '0002'

NUMBER = EMPLOYEENUMBER

VALIDITYEND = VALIDITYEND

VALIDITYBEGIN = VALIDITYBEGIN

RECORD = P0002

OPERATION = CREATE

NOCOMMIT = NOCOMMIT

IMPORTING

RETURN = RETURN

KEY = PERSONALDATAKEY

EXCEPTIONS

OTHERS = 0.

Regards,

Padmam.

Former Member
0 Kudos
63

Hi,

take a look at the function module RP_ANSAL_FROM_WAGETYPES.

HR_INFOTYPE_OPERATION

<b>Reward points</b>

Regards

Former Member
0 Kudos
63

Hi,

check out the following program it might help you

tables:pernr.

infotypes:0021,0106.

data: rec_p0021 type p0021,

rec_q0106 type q0106,

rec_p0106 type p0106.

data w_return type bapireturn1.

start-of-selection.

get pernr.

read table p0106 index 1.

rec_p0106 = p0106.

rec_p0106-stras = '2235 Burns Rd'.

read table p0021 index 1.

rec_p0021 = p0021.

rec_p0021-favor = 'test-639111'.

  • Enqueue personnel number

call function 'BAPI_EMPLOYEE_ENQUEUE'

exporting

number = pernr-pernr

importing

return = w_return.

call function 'HR_INFOTYPE_OPERATION'

exporting

infty = '0021'

number = pernr-pernr

subtype = '2'

record = rec_p0021

validityend = P0021-ENDDA

validitybegin = P0021-BEGDA

operation = 'MOD'

dialog_mode = '2'

view_identifier = '07'

secondary_record = rec_p0106

importing

return = w_return.

end-of-selection.

***************please reward points if the information is helpful to you****************

Former Member
0 Kudos
63

fully solved with the help of another thread