cancel
Showing results for 
Search instead for 
Did you mean: 

Way to change the Message based on Imported IDoc

Former Member
0 Kudos

Hi,

I just want to know if there is way to change the message based on Imported IDoc?

Basically I imported an IDoc from R/3, this Imported Object would display just one of the Segment for where there are max allowable limit is n segment (the same segment), now during message mapping I need to have more than one Segment of same type...Wasn't sure how to add more segments?

Thanking in advance

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Rajan,

If I have understood you correctly you,you mean that you have imported an Idoc with a segment with cardinality 0..unbounded(n) and you want to reproduce the segment n times in the target structure.

you need not change the cardinality.This needs to be done in the mapping itself.just map the source structure to the target segment, handling the context properly such that for every occurence of the source structure the corresponding segment is produced in the target.

Regards,

Sulakshana

Former Member
0 Kudos

Hi Rajan,

You can do it by downloading the XSD of imported idoc .

Open the XSD file in notepad and change the occurence of the segment to unbounded or what ever you want.

Then in mapping import the updated xsd.

Hope it helps.

Thanx.

Rekha

Former Member
0 Kudos

That amounts to using new message..right? I will lose all my old mappings ...

MichalKrawczyk
Active Contributor
0 Kudos

but remember that if you change the occurrence

the idoc will probably fail when you send it to r/3

Just to make sure check the occurrence of the segment in TCODE WE60 in R/3 - specifying your idoc message

that is if you want to send this idoc to R/3 of course:)

Regards,

michal

MichalKrawczyk
Active Contributor
0 Kudos

not always - please check if first

you can always not save the changes

very often when you use the same segments and tag names the mappings are not lost

Regards,

michal

Former Member
0 Kudos

The occurrence comply with IDoc definition.

There is 'Duplicate Subtree' in the context menu in Message Mapping (in Target Message), but while saving it discard that newly added subtree.

And if I change from Imported Object (Idoc) to XSD (with changed number of segment), the old mappings are gone....

I kind of in the middle, where I don't want to lose the already mapped data field (with Imported IDoc) and at the same time I want to add another similar type of segment