cancel
Showing results for 
Search instead for 
Did you mean: 

AIF Structure mapping: Control the processing order?

Former Member
0 Kudos

Hi AIF Community,

we identified following behavior in the AIF structure mapping processing:

The order in processing the structure mapping is the same as displayed in the structure mapping customizing. It is the alphabetic order of the source structures. In case you cannot control the naming of the source structures you cannot control the order of the structure mapping processing. In a field mapping you need to use a target value from another structure (e.g. company code in a header structure) that is processed afterwards we need to implement function modules extra for this field mapping. The simple existing AIF value mappings cannot be used in this case.

Does someone had also the same problems and used another better solution?

Is there any possibility to control the order of the structure mappings besides the naming of the source structures?

Best regards

Christoph

View Entire Topic
0 Kudos

Good day everyone,

I realize that this is most probably far too late but I also had this issue and found a way around it.

When we are defining the destination structures for the source structure we can have the same destination structures several times over.

This way we can influence the processing order.

For example, my issue was that MATNR needed a conversion routine before any other mapping ran.

I created one destination structure 010 where the only value mapping is for the conversion routine.

I then created a second 020 destination structure for the same source structure where all remaining value mappings/checks were defined.

Hope it helps.

--

Pedro Cerveira Pinto

0 Kudos

Great Idea!! I also had similar Issue GTIN number conversion in a Goods Movement interface. Thanks.Let me try this.

0 Kudos

Unfortunately my test scenario when I read this topic was prone to misleading. What actually happened in my real scenario was that the value mappings from the first destination structure were cleaned and the second structure mapping ran afterwards. So sorry for having mislead someone else. I eventually solved my real scenario by calling a custom function module that takes care of all conversion routines before the mappings take place. I realize it's an overkill but I very much wanted as much as possible in AIF so that ABAP team is not always needed when something fails.

Again so sorry for misleading. Next time I will definitely test more before posting.