AnsweredAssumed Answered

Irrespective of the input data, is there a way to iterate the output record for specified number of times ?

Question asked by GirishRadhakrihsna1371 on Dec 3, 2013
Latest reply on Dec 7, 2013 by GirishRadhakrihsna1371
Hi ,

I have been trying to develop an map in which the source profile is customer XML and the target is IDOC xml.

IDOC  : MATMAS05

In this requirement, the customer is having 4 plant code's and each plant code inturn have many storage location.

Each plant code is being mapped to E1MARCM segment and inturn the storage location is mapped to E1MARDM ( which is inside E1MARCM )

so if suppose first plant ( say ABCD ) have 30 storage location then E1MARDM should repeat 30 times irrespective of the input data.
and
if suppose second plant ( EFGH ) have 3 storage location then E1MARDM should repeat 3 times irrespective of the input data.

Is there any way to implement this logic ?

Note : I dont want to promote the output records as it is dynamic in nature ( dont know exactly the number of storage location for particular plant ).

I have attached a snap shot of the required output, from this below image.

ARBG,ARSG,AREU refers to plant location.

E2MARCM004                                                        ARBJDEBV .....................
E2MARCM004                                                        ARSGDEBV..............
E2MARCM004                                                        AREUDEBV.................

BJFG, BJFR,BJMR,BJPY ...etc... refers to storage location under the plant ARBJ

E2MARDM001                                                        BJFGD                                              CN                                                   
E2MARDM001                                                        BJFRD                                              CN                                                   
E2MARDM001                                                        BJMRD                                              CN                                                   
E2MARDM001                                                        BJPYD                                              CN                                                   
E2MARDM001                                                        BJRAD                                              CN                                                   
E2MARDM001                                                        BJRED                                              CN                                                   
E2MARDM001                                                        WNFGD



0EM40000000PTWF

Thanks
Girish R


Outcomes