cancel
Showing results for 
Search instead for 
Did you mean: 

Hierarchy level Mapping

Former Member
0 Kudos

Dear Gurus,

I am doing Idoc to file scenario where i have to send Merchandise Category idoc .

To store one total hierarchy of Merchandise information

the data is stored in 4 levels, if SAP is sending two hierachys

information so eight segments will be created in source idoc.

I am able to pick all the data properly , my problem is

when i map E1WPW01 segment to my target strucuture

i am getting 8 rows.. instead of two records..

Can anyone tell me how to achive this mapping.Any context mapping to achieve this..?

category id

parentsubcategoryid

subcategory id

parentid

E1WPW01 --- Warenger

E1WPW02---Description

E1WPW01 --- Warenger

E1WPW02---Description

E1WPW01 --- Warenger

E1WPW02---Description

E1WPW01 --- Warenger

E1WPW02---Description

Regards,

Vijay

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hello Experts,

Could you share the basic Idoc type to send the complete MCH structure data from SAP to other system.

I need to send 5 level MCH structure from SAP to MDM. Can anyone share your thought. Also what is the process to trigger this idoc.

Thank you in advance.

Venkat

Former Member
0 Kudos

Hello Experts,

Could you share the basic Idoc type to send the complete MCH structure data from SAP to other system.

I need to send 5 level MCH structure from SAP to MDM. Can anyone share your thought. Also what is the process to trigger this idoc.

Thank you in advance.

Venkat

justin_santhanam
Active Contributor
0 Kudos

Vijay,

>i am getting 8 rows.. instead of two records..

Could you tell us the condition to create target structure?

raj

Former Member
0 Kudos

Raj,

The Idoc which i tested has two Parentids which is distributed

in 8 segments,

One hierarchy stores in 4 levels as i have mentioned

If idoc has three parentids... it will be 12 segments..

when i map this to target structure..

based on idoc segments the target structure will be generated..

... if i have two hierarchys in idoc .. in target it should be only two records , rather than 8 records which i am getting now

hope i am clear..

Regards,

Vijay

justin_santhanam
Active Contributor
0 Kudos

Vijay,

Can u give the target structure with occurrence?

raj.

Former Member
0 Kudos

Raj,

MerchandiseHierarchy 1..1

Merchandise.................1---unbounded

Categoryid 0.1

Categorydescr 01

...

Hope it is clear...

Regards,

Vijay

justin_santhanam
Active Contributor
0 Kudos

Vijay,

One more question.

>The Idoc which i tested has two Parentids which is distributed in 8 segments,

Could you tell what does it mean- Parentid? Which field are u taking from source to map to Merchandise

raj.

Former Member
0 Kudos

Hello experts,

Could you share the basic IDoc type to send the complete MCH structure from SAP to other system. What transaction is used to generate the idoc.

Thank you,

Venkat

Former Member
0 Kudos

Hi,

Are you using any conditions like taking two fields from two different segments levels and mapping it to the target while mapping these source and targets

If yes means then use the Context Change option in Mapping

http://help.sap.com/saphelp_nw04s/helpdata/en/bd/ca1105c81c6742a0f8c8d49f8834bf/frameset.htm

If Mapping Fails for a Certain Message Type

http://help.sap.com/saphelp_nw04s/helpdata/en/29/e0194120ddf223e10000000a155106/frameset.htm

Regards

Seshagiri