Application Development and Automation 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: 
Read only

Help on HR_MAINTAIN_MASTERDATA

Former Member
0 Likes
469

Hi all,

I want to call this FM hr_maintain_masterdata remotely. before posting the data into infotypes. i want to do some validations. where can i include them.

Help will be highly appreciated & rewarded

Regards,

Younus

2 REPLIES 2
Read only

Former Member
0 Likes
353

Hi Younus,

You have to create a wrapper RFC Function module with the same interface as the current FM and then do your validations before you call this FM.

Eg: Let the name be ZHR_MAINTAIN_MASTERDATA

function HR_MAINTAIN_MASTERDATA

create the same importing exporting and tables parameters.

then in the code:

  • validation..

.

.

.

.

call function 'HR_MAINTAIN_MASTERDATA'

exporting

pernr = pernr

MASSN = massn

actio = actio

TCLAS = tclas

begda = begda

endda = endda

OBJPS = objps

SEQNR = seqnr

SPRPS = sprps

subty = subty

WERKS =

PERSG =

PERSK =

PLANS =

dialog_mode = '0'

luw_mode = '0'

NO_EXISTENCE_CHECK = ' '

NO_ENQUEUE = ' '

importing

return = l_return

return1 = l_return1

HR_RETURN =

tables

proposed_values = li_pprop.

MODIFIED_KEYS =

endfunction.

Make sure that the z function module is RFC enabled.

Regards,

Ravi

Read only

Former Member
0 Likes
353

Thanks ravi