Sei sulla pagina 1di 3

BAPI/Function Module to update HR...

Janice Fenwick 159 posts since Jun 22, 2012


BAPI/Function Module to update HR Infotype 0 pspar fields Dec 18, 2012 11:35 PM
I am using the FM HR_INFOTYPE_OPERATION to update our Employee Data. It is working great
except for Infotype 0 in some cases. The problem is that our Infotype 0 screen has the Org
Assignment information at the bottom of the screen (Position, Personnel Area, Employee group
and Employee subgroup). For some actions it requires that I change the Employee Group/
Subgroup and this is not stored in the pa0000 table it is only on this screen using the structure
pspar. I can do this via PA30 and/or a BDC by copying the Infotype 0 record, changing the start
date, Action Type and Reason and when I press enter it opens up the EE Group/subgroup for entry
so I can change it. I just cant find how to do this in a FM or BAPI.

Does anyone have any ideas?

Janice Fenwick 159 posts since Jun 22, 2012


BAPI/Function Module to update HR Infotype 0 pspar fields Dec 24, 2012 9:49 PM
I solved my own problem so just posting it in case anyone else runs into the same issue. I just passed these
additional fields in pspar structure using the secondary record export parameter.
data: wa_pspar type pspar.
wa_pspar-persg = '3'.
wa_pspar-persk = '97'.
wa_pspar-plans = '99999999'.
*Terminate codes for Infotype 0000
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
INFTY

= '0000'

NUMBER

"InfoType 0001

= wa_pa0000-pernr

"Employee #

VALIDITYEND = wa_pa0000-endda
VALIDITYBEGIN = im_delimit_dt
RECORD
OPERATION
*

= wa_Pa0000
= 'INS'

"End Date
"Begin Date

"Record to chg/ins or del

"Copy and delmit

VIEW_IDENTIFIER = '

Generated by Jive on 2014-11-26+01:00


1

BAPI/Function Module to update HR...

SECONDARY_RECORD = wa_pspar
*

NOCOMMIT

= 'X'

"if X then don't commit

IMPORTING
RETURN

= wa_BAPIRETURN1.

Gaurang Gujar 104 posts since Sep 7, 2010


Re: BAPI/Function Module to update HR Infotype 0 pspar fields Jan 10, 2014 9:53 AM
Hi Janice,
I tried the same its not updating the personal area.
It will be great if you can share your code
Regards,
Gaurang

Janice Fenwick 159 posts since Jun 22, 2012


Re: BAPI/Function Module to update HR Infotype 0 pspar fields Jan 10, 2014 4:30 PM
Hi Gaurang,
After I went and did all of this work it was no longer required. And, since then our development environment
has been refresed so I don't even have a copy of the full code any more. I had previosuly posted (see above)
the code that I had used and it worked (or from what I can remember as this was over a year ago).

Gaurang Gujar 104 posts since Sep 7, 2010


Re: BAPI/Function Module to update HR Infotype 0 pspar fields Jan 10, 2014 4:45 PM
Hi Janice,
Thanks a lot for a quick response. May be I will re-post the same question.
Thanks and Regards,
Gaurang

vipin saraika 63 posts since Sep 25, 2013


Re: BAPI/Function Module to update HR Infotype 0 pspar fields Aug 28, 2014 6:33 AM
Hi janice ,
Needed ur help for infotype 0000,0001.Please reply

Generated by Jive on 2014-11-26+01:00


2

BAPI/Function Module to update HR...

Generated by Jive on 2014-11-26+01:00


3

Potrebbero piacerti anche