cancel
Showing results for 
Search instead for 
Did you mean: 

Produce multiple target nodes

Former Member
0 Kudos

Hi Experts,

In my SOAP to RFC scenario , the SOAP req contains one input value i.e. MAtnr . I have mapped this field with a field Mat_Number in RFC -Req . Its simply direct mapping . Its working for a single value perfectly .

My requirement is If SOAP -Req contains many matnr values , Its not working . How can I build this MEss Mapping to produce multiple Mat_Number field in RFC-Req.

Presently It is MATNR----


>MAT_NUMBER.

Can you pls suggest how to build mapping to produce multiple MAT_NUMBER .

Thanks.

Drumi

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

How can I build this MEss Mapping to produce multiple Mat_Number field in RFC-Req.

It really depends on how you handled the context of the MAT_NUMBER parent node. Can you provide the mapping for the parent node of MAT_NUMBER so that we can help you more?

Hope this helps,

Mark

Former Member
0 Kudos

Mark,

This is source and target structures.

Source::

MT 1..1

-Records 1..Unb

-Matnr 1..Unb

Target::

ZRFC 1..1

-IMPORT 1..1

-Item 0..Unb

- werks 0..1

Here I have mapped matnr -


> werks and Records -


> item .

Can you now explain If I want multiple werks values at target side .

-Drumi

Former Member
0 Kudos

Mark,

This is source and target structures.

Source::

..........MT 1..1

..............-Records 1..Unb

....................-Matnr 1..Unb

Target::

ZRFC 1..1

......-IMPORT 1..1

.............-Item 0..Unb

....................- werks 0..1

Here I have mapped matnr -


> werks and Records -


> item .

Can you now explain If I want multiple werks values at target side .

-Drumi

rajasekhar_reddy14
Active Contributor
0 Kudos

You mapping correct, you will get multiple items with MATNR if you receiver multiple records in source.

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

I agree with Raja, your mapping is correct. Try testing it using multiple sources.

Hope this helps,

Mark

Edited by: Mark Dihiansan on Jun 14, 2011 12:00 PM

Edited by: Mark Dihiansan on Jun 14, 2011 12:01 PM

Former Member
0 Kudos

Dear all,

It is working if I give source structure as

<?xml version="1.0" encoding="UTF-8"?>

<ns0:MT_WS_Req xmlns:ns0="xxx">

....<Records>

......<PlantId/>

....</Records>

....<Records>

......<PlantId/>

....</Records>

</ns0:MT_WS_Req>

But i want if multiple plant id's are in the same record..like...

<Records>

.........<PlantId/>

.........<PlantId/>

.........<PlantId/>

</Records>

Can you suggest how to build this mapping . any udf required?

-Vijay

rajasekhar_reddy14
Active Contributor
0 Kudos

Change ocurance of werks to 0 to unbounded,so that Werks can hold mutiple values

or

wite a logic to genarate mutiple item segements in target when you receiver request data like below.

<Records>

.........<PlantId/>

.........<PlantId/>

.........<PlantId/>

</Records>

Regards,

Raj

Former Member
0 Kudos

Dear all,

Solved the prolblem.

mapped plantid with item in rfc struc .and also mapped planid with werks with combination of split by value[each value ].

Now i m getting o/p , if duplicate subtree at Record level sub struc and also at plantid element it self.

-Drumi.

Answers (2)

Answers (2)

Former Member
0 Kudos

Dear all,

Solved the prolblem.

mapped plantid with item in rfc struc .and also mapped planid with werks with combination of split by valueeach value .

Now i m getting o/p , if duplicate subtree at Record level sub struc and also at plantid element it self.

-Drumi.

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi ,

First you have to check how RFC structure defined,if RFC structure supports only one MATNR at a time, then RFC structure change required.

Regards,

Raj