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 module for fetching data from external system

Former Member
0 Likes
1,408

Hi,

Can anybody please suggest how to make use of RFC function module .

I have a unix server and the flat file is residing there.

I have to create a structure and use the structure in RFC function module and upload the flat file to SAP r/3.

I havenot worked with rfc'S can anybody give the idea of using RFC is such senarios.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
824

Hi,

I think you should move the file either in the presentation or the application server.

I dont understand how will RFC help this case.

RFC are remotely enabled function so they can be called from R/3 or non R/3 systems.

I guess you have R/3 on one system and the unix server is just containing the files.(Please correcty me if i am mistaken).

There would be no remote function on this file server which you can call from your system.

Move the file to presentation server and use GUI_UPLOAD.

Regards,

Tanveer.

<b>Please mark helpful answers</b>

6 REPLIES 6
Read only

Former Member
0 Likes
824

Hi,

I am not sure of the usage of the RFC's in this context.

If you want to read a file from the application server, use the OPEN DATASET, READ and CLOSE DATASET commands.

You can find more help on this here

http://help.sap.com/saphelp_nw04/helpdata/en/79/c554dcb3dc11d5993800508b6b8b11/frameset.htm

You can upload the entire file into a internal table which a a field of string data type and after that loop at the table and process the data according to your logic (Either length delimited, ',' delimited.

Ig you want to do this remotely, you can put all this logic in the function module and make it remote enabled.

Regards,

Ravi

Note : Please mark the helpful answers

Read only

Former Member
0 Likes
825

Hi,

I think you should move the file either in the presentation or the application server.

I dont understand how will RFC help this case.

RFC are remotely enabled function so they can be called from R/3 or non R/3 systems.

I guess you have R/3 on one system and the unix server is just containing the files.(Please correcty me if i am mistaken).

There would be no remote function on this file server which you can call from your system.

Move the file to presentation server and use GUI_UPLOAD.

Regards,

Tanveer.

<b>Please mark helpful answers</b>

Read only

0 Likes
824

IF i have remote function in external system than how can I call

Read only

0 Likes
824

Hi Mave,

If you have remote function in this external system, then the question is

1.Wheteher the remote system is R/3?

In this case your job is easy. You write the function module to upload the data using OPEN DATASET in the remote function.

Get all data in an internal table which is a table parameter in the FM.

Make sure that the FM attribute is set to Remotely enabeled.

Call this function from the remote system.

You would get the contents in the internal table.

2. the remote system is not R/3?

You would have to use external Java connector to get the data.

Regards,

Tanveer.

<b>Please mark helpful answers</b>

Read only

0 Likes
824

Tanvir can you give me your contact no.

Read only

0 Likes
824

Hi,

I will call you..

I am not carrying my cell today..

Let me know your contact number.

You can mail it to me at

tanveer.shaikh@wipro.com

Regards,

Tanveer.