cancel
Showing results for 
Search instead for 
Did you mean: 

Uploading data to Infotypes

Former Member
0 Kudos

Hi,

I have used 'HR_INFOTYPE_OPERATION' to upload HR master data from flat file to a single infotype(ex: 0002) using INSert operation.

Now I have to upload falt file data to multiple infotypes at a time. ie.. to 0002,0006,0008,0014 like..

So what is the procedure to follow.

Thanks,

Anil.G

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

i will recommend LSMW over this

Former Member
0 Kudos

Hi,

I have recorded 'PA30' transaction and in LSMW an using BatchInput method.it is fine.

For a single infotype it is ok, but here it is multiple, then how?

Each and every time I need to do the recording?

Thanks,

Anil

Former Member
0 Kudos

Hi Anil

Try using the Function Module HR_MAINTAIN_MASTERDATA. For updating multiple multiple infotypes, all you need to do is to get the screen field names for each infotype and fill the internal table t_proposed_data, with this field name and value. Im pasting the code for ur reference.

  • Infotype 0001

fs_proposed_data-infty = '0001'.

fs_proposed_data-fname = 'P0001-PLANS'.

fs_proposed_data-fval = '23455'.

APPEND fs_proposed_data TO t_proposed_data.

CLEAR fs_proposed_data.

  • Infotype 0002

fs_proposed_data-infty = '0002'.

fs_proposed_data-fname = 'P0002-GBDAT'.

fs_proposed_data-fval = '19800101'.

APPEND fs_proposed_data TO t_proposed_data.

CLEAR fs_proposed_data.

CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'

EXPORTING

pernr = '00012345'

actio = 'INS' " OR 'MOD' OR 'DEL'

begda = '20060101'

endda = '20060131'

dialog_mode = '0'

luw_mode = '1'

IMPORTING

return = fs_return

return1 = fs_return1

hr_return = fs_hr_return

TABLES

proposed_values = t_proposed_data.

Former Member
0 Kudos

Create an action "U1, Upload data" with all the required infotypes.

From Pa30 screen call the action U1 and press copy

in the action screen select execute infogroup and continue (this will omit action infotype with out saving

Check standard action type 02 org reassignment

You can also alter this action type 02 according to ur requirement