11-27-2013 11:24 AM
Hi,
I have a requirement to upload approximately 10 infotypes for 100 employees.
The user wants this in batch input so that if there are any errors in the loading they can simply go to SM35 and run the records that are in error.
I think the best way to do this is to create a batch input session for each infotype, i.e. 10 sessions. My question is can this be done via function hr_infotype_operation? It seems this doesn't create a batch job, so is there a better function?
regards,
Glen.
11-27-2013 11:37 AM
hi,
When I worked a lot with Personnel Administration, we tended to use CATT a lot to update en masse infotypes.
This was to ensure that everything worked and nothing was skipped (like events, dynamic actions).
Check if someone in the company has experience with this, that way you dont need to ABAP and it can be done pretty quickly if you know how it works.
Kind regards, Rob Dielemans
11-27-2013 11:37 AM
hi,
When I worked a lot with Personnel Administration, we tended to use CATT a lot to update en masse infotypes.
This was to ensure that everything worked and nothing was skipped (like events, dynamic actions).
Check if someone in the company has experience with this, that way you dont need to ABAP and it can be done pretty quickly if you know how it works.
Kind regards, Rob Dielemans
11-27-2013 11:40 AM
Hi Rob,
Thank you for your answer, unfortunately they want Batch Input as goign forward they might have a few employee every month for which they will want to run this program.
Regards,
Glen
11-27-2013 11:45 AM
Hi Glen,
If this is about a few employees every month then that is a bad business case for creating a custom piece of coding.
Custom abap increases maintenance cost along with extra risks involved.
In your case I would not automate a proces for those small numbers, that is not what automating processes in IT is intended for.
In this case simply altering the users instruction manuals or training a bit should be more than sufficient.
Kind regards, Rob Dielemans
11-27-2013 11:52 AM
Hi Rob,
I agree 100%, and in fact have mentioned similair arguments to client, but they insist on batch jobs for this! It could be anything from a few records to the occassional batch of 50 or 100 employees, although mostly not. For the first 100 there are no CATT experts here so this is also, regretably, not an option.
11-27-2013 12:37 PM
What is the infotype? There might be HR standard reports and transactions (transaction HRUSER for instance for noticing missing 105 and adding it).
also, the client cannot insist on batch jobs, the client can insist on an automated proces to add an infotype to specific personnel numbers, the way to fulfil that requirement is at the consultants disposal.
good luck!
Kind regards, Rob Dielemans
11-27-2013 1:02 PM
Hi Rob,
Thank you for your help.
The actual requirement is fairly complex and I don't really want to go into that here as it would take pages to explain everything. I just would like to know if HR_INFOTYPE_OPERATION can be used to create a batch session.
11-27-2013 2:07 PM
Hi Glen,
As other people in this thread have said it is better to use catt/bim
The reason being that there could be dynamic actions (exits, or others) that you want to have triggered when an infotype manipulation occurs.
Only using this FM might skip an action, that is one of the extra risk that the client has to accept if they still want go along this (incorrect) path.
Kind regards, Rob Dielemans
11-27-2013 12:37 PM
HI Anthony,
Why can you place the file in application server and read it from there, this way you can schedule and process in background with the same function module.
Regards
RK
11-27-2013 1:00 PM
Hi RK,
I don't have files. There is some conversions to certain fields so I have all the information in Internal tables.
For example I have an internal table for PA0002 for 100 employees, now I want to create a batch job to load this. Can this be done with HR_INFOTYPE_OPERATION?
11-27-2013 2:13 PM
Hi Glen,
The FM HR_INFOTYPE_OPERATION can be used to insert values to a infotype.but it doesn't not use the transactions and checks for the screen validations, It directly insert the values to the corresponding database table.There are no much validations for the infotypes,If an record is already present it delimit the existing record.Using FM if anything goes while inserting you have to do it again,but if same record exist then it modifies.
11-27-2013 12:47 PM
Hello Glen,
It's better you go along a BDC session instead of "hr_infotype_operation". Sometime Dynamic action is not triggered using HR_INFOYYPE_OPERATION. But if you are using BDC Dynamic action as well as User Exit/BADI would get triggered correctly.
11-27-2013 1:28 PM
Mr Glen Anthony,
Better U Create LSMW for Each Infotype . Last time i have create 30 LSMW for HR implementation. LSMW is the cheap and Best Method.