cancel
Showing results for 
Search instead for 
Did you mean: 

Bundling ORDERS05 IDOC

Former Member
0 Kudos

Hi all,

We have a problem with bundling the IDOCS in Message Mapping. We have a requirement to convert more than one ORDERS05 IDOCS to one ‘flat’ XML file.

When the IDOC has the following data, the mapping works well:

Input IDOC:

IDOC 1:

ORDERS05

- E1EDP01

--- POSEX 0010

- E1EDP01

--- POSEX 0020

- E1CUCFG

--- POSEX 0010

-


E1CUVAL 10-1

-


E1CUVAL 10-2

- E1CUCFG

--- POSEX 0020

-


E1CUVAL 20-1

-


E1CUVAL 20-2

IDOC 2:

ORDERS05

- E1EDP01

--- POSEX 0010

- E1EDP01

--- POSEX 0020

- E1CUCFG

--- POSEX 0010

-


E1CUVAL 10-1

-


E1CUVAL 10-2

- E1CUCFG

--- POSEX 0020

-


E1CUVAL 20-1

-


E1CUVAL 20-2

Output Message:

IDOC 1:----


IDOC 2:

Position number: 0010----


Position number: 0010

Configuration1: 10-1----


Configuration1: 10-1

Configuration2: 10-2----


Configuration2: 10-2

Position number: 0020----


Position number: 0020

Configuration1: 20-1----


Configuration1: 20-1

Configuration2: 20-2----


Configuration2: 20-2

However when you miss one E1CUCFG node, you will get a confusing result:

Input IDOC:

IDOC 1:

ORDERS05

- E1EDP01

--- POSEX 0010

- E1EDP01

--- POSEX 0020

- E1CUCFG

--- POSEX 0020

E1CUVAL 20-1

E1CUVAL 20-2

IDOC 2:

ORDERS05

- E1EDP01

--- POSEX 0010

- E1EDP01

--- POSEX 0020

- E1CUCFG

--- POSEX 0010

-


E1CUVAL 10-1

-


E1CUVAL 10-2

- E1CUCFG

--- POSEX 0020

-


E1CUVAL 20-1

-


E1CUVAL 20-2

Output Message:

IDOC 1:----


IDOC 2:

Position number: 0010----


Position number: 0010

Configuration1: 20-1----


Configuration1: 20-1

Configuration2: 20-2----


Configuration2: 20-2

Position number: 0020----


Position number: 0020

Configuration1: 10-1----


Configuration1: 10-1

Configuration2: 10-2----


Configuration2: 10-2

We have tried standard functions like: useOneAsMany, CreateIf, if, ifWithoutElse, collapseContext, etc. in the graphical mapping tool but it doesn’t work.

Could you please take a look at this problem?

Appreciate any help on this,

Kind regards

Kamran Vakili

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Ive solved this problem