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

Pass Values between two Function Modules RFC in Portal

Former Member
0 Likes
972

I need to pass values ​​between 2 FM RFC.

I have an implicit enhancement in HRMSS_RFC_EP_READ_GENERALDATA RFC function module.

PERNR LIKE PSKEY-PERNR


ENHANCEMENT 1  Z_ESS_EXPORT_PERNR.    "active version

  EXPORT pernr to memory id 'PMK'.
  set parameter id 'PMK' field pernr.

ENDENHANCEMENT.

On the other hand an RFC function module that has the code:

pmk LIKE PSKEY-PERNR,

pmk_2 LIKE PSKEY-PERNR.

 
  get parameter id 'PMK' field pmk.
  IMPORT pmk_2 FROM MEMORY ID 'PMK'.

When the execution is done in development environment, the modules function at the level of R3, the "get parameter id" works only if the debbuger is classic, otherwise not work. The Import to memory id never works.

In the environment of quality, r3 do not work any of the 2 sentences. If run from portal (which is as it should be) does not work.

Thanks if anyone can help me get the problem. Both function modules are executed at the portal.

Regards

Edited by: Daynet1840 on Feb 15, 2012 2:02 AM

5 REPLIES 5
Read only

madhu_vadlamani
Active Contributor
0 Likes
844

Hi ,

Check in functional group and the fm also.Try to regenerate and see.

Regards,

Madhu.

Read only

Former Member
0 Likes
844

Hi,

Try using the following statement.

In FM - "HRMSS_RFC_EP_READ_GENERALDATA" use :- EXPORT pernr FROM pernr TO MEMORY ID 'PMK'.

In the other FM use :- IMPORT pernr TO pmk_2 FROM MEMORY ID 'PMK'.

Read only

0 Likes
844

When the execution is directly in r3, in development environment or quality, does the set / get parameter id. Export / Import memory id not work.

But if the FM are called from the portal, does not the set / get parameter id.

I tried changing the sentence as I indicated harishkumar.dy still not working.

Madhu: They're in different function groups, one is standard and the other not.

Regards

Edited by: Daynet1840 on Feb 15, 2012 3:08 PM

Edited by: Daynet1840 on Feb 15, 2012 3:11 PM

Read only

0 Likes
844

Hi,

I don't think this is a suggested solution, but just thought of writing :

1. In the first RFC FM, in the enhancement save the PERNR into a Z table.

2. Now from the second RFC FM, read the PERNR from the Z table and delete the entry from the table. This may make sure that there will be only one PERNR at a time. Otherwise we may also add some addtional columns for uniquely identifying the PERNR.

Read only

0 Likes
844

Regards.

We would work through the modules function:

'SWUP__WRITE_USER_PARAMETERS'

'SUSR_USER_PARAMETERS_GET'

Thank you all!