Hello All,
I have seen this as a common requirement while working for clients that an IDOC from say a Production system needs to be copied to Development/Quality system for the purpose of testing or may be from Quality system to Development system. The reasons could be :
1. Production is not meant for testing the issues.
2. The IDOC is quite bulky that the generation in other systems requires lots of effort.
3. Testing something quick without the need of developer.
After searching in SDN, i do find certain techniques but those are more than one step processes, meaning you need to do one thing and then you need to do the second thing etc to finally copy the IDOC.
I now found a way to copy the IDOC from one system to another within the same landscape. i am attaching the code for doing so.