cancel
Showing results for 
Search instead for 
Did you mean: 

Integration Advisor MAG XSLT Mapping function help

03-02-2023 3:14 AM
saranwin Contributor
1487 views 1 comments
0 Likes
SAP Managed Tags
Subscribe

Hello All,

I have a requirement to convert MATMAS IDOC into EDI 888 using the integration advisor MAG. I was able to perform the majority of the mapping manually. But got stuck when I wanted to map the IDOC Segment E1MARMM(0..9999) value to Node G39 Node(0.1).

Here E1MARMM (0.9999) will have more than once and i need to map to G39 only when E1MARMM-MEINH = 'CS'(this value will come once per material number, but the position will be dynamic.).

But the challenge i have is multiple values are populated to target leaf node from source node. or very first iteration value is getting populated even if give the below code in XSLT function.

Thanks

Saran

0 Likes

Accepted Solutions (0)

Answers (1)

Answers (1)

alex_bundschuh
Product and Topic Expert
Product and Topic Expert

The Integration Advisor comes with really cool feature to map qualified nodes, by creating and duplicating qualified nodes in the MIG you boil down the mapping in the MAG to a 1:1 field mapping, the generated XSLTs then come with a pre-mapping to map your document to the source structure with the duplicate qualified nodes, the actual mapping, and a post-mapping to map the target structure with the duplicate qualified nodes to the actual target structure

Check out this blog for instance

https://blogs.sap.com/2019/12/09/integration-advisor-the-precision-of-semantics-use-of-qualifiers/

Alex