‎2006 Jun 27 4:21 AM
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.
‎2006 Jun 27 4:36 AM
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>
‎2006 Jun 27 4:28 AM
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
‎2006 Jun 27 4:36 AM
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>
‎2006 Jun 27 4:41 AM
IF i have remote function in external system than how can I call
‎2006 Jun 27 4:51 AM
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>
‎2006 Jun 27 5:08 AM
‎2006 Jun 27 5:13 AM
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.