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: 

RFC RELATED PROBLEM

Former Member
0 Kudos

Hi All,

i am doing some work with rfc,the destination is creatd in sm59 and its ok.

see the small code..

REPORT zanid_test2 MESSAGE-ID zz.

*

data: begin of itab1 occurs 0.

include structure zvEndor_xi.

data: end of itab1.

start-of-selection.

*remote call

CALL FUNCTION 'Z_RFC_ANID'

IN BACKGROUND TASK

DESTINATION 'ZANID'

TABLES

itab = itab1.

COMMIT WORK.

WRITE:/ '**'.

LOOP AT ITAB1.

WRITE:/ ITAB1-MANDT,

ITAB1-VENDORNO.

ENDLOOP.

NOW the rfc is having code which reads a table in the target system, and feed into itab1.

I have checked the code, it working fine in target system, if called as locaL FUNTION..but while used as rfc, the itab1 is not having any value.

please help me to solve the problem.

reward point guranteed,

Thanks,

Anid

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Hi,

1) try it without IN BACKGROUND TASK

(read f1 to this option)

2)

have you tried fm's:

-TABLE_ENTRIES_GET_VIA_RFC

-GET_TABLE_RFC

Andreas

3 REPLIES 3

andreas_mann3
Active Contributor
0 Kudos

Hi,

1) try it without IN BACKGROUND TASK

(read f1 to this option)

2)

have you tried fm's:

-TABLE_ENTRIES_GET_VIA_RFC

-GET_TABLE_RFC

Andreas

0 Kudos

hi Andreas,

thanks a lot , it worked..

i have removed "in background task" addition.

No, i have to use the z-rfc, becase of added funcionality for XI.

Anyway, you solved the porblem.

thanks.

Former Member
0 Kudos

Hi Please check the expection list, whether any exceptions arised or not. i dont find anything wrong with this code.

satish