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

Former Member
0 Likes
727

hi

plse guide me how to upload the sap table with legasy data(Inbound) using RFC.if possible plse give one example

thanks with regards

serma

6 REPLIES 6
Read only

Former Member
0 Likes
696

Hi,

Why aren't you looking at LSMW?

If you need RFC for whatever reasons, you need to develop a custom remote function module and in the FM use BAPI / standard IDOC methods / BDC for legacy data upload.

Rgds,

HR

Read only

Former Member
0 Likes
696

A BAPI is an RFC by default.

You have to choose the bapi according to your requirement.

Regards,

Ravi

Read only

0 Likes
696

plse can i have some more information how to upload with RFC.please....

with regards

serma

Read only

0 Likes
696

Hi Serma,

first come up with what exactly you are looking for ?

then only we can help you to solve it.the scenario i explained is asper my client requirement,i developed like that.

or even you check up is there any existing BAPI's available for your requirement ?

regards

srikanth

Read only

0 Likes
696

hi srikanth

many thanks for your reply.

this is my requirement:

i have a legacy data (this may be flat file or like a table) i want to upload this data to sap custom table(created by us)using RFC.customer want to get sap data with his non-sap system.

i hope i am clear..

plse guide me

with regards

serma

Read only

Former Member
0 Likes
696

first you need to create a function module in SE37.

then in attributes tab, PROCESSING TYPE shold be REMOTE ENABLED MODULE.

define the parameters

in my case, i am gettting the file name(application server file name) & i have to send the RESULT to the caller.

based on that requirement, i created the function module,

FUNCTION Z0MM_SCM_FNC_EVCOR_DELIVERY.

*"----


""Global interface:

*" IMPORTING

*" VALUE(P_FILENAME) TYPE RLGRAP-FILENAME DEFAULT

*" 'EVCOR_DELIVERY.txt'

*" TABLES

*" RETURN STRUCTURE BAPIRET2

BAPIRET2 <-is the return err/success table to the CALLER

P_FILENAME <-is the value coming from the caller,indicating the name of the file on application server.

once i read those file contents, you can use either CALL TRANSACTION or BAPI to update the tables.

revert,if you need any further help.

regards

srikanth