cancel
Showing results for 
Search instead for 
Did you mean: 

File to RFC scenario

Former Member
0 Kudos

Hi All,

I have Flat file to RFC Scenario.Where we have multiple flat file in text format that needs to send to Z table through RFC function module.

Please send the procedure for that.

Thanks

Edited by: laxmi bhushan on Mar 9, 2009 5:45 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I think the requirment is, The source file has multiple records and these records has to be passed to BAPI.

If you are searching for the above requirement please find the following solutions.

Create a BPM , The BPM should use a Block of type for Each, and inside the block a call to RFC is made for each record in the source file.So the BPM should have the following configuration

Receiver(For receiving message from File) , Message Transformation(for 1:N, As RFC can handle only one call at a time) and A block of type For Each(Each message would be executed)

Thanks,

Kiran.

Answers (2)

Answers (2)

venkatanarayana_vagu
Active Participant
0 Kudos

Hi ,

there is a web blog on file to rfc using BPM

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

File to Rfc with out BPM:

One possible solution trigger RFC from ABAP Proxy and use a XI adapter (receiver) Asynchronously to call the proxy..Obviously RFC call will be managed within the proxy..There are some blogs depicting this approach.

Check out this link where you wil find how to send response thru RFC to file by using Proxies ...

[original link is broken]

SP 10 on PI and XI 3.0 on SP 14 , then check this thread where Bhavesh given the solution,.

Former Member
0 Kudos

FILE - XI - PROXY is an easy solution you can think about instead of using RFC.

Steps : Create a data type with all fields of your file and then message type

Make sure when you create the data type you have a 1:unbounded node and under that you have all your fields.

Create two message interfaces ..one outbound asynch and second inbound asynch ( you can use the same message type).

Cretae a message mapping & interface mapping .

Go to SPROXY transaction in SAP - find your inbound message interface and generate proxy for that MI.

This will create a provide class - method and inside the method you can write the code for updating the Z table. you will have all the data from file inside the method in your input paramater

input-<mesgtype>-<table type>

In ID - create a File comm channel and a XI receiver communication channel.complete the other config as common for any other normal asynch scenario.

I believe here your development effort will be much lesser than developing an RFC function module and then developing a file to rfc scenario...

Mathews

former_member192295
Active Contributor
0 Kudos

Hi,

Through FCC we can read flat files, configure source file adapter according to your requirement and read files.

Find below link for file to rfc configuration

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file%28without+bpm%29

or

follow below steps

1. First import RFC structure from R3 to XI/PI

2. Configure sender data structure according to your requirement (all files should be same structure, else throw error)

3.In sender communication channel enable options advanced files to read multiple files. if all files have same names no need to enable, mention *.* option in file name column

4. Configure scenario according to above mentioned link.

5. If you want response message file configure one more channel else no need.

I hope now clear.