Skip to Content
A B

Proxy to Multiple Files!

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Jan 09, 2014 at 11:03 AM

    Hi Sam,

    You can go for multi-mapping you have to change the occurance of your target message structure and

    then first sort data by plant & create new message (root node) when plant changes for that you can use SplitBy(Valuechange) function

    You can see following blog:

    Yes it is possible to dynamically define the name of file in Multimapping……………..

    Multiple Idoc Segment occurance to Multiple File – 1 to N Multimapping

    Regards

    GB

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2014 at 12:09 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2014 at 11:10 AM

    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-c892473f1571?overridelayout=t…

    it has the scenario that you need, you only need to change FTP protocol by File protocol.

    Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 09, 2014 at 11:33 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.