‎2006 Aug 23 11:47 PM
Hi,
Need help in writing a RFC Fun Module,
Which will insert the data into User Defined Table and if insert is successful, it returns value 1 or else 0.
How to do that?
Thanks
Seshu
‎2006 Aug 24 12:25 AM
‎2006 Aug 23 11:51 PM
‎2006 Aug 23 11:53 PM
Hi,
Table is in R/3
and i am sending data from Other Application (non r/3).
Thanks
Seshu
Message was edited by: Seshu
‎2006 Aug 24 12:15 AM
hi
check whether the fm RFC_TRANSFER_TABLE meet ur need.
else u need to create RFC Fm..
Cheers,
Abdul Hakim
‎2006 Aug 23 11:52 PM
Hi,
Create a new RFC with the "Remote-enabled module" checked.
IN the importing paramter im_record TYPE z_table.
In the Exporting paramter ex_return type char1.
Code
-
INSERT Z_TABLE FROM IM_RECORD.
if sy-subrc = 0.
ex_return = '1'.
else.
ex_return = '0'.
endif.
Thanks,
Naren
‎2006 Aug 23 11:56 PM
‎2006 Aug 24 12:15 AM
Hi Seshu,
One important thing while craeting the RFC is while declaring the parameters don't forget to check <b>pass value</b> check box.
Regards,
Azaz Ali.
‎2006 Aug 24 12:20 AM
Hi,
is this correct??
Export
RETURNSTATUS Type Char3
Tables
ITAB like zstudent
Code:
FUNCTION ZSTUDENT_INS.
insert zstudent from table itab.
if sy-subrc = 0.
RETURNSTATUS = 'Yes'.
else.
RETURNSTATUS = 'No'.
endif.
ENDFUNCTION.
‎2006 Aug 24 12:25 AM