Universal, generic IDoc to replicate Z-tables

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
Posts: 33
Joined: Thu Sep 04, 2003 8:23 am

Universal, generic IDoc to replicate Z-tables

Post by kerum » Thu Oct 31, 2013 6:49 am

Hello experts,

I'm looking for solution to replicate many own tables with IDocs.
The standard way is to create segment and IDoc type separate for every table.
My question, is there more generic approach possible?
For example some kind of universal IDoc type which could be used to replicate various tables?
I've looked on BW data extractors but they are to complicated for me and I must probably
also generate separate for every table.

The perfect solution would be empty IDoc container with exit (coding) possibility in Input/Output.

Do you have an idea for it?


Posts: 7116
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool

Re: Universal, generic IDoc to replicate Z-tables

Post by Rich » Thu Oct 31, 2013 7:17 am

Create an idoc that contains a field for a structure name and an xstring,

Then using the following classes, convert the data outbound


Populate the idoc structure with the structure (or table name), and the xstring with the result of the Out class.

On the inbound side use cl_Abap_Conv_In_CE to reconstruct the work area and populate it with the data followed by a dynamic insert to insert the data into the specified table.


Abap KC:http://www.richard-harper.me.uk/Kb

Post Reply