11-18-2005 11:21 AM
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
11-18-2005 11:28 AM
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
11-18-2005 11:28 AM
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
11-18-2005 11:32 AM
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.
11-18-2005 12:02 PM
Hi Please check the expection list, whether any exceptions arised or not. i dont find anything wrong with this code.
satish