cancel
Showing results for 
Search instead for 
Did you mean: 

Sending IDOC to SAP from .Net application

former_member445996
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member445996
Participant
0 Kudos

Hi Erkan,

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

Thanks in advance.

michael_bennett
Explorer
0 Kudos

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

Former Member
0 Kudos

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