cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to duplicate subtree E1EDK14 for ORDERS05

Former Member
0 Kudos

Hi,

For File to Idoc flow, my mapping requirement is

For E1EDK14,

ORGID/QUALF=012 ORGID = ORDERTYPE

ORGID/QUALF=008 ORGID = SALESORG

For that, I have to duplicate subtree E1EDK14 and map it from the source field.

But when I save it the second node of of E1EDK14 is deleted with message.

*

Target structure has no such path:

/ORDERS05/IDOC/E1EDK14[1]/ORGID. Skipping mapping

*

Note that the occurance of E1EDK14 is 0..12

Is there any way to achieve this?

regards,

Anirudh.

Accepted Solutions (1)

Accepted Solutions (1)

SudhirT
Active Contributor
0 Kudos

Hi Anirudh,

You can achieve the above condition by checking the conditon of source filed which is mapped to Qualifier field of idoc and with check you can map it to OrderType. like

if --->SourceField -->Equals --> 012 then ---> ORDERTYPE --->OrgID

and foe second case

if --->SourceField -->Equals --> 008 then ---> SALESORG --->OrgID

Otherwise if you want to duplicate Create New mapping and first duplicate the Segment and then proceed with the mapping.

Thanks!

Former Member
0 Kudos

Hi Sudhir,

Its not conditional, I have to map both.

For this I have to duplicate subtree which is not getting saved.

Only the first remains, others get deleted while saving.

regards,

Anirudh.

SudhirT
Active Contributor
0 Kudos

Hi Anirudh,

You need to create new mapping import the message types and duplicate the structure first and map all the fields(of duplicate segment) before saving the mapping.

Then save the mapping. It should work without skipping.

Thanks!

Former Member
0 Kudos

Hi Sudhir,

What should be imported and what message type should be in the new mapping?

regards,

Anirudh.

SudhirT
Active Contributor
0 Kudos

Hi,

It will be same mapping as you did earlier, Just wanted to say that recreate it. Same message types no change just recreate it from start.

Thanks!

Former Member
0 Kudos

Are you talking about the two stage mapping?

Or you mean, to create a new message mapping and duplicate the subtrees first and then start mapping nodes?

If latter is the case then its not working.

regards,

Anirudh.

SudhirT
Active Contributor
0 Kudos

Hi Anirudh,

What I meant is the later case only. Follow these steps.

1. Create A new Mapping

2. Enter the Source and Target Message Types

3. Duplicate the Node you want to.

4. Do the mapping like this.

Map Segment E1EDK14 and Segment field under this segment with the Constant function any value.

2. map the QUALF and ORGID fields

Save and Activate it should not loss the mapping.

Thanks!

Former Member
0 Kudos

I have done the same but still no luck.

SudhirT
Active Contributor
0 Kudos

Hi Anirudh,

Dont know why its not working in your case.Just give it a last try.

Go to Edit mode in Mapping --> Right Click on segment E1EDK14 >Choose Duplicate Subtree> Map E1EDK14 with Constant --> Map Segment field under E1EDK14 with Constant.

If this doesnt work, I cant say the reason, Bcoz its working here without error.

Thanks!

prateek
Active Contributor
0 Kudos

But when I save it the second node of of E1EDK14 is deleted with message.

The only thing required is as soon as you duplicate the subtree, just map the duplicate E1EDK14 with source node or blank constant before saving it.

Regards,

Prateek

Former Member
0 Kudos

JRE that I have is 1.6.0_3

Can this be an issue?

regards,

Anirudh.

Former Member
0 Kudos

Yes,

I have done that.

SEGMENT was mapped to 1.

Other tags with source values.

Could JRE version be the problem?

SudhirT
Active Contributor
0 Kudos

No,

I dont think it will affect internal mapping functionality.

After doing the changes suggested before saving just choose check from Messagemapping menu and see the result, if there is any other field unmapped, then it will give error.

Thanks!

Former Member
0 Kudos

Hi,

Its working.

It was my mistake. After duplicating, I didn't map E1EDK14 with any value. I mapped all the child node beneath.

Thanks Sudhir/Prateek.

Answers (0)