Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

reg : FM HR_MAINTAIN_MASTERDATA

Former Member
0 Kudos

hi,

i hav a requirement where i hav to rehire/reactivate an employee.

I get only his PERNR from my inbound interface and i need to change his BEGDA, ENDDA, MASSN, MASSG, PLANS.

for this i want to use the FM, HR_MAINTAIN_MASTERDATA

could u plz help me out with this........

wat all inputs i need to give and how to see the newly created record?

code snipet would be of great help...

currently i am passing only PERNR and in proposed value table , i am passing only P0000-MASSN field and its value. But i dont think its working....

thx,

Balaji

2 REPLIES 2

Former Member
0 Kudos

IMPORTING

*" VALUE(PERNR) LIKE PSPAR-PERNR DEFAULT '00000000'

*" VALUE(MASSN) LIKE PSPAR-MASSN OPTIONAL

*" VALUE(ACTIO) LIKE PSPAR-ACTIO DEFAULT 'INS'

*" VALUE(TCLAS) LIKE PSPAR-TCLAS DEFAULT 'A'

*" VALUE(BEGDA) LIKE PSPAR-BEGDA DEFAULT SY-DATUM

*" VALUE(ENDDA) LIKE PSPAR-ENDDA DEFAULT '99991231'

*" VALUE(OBJPS) LIKE PSPAR-OBJPS OPTIONAL

*" VALUE(SEQNR) LIKE PSPAR-SEQNR OPTIONAL

*" VALUE(SPRPS) LIKE PSPAR-SPRPS OPTIONAL

*" VALUE(SUBTY) LIKE PSPAR-SUBTY OPTIONAL

*" VALUE(WERKS) LIKE PSPAR-WERKS OPTIONAL

*" VALUE(PERSG) LIKE PSPAR-PERSG OPTIONAL

*" VALUE(PERSK) LIKE PSPAR-PERSK OPTIONAL

*" VALUE(PLANS) LIKE PSPAR-PLANS OPTIONAL

*" VALUE(DIALOG_MODE) TYPE C DEFAULT '0'

*" VALUE(LUW_MODE) TYPE C DEFAULT '1'

*" VALUE(NO_EXISTENCE_CHECK) TYPE C DEFAULT ' '

*" VALUE(NO_ENQUEUE) TYPE C DEFAULT ' '

*" EXPORTING

*" VALUE(RETURN) LIKE BAPIRETURN STRUCTURE BAPIRETURN

*" VALUE(RETURN1) LIKE BAPIRETURN1 STRUCTURE BAPIRETURN1

*" VALUE(HR_RETURN) LIKE HRHRMM_MSG STRUCTURE HRHRMM_MSG

*" TABLES

*" PROPOSED_VALUES STRUCTURE PPROP

*" MODIFIED_KEYS STRUCTURE PSKEY OPTIONAL

<b>Rewards point if possible..........</b>

Former Member
0 Kudos

Hello,

Check these links :-

Regards,

Deepu.K