cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to IDOC

Former Member
0 Kudos

Hi,

I am using an IDOC from SAP (SEnder) and in tartget i want IDOC file.

wat will be the receive adapter.

and other parameters

Jeff

Accepted Solutions (0)

Answers (1)

Answers (1)

justin_santhanam
Active Contributor
0 Kudos

Jeff,

IDOC File in the sense, the IDOC -XML file? If yes then use normal File receiver adapter. If i'm wrong can u please clarify.

Best regards,

raj.

Former Member
0 Kudos

IDOC text file

data should be in idoc format in the file

Former Member
0 Kudos

Hi Jeff,

the procedure is explained in <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a">How To Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0</a>.

Regards,

Sergio

PS: close the thread if the problem is solved

Former Member
0 Kudos

Hi Jeff,

Depending upon the format what u want in your output file,u can either use directly file adapter as receiver if u want data in XML format in the flat file or u can use File Content Conversion at receiver adapter to get output in a format as required by u.

GabrielSagaya
Active Contributor
0 Kudos

Hi,

the link for the procedure to explain How To Convert an IDoc-XML structure to a flat file and vice versa in XI 3.0 by means ABAP mapping.

how can you do by J2EE Mapping since i am a java developer????

Former Member
0 Kudos

Gabriel,

Java mapping class should implement the interface StreamTranssformation. Now with in your class, you need to code the execute method. It will have a input stream as input parameter which will contain the IDOC-XML data. You need to get this input stream and convert this IDOC-XML to flat structure and pass it as output stream.

Regards,

Jai Shankar

Former Member
0 Kudos

Jai,

Is dere need for any mapping(ABAP or JAVA) for this conversion(IDoc to File).Can't we do it directly through File content Conversion.Can,u clear this?

Regards,

Anoop

Former Member
0 Kudos

>>>Can't we do it directly through File content Conversion.Can,u clear this?

May be if the IDOC structure is not really complex and you need only certain fields, then you can very well achieve this using FCC.

Regards,

Jai Shankar