Skip to Content
author's profile photo Former Member
Former Member

How to send IDoc from SAP Netweaver to Java IDoc Server?

Hi, I am new to SAP world and trying to integrate SAP system to Java application. Currently for POC I have setup a Java StepByStepServer for receiving an IDoc from SAP given in link Example Program IDoc Server but facing a problem in sending an IDoc from SAP. I am following these steps :

  1. Start the SAP GUI.
  2. Create a logical system using BD54 transaction.
  3. Create an RFC destination in TCP/IP connections using SM59 transaction.
  4. Create a port using WE21 transaction and attach it to the RFC destination created in the last step.
  5. Create a partner profile using WE20 transaction with the required message type and IDOC type, and then attach it to the port created in the last step.
  6. Maintain a distributed model by using the BD64 transaction. (Getting Error : Communication error occured)

7. Sending an IDOC from transaction WE19.

8.Checking status of IDOC in transaction WE05. (Getting status = 03)

At this time I know that the status 12 means IDoc succesfully dispatch to the external system. But I am stuck here and no clue how to proceed forward, any help will be appreciable.


saperror.png (14.8 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Apr 08, 2016 at 08:16 AM

    Hi Mayank,

    Can you post the screen shot of the port and destination that you are using

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.