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

Call Remote Function Module with SAEURI dataelement as Export parameter

naveenraj_sap
Active Participant
0 Likes
641

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
Read only

naveenraj_sap
Active Participant
0 Likes
572

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.

Read only

0 Likes
572

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