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: 

RH_PM_GET_STRUCTURE not remote enabled

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

8 REPLIES 8

former_member194669
Active Contributor
0 Kudos

Another way will be write wrapper above this function module and make the wrapper RFC as Remote enabled and call the wrapper rfc.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

Hi Manoj,

Try using RH_GET_LEADER. Here OBJID has an associated type REALO.

Regards

Abhii

0 Kudos

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.

matt
Active Contributor
0 Kudos

>

> 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

0 Kudos

Hi Matt,

But in the Function Module RH_GET_LEADER OBJID has an associated type.

Regards

Abhii

matt
Active Contributor
0 Kudos

>

> 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