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: 

Call Remote Function Module with SAEURI dataelement as Export parameter

naveenraj_a
Active Participant
0 Kudos

Hi Experts, Am creating a program in a Gateway system, where i need to call a FM from HR system.

My Code is like this,

Data: lname(20) type c,

         lv_url type SEAURI.

Call 'Z_EMP_GET' Destination 'HR_DEST'

Exporting

Pernr = '12345678'

Importing

lname = lv_lname

Url = lv_url.

At HR Destination system, I have a FM 'Z_EMP_GET ' with signature as

Importing : Pernr Type NUMC

Exporting : lname Type Char20

                 Url Type SAEURI(Char 4096).

When i debugged it, I see the Remote FM is getting Perner value and returning only lname, but URL paramter is empty.

I believe i have problem in receiving Long Text (URL - Char 4096).

How can i handle this and let me know if need to specify String length parameter for RFC call somewhere.

Also let me know if need more details

Thanks in advance.

Thanks in advance.

2 REPLIES 2

naveenraj_a
Active Participant
0 Kudos

Hi experts, Did somebody found a solution for this?

The problem is to Get a Very Long Text (char - 4096), through a RFC call, where the FM has an Export parameter.

0 Kudos

Hi naveenraj,

I don't know which type of URL you want in output but you can check  entries in table HTTPURLLOC and or if you want URL of employee photo then you have to use this FM HRWPC_RFC_EP_READ_PHOTO_URI.

Regards,

Shahezad