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

RFC Function

Former Member
0 Likes
765

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
716

Correct...

THanks,

Naren

8 REPLIES 8
Read only

abdul_hakim
Active Contributor
0 Likes
716

Hi

Where is the user defined table located?

Cheers,

Abdul Hakim

Read only

0 Likes
716

Hi,

Table is in R/3

and i am sending data from Other Application (non r/3).

Thanks

Seshu

Message was edited by: Seshu

Read only

0 Likes
716

hi

check whether the fm RFC_TRANSFER_TABLE meet ur need.

else u need to create RFC Fm..

Cheers,

Abdul Hakim

Read only

Former Member
0 Likes
716

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

Read only

former_member181966
Active Contributor
0 Likes
716

Check FM "RFC_READ_TABLE" for example !!

Thanks,

Saquib Khan

Read only

Former Member
0 Likes
716

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.

Read only

0 Likes
716

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.

Read only

Former Member
0 Likes
717

Correct...

THanks,

Naren