Reading from an outbound Idoc to JCo server

Reading from an outbound Idoc to JCo server

I am having a problem with reading information from an outbound Idoc to my JCo server. My environment: Using 4.6C and triggering an Idoc from SAP to my JCo server. I have setup a repository for the server with function 'IDOC_INBOUND_ASYNCHRONOUS' and defined the appropriate parameters. Also, I defined structures 'EDI_DC40' and 'EDI_DD40'. In method 'handleRequest', I read the incoming tables 'IDOC_DATA_REC_40' and 'IDOC_CONTROL_REC_40' (also did a writeHTML) but the fields are blank. I know that I receive the data back because the number of control and data idoc rows correspond to what I expect but when I do a getstring, it returns blank. Additionally, I have tested this with a tibco adapter and it does read the idoc data fine so SAP side looks fine.

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.


I would be happy to send you my source code if you would like to take a look. Thank you for your help.


As you may have expected, we need source code and the RFC trace.


This was first published in February 2002