Skip to Content

AIF Inbound IDoc - Splitting Logic

Dear Experts,

I have an open question regarding an AIF Inbound IDoc scenario.
I am wondering wthether it is possible/advisable (without much programming effort) to do an IDoc-Split scenario with the AIF framework.

In the scenario there is an outbound DESADV IDoc with several delivery positions (=E1EDL24 segments). Upon arrival in the system for each position of this IDoc a separate inbound IDoc (DELVRY03) should be posted. We have considered using AIF for that purpose (implementing the splitting of the IDoc data in an AIF action and then calling the IDoc inbound processing function module for each position also in the AIF action.
(Scenario without an integration broker in-between which would do the splitting).

We have so far implemented a proof of concept for that, which is not yet working as expected. Before fixing all the issues I am just wondering whether this would be a good approach at all and whether the AIF action would be a good place for the "splitting logic".

Thank you in advance for any thoughts/advices on this.
Kind regards,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 29, 2017 at 03:00 PM

    Hi Beata,

    this sounds like a reasonable approach to me.

    We've "moved" messages or message parts from one AIF interface to another via apropriate calls in the Action and it does not cause problems if you ensure that you dont run into transactional processing issues.

    Imagine the process of splitting breaks after x elements and you have to restart the message after fixing the issue. Then you would have to make sure that the x elemenst already processed are properly skipped. But all this should be easily managable either through aif functionality directly or with a proper logic.

    But you would have this kind of problem regardless of the approach you select.

    Kind Regards

    David Rittinghaus

    Add comment
    10|10000 characters needed characters exceeded

    • Hi David,

      The data available in the AIF action (according to the action FM interface) is in a DATA -> SAP structure format.
      It does not know about the IDoc structure (IDoc segments, control record etc.).
      So in order to process any logic connected to the IDoc itself it first needs to be converted into the IDoc structure e.g.
      by using FM: /AIF/IDOC_CONVERT_SAP_STRUCT or

      Kind regards,