I'd appreciate your thoughts on this theoretical situation.
I've seen/heard this work a long time ago using ECC -> PI where PI determined the file format and appropriate contents.. but I'm considering ECC + AIF -> PI(for transfer only)
Let's say we are in an HR landscape where we have multiple outbound interfaces (medical, legal, dental, vision, banking, savings, etc...) and each use 80% the exact same data as the other HR interfaces.
To reduce the number of interface programs that we have to maintain and to reduce duplication of code, what I'd like to do is have 1 interface driver program that selects all the appropriate data (or as much as feasible) that spans all of those interfaces and pass that to AIF in the RAW data structure. Heck we could have a sub-structure for each Infotype.
I would then have an ACTION with 1 STEP for every outbound interface.
Within each of those STEPs, I'd call a new AIF interface that is specific to the counterparty.
By doing it this way, each counterparty has their own specific SAP data structure and validations available for mapping to in AIF. The only STEP necessary for this new ACTION would be to fill out any missing information that was not provided by the driver program and then pass to PI for data transfer.
Does that sound like the right approach?