cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping of Multiple occurences of source field to target

Former Member
0 Kudos

hi,

my scenario is flat file to idoc.

my flat file structure is as below:

docheader

product1

product description1

product2

product description2

in idoc,i need to map product to E1EDP01 and product description to E1EDP19 which occurs inside E1EDP01.

now if i directly map product node to E1EDP01 node and product description to E1EDP19,

Product --> E1EDP01

Product description --> E1EDP19

i will get 2 E1EDP01 nodes .but each E1EDP01 node will be having two E1EDP19 nodes corresponding to incoming 2 product description.

E1EDP01 --> Product1

E1EDP19 --> Product description1

E1EDP19 --> Product description2

E1EDP01 --> Product2

E1EDP19 --> Product description1

E1EDP19 --> Product description2

how to do the mapping such that my first product description goes into first product target mapping and my second product description goes into second product mapping?

E1EDP01 --> Product1

E1EDP19 --> Product description1

E1EDP01 --> Product2

E1EDP19 --> Product description2

thanks,

Anuradha

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Can you display the file structure?

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

If your product description occurance is 1..1. Then u can use the node function SplitByValue.

Product description --> SplitByValue --> E1EDP19

Regards

San

Former Member
0 Kudos

product decription occurence is 0 to unbounded

Former Member
0 Kudos

Could you give us more information posting the MT used for the file?

Do you have always only 2 products in the file?

About mapping I suggest you to see the following blogs:

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

/people/sravya.talanki2/blog/2006/12/26/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-ii