cancel
Showing results for 
Search instead for 
Did you mean: 

creating duplicate idoc segment

Former Member
0 Kudos

Dear All,

I am mapping a source ERP SHPMNT  idoc to a SHPMNT ERP idoc. The requirement is to produce two E1EDT13 segments with QUALF ='008' and QUALF '001'.

Regardless if the source has more than 2 E1EDT13 segments the target should always have two E1EDT13 segments with 2 fields under the E1EDT13 as below.

QUALF =  008     THEN NTANF = system date

QUALF = 001     THEN map NTANF = ISDD

I am able to produce one E1EDT13 segment with QUALF = 008 and NTANF = system date but unable to produce the second segment with QUALF = 001 and map the NTANF to ISDD from source IDoc.

Please advice.

Thanks,

Teresa

Accepted Solutions (1)

Accepted Solutions (1)

former_member184681
Active Contributor
0 Kudos

Hi Teresa,

The steps to follow:

1. In Message Mapping editor, right-click the E1EDT13 segment and choose Duplicate Subtree option. This will duplicate the segment in the mapping editor.

2. For one instance of the segment, use the mapping you already have, that provides QUALF = 008 and NTANF = system date.

3. For the other segment instance, prepare a new mapping for QUALF = 001 and NTANF.

Regards,

Greg

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi ,

Option1:

Greg already sugegsted

If you want to create number segments dynamically then try Option 2.

Option2:

Extend IDoc to support multiple segment and change Segment occurance to unbounded.

Back ground in ECC IDoc program logic should be changed.

But in your case Option1 should work.

Regards,

Raj