cancel
Showing results for 
Search instead for 
Did you mean: 

File Scenario Confusion

Former Member
0 Kudos

Hi Experts

i am facing confusion in my scenario. my scenario/requirement is as follows

A Text file ahs to be picked from soure directory xxxx/xxx/IN by PI and it has to be processed by PI, afetr that the file is being sent to the R/3 side , where there are using the Proxy and also an enhancement. When the file reaches the proxy, the Enhancement fills up with some data in the file and it is being sent again to the Application server, from there again the PI has to pick up the file and sned/store in another FTP location xxxx/xxx/OUT.

1) How can i achieve this requirement?? how shld i approach this???

please suggest me

thanking you in advance

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

you can either make use of the RequestResponseBean and implement Async-Sync bridge....or implement it as two separate Async scenarios.

Any specific thing that you are looking for....your query is quite generic.

Former Member
0 Kudos

Hi Abhishek

It means that i haveto develop two Async scenarios

file--PIProxy, and proxy-PI----File.

one more thing , in my case the sender file structure and the receiver structure are same, so no mapping is provided.

former_member200962
Active Contributor
0 Kudos
It means that i haveto develop two Async scenarios
file----PI----Proxy, and proxy---PI----File.

It is one of the available options....easy to implement (at least in XI/ PI).

one more thing , in my case the sender file structure and the receiver structure are same, so no mapping is provided.

Yes, you dont need a mapping in that case.

Update:

As per my understanding you need to create objects in IR/ ESR ....only mapping wont be required....you have a PROXY scenario....for proxy to be developed you need to have a structure in XI/ PI....and for that you need to define Data Type (or External Definition) and create Message/ Service Interface.....so you will need IR part....hope its correct.

Regards,

Abhishek.

Edited by: abhishek salvi on Aug 10, 2010 1:39 PM

Former Member
0 Kudos

Hi Abhishek

yes, i have created one DT,one MT, 2 Message interafces. No mapping is involved.

can you provide me blogs which suit my requirement.

file to proxy

proxy to file

thanx in advance

former_member200962
Active Contributor
0 Kudos
can you provide me blogs which suit my requirement.
file to proxy
proxy to file

The blogs can be easily searched on SDN....you may not find blogs that show FILE --> PROXY and vice versa specifically....however you can find blogs whihc show how to configure a FILE channel in sender mode and a PROXY in receiver mode.

In the configuration if you have any specific requirement then do post....somebody from SDN can help you out.

Regards,

Abhishek.

Former Member
0 Kudos

Hi Abhishek

thanks a lot for your help. i have one more small doubt, for my requirement i ahve to develop two Interafces or only one single interafce is enough.

please help me out.

Former Member
0 Kudos

Hi,

> thanks a lot for your help. i have one more small doubt, for my requirement i ahve to develop two Interafces or only one single interafce is enough.

Here you have to develope 2 interfaces

1. File to Proxy

2. Proxy to File

Check this links

/people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy ABAP Client proxy(proxy to file)

/people/siva.maranani/blog/2005/04/03/abap-server-proxies ABAP Server proxy

Regards

Ramesh

Answers (4)

Answers (4)

Former Member
0 Kudos

Answered

Former Member
0 Kudos

Hi Phalguna,

It seems like you can do your scenario with one interface only. Check this wiki:

http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without%20BPM%29

Here instead of RFC you can use your proxy as synchronous and can acheive the desired results. Instead of writing the file from sap on to application server they can send back to you in the same call and you can write it back to the OUT folder.

Regards,

---Satish

Former Member
0 Kudos

Hi Sateesh

In my requirement we are using only one data type as both the sender and the receiver data types are same.i have created one DT,one MT and two messag Interafces.

here no mapping is also involved in my requirement.

still can i use the approach u have sent m e???

thank you

stefan_grube
Active Contributor
0 Kudos

In total you need 4 interfaces:

file_out, proxy_in, proxy_out, file_in

All 4 interfaces can use the same MT

You create two ABAP proxies from the proxy interfaces. Inside the implementation of the inbound proxy ABAP class, you call the outbound proxy.

Former Member
0 Kudos

Hi Stefan

Sorry to ask, but could u be a little more clear,unable to understand plz

4 interafces

thank you

former_member200962
Active Contributor
0 Kudos
Sorry to ask, but could u be a little more clear,unable to understand plz
4 interafces

See if you are using two ASYNC scenarios FILE --> PROXY and PROXY --> FILE then you need to create 4 Message Interfaces

File --> PROXY: FILE_Sender_Out, PROXY_Receive_In,

PROXY --> FILE: PROXY_Sender_Out, FILE_Receive_In

All will be using the same Message Type.

Update:

still can i use the approach u have sent m e???

If you are planning to make use of the RequestResponseBean then you will need two SYNC Message Interfaces.....one FILE_Sender_Out_Sync and the other PROXY_Receiver_In_Sync.

One doubt i have....in normal cases the request and the response structures are different....however you are using only one DT...is this one DT having all the fields of request and response?

Edited by: abhishek salvi on Aug 12, 2010 5:09 PM

Former Member
0 Kudos

Hi Abhishek

Yes this DT contains all the feilds

yes the structure is same; File Structure; PI has to pick the file from FTP location and it processes through proxy and in that file it uploads some data and tht uploaded file has to be picked and store in another FTP location.

So tahtz the reason i am creating only one Data Type as Mapping is not required..

I think i have to use the FCC parameters even though i approach the genral two ASYNC scenarios FILE --> PROXY and PROXY --> FILE or the RequestResponseBean as the file is a text file. ??? doesnt i ???

thank you

stefan_grube
Active Contributor
0 Kudos

> I think i have to use the FCC parameters even though i approach the genral two ASYNC scenarios FILE --> PROXY and PROXY --> FILE or the RequestResponseBean as the file is a text file. ??? doesnt i ???

Yes. You have to.

Former Member
0 Kudos

Hi Stefan

i am thinking i shld be using the FCC both for the Sender and the Receiver File CC.

thank you

Former Member
0 Kudos

Ur will be two scenarios

1) File to Proxy - Once u get the data in proxy u fill the required enhancement data in another proxy structure then send that data through outbound proxy. U can call that out bound proxy method from the Inboud Proxy

2) Proxy to File-Once ur data is filled by the code inside inbound proxy u call outbound proxy method which will send data to PI and then PI will generate the out put file.

IF both the structure is same then no need for Design.

How to send any data (even binary) through XI, without using the Integration Repository

/people/william.li/blog/2006/09/08/how-to-send-any-data-even-binary-through-xi-without-using-the-integration-repository

Chirag

Edited by: Chirag Gohil on Aug 10, 2010 1:30 PM

Former Member
0 Kudos

Hi,

Here you use the RFC lookups, if it is not mandatory using the proxy.

otherwise you have to use the BPMs

Regards

Ramesh