cancel
Showing results for 
Search instead for 
Did you mean: 

Repeating the target element representing different the source data.

Former Member
0 Kudos

Hi All,

While doing to a idoc to file scenario, I have a requirement where I have to repeat the single target node on couple of source fields.

Let us consider that our idoc and file structure are following:

consider the following Idoc segment:

E1EDPO1          0u2026..unbound
------------mantr
------------quantity
------------amount
ED1EDP02	0u2026..unbound
------------startdate
------------enddate
------------responsible_person
ED1EDP03 	1u2026.1
------------customer_id
------------customer_location

Consider the file structure

<Customer_details>
Customer		1u20261
<StructuredNode>  	0u2026..unbound
Generalnode		1u20261

Mapping:

Customer = customer_id + customer_location
Generalnode =  Mantr + quantity + amount
Generalnode = startdate + enddate + responsible_person

So now the Generalnode should be repeated twice representing the source data.

In the meanwhile tried with multiple combination of nodes function which didn't work.

Your reply will be appreciated

Thanks,

Lalitkumar.

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Lalitkumar,

just press "dublicate subtree" for Generalnode and fill the two nodes with function concat.

Regards,

Udo

Answers (5)

Answers (5)

Former Member
0 Kudos

issue resolved

Former Member
0 Kudos

Hi All,

Sorry for the late response.

thanks for the inputs. it worked.

I have rewarded everyone with the points.

thanks,

Lalitkumar.

RaghuVamseedhar
Active Contributor
0 Kudos

Hi lsrisrimal,

Please pay attention to occurance

Generalnode		1u20261

Regards,

Raghu_Vamsee

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi,

press right button on Generalnode and select dupplicate subtree. once you do it map the propers values.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

On the Target side mapping right click on general node and do duplicate subtree for it. Per requirement, use concat function for the mantr,quantity and amount for the first general node. For the second general node again use concat and do for start date, end date and responsible person. So simple.