cancel
Showing results for 
Search instead for 
Did you mean: 

SapIDocReceiver calss in .NET Server

Former Member
0 Kudos

I would like to know How to use the SAPIdocReceiverclass Works?

for e.g:- I could generate the IDOC for PO.Iwould like

to replicate the same PO in my .NET

application.Does the values in IDOC in SAP

will be transfered(using tRFC) in memory

to .NET application or .NET will receive it in

TEXT file and .NET application

need to parse it??.

Could you please explain me how this class

works and what need to be done in .NET

application

to retrieve values from the IDOC in .NET.

Accepted Solutions (0)

Answers (1)

Answers (1)

reiner_hille-doering
Active Contributor
0 Kudos

SAPIDocSender and SAPIDocReceiver just send and receive text-IDOCs as byte-stream. You need to construct or parse them by your own.

Former Member
0 Kudos

Could you post some sample code in parsing the IDOC.

Former Member
0 Kudos

Reiner,

Thanks for you quick reply.DO I need to create a TEXT file of an IDOC in SAP and ftp the the TEXT file

to .NET connector?? or the SAPIdocREceiver class itself is capable to receive the

byte stream??.Could you please clear my question

Thanks in advance

Mike

reiner_hille-doering
Active Contributor
0 Kudos

I don't understand the question.

In the outbound scenario the SAP server would serialize some business data into a text-idoc. You would on the .NET side receive the file as a byte-stream: As a result of the OnBeginReceiving function or BeginReceive event you hand in a TextWriter that receives the data.

You later need to understand the data somehow. You need to know the offsets of the individual fields. This indormation is available in the definition of the IDOC type in the SAP system.

Former Member
0 Kudos

Reiner,

Thanks again!.My question is that, If you create the IDOC, Will .NET Connector can receive the IDoc as stream or we need to do FTP the text file created in SAP to .NEt connector.

Thanks again...

reiner_hille-doering
Active Contributor
0 Kudos

You don't need FTP. The reason of IDocSender and IDocReceiver is to tranfer the file to or from SAP server.