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

Sending IDOCs using JCo?

Hi All,

I am sending IDOCS to SAP using JCO IDOC Class Library.

This is precisely the code I am using to send the IDOC.

transactionID = client.createTID();

client.send(idoc, transactionID);

client.confirmTID(transactionID);

IDOC is sent successfully and I am left with the transaction id to trace the IDOC in SAP. In the table EDIDS, the transaction ID is not populated and I am not able to find the IDOC.

Is there anything wrong with my code? Do I have to do something else to populate the tid in the table EDIDS?

I am doing all this to find the status of the IDOC.

What about document number of an IDOC? Is it automatically assigned by SAP to the IDOC? OR Can I create an arbitrary document number and give it as doc number?

Thanks and Regards,

Vijaya Gopal.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2004 at 01:24 PM

    Hi All,

    No replies to my question.

    Hasn't anyone developed a system to post IDOCs from an external system to SAP using JCO? If yes, how did you monitor the IDOC once it reached SAP system?

    Can someone please throw some light on this issue? Or you can post a weblog on this.

    Thanks and Regards.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Vijaya,

      I have the same problem when I want to implement the sample:JCoIDocSample1 provided by SAP,have you solved you problem now? if yes,please help me,so appreciate...

      Best regards.

      Leslie Zhu.

  • author's profile photo Former Member
    Former Member
    Posted on Sep 30, 2004 at 01:24 PM

    Hi All,

    No replies to my question.

    Hasn't anyone developed a system to post IDOCs from an external system to SAP using JCO? If yes, how did you monitor the IDOC once it reached SAP system?

    Can someone please throw some light on this issue? Or you can post a weblog on this.

    Thanks and Regards.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2004 at 07:42 AM

    i have a similar problem with tid.

    i execute a function, then confirmed it. but no data created in system.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 10, 2004 at 03:20 PM

    Hi,

    if you're using a RFC to send the IDOC it might be necessary to commit the IDOC with BAPI_TRANSACTION_COMMIT.

    Cheers,

    Heiko

    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.