Skip to Content

Sending IDOC to SAP from .Net application

Hi All,

I have a VB.net application from which I need to submits IDOCs to SAP. We have the IDOC schema in SAP. Here is my question:

What format do I need to submit the IDOC in? Do I pull the schema out of SAP and then build the XML document based on that or the IDOC needs to be in some kind of text file format? In other words, what should be the format of IDOC when it is submitted to SAP?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 13, 2005 at 02:28 PM

    Hello I would suggest to use .net reflection mechanism. For example to serialize and deserialize XML to IDOC and vice versa. The IDOC schema is created hierarchical, so you can also create a similar XML document. Then in IDOC you have levels and length of each IDOC element. Thus you can treat your IDOC as file stream. Therefore with reflection and attributes you can add each XML element to the IDOC stream etc...

    [1,10] //means level 1 and length 10

    xml_element

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 17, 2005 at 12:21 PM

    Hi Aurang,

    The .NET Connector documentation discusses the call for an IDOC from a remote system. Pretty sure it should detail what you need to know. Hope this might be of some help.

    Regards,

    Michael

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 19, 2005 at 07:01 PM

    Hi Erkan,

    Can you give me some more details about your suggestion as to how exactly it needs to be done?

    Thanks in advance.

    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.