cancel
Showing results for 
Search instead for 
Did you mean: 

How to update an infotype using interface

Former Member
0 Kudos

Hi i want to make an inbound interface that accepts a file and update IT0014 for wage type 6000.

Please give some example interface.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

If you are uplaoding the data from

Presentation Server -Use FM 'GUI_UPLOAD'

Application Server - OPEN DATASET,READ DATASET

And get it into internal tabvle say itab.

Loop at itab.

Pass the record to FM -HR_INFOTYPE_OPERATION,

Pass parameters

infty = '0014'

number = lemployeenumber

validityend = End Date

validitybegin = Begin Date

record = itab(record -Structure p0014)

operation = Operation (INS)

Endloop.

Regards,

Manoj.

Former Member
0 Kudos

Hi manoj,

First of all thanx for ur suggestion.

i still have some doubts.

My file contains information whether to update infotype infotype or not and the amount by which it is to be updated, and if yes i want to update infotype against wagetype 6000.

so how to pass values from internal table to infotype.

u suggested me this function module FM -HR_INFOTYPE_OPERATION:

infty = '0014'

number = lemployeenumber

validityend = End Date

validitybegin = Begin Date

record = itab(record -Structure p0014)

operation = Operation (INS)

But i m not sure if i will pass whole internal table then how infotype will update with wagetype 6000.and what is this operation parameter.

Former Member
0 Kudos

Hi,

You pass only the required fields in the internal table for updation.I think only wagetype,amount and begin date are only required.Rest all is coomon other than personal number.

If the employee already have a record for wagetype and you are trying to update this record,then

1. Get the infotype 14 using HR_READ_INFOTYPE into internal table

2.Pass the required fields from internal table with your new begin date.

If you want to change the record,pass OPERATION as 'MOD'.

Regards,

Manoj.

Former Member
0 Kudos

Hi Manoj Kumar,

Good its ok but for every updations in all infotypes from 0000 to 9999 for all fields in each infotype i need to update my customised table.

what are the possibilities by ABAP Object or Dynamic selection or any other Wok flow .

Please advice me with example.

Thanks,

Hari

Former Member
0 Kudos

Hello

if you are uploading text files in foreground mode then you can use FM: GUI_UPLOAD to upload data in internal table. pass table of structure same as file structure.

then within loop you can use HR_INFOTYPE_OPERATION to update IT-14.

reward points if helpful

suresh_datti
Active Contributor
0 Kudos

Write a program to load the fle into an itab.. loop at the itab & call the function module HR_INFOTYPE_OPERATION inside this loop to update the infotype.

~Suresh