on 01-17-2008 6:24 AM
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
i will recommend LSMW over this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.