2012 Feb 15 1:01 AM
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
2012 Feb 15 3:38 AM
Hi ,
Check in functional group and the fm also.Try to regenerate and see.
Regards,
Madhu.
2012 Feb 15 6:19 AM
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'.
2012 Feb 15 2:03 PM
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
2012 Feb 15 2:34 PM
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.
2012 Feb 17 6:39 PM
Regards.
We would work through the modules function:
'SWUP__WRITE_USER_PARAMETERS'
'SUSR_USER_PARAMETERS_GET'
Thank you all!