on 01-09-2014 10:28 AM
Hi,
I have a proxy to file scenario. My requirement is to split the records based on plant and send it to different FTP location.
My target structure is same for all the plants but the location of server is different.
For eg.,
My source structure is
EAN
Plant
MaterialNo
My proxy will send records for both plants 1000 and 1100. My target structure is same for both plants.
Based on the plant 1000, the final output should be placed in one FTP and final output for 1100 should be placed in different output.
I will be getting 1.unbounded records.
Let me know how to achieve this design and effective way so that it can be reused for future plants as well.
Regards
Sam
Hi Sam
As different files has to be placed in different folder, one target interface will not enough. Below is the way by which you can achieve the solution
ESR design :
Create one service interface and message type for outbound proxy.
Create two service interface and two message types for inbound structure.
Create one message mapping which will have one message type ( proxy ) as source and two message type as target
inside the mapping put the logic if plant 1000 populate Message type1 ,if plant 1100 populate Message type2
Create one operation mapping with one service interface as source and two service interface as target.
ID Design:
In the ID part create one business component and two comm channels. 1 channel for file 1 which is for plant 1000, another for 1000.
You need to create two receiver agreement for two interfaces, interface 1 will contain channel 1 and interface 2 will contain channel 2.
Let me know if any doubts.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sam,
You can refer Inaki suggestion. Over and above you can use Mapping template and Value mapping also in the solution for different plant based combination.
One suggestio, if you can segregate the plant data in Proxy (say on user screen) that would be helpful. So you need only one Scenario created for all plants in IR and different ID objects per plant. This would ensure resuse of objects.
Also in case of further extension for diferent plant less efforts would be required.
Regards,
Hiren
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sam,
Follow Gagandeep suggestion. Check this document http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90dcc6f4-0829-2d10-b0b2-c892473f1...
it has the scenario that you need, you only need to change FTP protocol by File protocol.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.