2006 Jul 17 11:45 AM
can anybody give one <b>complete example code</b> for
1. Synchronous rfc
2. Asynchronous rfc
3.Transactional rfc.
i know the theory part. what i wanna <b>complete code</b> for each of the above rfc (not only the calling syntax)with the scenario..
points will be rewarded....
2006 Jul 17 11:47 AM
2006 Jul 17 11:47 AM
2006 Jul 17 12:17 PM
HI NEGI..
thax for ur reply....
i hv seen that doc for AlE and i know how to configure the rfc destination at sm59..
can u gv me a report where where an rfc fm is called from another non sapsystem ....
2007 Jan 12 11:30 AM
Hi,
Please find a code of : sRFC...(for aRFC and tRFC give me time of 1 week)
1. Server FM Module ( RFC Enabled).
FUNCTION ZRFC_TEST.
*"----
""Local interface:
*" EXPORTING
*" VALUE(TEST) TYPE SSTRING
*" TABLES
*" IT_MARA STRUCTURE MARA
*"----
Concatenate 'DATE:' sy-datum into TEST separated by ','.
select * from mara into table it_mara up to 100 rows.
ENDFUNCTION.
2. Client Module:
REPORT ZRFC_CLIENT
.
TABLES: MARA.
DATA: PTEST TYPE SSTRING.
DATA: IT_MARA TYPE TABLE OF MARA.
DATA: WA_MARA TYPE MARA.
CALL FUNCTION 'ZRFC_TEST'
DESTINATION 'DEST_AAAA'
IMPORTING
TEST = PTEST
TABLES
IT_MARA = IT_MARA.
WRITE: PTEST.
LOOP AT IT_MARA INTO WA_MARA.
< WRITE: > as per your need.
ENDLOOP.
NOTE: You have to Creat DEST_AAAA using TCODE SM59