‎2007 Feb 20 11:45 AM
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
‎2007 Feb 20 11:51 AM
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
‎2007 Feb 20 1:45 PM