cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc to Text File

Former Member
0 Kudos

Hi

I am receiving and Idoc (Debmas06) from R/3 System and need to convert that into a Idoc Text file. Which in turn will again be imported in another R/3 system and an Idoc will be created from the text File.

Constraints

1. Can¡¦t directly post and Idoc to receiver system ¡Vsecurity issues.

2. Also can¡¦t send the Idoc as an XML file using JMS Adapter. As the receiving system runs on 4.5B (And I don¡¦t think that the normal Function Modules-Converting XML to Idoc are present in that version 4.5B).

3. Earlier I thought of using JMS adapter for content conversion, but as it can¡¦t transform the complex structure in Receiver Channel. So I guess I need to use File Adapter.

I guess there are few possible ways of doing it, but not sure, so need clarification.

1. Do the content conversion using File Adapter. But need to be sure whether File adapter can handle Complex structures (Segment and Sub segment with varying data fields) and further can produce Idoc text file, which is the same like SAP Standard Idoc text file so that an Idoc can be created from it.

2. Is it possible to pull the Idoc file by using the File Port, instead of TRFC port. So that I receive the Idoc text file from SAP System and dump it directly in the receiving system.

3. Also further in SXMB_ADM there is specific configuration for IDoc, where we can specify that whether we want to convert Idoc to XML or not. Can we do the same thing for an specific Scenario of Idoc type. As I guess it applies in general to every Idoc being received in XI System.

Kindly clear my confusion, which is the best approach and any better approach. I probably feel better to use File Adapter with content conversion based on my requirements.

Also kindly suggest more easy approaches if any

Regards

Swetank

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Swetank,

I will make your life very easy Your main goal is to convert a idoc to file and load the into another R3.

there is a document which takes about how to get a idoc from r3 to xi and write it out as a file, which can be then loaded into R3.

https://websmp204.sap-ag.de/nw-howtoguides

-> Exchange Infrastruture

-> how to convert idoc to file.

this doc gives you a step by step of how to do using ABAP mapping, all the code is given.

cheers,

Naveen

Former Member
0 Kudos

Hi

I guess the file which Naveen is talking about is also there on SDN https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1...

To convert Idoc to XML. Hope this will solve the problems

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi ,

I need some help on this scenario...

I have completed the XI part....i need the information of what are the configurations that i need to do in the R/3 and XI system..

what all i have done is :

In R/3 : Created :

RFC destination (pointing XI system)X7ACLNT100

Port X7ACLNT100

Partner profile ( outbound parameter CREMAS)...Here i specified receiver port as the one created in R/3 X7ACLNT100whose RFC destinationX7ACLNT100 is pointing XI

XI :

RFC destination(Pointing R/3) QZACLNT100

and port QZACLNT100=> do i need to create these 2.

When i try to do the testing of IDOC in we19, its creating IDOC but not sending it, not even reaching XI...

Can you help me out..or can you tell me the complete steps of these configurations....

A bit urgent

Former Member
0 Kudos

Hi Swetank,

I am not sure of the table name but I guess there is a table which you can use to supress the XML conversion for specific message types also.