cancel
Showing results for 
Search instead for 
Did you mean: 

file to Idoc

Former Member
0 Kudos

Hi,

I am new to XI,i have been able to do a IDOC to File comm. but facing some problems in doing a File to R3 Idoc(i want to create a material master in R3 side) communication.Can anybody suggest me the required steps to be followed to do the same.

Thanks and Regards,

Satpreet Singh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hey,

refer to these steps.

Steps for XI

Step 1)

Goto SM59.

Create new RFC destination of type 3(Abap connection).

Give a suitable name and description.

Give the Ip address of the R3 system.

Give the system number.

Give the gateway host name and gateway service (3300 + system number).

Go to the logon security tab.

Give the lang, client, username and password.

Test connection and remote logon.

Step 2)

Goto IDX1.

Create a new port.

Give the port name.

Give the client number for the R3 system.

Select the created Rfc Destination.

Step 3)

Goto IDX2

Create a new Meta data.

Give the Idoc type.

Select the created port.

R3 side.

Go To WE20

Create a Partner Profile.

In the Inbound message type give your Idoc type.

In the process code field give the process code for that idoc type

Process code you can get it from WE42.

once the File is sent the Status of Idoc in WE02 should be 53.

reward points if useful.

regards,

Milan

Answers (7)

Answers (7)

Former Member
0 Kudos

Hi Satpreet Singh Ratra ,

The following r excellent websites which will give step-by-step solution to answer u'r question:

How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1...

IDoc Packaging and Mapping Techniques

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38...

check this blog

How ToConfigure IDoc Adapters

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6f...

Troubleshooting File-to-IDOC Scenario in XI.

Former Member
0 Kudos

Dear satpreet,

1. Configuration in the integration server

a. Create RFC destination: Using transaction SM59 create an RFC Destination of Type 3 in order to establish communication with the Receiver SAP System

Note: Created RFC Destination should point to the Receiveru2014SAP system.

b. Create Port: Create a port using Tcode: IDX1, which will be employed in later stages to import the IDoc metadata. In this example, the port is SAPXXX (Port for receiver system) where XXX is the system ID of the SAP backend system. The created port has to be binded with the RFC Destination of the Sender SAP System configured in the Step 3.a above.

c. Transaction IDX2: This configuration step is used to import the metadata of the IDoc using the corresponding Business system port

2. Design the scenario in the integration repository

a. Import IDocs: Import the IDoc from Receiver SAP system. Enter the details of the receiver system as below. In this scenario ZMREPT.ZMREPT02 is the inbound message type. The inbound IDoc should be imported from the Receiveru2014SAP system.

b. Creation of Data type: The outbound data type is be created resembling the structure of Inbound IDoc

c. Create Message type: The outbound message type is to be created for source data and can be viewed in the screen shot explained near Mapping.

d. Create Outbound Message Interface .

e. Define u2018Message Mappingu2019 from Outbound message interface to inbound message interface.

f. Define Interface mapping to include Outbound interface as u2018Source Interfaceu2019 and Inbound interface as u2018Target interfaceu2019.

3. Configuration in Integration Directory

a. Import Business system from SLD for receiver systems

b. Create a Business server to point a file system

c. Receiver system pointing to SAP system

Create Sender Communication channel with following parameters

Type of adapter : File

Transport protocol : Filesystem (NFS)

Message protocol : File

Adapter Engine : Integration Server

d. Create Receiver Communication channel.

e. Create Sender agreement with required Service and Outbound interface

f. Create Receiver agreement with the above sender service, receiver service and inbound interface

g. Create Interface determination includes Sender, Outbound interface, Receiver, Inbound interface

h. Create Receiver determination with the above values including the required mapping

i. Prepare the necessary ALE setting for receiving the IDocs in the receiving system like Logical systems, partner profiles, port, RFC destination, Process code etc..

j. Place the file in the source directory and activate the created objects both in integration repository and integration directory.

Former Member
0 Kudos

Hi Satpreet Singh Ratra ,

The following websites will answer u'r question:

How to convert an IDoc-XML structure to a flat file and vice-versa in XI 3.0

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1...

IDoc Packaging and Mapping Techniques

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/877c0d53-0801-0010-3bb0-e38...

check this blog

How ToConfigure IDoc Adapters

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6f...

Troubleshooting File-to-IDOC Scenario in XI.

Former Member
0 Kudos

Hi Satpreet Singh,

When ever use IDOC to file no need to create the IDOC communication channel because already IDOC is an ABAP stack.

If in case of File to IDOC, we can create IDOC Receiver adapter.

Regards,

Skumar

Former Member
0 Kudos

Hi,

This should help you - [File to IDoc Example|http://www.riyaz.net/blog/index.php/2008/01/22/xipi-your-first-xi-scenario/]

Regards,

Riyaz

Former Member
0 Kudos

Please refer to the below forum.

Hope it will help you.

thanks and regards,

Hetal

Please reward helpful answers

Former Member
0 Kudos

hi satpreet singh

just check the below blog

FILE TO IDOC

**Troubleshooting File-to-IDOC Scenario in XI *

Refer

File To IDOC - Part1 (SLD and Design):

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&

File To IDOC - Part2 (Configuration):

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&

File To IDOC - Part3 (Steps required in XI and R3):

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&

reward points if helpfull.

regards

kummari

Edited by: kummari on Jul 11, 2008 12:10 PM

Edited by: kummari on Jul 11, 2008 12:12 PM