Skip to Content
avatar image
Former Member

How to control sequence of mapping processing in AIF?

Hello AIF fans!

I'm facing an issue with AIF for which can't find any applicable customizing solution.

Need to process a rather complex interface mapping, consisting of three main structures and multiple substructures/tables inside. Smth like this:

Vehicle Interface

- System Information

-- ...

- Vehicle Information

-- ...

-- ...

- Order Document

-- ...

-- ...

In my mapping I have to determine some fields in Order Document mapping depending on the values, previously determined in Vehicle Information mapping and stored in some target structure fields. But the problem is (if I understand it correctly) that AIF processes mappings in alphabetical order of _source structures_, so mapping for Order Documents structure runs _before_ mapping for Vehicle Information (cause O is before V). So at the time of Order Document is being processed values are not determined in Vehicle Information.

Have no idea how to solve this issue if not doing everything in FM (which than makes use of AIF much less handy). It there any solution?

From my POV it would be nice to have additional sequence field in /AIF/T_INTREC table (where source structures are maintained) as non-key field  but having priority over RECTYPE for sorting. It can be defaulted to 0 when not needed (in this case AIF will work as it does now), but if maintained, it can provide ability to alter processing sequence.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Oct 21, 2015 at 06:25 PM

    Hi Petr,

    we had the same problem. But it was only one field mapping (cost center in line) where we needed a target value that has not been mapped (company code in header). For this single field mapping instead of using a nice AIF value mapping, we created a AIF value mapping function module, where we call the later value mapping (company code) at first and then the planned value mapping (cost center) for this single field.

    A nice easy AIF solution looks different, but this was the quickest way.

    Best wishes


    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Christoph,

      We are facing one problem realated to Field Value Mapping . We have to use custom mapping for the one field in nested structure .

      We are using the standard IDOC PRODCH for purchase order change.

      I have structure like this


      1.  EDIDC

      2.  PRODC

               E1BMEPOHEADER ---- Stru

               E1BMEPOITEM  ----- TTYP

      I am able to map the field CMP_CODE in E1BMEPOHEADER .I have created one custom table and maitain the value there is one to one mappng . This is working fine. For this I have created one value mapping v_map1

      But when I tried to do same for the PLANT in E1BMEPOITEM it is not working .  May be becuase it is table . For this also i have created v_map2 . Where I have 1-1 mapping for PLANT.

      May be in Structure mapping I am not able to do correctly.

      Could you please help me if such mapping possible.