11-27-2009 8:30 AM
Hi All,
I want to use the function RH_PM_GET_STRUCTURE to get the supervisor of an employee bu using the SAP JCo 3 toolkit.
But it is seen that this function module is not remotely enabled.
IS there any other function module which would be remotely accessible form Java code to fetch the supervisor details.
Best Regards
Manoj
11-27-2009 9:04 AM
Hi Manoj,
Just make a copy of RH_PM_GET_STRUCTURE to make it a Z one & make it REMOTE ENABLED in the attributes.
Regards
Abhii
11-27-2009 8:51 AM
Another way will be write wrapper above this function module and make the wrapper RFC as Remote enabled and call the wrapper rfc.
a®
11-27-2009 9:04 AM
Hi Manoj,
Just make a copy of RH_PM_GET_STRUCTURE to make it a Z one & make it REMOTE ENABLED in the attributes.
Regards
Abhii
11-27-2009 9:10 AM
Hi ,
Thanks for the reply.
I tried creating a wrapper ,but while saving gives problem for the OBJID parameter.
The OBJID does not have nay associated type with it.
Hence it gives error for Remote enabling
Best Regards
Manoj
11-27-2009 9:11 AM
Hi Manoj,
Try using RH_GET_LEADER. Here OBJID has an associated type REALO.
Regards
Abhii
11-27-2009 9:23 AM
Hi Manoj,
What error you are getting?
try declaring the objid as type p1000-objid in the import parameters of the wrapper RFC.
Regards,
Swarna Munukoti.
11-27-2009 9:25 AM
>
> I tried creating a wrapper ,but while saving gives problem for the OBJID parameter.
> The OBJID does not have nay associated type with it.
>
> Hence it gives error for Remote enabling
>
> Best Regards
> Manoj
Don't do Abhil's first suggestion - it isn't a good idea.
In your wrapper, give the OBJID parameter a data element. If there isn't a suitable one, define on in SE11 and use that.
matt
11-27-2009 9:27 AM
Hi Matt,
But in the Function Module RH_GET_LEADER OBJID has an associated type.
Regards
Abhii
11-27-2009 10:56 AM
>
> Hi Matt,
>
> But in the Function Module RH_GET_LEADER OBJID has an associated type.
>
> Regards
> Abhii
That was your second suggestion which is fine. It was your first of copying the fm I objected to.
matt