How to move IDoc from one SAP to another

The idea was to export the IDoc on system A to a file and then import it in system B from that file

 

Recently, I had to move an IDoc between two SAP systems for testing purposes, without the systems being connected in a network. This meant that we had to find a way to export and import the IDoc manually.

The plan involved transferring the IDoc from system A to a file and then importing it into system B from the file. Initially, it appeared to be simple, but it eventually proved to be complicated. Despite minimal guidance from online sources and SAP documents, I was able to figure it out and successfully complete the task. As a result, I would like to provide a detailed guide on how to accomplish this process.

It is important to understand that this is solely meant for the testing of individual cases using manual methods and should not be utilized as an IDoc interface.

Initially, we transfer an already existing IDoc from the source system, save the document on the nearby computer, and then transfer it to a different system.

 1 . How to export aflat IDoc file in SAP ERP: 

SAP GUI, Transaction Code:  WE19 

  1. Retrieve a previously saved Idoc by entering the Idoc number in the we02 system.
  2. Select the option labeled "inbound file" (although the terminology may be unclear as you will be saving a file to the system instead of receiving one) but don't worry and proceed with the task.
  3. Deselect the option called "Start Idoc inbound processing of file immediately".
  4. Input a valid pathway on the server (locate an appropriate pathway using transaction TcodeAL11) along with a desired file name. You can choose any name you prefer. Proceed to run the function.
  5. To obtain the exported file, utilize Transaction Code to download it to your personal device. CG3Y 
    Another option available for you is to utilize AL11, which exhibits a record of every file that is accessible. Choose the file that you prefer and subsequently hit the button that is designated with the text "Download File as Text" situated underneath it:
  6. Once you have the file locally, you have the ability to modify the file on your personal computer or perform additional actions . Alternatively, you can upload the file to another SAP system and make adjustments there before proceeding, which will be explained in the next chapter.

         

    1.  

 2 . How to Import Processa flat IDoc file

  1. Upload the file using transaction code  CG3Z For instance, a temporary directory can be used.
  2. Provide the directory location where you have saved the file and its name.
  3. Use t.code  WE19 Choose "File as Template" from the options.
  4. The IDoc can be viewed and edited using the testing tool.
  5. In order to proceed with standard IDoc processing, it is necessary to generate the control record. The specifics of this process are excluded from this discussion as they can be obtained from other sources. To create the control record, select the initial line in the editor and input the required data, ensuring that the IDoc message type is accordingly updated

       

Once you are prepared, select the "Standard Inbound" option,The status of the new IDoc can be viewed in WE02.


Rohit Sharma

6 SAP Docs posts

Comments
Abelardo Abbott 1 y

This link has method, using a function module to extract the IDoc https://blogs.sap.com/2014/02/11/copying-test-idocs-from-another-system/