cancel
Showing results for 
Search instead for 
Did you mean: 

How to create 1:N Mapping

Former Member
0 Kudos

Hi Guys ,

My  requirement is

          Source: FTP server (Data in delimited file)

                Target: WebService

File will contain multiple data blocks. Each block will be identified by a Unique ID (Reference ID). Need to generate one XML message per Reference ID.

Sample source File:

Reference ID

Part Number

1

A1

1

A2

1

A3

1

A4

1

A5

2

B1

2

B2

2

B3

3

C1

3

C2

3

C3

3

C4

3 XML message need to be generated at receiver side. Each message will contain data from one group (Reference ID). Please have a look at this requirement.

Here the tricky thing is  we created the mapping using 0..unbounded and can able to create multiple messages ,but we need to map to a second XSL mapping step to generate required structure for WSDL in target as shown in below screenshot.

  

please suggest solution  with/without BPM.

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Chennum,

You can find a lot of examples in the SCN.

At first you must decide to use a BPM or not, i think it's better not to use it.

You will achieve your goal with:

Multi-Mapping for the 1..N mappin, check this links:

http://scn.sap.com/docs/DOC-3820

http://scn.sap.com/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it-s-possible

I think your scenario is a FILE-SOAP one, there are some example of how use the file sender adapter http://scn.sap.com/docs/DOC-3716 and file content conversion for your purposehttp://wiki.sdn.sap.com/wiki/display/XI/Basic+File+Adapter+Content+Conversion

Finally if you need an extra mapping, there is no problem to add it in the operation mapping (interface mapping), you only need to know that the first mapping output will be the second mapping input.

Regards.

Former Member
0 Kudos

Hi Sai,

Please check the below link.

http://scn.sap.com/thread/1870165

Thanks,

Satish.